download: add option to skip_download#23059
Merged
Merged
Conversation
ServeurpersoCom
approved these changes
May 14, 2026
Contributor
Author
|
hey @angt , can you have a quick look at this PR? thanks! |
Member
|
I think |
Contributor
Author
|
hmm yes that was my intention, file not found is the same as ETag mismatch case, right? (or maybe I missed something?) |
Member
|
Maybe i badly tested it 🤔 I did this: and got: |
Contributor
Author
Contributor
Author
|
I need to merge this to unblock some other task. @angt could you review & give the 2nd approval? |
angt
approved these changes
May 29, 2026
gabe-l-hart
added a commit
to gabe-l-hart/llama.cpp
that referenced
this pull request
May 29, 2026
* origin/master: vocab : support tokenizer for LFM2.5-8B-A1B (ggml-org#23826) graph : ensure DS32 kq_mask_lid is F32 (ggml-org#23864) server: remove obsolete scripts (ggml-org#23870) ci : update macos release to use macos-26 runner (ggml-org#23878) download: add option to skip_download (ggml-org#23059) mtmd: Add DeepSeekOCR 2 Support (ggml-org#20975) CUDA: Check PTX version on host side to guard PDL dispatch (ggml-org#23530) server: bump timeout to 3600s (ggml-org#23842) model : support for DeepseekV32ForCausalLM with generic DeepSeek Sparse Attention (DSA) implementation (ggml-org#23346) llama: use f16 mask for FA to save VRAM (ggml-org#23764) sync : ggml ggml : bump version to 0.13.1 (ggml/1523) ngram-mod : Add missing include (ggml-org#23857) llama: add llm_graph_input_mtp (ggml-org#23643) app : move licences to llama-app (ggml-org#23824) cuda : disables launch_fattn PDL enrollment due to compiler bug (ggml-org#23825) meta : Add missing `buffer` set in allreduce fallback !COMPUTE clear (ggml-org#23480)
fewtarius
pushed a commit
to fewtarius/llama.cpp
that referenced
this pull request
May 30, 2026
* download: add option to skip_download * fix * fix 2 * if file doesn't exist, respect skip_download flag
turbo-tan
pushed a commit
to turbo-tan/llama.cpp-tq3
that referenced
this pull request
Jun 2, 2026
* download: add option to skip_download * fix * fix 2 * if file doesn't exist, respect skip_download flag
Member
|
@ngxson This change caused a regression in the use case where we load a separate MTP draft model file. I use this command: ./bin/llama serve \
-hf ggml-org/Qwen3.6-35B-A3B-GGUF:Q8_0 \
--spec-type draft-mtp \
--spec-draft-hf ggml-org/Qwen3.6-35B-A3B-GGUF \
--spec-draft-model mtp-Qwen3.6-35B-A3B-Q4_0.ggufAfter this change, something causes the
Which later leads to corruption of the data:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Overview
Add a new flag
skip_downloadto thecommon_params_handle_modelsfunction. This is a clean up for the upcoming model download / management API (cc @allozaur ). It is useful to know if a download is required before running a model.Its meaning:
offline = false--> normal case, ETag is validated and if mismatch, redownload the GGUFoffline = falseandskip_download = true--> validation will be performed, but skip download if ETag mismatchoffline = true--> no validation or download will be performed (also impliesskip_download)Note:
need_downloadfield in/v1/models, but it takes too much time to validate the ETag, so in the end I did not add it. Probably will revisit this in another PR.Requirements