-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login to huggingface with a token asks for username and password #643
Comments
I think the best fix is to implement ramalama login in python3 from scratch it shouldn't be too bad, I've seen at least 3 implementations of it. |
But yes a documentation addition to install huggingface would be enough to close this issue for now. It's deliberately not a strong dependancy because it can be hard to install it on some platforms. Would you like to open a PR @pbabinca with a documentation update? If you are really interested in solving this, a PR with the python code is the longer term fix. |
Opened #645 which should solve the last issue. The other two issues, though, are not resolved yet. I'm not sure if test of the prefix |
Relates-to: containers#643 Signed-off-by: Pavol Babincak <[email protected]> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> Co-authored-by: Daniel J Walsh <[email protected]>
Relates-to: containers#643 Signed-off-by: Pavol Babincak <[email protected]> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> Co-authored-by: Daniel J Walsh <[email protected]>
I would like to use a model from huggingface. Since the model is hidden behind authentication, I follow examples section of Documentation for ramalama login and run:
but instead of logging me in, I'm being asked for
Username:
.I have found a trivial typo on this line:
which python interprets as:
so I assume it should be:
This is not enough though, because the registry from the command line (
huggingface
) is not one of the expected prefixes in factory function New(). I'm not sure how to fix this properly, but temporary workaround with:led me to an error:
I haven't seen a requirement of this CLI to be installed on the system anywhere in the documentation. I guess best place would be in the examples section of
ramalama-login
, either using the command (pip install -U "huggingface_hub[cli]"
) or linking to https://huggingface.co/docs/huggingface_hub/en/guides/cli where I found it.After all of this I was able to login.
The text was updated successfully, but these errors were encountered: