mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-24 04:59:47 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f7b03f5f2 | |||
| cb8edf17e6 | |||
| 5699f6cbf4 | |||
| 0e6114ac36 |
@@ -19,8 +19,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Runs at 02:00
|
# Runs at 02:00
|
||||||
schedule:
|
# schedule:
|
||||||
- cron: "0 2 * * *"
|
# - cron: "0 2 * * *"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CLOSE_ISSUE_MESSAGE: >
|
CLOSE_ISSUE_MESSAGE: >
|
||||||
|
|||||||
+3
-3
@@ -59,8 +59,8 @@ keywords = ["lerobot", "huggingface", "robotics", "machine learning", "artifici
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
# Core ML
|
# Core ML
|
||||||
"torch>=2.7,<2.11.0",
|
"torch>=2.7,<2.13.0",
|
||||||
"torchvision>=0.22.0,<0.26.0",
|
"torchvision>=0.22.0,<0.28.0",
|
||||||
"numpy>=2.0.0,<2.3.0", # NOTE: Explicitly listing numpy helps the resolver converge faster. Upper bound imposed by opencv-python-headless.
|
"numpy>=2.0.0,<2.3.0", # NOTE: Explicitly listing numpy helps the resolver converge faster. Upper bound imposed by opencv-python-headless.
|
||||||
"opencv-python-headless>=4.9.0,<4.14.0",
|
"opencv-python-headless>=4.9.0,<4.14.0",
|
||||||
"Pillow>=10.0.0,<13.0.0",
|
"Pillow>=10.0.0,<13.0.0",
|
||||||
@@ -99,7 +99,7 @@ dataset = [
|
|||||||
"pandas>=2.0.0,<3.0.0", # NOTE: Transitive dependency of datasets
|
"pandas>=2.0.0,<3.0.0", # NOTE: Transitive dependency of datasets
|
||||||
"pyarrow>=21.0.0,<30.0.0", # NOTE: Transitive dependency of datasets
|
"pyarrow>=21.0.0,<30.0.0", # NOTE: Transitive dependency of datasets
|
||||||
"lerobot[av-dep]",
|
"lerobot[av-dep]",
|
||||||
"torchcodec>=0.3.0,<0.11.0; sys_platform != 'win32' and (sys_platform != 'linux' or (platform_machine != 'aarch64' and platform_machine != 'arm64' and platform_machine != 'armv7l')) and (sys_platform != 'darwin' or platform_machine != 'x86_64')", # NOTE: Windows support starts at version 0.7 (needs torch==2.8), ffmpeg>=8 support starts at version 0.8.1 (needs torch==2.9), system-wide ffmpeg support starts at version 0.10 (needs torch==2.10).
|
"torchcodec>=0.3.0,<0.13.0; sys_platform != 'win32' and (sys_platform != 'linux' or (platform_machine != 'aarch64' and platform_machine != 'arm64' and platform_machine != 'armv7l')) and (sys_platform != 'darwin' or platform_machine != 'x86_64')", # NOTE: Windows support starts at version 0.7 (needs torch==2.8), ffmpeg>=8 support starts at version 0.8.1 (needs torch==2.9), system-wide ffmpeg support starts at version 0.10 (needs torch==2.10), 0.11 needs torch==2.11, 0.12 needs torch==2.12.
|
||||||
"jsonlines>=4.0.0,<5.0.0",
|
"jsonlines>=4.0.0,<5.0.0",
|
||||||
]
|
]
|
||||||
training = [
|
training = [
|
||||||
|
|||||||
@@ -256,7 +256,9 @@ class TrainPipelineConfig(HubMixin):
|
|||||||
) from e
|
) from e
|
||||||
|
|
||||||
cli_args = kwargs.pop("cli_args", [])
|
cli_args = kwargs.pop("cli_args", [])
|
||||||
if config_file is not None:
|
# Legacy RA-BC migration only applies to framework-saved checkpoints (always JSON).
|
||||||
|
# Hand-written YAML/TOML configs are expected to use the current sample_weighting schema.
|
||||||
|
if config_file is not None and config_file.endswith(".json"):
|
||||||
with open(config_file) as f:
|
with open(config_file) as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
migrated_config = _migrate_legacy_rabc_fields(config)
|
migrated_config = _migrate_legacy_rabc_fields(config)
|
||||||
|
|||||||
@@ -939,7 +939,7 @@ class Qwen2_5_VLFlashAttention2(Qwen2_5_VLAttention):
|
|||||||
input_dtype = query_states.dtype
|
input_dtype = query_states.dtype
|
||||||
if input_dtype == torch.float32:
|
if input_dtype == torch.float32:
|
||||||
if torch.is_autocast_enabled():
|
if torch.is_autocast_enabled():
|
||||||
target_dtype = torch.get_autocast_gpu_dtype()
|
target_dtype = torch.get_autocast_dtype(query_states.device.type)
|
||||||
# Handle the case where the model is quantized
|
# Handle the case where the model is quantized
|
||||||
elif hasattr(self.config, "_pre_quantization_dtype"):
|
elif hasattr(self.config, "_pre_quantization_dtype"):
|
||||||
target_dtype = self.config._pre_quantization_dtype
|
target_dtype = self.config._pre_quantization_dtype
|
||||||
|
|||||||
@@ -985,7 +985,7 @@ class Florence2FlashAttention2(Florence2Attention):
|
|||||||
input_dtype = query_states.dtype
|
input_dtype = query_states.dtype
|
||||||
if input_dtype == torch.float32:
|
if input_dtype == torch.float32:
|
||||||
if torch.is_autocast_enabled():
|
if torch.is_autocast_enabled():
|
||||||
target_dtype = torch.get_autocast_gpu_dtype()
|
target_dtype = torch.get_autocast_dtype(query_states.device.type)
|
||||||
# Handle the case where the model is quantized
|
# Handle the case where the model is quantized
|
||||||
elif hasattr(self.config, "_pre_quantization_dtype"):
|
elif hasattr(self.config, "_pre_quantization_dtype"):
|
||||||
target_dtype = self.config._pre_quantization_dtype
|
target_dtype = self.config._pre_quantization_dtype
|
||||||
|
|||||||
Reference in New Issue
Block a user