simonycl's picture
Upload folder using huggingface_hub
55b09dc verified
Traceback (most recent call last):
File "/usr/local/bin/huggingface-cli", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/commands/huggingface_cli.py", line 48, in main
service = args.func(args)
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/commands/upload.py", line 167, in __init__
raise ValueError(f"'{repo_name}' is not a local file or folder. Please set `local_path` explicitly.")
ValueError: 'data_selection_wizardlm+sharegpt_Llama-2-7b-hf-wizardlm+sharegpt-lora' is not a local file or folder. Please set `local_path` explicitly.
Consider using `hf_transfer` for faster uploads. This solution comes with some limitations. See https://huggingface.co/docs/huggingface_hub/hf_transfer for more details.
Traceback (most recent call last):
File "/usr/local/bin/huggingface-cli", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/commands/huggingface_cli.py", line 49, in main
service.run()
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/commands/upload.py", line 190, in run
print(self._upload())
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/commands/upload.py", line 251, in _upload
repo_id = self.api.create_repo(
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "/usr/local/lib/python3.8/dist-packages/huggingface_hub/utils/_validators.py", line 164, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'simonycl/data_selection_wizardlm+sharegpt_Llama-2-7b-hf-wizardlm+sharegpt-lora'.