Skip to content

[CI] Add Mistral Large 3 Eagle nightly performance test#14525

Merged
Kangyan-Zhou merged 7 commits intomainfrom
add-eagle-nightly-ci-test
Dec 12, 2025
Merged

[CI] Add Mistral Large 3 Eagle nightly performance test#14525
Kangyan-Zhou merged 7 commits intomainfrom
add-eagle-nightly-ci-test

Conversation

@alisonshao
Copy link
Collaborator

@alisonshao alisonshao commented Dec 6, 2025

Summary

  • Add nightly CI test for mistralai/Mistral-Large-3-675B-Instruct-2512 with Eagle speculative decoding
  • Eagle test is integrated into the existing test_mistral_large3_perf.py file as a separate test class
  • Test includes benchmark and MGSM accuracy evaluation
  • Runs on 8-gpu-b200 in the nightly test workflow

Eagle-specific configuration

  • --speculative-algorithm EAGLE
  • --speculative-draft-model-path mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle
  • --speculative-num-steps 3
  • --speculative-eagle-topk 1
  • --speculative-num-draft-tokens 4
  • --kv-cache-dtype auto (to avoid low AR with FP8 kv cache)
  • --attention-backend trtllm_mla
  • --tp 8

Related PRs

Add nightly CI test for mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle model.

The test includes:
- Benchmark test for batch sizes [1, 1, 8, 16, 64]
- MGSM accuracy evaluation (threshold 0.90)

Eagle-specific configuration:
- --speculative-moe-runner-backend flashinfer_trtllm
- --kv-cache-dtype auto (to avoid low AR with FP8 kv cache)
- --attention-backend trtllm_mla
- --tp 8
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @alisonshao, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new continuous integration test for the Mistral Large 3 Eagle model. The test is designed to run nightly on an 8-GPU B200 system, ensuring ongoing performance benchmarking and accuracy evaluation (specifically MGSM) for this model with its optimized configurations. The primary goal is to maintain the stability and performance of the model within the system by catching regressions early.

Highlights

  • New Nightly CI Test: A new nightly CI test has been added specifically for the mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle model.
  • Comprehensive Evaluation: The newly introduced test includes both performance benchmarking and MGSM accuracy evaluation to ensure the model's stability and correctness.
  • Optimized Configuration: The test is configured to run on an 8-GPU B200 setup, utilizing specific optimizations such as TP=8, trtllm_mla attention backend, flashinfer_trtllm speculative MoE runner backend, and auto KV cache dtype for the Eagle model.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/nightly-test-nvidia.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new nightly performance and accuracy test for the mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle model. The changes look good overall, introducing a new test file with benchmark and MGSM accuracy evaluation. I have a couple of suggestions to improve the robustness of environment variable handling and to clean up the test configuration.


cls.model = MISTRAL_LARGE3_EAGLE_MODEL_PATH
cls.base_url = DEFAULT_URL_FOR_TEST
cls.batch_sizes = [1, 1, 8, 16, 64]
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The batch_sizes list contains a duplicate value 1. This will cause the benchmark for a batch size of 1 to run twice, which seems unintentional and will consume extra CI time. If this is not intended for a specific reason like warm-up, please consider removing the duplicate.

Suggested change
cls.batch_sizes = [1, 1, 8, 16, 64]
cls.batch_sizes = [1, 8, 16, 64]

Comment on lines +56 to +60
def tearDownClass(cls):
# Clean up environment variable
if "SGLANG_ENABLE_JIT_DEEPGEMM" in os.environ:
del os.environ["SGLANG_ENABLE_JIT_DEEPGEMM"]

Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The current method of cleaning up the environment variable by deleting it is not fully robust. If SGLANG_ENABLE_JIT_DEEPGEMM was set before these tests ran, its value would be lost, potentially affecting other tests running in the same process. A better practice is to save its original state in setUpClass and restore it in tearDownClass.

You can achieve this by:

  1. Adding _original_jit_deepgemm = None at the class level.
  2. In setUpClass, saving the value: cls._original_jit_deepgemm = os.environ.get("SGLANG_ENABLE_JIT_DEEPGEMM") before setting the new value.
  3. In tearDownClass, restoring it:
if cls._original_jit_deepgemm is None:
    os.environ.pop("SGLANG_ENABLE_JIT_DEEPGEMM", None)
else:
    os.environ["SGLANG_ENABLE_JIT_DEEPGEMM"] = cls._original_jit_deepgemm

@alisonshao
Copy link
Collaborator Author

alisonshao commented Dec 6, 2025

@Kangyan-Zhou
Copy link
Collaborator

Should we add this model to h200 as well?

@alisonshao
Copy link
Collaborator Author

Should we add this model to h200 as well?

The base Mistral Large 3 model (test_mistral_large3_basic.py) only works on B200 - it uses --attention-backend trtllm_mla which requires Blackwell (SM100) architecture. I tried running it on H200 previously but it didn't work.

Move the Mistral Large 3 Eagle test into the same test file as the base
Mistral Large 3 test, removing the need for a separate workflow step.
This keeps the Eagle test within the existing nightly test job.
@alisonshao
Copy link
Collaborator Author

@Kangyan-Zhou Kangyan-Zhou merged commit f832994 into main Dec 12, 2025
61 of 69 checks passed
@Kangyan-Zhou Kangyan-Zhou deleted the add-eagle-nightly-ci-test branch December 12, 2025 01:01
Prozac614 pushed a commit to Prozac614/sglang that referenced this pull request Dec 17, 2025
YChange01 pushed a commit to YChange01/sglang that referenced this pull request Jan 13, 2026
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