Skip to content

[ci] add mtp test config in pr_test#4651

Open
zhulinJulia24 wants to merge 13 commits into
InternLM:mainfrom
zhulinJulia24:add_mtp_prtest_new
Open

[ci] add mtp test config in pr_test#4651
zhulinJulia24 wants to merge 13 commits into
InternLM:mainfrom
zhulinJulia24:add_mtp_prtest_new

Conversation

@zhulinJulia24

Copy link
Copy Markdown
Collaborator

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
  3. If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

Copilot AI review requested due to automatic review settings June 5, 2026 09:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the autotest/CI configuration to add MTP (multi-token prediction / speculative decoding) coverage to PR test matrices and per-model YAML configs.

Changes:

  • Extend PYTORCH_PR_TEST_LLM_GPU2 and PYTORCH_PR_TEST_LLM_GPU1 PR test run-config lists with new MTP-related entries.
  • Add MTP engine extra settings to the Qwen/Qwen3.5-35B-A3B per-model autotest YAML for the a100 environment.
  • Introduce a new per-model autotest YAML for internlm/Intern-S2-Preview, including MTP-related coverage entries.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
autotest/tools/common_case_config.py Adds new PR-test run configurations, including MTP/speculative decoding parameters.
autotest/configs/Qwen/Qwen3.5-35B-A3B.yml Adds a100 matrix entries that include MTP-related engine_config.extra settings.
autotest/configs/internlm/Intern-S2-Preview.yml Adds a new model matrix config file with standard + MTP coverage entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread autotest/tools/common_case_config.py Outdated
zhulinJulia24 and others added 4 commits June 5, 2026 18:55
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Comment thread autotest/configs/Qwen/Qwen3.5-35B-A3B.yml
Comment thread autotest/configs/Qwen/Qwen3.5-35B-A3B.yml
Comment thread autotest/configs/internlm/Intern-S2-Preview.yml
Comment thread autotest/configs/internlm/Intern-S2-Preview.yml
Comment thread autotest/tools/common_case_config.py
Comment thread autotest/tools/chat/test_command_chat_hf_pytorch.py
Comment on lines +45 to +53
- model_type: chat
engine_config:
tp: 1
extra:
speculative-algorithm: qwen3_5_mtp
speculative-num-draft-tokens: 4
max-batch-size: 256
backends:
- name: turbomind

@lvhan028 lvhan028 Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

turbomind hasn't supported mtp yet.

# HF model id: internlm/Intern-S2-Preview

a100:
- model_type: chat

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In the latest main branch, turbomind support intern-s2-preview's vision model.
So , we can use the following for both turbomind and pytorch engines

- model_type:
  - chat
  - vl

Comment on lines +68 to +69
turbomind:
- awq

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This feature hasn't been merged yet.

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.

3 participants