Repository navigation
server: Dedup the draft HF model via dedup-cache-models - #27934
Conversation
|
Hi @DreamingWater, thanks for your contribution! Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:
Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below. |
a2f9a22 to
94c8c72
Compare
ServeurpersoCom
left a comment
There was a problem hiding this comment.
LGTM. The draft pair maps to what the runtime actually does, since -md fills hf_file for the draft when --spec-draft-hf is set, and the resolution stays fail-open, so nothing changes for presets without a draft repo. Sidecar drafters resolve to nothing here, which is right since they never show up in the listing anyway.
|
Closing and reopening to retrigger the CI, the pending runs reference a workflow file that was removed from master and the approval button fails on them, no action needed on your side. |
|
The remaining CPU CI failure appears unrelated to this PR: |
* server: Dedup the draft HF model via dedup-cache-models Fixes ggml-org#27846 * server: avoid capturing structured binding in lambda (cherry picked from commit bcbc936)
Fixes #27846
Overview
dedup-cache-modelsonly handled the preset main HF model path before, so draft HF cache entries still showed up under/models. We now parse paths for both main and draft HF models viaLLAMA_ARG_SPEC_DRAFT_HF_REPOandLLAMA_ARG_SPEC_DRAFT_MODEL, and add them to deduplication. Model loading,hidden_modelsand speculative decoding stay untouched; only dedup logic and tests are updated.Requirements