Repository navigation
Default local vLLM to the native sampler so engines start without nvcc - #2857
Merged
Merged
Conversation
Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
[Medium impact] This PR appears safe to merge; no actionable issues were found. SummaryLocal vLLM engines now default to the native sampler, avoiding FlashInfer sampler compilation on hosts without
No actionable issues found. Tests were not run during this review. Reviews (2) · Last reviewed commit: "Default local vLLM to the native sampler..." · Reviewed by Greptile |
3 tasks done
Contributor
|
Superseded by #2861, which batches the release fixes into one PR, one commit per original PR. This change is commit-for-commit identical there. |
Contributor
|
Reopened: keeping the release fixes as individual PRs for review. #2861 is closed. |
jperez999
approved these changes
Nov 17, 2026
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.
Description
Local vLLM engines fail to start on hosts without a CUDA toolkit. vLLM's FlashInfer sampler JIT-compiles its kernels with
nvccduring engine warmup, before any request, so engine init fails withNinja build failed ... nvcc: not found. Local Nemotron Parse 3.5 catches the error and keeps plain PDF text on every page. The run exits cleanly with no Parse output. This affects both the DFlash2 default and the MTP fallback.apply_vllm_startup_defaults()now setsVLLM_USE_FLASHINFER_SAMPLER=0withsetdefault, the same way it already handlesVLLM_DEEP_GEMM_WARMUP. A user-set value still wins.apply_vllm_startup_defaults()now uses vLLM's native sampler: Parse 3.5, embed, caption, rerank and agent LLM.VLLM_USE_FLASHINFER_SAMPLERsetting.Validation
Measured on one RTX PRO 6000, jp20 (1,940 pages),
method="nemotron_parse", currentmainplus theuse_tqdm=Falsechange from #2825. Each arm was run once, in a container with nonvccandCUDA_HOMEunset unless noted.mainas-ismain, FlashInfer sampler on, host CUDA toolkit mounted (reference)recall@50.904, unchanged.top_k=1from Parse's sampling params does not avoid the compile, because vLLM's warmup samples with its own settings.Tests:
pytest tests/test_vllm_embed.py tests/test_nemotron_parse35.py tests/test_nemotron_parse35_vllm.py tests/test_caption_model_profiles.py tests/test_nemotron_rerank_vl_v2.pygives 240 passed. Two new tests cover the default and the user override.black --line-length=120passes on the changed files. MkDocs build not run locally.Checklist
Link to Devin session: https://nvidia-cloud.devinenterprise.com/sessions/dfc3ca5a9cf4470aad512b44f05dfe81
Open in Devin Desktop: https://nvidia-cloud.devinenterprise.com/desktop/session/dfc3ca5a9cf4470aad512b44f05dfe81?variant=devin
Requested by: @jioffe502
🟢 Devin Review found nothing to fix · View findings