-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Treat hf.co/ prefix the same as hf:// #11350
Conversation
11eb2be
to
2d5382e
Compare
@ngxson wanna review this one, should be a quick one I think. Will complete the hf.co protocol thing in some other PR. This just means we tread "hf.co/, "hf://", "huggingface://" the same. |
examples/run/run.cpp
Outdated
@@ -634,20 +634,20 @@ class LlamaData { | |||
return path.substr(pos + 1); | |||
} | |||
|
|||
int remove_proto(std::string & model_) { | |||
const std::string::size_type pos = model_.find("://"); | |||
int rm_substring(std::string & model_, const std::string & substring) { |
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.
the function name is a quite misleading because I thought that it's replace(substr, "")
at first. Probably rm_until_substring
make it more clear
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.
Renamed, please re-review @ngxson
ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf:// Treat them similarly. Signed-off-by: Eric Curtin <ecurtin@redhat.com>
ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf:// Treat them similarly. Signed-off-by: Eric Curtin <ecurtin@redhat.com>
ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf:// Treat them similarly. Signed-off-by: Eric Curtin <ecurtin@redhat.com>
ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf:// Treat them similarly. Signed-off-by: Eric Curtin <ecurtin@redhat.com>
ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf:// Treat them similarly. Signed-off-by: Eric Curtin <ecurtin@redhat.com>
ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf://
Treat them similarly.