mirror of
https://github.com/KohakuBlueleaf/KohakuHub.git
synced 2026-05-05 20:07:37 -05:00
[GH-ISSUE #13] [Bug]: hf upload error #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yiminghub2024 on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/KohakuBlueleaf/KohakuHub/issues/13
What's wrong?
root@hzhds72131x:/data2/qwen/Qwen3.5-35B-A3B-FP8# hf upload yiminghub/Qwen35-35B-A3B-FP8 config.json
Request d8823878-63e6-4349-b92d-b23de6683188: POST http://10.133.72.108:28080/api/repos/create (authenticated: True)
Send: curl -X POST -H 'accept: /' -H 'accept-encoding: gzip, deflate' -H 'authorization: ' -H 'connection: keep-alive' -H 'content-length: 71' -H 'content-type: application/json' -H 'host: 10.133.72.108:28080' -H 'user-agent: huggingface-cli/1.7.1; hf_hub/1.7.1; python/3.10.12' -H 'x-amzn-trace-id: d8823878-63e6-4349-b92d-b23de6683188' -d '{"name":"Qwen35-35B-A3B-FP8","organization":"yiminghub","type":"model"}' http://10.133.72.108:28080/api/repos/create
Error: Bad request:
Repository yiminghub/Qwen35-35B-A3B-FP8 already exists
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 761, in hf_raise_for_status
response.raise_for_status()
File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'http://10.133.72.108:28080/api/repos/create'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/cli/hf.py", line 113, in main
app()
File "/usr/local/lib/python3.10/dist-packages/typer/main.py", line 1152, in call
raise e
File "/usr/local/lib/python3.10/dist-packages/typer/main.py", line 1135, in call
return get_command(self)(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1485, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/typer/core.py", line 795, in main
return _main(
File "/usr/local/lib/python3.10/dist-packages/typer/core.py", line 188, in _main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1873, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 824, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/typer/main.py", line 1514, in wrapper
return callback(**use_params)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/cli/upload.py", line 273, in upload
print(run_upload())
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/cli/upload.py", line 219, in run_upload
created = api.create_repo(
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/hf_api.py", line 4108, in create_repo
hf_raise_for_status(r)
File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 853, in hf_raise_for_status
raise _format(BadRequestError, message, response) from e
huggingface_hub.errors.BadRequestError: Bad request:
Repository yiminghub/Qwen35-35B-A3B-FP8 already exists
root@hzhds72131x:/data2/qwen/Qwen3.5-35B-A3B-FP8#
Environment
ubuntu22.04
Logs (if available)
Checklist