-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support new hf.co/ format #377
base: main
Are you sure you want to change the base?
Conversation
87809ef
to
ab63c05
Compare
This new format for hf has been implemented by Ollama. Signed-off-by: Eric Curtin <[email protected]>
ab63c05
to
c11d5ea
Compare
This doesn't work that well, but this is up for grabs if someone can figure it out |
quantization = 'Q4_K_M' # Default quantization scheme | ||
|
||
# Construct the new format | ||
return f"hf://{username}/{model_name}/{model_name}-{quantization}.gguf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericcurtin I would like to take this up, the new format which is being returned might not always be correct.
For example, running the following,
ramalama pull hf.co/instructlab/merlinite-7b-lab-GGUF
will use the following new format,
hf://instructlab/merlinite-7b-lab-GGUF/merlinite-7b-lab-GGUF-Q4_K_M.gguf
And the above path does not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... Maybe there's a REST API to get the real filename if you pass it instructlab/merlinite-7b-lab-GGUF and Q4_K_M or something like that but I'm really guessing...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there should be one to get the complete path. I'll explore this :)
Any update on this? |
This new format for hf has been implemented by Ollama.