fix: support cuda:0, cuda:1 in string selection (#2256)

* fix

* update func 2

* update nightly

* fix quality

* ignore test_dynamixel
This commit is contained in:
Jade Choghari
2025-10-20 23:29:05 +02:00
committed by GitHub
parent 502fdc0630
commit 5f6f476f32
3 changed files with 20 additions and 22 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class PreTrainedConfig(draccus.ChoiceRegistry, HubMixin, abc.ABC): # type: igno
input_features: dict[str, PolicyFeature] = field(default_factory=dict)
output_features: dict[str, PolicyFeature] = field(default_factory=dict)
device: str | None = None # cuda | cpu | mp
device: str | None = None # e.g. "cuda", "cuda:0", "cpu", or "mps"
# `use_amp` determines whether to use Automatic Mixed Precision (AMP) for training and evaluation. With AMP,
# automatic gradient scaling is used.
use_amp: bool = False