Skip to content

llama-run: add support for downloading models from ModelScope #13370

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

Merged
merged 1 commit into from
May 9, 2025

Conversation

yeahdongcn
Copy link
Contributor

Make sure to read the contributing guidelines before submitting a PR

To better support users in mainland China, this PR adds support for using ModelScope as a model endpoint in llama-run.

Testing Done

❯ ./build/bin/llama-run modelscope://bartowski/SmolLM-1.7B-Instruct-v0.2-GGUF/SmolLM-1.7B-Instruct-v0.2-IQ3_M.gguf
 58% |█████████████████████████████████████████████████████████████                                             |  448.59 MB/ 772.71 MB   2.79 MB/s    4m 31s
❯ ./build/bin/llama-run ms://QuantFactory/SmolLM-135M-GGUF/SmolLM-135M.Q2_K.gguf
 10% |██████████                                                                                                |    8.51 MB/  84.12 MB   4.79 MB/s       15s

@yeahdongcn
Copy link
Contributor Author

Hi @ericcurtin @ggerganov,

When you have a moment, could you please take a look at this? Thanks!

@ericcurtin
Copy link
Collaborator

I recommend adding this to RamaLama also, there's a python3 implementation of this there

@ericcurtin ericcurtin merged commit 0527771 into ggml-org:master May 9, 2025
46 checks passed
@yeahdongcn
Copy link
Contributor Author

I recommend adding this to RamaLama also, there's a python3 implementation of this there

Sounds good — I’ll start working on this.

@ericcurtin
Copy link
Collaborator

"ramalama run" has jumped ahead of "llama-run" in terms of functionality because it uses llama-server from llama.cpp which is a more complete inferencing implementation than llama-run

gabe-l-hart added a commit to gabe-l-hart/llama.cpp that referenced this pull request May 9, 2025
* origin/master: (39 commits)
server : vision support via libmtmd (ggml-org#12898)
sycl : implementation of reordered Q4_0 MMVQ for Intel GPUs (ggml-org#12858)
metal : optimize MoE for large batches (ggml-org#13388)
CUDA: FA support for Deepseek (Ampere or newer) (ggml-org#13306)
llama : do not crash if there is no CPU backend (ggml-org#13395)
CUDA: fix crash on large batch size for MoE models (ggml-org#13384)
imatrix : Add --parse-special for enabling parsing of special tokens in imatrix calculation (ggml-org#13389)
llama-run: add support for downloading models from ModelScope (ggml-org#13370)
mtmd : fix batch_view for m-rope (ggml-org#13397)
llama : one-off chat template fix for Mistral-Small-2503 (ggml-org#13398)
rpc : add rpc_msg_set_tensor_hash_req (ggml-org#13353)
vulkan: Allow up to 4096 elements for mul_mat_id row_ids (ggml-org#13326)
server : (webui) rename has_multimodal --> modalities (ggml-org#13393)
ci : limit write permission to only the release step + fixes (ggml-org#13392)
mtmd : Expose helper_decode_image_chunk (ggml-org#13366)
server : (webui) fix a very small misalignment (ggml-org#13387)
server : (webui) revamp the input area, plus many small UI improvements (ggml-org#13365)
convert : support rope_scaling type and rope_type (ggml-org#13349)
mtmd : fix the calculation of n_tokens for smolvlm (ggml-org#13381)
context : allow cache-less context for embeddings (ggml-org#13108)
...
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