Skip to content

DeepSeek-V4-Flash NVFP4 baseline aborts in AttentionOp on RTX PRO 6000 Blackwell: Deepseek should be supported by fmha #18039

Closed

Description

@rohash123

Summary

nvidia/DeepSeek-V4-Flash-NVFP4 loads successfully with trtllm-serve on a 4x RTX PRO 6000 Blackwell AWS g7e.24xlarge, but the server aborts during attention warmup before the OpenAI API becomes usable.

This is with MTP/speculative decoding disabled. MTP was also tested separately and hits the known-looking DeepSeek-V4 cache-manager failure tracked in #17024, but this issue is for the non-MTP baseline crash.

Environment

  • TensorRT-LLM image: nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc24
  • TensorRT-LLM version in logs: 1.3.0rc24
  • Container base banner: NVIDIA Release 26.05, PyTorch 2.12.0a0+5aff392
  • Host: AWS EC2 g7e.24xlarge
  • GPUs: 4x NVIDIA RTX PRO 6000 Blackwell Server Edition
  • Driver: 595.91.07
  • CUDA: 13.2
  • Model: nvidia/DeepSeek-V4-Flash-NVFP4
  • Model config: model_type=deepseek_v4, architectures=['DeepseekV4ForCausalLM'], num_hidden_layers=43, num_nextn_predict_layers=1, max_position_embeddings=1048576
  • Quantization: NVFP4 routed MoE experts (moe_quant_algo=NVFP4), mixed precision, torch_dtype=bfloat16

Launch Command

trtllm-serve serve nvidia/DeepSeek-V4-Flash-NVFP4 \
  --host 0.0.0.0 \
  --port 8000 \
  --backend pytorch \
  --tp_size 4 \
  --ep_size 4 \
  --pp_size 1 \
  --max_batch_size 4 \
  --max_seq_len 32768 \
  --kv_cache_free_gpu_memory_fraction 0.85

I also reproduced it without --max_seq_len 32768; in that case TRT inferred max_seq_len=1048576, but the same fatal assertion occurred. Capping context only reduced the warmup shape; it did not fix the abort.

What Works

  • Image starts.
  • Model downloads completely (46/46 shards, about 157 GB).
  • TRT-LLM detects DeepSeek-V4 and NVFP4:
    • Detected DeepSeek-V4 routed MoE ... using NVFP4 for routed experts
  • Model weights load on all 4 GPUs.
  • Baseline uses TorchSampler:
    • [TRT-LLM] [I] [_torch][RANK 0] Using Sampler: TorchSampler

Failure

After model init and during warmup, all ranks abort in AttentionOp::initialize():

terminate called after throwing an instance of 'tensorrt_llm::_v1::common::TllmException'
  what():  [TensorRT-LLM][ERROR] Assertion failed: Deepseek should be supported by fmha in generation part. (../tensorrt_llm/common/attentionOp.cpp:3187)

1  tensorrt_llm::_v1::common::throwRuntimeError(char const*, int, char const*)
2  tensorrt_llm::_v1::common::op::AttentionOp::initialize()
3  /usr/local/lib/python3.12/dist-packages/tensorrt_llm/libs/libth_common.so
4  tensorrt_llm::_v1::torch_ext::attention(...)

Immediately before the abort, the attention metadata dump includes a combination that seems suspicious for DeepSeek-V4 generation:

FlashAttention = 1
useSparseMLA = false
useTllmGenSparseAttention = false
fusesDsv4InvRopeFp8Quant = false

The OpenAI server never becomes usable:

curl http://localhost:8000/v1/models
# curl: (56) Recv failure: Connection reset by peer

GPU memory drops back down after the worker aborts.

MTP Note

MTP/speculative decoding was also tested with:

speculative_config:
  decoding_type: MTP
  max_draft_len: 1

and with:

speculative_config:
  decoding_type: MTP
  max_draft_len: 1
  use_mtp_vanilla: true

Both hit:

AttributeError: 'DeepseekV4CacheManager' object has no attribute '_num_tables'

That appears to be the same issue as #17024. This issue is separate because the non-MTP baseline also cannot serve due to the FMHA assertion above.

Ask

Is nvidia/DeepSeek-V4-Flash-NVFP4 expected to work in TensorRT-LLM PyTorch backend on 4x RTX PRO 6000 Blackwell (SM120) with tp=4, ep=4?

If yes, what config is required to force the correct DeepSeek-V4 generation FMHA / sparse MLA attention path? If no, is there a recommended TensorRT-LLM image, branch, or backend for DeepSeek-V4-Flash NVFP4 on this GPU family?

Activity

  1. added
    Pytorch
    on Aug 20, 2026
  2. rohash123 commented on Aug 20, 2026

    @rohash123
    Author

    Closing this out; I’m going to continue debugging/patching locally instead of using this as an upstream support request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pytorch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions