Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ kv_cache_config:
free_gpu_memory_fraction: 0.8
transforms:
compile_model:
piecewise_enabled: true
# Gemma4 E2B uses VSWA cache pools; piecewise graph warmup currently
# creates a single-pool cache location and fails during capture.
piecewise_enabled: false
Comment thread
bmarimuthu-nv marked this conversation as resolved.
mlir_elementwise_fusion:
# MLIR elementwise kernels currently corrupt piecewise CUDA graph replay for Gemma4 E2B.
enabled: false
Expand Down
21 changes: 9 additions & 12 deletions examples/auto_deploy/model_registry/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,18 +534,16 @@ models:
# config_id: multimodal
# yaml_extra: ['dashboard_default.yaml', 'world_size_2.yaml', 'multimodal.yaml']
# --- Gemma 4 (2026) - MoE with K=V attention ---
# Error querying confidential compute state: Function Not Found
# - name: google/gemma-4-E2B-it
# config_id: gemma4_e2b
# yaml_extra: ['dashboard_default.yaml', 'world_size_1.yaml', 'gemma4_e2b.yaml']
- name: google/gemma-4-E2B-it
config_id: gemma4_e2b
yaml_extra: ['dashboard_default.yaml', 'world_size_1.yaml', 'gemma4_e2b.yaml']
# AttributeError: 'GraphModule' object has no attribute 'get_per_layer_inputs'
# - name: google/gemma-4-26B-A4B
# config_id: gemma4_moe_base
# yaml_extra: ['dashboard_default.yaml', 'world_size_1.yaml', 'gemma4_moe_base.yaml']
# AttributeError: 'GraphModule' object has no attribute 'get_per_layer_inputs'
# - name: google/gemma-4-26B-A4B-it
# config_id: gemma4_moe
# yaml_extra: ['dashboard_default.yaml', 'world_size_1.yaml', 'gemma4_moe.yaml']
- name: google/gemma-4-26B-A4B-it
config_id: gemma4_moe
yaml_extra: ['dashboard_default.yaml', 'world_size_1.yaml', 'gemma4_moe.yaml']
# --- Gemma 4 (2026) - Dense 31B ---
# AttributeError: 'GraphModule' object has no attribute 'get_per_layer_inputs'
# - name: google/gemma-4-31B-it
Expand Down Expand Up @@ -585,10 +583,9 @@ models:
# config_id: multimodal
# yaml_extra: ['dashboard_default.yaml', 'world_size_4.yaml', 'multimodal.yaml']
# --- MiniMax M2 (2025) ---
# RuntimeError: NVRTC compilation failed. See https://github.com/NVIDIA/TensorRT-LLM/issues/14676
# - name: MiniMaxAI/MiniMax-M2
# config_id: minimax_m2
# yaml_extra: ['dashboard_default.yaml', 'world_size_8.yaml', 'minimax_m2.yaml']
- name: MiniMaxAI/MiniMax-M2
config_id: minimax_m2
yaml_extra: ['dashboard_default.yaml', 'world_size_8.yaml', 'minimax_m2.yaml']
# --- Tencent Hunyuan small (2025) ---
- name: tencent/Hunyuan-1.8B-Instruct
config_id: default_ws_1
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/defs/accuracy/references/gsm8k.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ Qwen/Qwen3.5-9B:
accuracy: 92.82
Qwen/Qwen3.5-35B-A3B:
- accuracy: 89.196
- dtype: bfloat16
accuracy: 89.196
- extra_acc_spec: h20
accuracy: 83.9
- spec_dec_algo: MTP
Expand Down
54 changes: 9 additions & 45 deletions tests/integration/defs/accuracy/test_llm_api_autodeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,50 +891,17 @@ class TestGLM4Flash(LlmapiAccuracyTestHarness):
MODEL_NAME = "GLM-4.7-Flash"
MODEL_HF_ID_BF16 = "zai-org/GLM-4.7-Flash"
MODEL_HF_ID_NVFP4 = "DeepInfra/GLM-4.7-Flash-NVFP4"
CONFIG_YAML = "glm-4.7-flash.yaml"

# Set minimum possible seq len + small buffer, for test speed & memory usage
MAX_SEQ_LEN = max(MMLU.MAX_INPUT_LEN + MMLU.MAX_OUTPUT_LEN,
GSM8K.MAX_INPUT_LEN + GSM8K.MAX_OUTPUT_LEN)
MAX_NUM_TOKENS = MAX_SEQ_LEN

def get_default_kwargs(self,
enable_chunked_prefill=False,
attn_backend="flashinfer"):
yaml_paths, _ = _get_registry_yaml_extra("zai-org/GLM-4.7-Flash")
config = {
"yaml_extra": yaml_paths,
"skip_tokenizer_init": False,
"trust_remote_code": True,
"attn_backend": attn_backend,
"compile_backend": "torch-cudagraph",
"max_batch_size": 128,
"max_seq_len": self.MAX_SEQ_LEN,
"max_num_tokens": self.MAX_NUM_TOKENS,
"skip_loading_weights": False,
"disable_overlap_scheduler": False,
"cuda_graph_config": {
"batch_sizes": [1, 2, 4, 8, 16, 32, 64, 128]
},
"kv_cache_config": {
"enable_block_reuse": False,
"free_gpu_memory_fraction": 0.8
},
"model_kwargs": {
"torch_dtype": "bfloat16"
}
}
if enable_chunked_prefill:
config["enable_chunked_prefill"] = True
config[
"max_num_tokens"] = 512 # NOTE: must be > max(tokens_per_block, max_batch_size)
config.setdefault("transforms", {})
config["transforms"]["compile_model"] = {
"piecewise_enabled": True,
}
else:
# Keep the original non-chunked variant behavior even when
# registry defaults enable chunked prefill.
config["enable_chunked_prefill"] = False
def get_default_kwargs(self):
config = _load_ad_config(self.CONFIG_YAML)
config["max_seq_len"] = self.MAX_SEQ_LEN
config["max_num_tokens"] = self.MAX_NUM_TOKENS
return config

def get_default_sampling_params(self):
Expand All @@ -947,10 +914,8 @@ def get_default_sampling_params(self):

@skip_pre_hopper
@pytest.mark.skip_less_device_memory(80000)
@pytest.mark.parametrize("enable_chunked_prefill", [True, False])
@pytest.mark.parametrize("attn_backend", ["flashinfer", "trtllm"])
def test_auto_dtype(self, enable_chunked_prefill, attn_backend):
kwargs = self.get_default_kwargs(enable_chunked_prefill, attn_backend)
def test_auto_dtype(self):
kwargs = self.get_default_kwargs()
sampling_params = self.get_default_sampling_params()
model_path = hf_id_to_local_model_dir(self.MODEL_HF_ID_BF16)
with AutoDeployLLM(model=model_path, tokenizer=model_path,
Expand All @@ -962,9 +927,8 @@ def test_auto_dtype(self, enable_chunked_prefill, attn_backend):

@skip_pre_blackwell
@pytest.mark.skip_less_device_memory(32000)
@pytest.mark.parametrize("enable_chunked_prefill", [True, False])
def test_nvfp4(self, enable_chunked_prefill):
kwargs = self.get_default_kwargs(enable_chunked_prefill)
def test_nvfp4(self):
kwargs = self.get_default_kwargs()
sampling_params = self.get_default_sampling_params()
model_path = hf_id_to_local_model_dir(self.MODEL_HF_ID_NVFP4)
with AutoDeployLLM(model=model_path, tokenizer=model_path,
Expand Down
11 changes: 4 additions & 7 deletions tests/integration/test_lists/waives.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ accuracy/test_dwdp_disaggregated_serving.py::TestDwdpDeepSeekV3Lite::test_dwdp_a
accuracy/test_llm_api.py::TestLlama3_1_8BInstruct::test_gather_generation_logits_cuda_graph SKIP (https://nvbugs/5772995)
accuracy/test_llm_api.py::TestLlama3_1_8BInstruct::test_guided_decoding_4gpus[xgrammar] SKIP (https://nvbugs/5346443)
accuracy/test_llm_api.py::TestMistralNemo12B::test_fp8 SKIP (https://nvbugs/5413197)
accuracy/test_llm_api_autodeploy.py::TestGemma4MoE::test_bf16 SKIP (https://nvbugs/6158397)
accuracy/test_llm_api_autodeploy.py::TestGemmaE2B::test_gemma4_e2b_it SKIP (https://nvbugs/6194934)
accuracy/test_llm_api_autodeploy.py::TestMiniMaxM2::test_finegrained_fp8 SKIP (https://nvbugs/6158397)
accuracy/test_llm_api_autodeploy.py::TestModelRegistryAccuracy::test_autodeploy_from_registry[deepseek-ai_DeepSeek-R1-0528-True] SKIP (https://nvbugs/6278380)
accuracy/test_llm_api_autodeploy.py::TestModelRegistryAccuracy::test_autodeploy_from_registry[nvidia_Llama-3.1-8B-Instruct-NVFP4-True] SKIP (https://nvbugs/6245279)
accuracy/test_llm_api_autodeploy.py::TestQwen3_5_397B_MoE::test_bf16_small[4] SKIP (https://nvbugs/6158397)
accuracy/test_llm_api_autodeploy.py::TestNemotronUltraV3::test_accuracy[nvfp4-8] SKIP (https://nvbugs/6248757)
accuracy/test_llm_api_autodeploy.py::TestNemotronV2::test_fp8[True] SKIP (https://nvbugs/6261164)
accuracy/test_llm_api_autodeploy.py::TestQwen3_5_397B_MoE::test_nvfp4[8] SKIP (https://nvbugs/6278380)
accuracy/test_llm_api_pytorch.py::TestDeepSeekR1::test_fp8_blockscale[throughput_mtp_trtllm] SKIP (https://nvbugs/6191524)
accuracy/test_llm_api_pytorch.py::TestDeepSeekR1::test_nvfp4_multi_gpus[throughput] SKIP (https://nvbugs/6084775)
accuracy/test_llm_api_pytorch.py::TestDeepSeekR1::test_nvfp4_multi_gpus[throughput_mtp] SKIP (https://nvbugs/6029882)
Expand Down Expand Up @@ -403,9 +403,6 @@ unittest/_torch/thop/serial/test_moe.py::TestMoeFp4::test_no_autotune[use_score_
unittest/_torch/thop/serial/test_moe.py::TestMoeFp4::test_no_autotune[use_score_as_input-RoutingRenormalize_qwen_next-swiglu-1024-1024-150] SKIP (https://nvbugs/5908070)
unittest/_torch/thop/serial/test_moe.py::TestMoeFp4::test_no_autotune[use_score_as_input-RoutingRenormalize_topk_4-swiglu-1024-1024-150] SKIP (https://nvbugs/5908070)
unittest/_torch/visual_gen/test_flux_pipeline.py::TestFluxCombinedOptimizations::test_all_optimizations_combined SKIP (https://nvbugs/6199854)
unittest/auto_deploy/singlegpu/models/test_qwen3_5_moe.py::test_vision_attention_matches_reference SKIP (https://nvbugs/6189450)
unittest/auto_deploy/singlegpu/models/test_qwen3_5_moe.py::test_vision_block_matches_reference SKIP (https://nvbugs/6189450)
unittest/auto_deploy/singlegpu/models/test_qwen3_5_moe.py::test_vlm_wrapper_delta_is_request_scoped_no_cross_call_leakage SKIP (https://nvbugs/6189450)
unittest/bindings/test_transfer_agent_bindings.py::TestNixlFunctionalTransfer::test_nixl_wait_in_progress_on_zero_timeout SKIP (https://nvbugs/6260897)
unittest/executor/test_rpc.py::TestRpcCorrectness::test_incremental_task_async SKIP (https://nvbugs/5741476)
unittest/executor/test_rpc_proxy.py SKIP (https://nvbugs/5605741)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,7 @@ def test_vision_attention_matches_reference():
our_output,
ref_output,
rtol=1e-4,
atol=1e-4,
msg="VisionAttention forward should match HF reference eager attention",
atol=5e-4,
)


Expand Down Expand Up @@ -937,8 +936,7 @@ def test_vision_block_matches_reference():
our_output,
ref_output,
rtol=1e-4,
atol=1e-4,
msg="VisionBlock forward should match HF reference",
atol=5e-4,
)


Expand Down Expand Up @@ -1849,8 +1847,7 @@ def test_vlm_wrapper_delta_is_request_scoped_no_cross_call_leakage():
output_with_delta.logits,
ref_logits_with_delta,
rtol=1e-4,
atol=1e-4,
msg="Call with mrope_position_deltas should apply the request delta",
atol=5e-4,
)
torch.testing.assert_close(
output_without_delta.logits,
Expand Down
Loading