Skip to content

common: fix sub-model HF download when spec-draft-hf is specified - #25039

Closed
ggerganov wants to merge 1 commit into
masterfrom
gg/fix-sub-model-hf-download
Closed

common: fix sub-model HF download when spec-draft-hf is specified#25039
ggerganov wants to merge 1 commit into
masterfrom
gg/fix-sub-model-hf-download

Conversation

@ggerganov

@ggerganov ggerganov commented Jun 26, 2026

Copy link
Copy Markdown
Member

Overview

cont #24980
fix #24980 (comment)

Fix sub-model HF downloads (draft, mmproj, vocoder) when they have their own hf_repo specified. The common_models_handler refactor only built an HF plan for the main model, ignoring --spec-draft-hf and similar options.

Additional information

Before this fix, configs like:

spec-draft-hf    = ggml-org/Qwen3.6-27B-GGUF
spec-draft-model = mtp-Qwen3.6-27B-Q4_0.gguf

Would fail because the draft model's HF repo was never downloaded — the path remained as a bare filename instead of the full cache path.

Requirements

The new common_models_handler only built an HF plan for the main model,
ignoring sub-model HF repos like --spec-draft-hf.

Ref: #24980 (comment)

Assisted-by: pi:llama.cpp/Qwen3.6-27B
@ggerganov
ggerganov requested a review from ngxson June 26, 2026 10:13
@ggerganov

Copy link
Copy Markdown
Member Author

@ngxson I had a bit of trouble updating the logic so I let the Qwen come up with something. This seems to work, but if there is a better way to do it - feel free to ignore this PR.

In general, I feel like we should somehow rework the model downloads further - there are many different use cases and it is getting difficult to keep track of all the possible configs. Btw, we will also want to add eagle3 and dflash sidecars too, similar to mtp.

@ngxson

ngxson commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Thanks, I completely forgot about this case (as well as --hf-repo-v for vocoder). I'll see how to generalize the logic

@ngxson

ngxson commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Can you try #25043 ?

@ggerganov

Copy link
Copy Markdown
Member Author

Superseded by #25043

@ggerganov ggerganov closed this Jun 26, 2026
@ggerganov
ggerganov deleted the gg/fix-sub-model-hf-download branch June 26, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants