Skip to content

Conversation

@moraxu
Copy link
Collaborator

@moraxu moraxu commented May 16, 2025

Description

Add LLM API accuracy tests for Llama-4-Maverick-17B-128E-Instruct - FP8 variant.

Test Coverage

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]

Launch build/test pipelines. All previously running jobs will be killed.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests. Will also run L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-[Post-Merge]-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

Summary by CodeRabbit

  • New Features

    • Added quantization configuration for the Llama-4 Maverick 17B-128E Instruct model with FP8 support.
  • Tests

    • Introduced new tests for FP8 pre-quantized models, including scenarios with different parallelism and CUDA graph settings.
    • Expanded test lists to cover the new FP8 and auto dtype tests for the Llama-4 Maverick Instruct model variant.

@moraxu moraxu force-pushed the add-cli-acc-tests-Llama-4-Maverick-17B-128E-Instruct branch from 620a81c to f6bac27 Compare May 18, 2025 05:48
@moraxu moraxu requested review from Tracin, chang-l, syuoni and tijyojwad May 18, 2025 20:12
@moraxu moraxu marked this pull request as ready for review May 21, 2025 06:34
@moraxu
Copy link
Collaborator Author

moraxu commented May 21, 2025

/bot run

@tensorrt-cicd
Copy link
Collaborator

PR_Github #6042 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #6042 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #4415 completed with status: 'FAILURE'

@moraxu
Copy link
Collaborator Author

moraxu commented May 22, 2025

/bot run

@moraxu
Copy link
Collaborator Author

moraxu commented May 22, 2025

/bot kill

@moraxu
Copy link
Collaborator Author

moraxu commented May 22, 2025

Tracked in https://nvbugspro.nvidia.com/bug/5270247

@moraxu moraxu changed the title [TRTLLM-4932] Add CLI accuracy tests for Llama-4-Maverick-17B-128E-Instruct and LLM API FP8 variant [TRTLLM-4932] Add LLM API accuracy tests for Llama-4-Maverick-17B-128E-Instruct - FP8 variant May 22, 2025
@tensorrt-cicd
Copy link
Collaborator

PR_Github #6104 [ run ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #6106 [ kill ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #6104 [ run ] completed with state ABORTED

@tensorrt-cicd
Copy link
Collaborator

PR_Github #6106 [ kill ] completed with state SUCCESS
Successfully killed previous jobs for commit 7db0444

@moraxu moraxu force-pushed the add-cli-acc-tests-Llama-4-Maverick-17B-128E-Instruct branch from 7db0444 to 8c67f1e Compare July 25, 2025 00:16
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 25, 2025

📝 Walkthrough

Walkthrough

A new quantization configuration using FP8 was added for the Llama-4-Maverick-17B-128E-Instruct model. Corresponding integration tests targeting this configuration were introduced, including a new test method and updates to test lists to ensure coverage of FP8 pre-quantized and auto dtype scenarios for this model variant.

Changes

File(s) Change Summary
tests/integration/defs/accuracy/references/mmlu.yaml Added FP8 quantization config entry for meta-llama/Llama-4-Maverick-17B-128E-Instruct.
tests/integration/defs/accuracy/test_llm_api_pytorch.py Added test_fp8_prequantized method to TestLlama4MaverickInstruct for FP8 pre-quantized testing.
tests/integration/test_lists/qa/llm_sanity_test.txt Added new test list entries for FP8 pre-quantized and auto dtype tests for Llama4 Maverick Instruct.

Sequence Diagram(s)

sequenceDiagram
    participant TestRunner
    participant LLM
    participant Tasks

    TestRunner->>LLM: Load pre-quantized FP8 model (Llama-4-Maverick-17B-128E-Instruct)
    TestRunner->>LLM: Configure parallelism (tp_size, pp_size, ep_size), cuda_graph
    TestRunner->>Tasks: Run MMLU task on LLM
    Tasks-->>TestRunner: Return MMLU results
    TestRunner->>Tasks: Run GSM8K task on LLM
    Tasks-->>TestRunner: Return GSM8K results
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • yilin-void
  • LarryXFly

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai bot requested review from LarryXFly and yilin-void July 25, 2025 00:16
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 375f74e and 8c67f1e.

📒 Files selected for processing (3)
  • tests/integration/defs/accuracy/references/mmlu.yaml (1 hunks)
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py (1 hunks)
  • tests/integration/test_lists/qa/llm_sanity_test.txt (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
tests/integration/defs/accuracy/test_llm_api_pytorch.py (2)

Learnt from: amitz-nv
PR: #5616
File: tensorrt_llm/executor/worker.py:375-384
Timestamp: 2025-07-17T09:01:27.402Z
Learning: In tensorrt_llm/executor/worker.py, the LoRA adapter cache optimization logic that checks is_adapter_in_cpu_cache() and conditionally passes None for weights/config has a known race condition issue that cannot be solved with simple error handling or verification checks. This is a known limitation that requires a more comprehensive solution.

Learnt from: yechank-nvidia
PR: #6254
File: tensorrt_llm/_torch/pyexecutor/model_engine.py:1201-1204
Timestamp: 2025-07-22T09:22:14.726Z
Learning: In TensorRT-LLM's multimodal processing pipeline, shared tensor recovery using from_shared_tensor() is only needed during the context phase. Generation requests reuse the already-recovered tensor data and only need to call strip_for_generation() to remove unnecessary multimodal data while preserving the recovered tensors. This avoids redundant tensor recovery operations during generation.

🔇 Additional comments (2)
tests/integration/defs/accuracy/references/mmlu.yaml (1)

69-71: Verify placeholder accuracy update plan

Please confirm that the new FP8 entry uses a placeholder accuracy intentionally and that there’s a process or reminder in place to replace accuracy: 0.0 with real measured values once tests complete.

Locations to review:

  • tests/integration/defs/accuracy/references/mmlu.yaml (lines 69–71):
      - quant_algo: FP8
        kv_cache_quant_algo: FP8
        accuracy: 0.0
  • For reference, the existing microsoft/Phi-4-mini-instruct-tp2 entry also uses accuracy: 0.0 and is tracked with:
    # TODO: update once https://nvbugs/5393849 is fixed.
    microsoft/Phi-4-mini-instruct-tp2:
      - accuracy: 0.0

Can you either add a similar TODO comment above this new block or confirm where the placeholder will be tracked for future updates?

tests/integration/test_lists/qa/llm_sanity_test.txt (1)

38-40: LGTM! Well-structured test additions.

The new test entries follow the established patterns and naming conventions. Good practice to include both the new test_fp8_prequantized test and the existing test_auto_dtype test for comprehensive coverage across both PyTorch API and CLI flow execution paths.

@moraxu
Copy link
Collaborator Author

moraxu commented Sep 7, 2025

The test was already added in #6392 and #6989

@moraxu moraxu closed this Sep 7, 2025
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.

4 participants