autotrain-advanced
autotrain-advanced copied to clipboard
[BUG]When running a seq2seq training task on the CPU, an error occurs.
Prerequisites
- [X] I have read the documentation.
- [X] I have checked other issues for similar problems.
Backend
Local
Interface Used
UI
CLI Command
No response
UI Screenshots & Parameters
Error Logs
[2024-06-20 07:53:13,283] [WARNING] [real_accelerator.py:162:get_accelerator] Setting accelerator to CPU. If you have GPU or other accelerator, we were unable to detect it.
[2024-06-20 07:53:13,284] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cpu (auto detect)
INFO: 10.16.44.20:42259 - "GET /ui/is_model_training HTTP/1.1" 200 OK
Traceback (most recent call last):
File "/app/env/bin/accelerate", line 8, in
Additional Information
""" elif isinstance(params, Seq2SeqParams): if num_gpus == 0: logger.warning("No GPU found. Forcing training on CPU. This will be super slow!") cmd = [ "accelerate", "launch", "--cpu", ] if num_gpus == 1: // should be elif? cmd = [ "accelerate", "launch", "--num_machines", "1", "--num_processes", "1", ] """