Skip to content

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.


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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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.

3 participants