Skip to content
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

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Treat hf.co/ prefix the same as hf:// #11350

merged 1 commit into from
Jan 23, 2025

Conversation

ericcurtin
Copy link
Collaborator

ollama uses hf.co/ to specify huggingface prefix, like RamaLama uses hf://

Treat them similarly.

@ericcurtin ericcurtin force-pushed the hf-co branch 2 times, most recently from 11eb2be to 2d5382e Compare January 22, 2025 14:02
@ericcurtin
Copy link
Collaborator Author

@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.

@@ -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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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>
@ericcurtin ericcurtin merged commit f211d1d into master Jan 23, 2025
45 checks passed
@ericcurtin ericcurtin deleted the hf-co branch January 23, 2025 10:38
anagri pushed a commit to BodhiSearch/llama.cpp that referenced this pull request Jan 26, 2025
ollama uses hf.co/ to specify huggingface prefix, like RamaLama
uses hf://

Treat them similarly.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
ollama uses hf.co/ to specify huggingface prefix, like RamaLama
uses hf://

Treat them similarly.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
ollama uses hf.co/ to specify huggingface prefix, like RamaLama
uses hf://

Treat them similarly.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
mglambda pushed a commit to mglambda/llama.cpp that referenced this pull request Mar 8, 2025
ollama uses hf.co/ to specify huggingface prefix, like RamaLama
uses hf://

Treat them similarly.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants