Skip to content

Default local vLLM to the native sampler so engines start without nvcc - #2857

Merged
jperez999 merged 1 commit into
mainfrom
devin/1794785986-parse-no-nvcc
Nov 17, 2026
Merged

jperez999 merged 1 commit into
mainfrom
devin/1794785986-parse-no-nvcc

Conversation

@jioffe502

@jioffe502 jioffe502 commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Local vLLM engines fail to start on hosts without a CUDA toolkit. vLLM's FlashInfer sampler JIT-compiles its kernels with nvcc during engine warmup, before any request, so engine init fails with Ninja 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 sets VLLM_USE_FLASHINFER_SAMPLER=0 with setdefault, the same way it already handles VLLM_DEEP_GEMM_WARMUP. A user-set value still wins.

  • Scope: every local vLLM engine that calls apply_vllm_startup_defaults() now uses vLLM's native sampler: Parse 3.5, embed, caption, rerank and agent LLM.
  • Unchanged: Parse output (greedy decoding) and an explicit VLLM_USE_FLASHINFER_SAMPLER setting.

Validation

Measured on one RTX PRO 6000, jp20 (1,940 pages), method="nemotron_parse", current main plus the use_tqdm=False change from #2825. Each arm was run once, in a container with no nvcc and CUDA_HOME unset unless noted.

Arm Pages with Parse output Engine init (s) Parse pages/s
main as-is 0 (all Parse errors) fails n/a
main, FlashInfer sampler on, host CUDA toolkit mounted (reference) 1,940 739 (first-use JIT) 5.57
This PR, no env set 1,940 72.5 5.56
  • Per-page Parse text from this PR matches the FlashInfer reference byte for byte on all 1,940 pages, and FlashInfer gives no measured speedup.
  • vLLM's engine-core log confirms the default reaches the engine process.
  • Embed still works: jp20 recall@5 0.904, unchanged.
  • Dropping top_k=1 from 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.py gives 240 passed. Two new tests cover the default and the user override. black --line-length=120 passes on the changed files. MkDocs build not run locally.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

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

Devin Review

Signed-off-by: Jacob Ioffe <jioffe@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Summary

Local vLLM engines now default to the native sampler, avoiding FlashInfer sampler compilation on hosts without nvcc.

  • Local vLLM engines use the native sampler by default.

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

@devin-ai-integration

Copy link
Copy Markdown
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.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Reopened: keeping the release fixes as individual PRs for review. #2861 is closed.

@jperez999
jperez999 merged commit 2bc93f5 into main Nov 17, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants