Repository navigation
fix: enforce model identity and native header rebuilds - #26
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Commit validation and pinned resolution vllm-cpp/src/hf.rs, vllm-cpp/README.md, vllm-cpp/examples/README.md |
Resolution checks require full commit SHAs in online metadata and validate explicit SHA revisions. Safetensors retrieval repairs the pinned cache ref after failures. The documentation describes the SHA and cache-ref requirements. |
Hub mock and resolution tests vllm-cpp/src/hf.rs |
The mock Hub serves multiple configured files. Tests cover indexed and unsharded Safetensors, cached revisions, offline resolution, failed downloads, and mutable aliases. |
Native build and test validation
| Layer / File(s) | Summary |
|---|---|
Build inputs and validation gates vllm-cpp-sys/build.rs, vllm-cpp-sys/src/build_config.rs, vllm-cpp-sys/tests/build_config.rs, Justfile, CHANGELOG.md |
Cargo watches the full native include directory. CUTLASS and MLX validation no longer require canonicalized paths to be absolute. Link-mode checks run the layout and symbols tests, the watched-archive rerun builds the crate, and the native C API gate checks the single-test CTest result. |
Sampling parameter validation vllm-cpp/src/params.rs |
The custom logits-processor check rejects an unbounded token limit; zero remains rejected by the earlier conversion. |
Fixed-layout WAV fixture parsing vllm-cpp/tests/qwen3.rs |
The parser checks the fixed 44-byte PCM fixture layout and exact data sizes. Tests use the committed fixture and check mutations, truncation, and trailing bytes. |
Priority:
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant Resolver
participant HuggingFaceHub
participant SnapshotCache
Resolver->>HuggingFaceHub: request metadata and file list
HuggingFaceHub-->>Resolver: return commit SHA and repository files
Resolver->>HuggingFaceHub: download files at the validated commit
HuggingFaceHub-->>Resolver: return file contents
Resolver->>SnapshotCache: verify and store the snapshot
Resolver->>SnapshotCache: restore pinned ref if retrieval fails
Merge Risk: 
Minimal · up to 75635
-
This change tightens pinned Hugging Face model resolution, native header rebuild tracking, and some test and build gates. No actionable merge-blocking issue was found. The WAV fixture compatibility with the new parser could not be confirmed here and is covered by the test itself when run in CI.
Pre-merge checks: 
4
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
33eb40e to
2915113
Compare
2915113 to
a67af4f
Compare
a67af4f to
75635b6
Compare
Fix immutable model resolution and native header rebuilds, and simplify fixture parsing and validation without changing vllm.cpp 0.0.2 support.