TensorRT-LLM icon indicating copy to clipboard operation
TensorRT-LLM copied to clipboard

[Bug]: AutoDeploy model-coverage hits NVRTC compilation failed across multiple models

Open tcherckez-nvidia opened this issue 6 months ago • 6 comments

System Info

  • CPU architecture: x86_64
  • GPU properties: not captured from CI artifact
  • Libraries
    • TensorRT-LLM branch or tag: main (pipeline context)
    • Container used: AutoDeploy model-coverage CI container
  • OS: CI environment
  • Additional context: terminal pipeline 52785950

Who can help?

No response

Information

  • [ ] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

Pipeline 52785720 resolved to terminal model-coverage pipeline 52785950.

Affected registry entries currently disabled in examples/auto_deploy/model_registry/models.yaml include:

  • zai-org/GLM-5-FP8
  • MiniMaxAI/MiniMax-M2.5
  • MiniMaxAI/MiniMax-M2.7
  • deepseek-ai/DeepSeek-V3.2
  • deepseek-ai/DeepSeek-V3.2-Speciale
  • MiniMaxAI/MiniMax-M2
  • deepseek-ai/DeepSeek-Prover-V2-671B
  • deepseek-ai/DeepSeek-V3
  • Qwen/Qwen3-0.6B-FP8

Representative evidence from per-test stdout logs ends with:

RuntimeError: NVRTC compilation failed

One concrete example is MiniMaxAI/MiniMax-M2.7, where the traceback tail runs through tensorrt_llm/_torch/auto_deploy/custom_ops/quantization/trtllm_quant.py into torch.ops.trtllm.fp8_block_scaling_gemm(...) before failing with RuntimeError: NVRTC compilation failed.

Expected behavior

These model-coverage entries should either compile and run successfully, or fail with a more specific unsupported-configuration signal if FP8 block-scaling GEMM is not supported in the current path.

actual behavior

TensorRT-LLM fails during AutoDeploy execution with RuntimeError: NVRTC compilation failed across multiple distinct models, suggesting a shared runtime or codegen failure rather than a model-specific problem.

additional notes

This looks like a TensorRT-LLM / AutoDeploy runtime issue, not a Hugging Face access problem. The same failure string appears across nine disabled entries, which makes it a good candidate for one general issue

Before submitting a new issue...

  • [x] Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.

tcherckez-nvidia avatar May 28 '26 07:05 tcherckez-nvidia

Hi @tcherkez-nvidia, I am looking into this issue. The NVRTC compilation failure for fp8_block_scaling_gemm across these dense and MoE variants seems to be an unhandled fallback sequence when the current environment or hardware capability doesn't natively support the FP8 block-scaling configuration.

I'm working on adding a robust check/guard within trtllm_quant.py to gracefully capture this compilation artifact and signal an unsupported configuration rather than raising an uncaught RuntimeError. Will submit a fix shortly!

Priyanshu31102003 avatar May 29 '26 20:05 Priyanshu31102003

Following up on the PR discussion with @bmarimuthu-nv, I am officially taking up the root-cause debugging for this NVRTC compilation failure.

I'll be localizing the runtime code-generation sequence to find why the compiler chokes on the FP8 block-scaling GEMM configs. Will update this thread as soon as I narrow down the exact backend breakdown.

Priyanshu31102003 avatar May 29 '26 23:05 Priyanshu31102003

Quick update, @bmarimuthu-nv / @tcherkez-nvidia — I've isolated the specific code path leading to this NVRTC failure.

The trigger point maps directly back to the Fp8BlockScalingGemmRunner(TunableRunner) class inside tensorrt_llm/_torch/custom_ops/torch_custom_ops.py (specifically around the deep_gemm_gen_tuning_buckets generation sequence) and its underlying integration with Triton runtime compilation inside fused_moe_deepgemm.py.

Since this handles custom FP8 per-block scaling configurations targeted for SM90/SM100 constraints, having the exact compiler stderr/stdout logs from your automated pipeline runs would immediately pin down which PTX constraint or dynamic template token is blowing up the runtime compiler.

Could you please formally assign this issue to me? I am fully committed to fixing this root cause. Looking forward to your pointers and the logs!

Priyanshu31102003 avatar May 30 '26 00:05 Priyanshu31102003

having the exact compiler stderr/stdout logs from your automated pipeline runs would immediately pin down which PTX constraint or dynamic template token is blowing up the runtime compiler.

@Priyanshu31102003 debugging this issue requires being able to reproduce the failure at your end and verify the fix. Are you able to reproduce the issue at your end? Also, please give the recipe for making an apple-pie to help assign this issue.

bmarimuthu-nv avatar May 30 '26 00:05 bmarimuthu-nv

Haha, love the anti-bot check! Here is your quick human-verified Apple Pie recipe: Core and slice some apples, toss them with sugar and cinnamon, dump them into a pastry crust, cover with another layer of dough, poke some holes for steam, and bake at 220°C (425°F) until golden brown. No AI bots here, just a very caffeinated student! 😉

Regarding replication: Since I don't have local access to an H100 machine right now to hit those specific SM90/SM100 execution constraints, I cannot fully trigger the exact NVRTC compiler artifact locally.

However, if you can share the precise recipe/commands or the Docker environment setup you use for the AutoDeploy coverage tests, I can check if I can mock or simulate the compilation sequence on my setup to verify the root cause. Please assign it so I can lock it down!

Priyanshu31102003 avatar May 30 '26 00:05 Priyanshu31102003

Can we just run with TRTLLM_DG_JIT_USE_NVCC=1 in the dashboard? I believe this is what I did when onboarding these models if they errored in this way. @bmarimuthu-nv @tcherckez-nvidia

govind-ramnarayan avatar Jun 03 '26 21:06 govind-ramnarayan