huggingface_hub icon indicating copy to clipboard operation
huggingface_hub copied to clipboard

ValueError: Unable to retrieve user and repo ID from the passed HF ID: https://huggingface.co/MonolithFoundation/Bumblebee-Light

Open MonolithFoundation opened this issue 1 year ago • 9 comments

I have loggined, the repo https://huggingface.co/MonolithFoundation/Bumblebee-Light exist.

Just can not push models, why?

MonolithFoundation avatar May 03 '24 08:05 MonolithFoundation

Just can not push models, why?

Can you explain more why you can't? Here is some docs that should help you getting started:

  • how to authenticate with the Python client: https://huggingface.co/docs/huggingface_hub/quick-start#authentication
  • how to upload with the Python client: https://huggingface.co/docs/huggingface_hub/guides/upload
  • how to upload with the web interface: https://huggingface.co/docs/hub/models-uploading

Wauplin avatar May 03 '24 08:05 Wauplin

I just keep getting error:

ValueError: Unable to retrieve user and repo ID from the passed HF ID: https://huggingface.co/MonolithFoundation/Bumblebee-Light

But the url just exist, the error message could be more clear what's exactly goes on?

MonolithFoundation avatar May 03 '24 09:05 MonolithFoundation

With a full stack trace it'll be easiest to point you toward to correct point. Anyway, when upload files or doing anything else on the Hub, you must pass a repo_id, not a URL. In your case the repo id is MonolithFoundation/Bumblebee-Light.

Wauplin avatar May 03 '24 10:05 Wauplin

Hi, am just exactly provide the id, otherwise the logging messages. concated would repeat the url prefix.

Can u tell me what could be the reason behind? Clearly it's not my repo id doesn't exist.

At 2024-05-03 18:43:53, "Lucain" @.***> wrote:

With a full stack trace it'll be easiest to point you toward to correct point. Anyway, when upload files or doing anything else on the Hub, you must pass a repo_id, not a URL. In your case the repo id is MonolithFoundation/Bumblebee-Light.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

MonolithFoundation avatar May 03 '24 10:05 MonolithFoundation

Please provide:

  1. the Python script that is causing your error
  2. the error with full traceback it produces

Won't be able to help further without those 2.

Wauplin avatar May 03 '24 11:05 Wauplin

image

MonolithFoundation avatar May 03 '24 15:05 MonolithFoundation

Looks like there is a double-dash in your command line MonolithFoundation/Bumblebee--Ligth, isn't it?

Wauplin avatar May 03 '24 15:05 Wauplin

Hi, thanksfor the reply, it is not

huggingface-cli upload MonolithFoundation/Bumblebee-Light ./ ./

I just copyed the id from my huggingace dashboard...

MonolithFoundation avatar May 03 '24 16:05 MonolithFoundation

Could you try to run this in a separate python terminal?

>>> from huggingface_hub import repo_type_and_id_from_hf_id
>>> repo_type_and_id_from_hf_id("MonolithFoundation/Bumblebee-Light")
(None, 'MonolithFoundation', 'Bumblebee-Light')

Wauplin avatar May 03 '24 19:05 Wauplin

@Wauplin Hi

image

Any further steps?

MonolithFoundation avatar May 04 '24 02:05 MonolithFoundation

Hi, not that I can think of no. It's very weird that you get this error while using the CLI but not if you run it manually in a snippet. Could you try uninstalling completely the package (and CLI) and reinstall it again?

To be honest this is not an expected error and it's appearing on a command that is very widely used and for which I've never seen this reported. That's why I'm a bit confused about what to do/how to explain it 😕

Wauplin avatar May 04 '24 05:05 Wauplin

Shit, I found the reason.

image

I would suggest your guys delete this package.

If it doesn't provided by huggingface, contact the author to delete it. thanks.

MonolithFoundation avatar May 04 '24 09:05 MonolithFoundation