Traceback (most recent call last): File "/home/meow/ACE-Step/trainer.py", line 853, in…
- User
Traceback (most recent call last): File "/home/meow/ACE-Step/trainer.py", line 853, in main(args) File "/home/meow/ACE-Step/trainer.py", line 805, in main trainer = Trainer( File "/home/meow/anaconda3/envs/ace_step/lib/python3.10/site-packages/pytorch_lightning/utilities/argparse.py", line 70, in insert_env_defaults return fn(self, **kwargs) File "/home/meow/anaconda3/envs/ace_step/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 404, in init self._accelerator_connector = _AcceleratorConnector( File "/home/meow/anaconda3/envs/ace_step/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/accelerator_connector.py", line 131, in init self._check_config_and_set_final_flags( File "/home/meow/anaconda3/envs/ace_step/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/accelerator_connector.py", line 226, in _check_config_and_set_final_flags precision_flag = _convert_precision_to_unified_args(precision) File "/home/meow/anaconda3/envs/ace_step/lib/python3.10/site-packages/lightning_fabric/connector.py", line 565, in _convert_precision_to_unified_args raise ValueError(f"Precision {repr(precision)} is invalid. Allowed precision values: {supported_precision}") ValueError: Precision 'fp32' is invalid. Allowed precision values: ('transformer-engine', 'transformer-engine-float16', '16-true', '16-mixed', 'bf16-true', 'bf16-mixed', '32-true', '64-true', 64, 32, 16, '64', '32', '16', 'bf16')
- Assistant
The error message:
ValueError: Precision 'fp32' is invalid. Allowed precision values: ('transformer-engine', 'transformer-engine-float16', '16-true', '16-mixed', 'bf16-true', 'bf16-mixed', '32-true', '64-true', 64, 32, 16, '64', '32', '16', 'bf16')indicates that your PyTorch Lightning
Traineris receiving an invalid value for theprecisionargument, specifically'fp32'.What is happening?
- The PyTorch Lightning Trainer expects the
precisionargument to be one of a specific set of values. - You passed
'fp32', but according to the allowed values listed by the error,'fp32'is not recognized. - The closest accepted values for 32-bit floating point precision are:
'32','32-true', or simply .
- The PyTorch Lightning Trainer expects the
- User
'the command used' python trainer.py --dataset_path /home/meow/ACE-Step/Zen/dataset_hf --checkpoint_dir /home/meow/.cache/ace-step/checkpoints --exp_name "DaltOniX" --precision fp32 --devices 1 --accumulate_grad_batches 2 --num_workers 2 --learning_rate 1e-4 --max_steps 10000 --every_n_train_steps 1000 --every_plot_step 1000
- Assistant
The error you encountered is caused by the command line argument:
--precision fp32As explained in the error message,
'fp32'is not a valid precision value for PyTorch Lightning's Trainer.What you should do
Change your command to use a valid precision value.
For 32-bit floating point, you can use either:
32(number)'32'(string)
So, modify your command:
python trainer.py --dataset_path /home/meow/ACE-Step/Zen/dataset_hf --checkpoint_dir /home/meow/.cache/ace-step/checkpoints --exp_name "DaltOniX" --precision 32 --devices 1 --accumulate_grad_batches 2 --num_workers 2 --learning_rate 1e-4 --max_steps 10000 --every_n_train_steps 1000 --every_plot_step 1000or
python trainer.py --dataset_path /home/meow/ACE-Step/Zen/dataset_hf --checkpoint_dir /home/meow/.cache/ace-step/checkpoints --exp_name "DaltOniX" --precision '32' --devices 1 --accumulate_grad_batches 2 --num_workers 2 --learning_rate 1e-4 --max_steps 10000 --every_n_train_steps 1000 --every_plot_step 1000
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.