Skip to content

TEST: update qwen3.5 397b test#4607

Merged
lvhan028 merged 3 commits into
InternLM:mainfrom
littlegy:qwen397b_test
May 25, 2026
Merged

TEST: update qwen3.5 397b test#4607
lvhan028 merged 3 commits into
InternLM:mainfrom
littlegy:qwen397b_test

Conversation

@littlegy
Copy link
Copy Markdown
Contributor

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.

Comment thread autotest/evaluate/test_api_evaluate.py Outdated
Comment on lines +70 to +77
if eval_subpath is None:
if eval_config_name == 'default':
if 'gpt' in run_config.get('model', '').lower():
eval_config_name = 'gpt'
elif 'intern-s1-pro' in run_config.get('model', '').lower():
eval_config_name = 'intern-s1-pro'
elif 'qwen3.5' in run_config.get('model', '').lower():
eval_config_name = 'qwen3.5'
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.

Can we use run_config['model'].lower()

Comment thread autotest/evaluate/test_api_evaluate.py Outdated

if str(config.get('env_tag')) == 'ascend':
eval_config_name = f'{eval_config_name}-2batch'
if str(config.get('env_tag')) == 'ascend':
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.

str(config['env_tag'])

def run_eval_test(config, run_config, worker_id, test_type='infer', eval_config_name='default'):
def run_eval_test(config, run_config, worker_id, test_type='infer', eval_config_name='default', eval_subpath=None):
if eval_config_name == 'default':
if 'qwen3.5' in run_config.get('model', '').lower():
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.

if 'qwen3.5' in run_config['model'].lower():

Comment on lines +18 to +38
@contextmanager
def _mmengine_lazy_allow_lazyattr_call():
try:
from mmengine.config import lazy as mm_lazy
except ImportError:
yield
return
cls = mm_lazy.LazyAttr
orig = cls.__call__

def _call(self, *args, **kwargs):
fn = self.build()
if not callable(fn):
raise RuntimeError()
return fn(*args, **kwargs)

cls.__call__ = _call
try:
yield
finally:
cls.__call__ = orig
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.

May let us know the reason to bring it in

Comment on lines +41 to +47
def _sync_ruler_tokenizer_model(cfg, model_path):
tokenizer = os.environ.get('TOKENIZER_MODEL', model_path)
if not getattr(cfg, 'datasets', None):
return
for dataset in cfg.datasets:
if isinstance(dataset, dict) and 'tokenizer_model' in dataset:
dataset['tokenizer_model'] = tokenizer
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.

Could you let us know the reason to sync tokenizer?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 harness to better support Qwen3.5-397B(-FP8) evaluation, including new dp/ep distributed test coverage and more consistent evaluation preset selection based on model name + env_tag.

Changes:

  • Add Qwen3.5-397B-A17B (and FP8 variants) to autotest YAML matrices and adjust runtime params (e.g., batch size).
  • Centralize eval preset selection via resolve_eval_config_name() and apply it across API + MLLM evaluation tests.
  • Improve evaluation stability/diagnostics (mmengine LazyAttr loading workaround, tokenizer_model sync, richer traceback, longer MLLM infer timeout) and refine proxy distributed readiness checks for dp-sized clusters.

Reviewed changes

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

Show a summary per file
File Description
autotest/utils/proxy_distributed_utils.py Update proxy node readiness reporting and expected node counting for dp-sized distributed runs.
autotest/utils/evaluate_utils.py Add mmengine LazyAttr workaround, tokenizer sync, conditional NUM_WORKERS override, and improved error reporting; extend MLLM infer timeout.
autotest/utils/config_utils.py Add fp8 model-format case generation, tune Qwen3.5-397B params, generalize MTP params, add resolve_eval_config_name(), and make case parsing more robust.
autotest/evaluate/test_mllm_api_evaluate.py Use centralized eval preset resolution; add proxy-distributed dp4ep8 MLLM infer test; support eval output subpaths.
autotest/evaluate/test_api_evaluate.py Replace inline preset selection with resolve_eval_config_name(); add dp4ep8 distributed + longtext variants; pass eval preset into eval_test().
autotest/config_h.yml Extend model lists/parallel configs/quantization settings to include Qwen3.5-397B-A17B and FP8 variants.

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



def _apply_eval_config_env_suffix(config: dict[str, Any], name: str) -> str:
env_tag = str(config['env_tag'])
def _call(self, *args, **kwargs):
fn = self.build()
if not callable(fn):
raise RuntimeError()
@lvhan028 lvhan028 merged commit 0cc6dfb into InternLM:main May 25, 2026
4 checks passed
lvhan028 pushed a commit to lvhan028/lmdeploy that referenced this pull request May 27, 2026
* TEST: update qwen3.5 397b test

* fix comments
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