Skip to content

arg: fix handling --spec-draft-hf and --hf-repo-v - #25043

Merged
ngxson merged 2 commits into
masterfrom
xsn/fix_handling_spec_hf
Jun 26, 2026
Merged

ngxson merged 2 commits into
masterfrom
xsn/fix_handling_spec_hf

Conversation

@ngxson

@ngxson ngxson commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Overview

Fix handling --spec-draft-hf and --hf-repo-v, also fix error when both -hf and --spec-draft-hf points to the same model (duplicated downloading tasks)

Requirements

@ggerganov

Copy link
Copy Markdown
Member

This fails with:

[51197] 0.05.596.631 W llama_init_from_model: context type MTP requested but model doesn't contain MTP layers
[51197] 0.05.596.633 E srv    load_model: failed to create draft context
[51197] 0.05.596.639 I srv    operator(): operator(): cleaning up before exit...
[51197] 0.05.596.973 E srv  llama_server: exiting due to model loading error
[51197] 0.05.712.547 I ggml_metal_free: deallocating

On the same case as #24980 (comment)

@ngxson

ngxson commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

Seems like because we don't have separate --spec-hf-file / --spec-hf-model so that wasn't working, can you try the last commit ?

@ggerganov

Copy link
Copy Markdown
Member

It works now.

@ngxson
ngxson merged commit 024930c into master Jun 26, 2026
24 of 25 checks passed
@ngxson

ngxson commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

That seems to stuck on test_router_download_model, not quite sure if it's related to the refactoring, but I will observe it

adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
* arg: fix handling --spec-draft-hf and --hf-repo-v

* fix missing mparams.hf_file
@ggerganov

Copy link
Copy Markdown
Member

@ngxson

ngxson commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

hmm ok I think it's likely the test script (python) that locks up, better to temporary disabled this test

zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
* arg: fix handling --spec-draft-hf and --hf-repo-v

* fix missing mparams.hf_file
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
* arg: fix handling --spec-draft-hf and --hf-repo-v

* fix missing mparams.hf_file
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