Skip to content

feat(runtime): let Hugging Face's client download vLLM models - #13462

Merged
cv merged 1 commit into
v1from
feat/vllm-downloads-by-revision
Oct 19, 2026
Merged

cv merged 1 commit into
v1from
feat/vllm-downloads-by-revision

Conversation

@cv

@cv cv commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Closes #13453.

Failure

Managed vLLM downloaded Hugging Face snapshots with NemoClaw's own resumable, checksumming download client in nemoclaw-runtime. It was a second model downloader to maintain, after the Ollama one #13457 removed. The design doc kept it because the Hugging Face client checks a file's size only after writing it.

Decision

Hugging Face's own client downloads, and NemoClaw keeps only what it owns.

  • Kept:

    • Resolving the snapshot's manifest from Hugging Face's API, which is metadata only. It still pins the commit revision, keeps only native safetensors, tokenizer and configuration files, never repository code, and drives memory planning and recipe pins.
    • Weight validation, recipe preparation, and the offline vLLM launch.
  • Changed:

    • A new vllm::runtime::download runs the image's hf download <repo> <manifest files> --revision <commit> --local-dir <dir>. It keeps the 8-hour limit and cancellation, and disables telemetry. Hugging Face's client resumes partial files and checks large files' SHA-256 as it downloads.
    • A new snapshot::record then checks each file's size and writes NemoClaw's manifest with the files marked verified. Later starts still compare modification times without downloading again.
  • Removed (−783 +70 lines in the runtime crate):

    • NemoClaw's download, resume and per-file verification code;
    • the registry functions only the removed Ollama downloader used;
    • the nine tests of that machinery, and the Hugging Face client evaluation (runtimes/vllm/test_download.py) with its live-tests section.

    Three remaining tests now exercise record: unfinished files, symlinks, and unsupported metadata.

  • Docs: docs/design/runtime.md and docs/models.md describe the new flow.

The trade-off the design doc named still applies: Hugging Face's client can write past a file's expected size before rejecting it. NemoClaw's checks only bounded that for the files Hugging Face's API listed. The principle is to leave downloading to its owner.

Validation

  • New tests: record's tests failed against a stub before the change, and pass after.

  • cargo ci passes locally: 1,598 unit tests and 150 lifecycle tests.

  • Live, ARM64, on a DGX Spark: a rebuilt vLLM v0.32.0 runtime served Qwen/Qwen3-0.6B at commit c1899de.

    • The runtime reported "Hugging Face is downloading the selected model snapshot".
    • NemoClaw's manifest recorded all eight files verified.
    • A Deep Agents agent answered through the model.
    • After a container restart, the runtime reported "verifying selected model snapshot" and didn't download again.

    The AMD64 runtime uses the same code but wasn't run.

The vLLM runtime keeps resolving the pinned snapshot's manifest, then runs the
image's hf download for exactly those files at the commit revision and records
NemoClaw's manifest from the result. NemoClaw's own download, resume, and
registry code is removed, with the Hugging Face client evaluation that
justified it.
@cv
cv enabled auto-merge (squash) October 19, 2026 09:14
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit dc837d4 into v1 Oct 19, 2026
@cv
cv deleted the feat/vllm-downloads-by-revision branch October 19, 2026 09:25
@wscurran wscurran added area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants