How to use autotrain spacerunner CLI
huggingface.coTrain Custom Models on Hugging Face Spaces with AutoTrain SpaceRunnerA Blog post by Abhishek Thakur on Hugging FaceI proceeded by looking at the document in the URL.Cli isautotrain spacerunner --project-name demo2 --script-path /Users/codecraft_rock/source/neuroflux-model-tuning  --username jungrok  --token REDACTED_TOKEN --backend spaces-cpu-basic     --env TOKENIZERS_PARALLELISM=false;TRANSFORMERS_VERBOSITY=error  --args padding=right;–push_to_hub=falseerrorINFO     | 2025-01-16 12:18:57 | autotrain.trainers.generic.utils:create_dataset_repo:23 - Creating dataset repo…INFO     | 2025-01-16 12:18:57 | autotrain.trainers.generic.utils:create_dataset_repo:31 - Uploading dataset…raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url:https://huggingface.co/api/datasets/jungrok/autotrain-demo1/commit/mainThe above exception was the direct cause of the following exception:Traceback (most recent call last):File “/opt/anaconda3/bin/autotrain”, line 8, insys.exit(main())^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/autotrain/cli/autotrain.py”, line 68, in maincommand.run()File “/opt/anaconda3/lib/python3.12/site-packages/autotrain/cli/run_spacerunner.py”, line 126, in rundataset_id = create_dataset_repo(^^^^^^^^^^^^^^^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/autotrain/trainers/generic/utils.py”, line 32, in create_dataset_repoapi.upload_folder(File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py”, line 114, in _inner_fnreturn fn(*args, **kwargs)^^^^^^^^^^^^^^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/REDACTED_TOKEN.py”, line 1518, in _innerreturn fn(self, *args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/REDACTED_TOKEN.py”, line 4711, in upload_foldercommit_info = self.create_commit(^^^^^^^^^^^^^^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py”, line 114, in _inner_fnreturn fn(*args, **kwargs)^^^^^^^^^^^^^^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/REDACTED_TOKEN.py”, line 1518, in _innerreturn fn(self, *args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/REDACTED_TOKEN.py”, line 4087, in create_commitREDACTED_TOKEN_for_status(commit_resp, endpoint_name=“commit”)File “/opt/anaconda3/lib/python3.12/site-packages/huggingface_hub/utils/_http.py”, line 477, in REDACTED_TOKEN_for_statusraise _format(HfHubHTTPError, str(e), response) from ehuggingface_hub.errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url:https://huggingface.co/api/datasets/jungrok/autotrain-demo1/commit/mainzsh: command not found: --argszsh: command not found: --push_to_hub=false(base) codecraft_rock@anjeonglog-ui-iMac ~ % autotrain spacerunner --project-name demo1 --script-path /Users/codecraft_rock/source/neuroflux-model-tuning  --username jungrok  --token REDACTED_TOKEN --backend spaces-cpu-basic     --env TOKENIZERS_PARALLELISM=false;TRANSFORMERS_VERBOSITY=error
2025-01-16T04:12:53Z
It is dangerous to make your token public.Make sure to invalidate any tokens that you have made public.You can do this from the token settings page.