Repository navigation
feat(runtime): let Hugging Face's client download vLLM models - #13462
Merged
Merged
Conversation
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
enabled auto-merge (squash)
October 19, 2026 09:14
Contributor
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.
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:
Changed:
vllm::runtime::downloadruns the image'shf 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.snapshot::recordthen 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):
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.mdanddocs/models.mddescribe 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 cipasses 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.6Bat commitc1899de.The AMD64 runtime uses the same code but wasn't run.