TEST: update qwen3.5 397b test#4607
Conversation
| 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' |
There was a problem hiding this comment.
Can we use run_config['model'].lower()
|
|
||
| if str(config.get('env_tag')) == 'ascend': | ||
| eval_config_name = f'{eval_config_name}-2batch' | ||
| if str(config.get('env_tag')) == 'ascend': |
| 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(): |
There was a problem hiding this comment.
if 'qwen3.5' in run_config['model'].lower():
| @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 |
There was a problem hiding this comment.
May let us know the reason to bring it in
| 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 |
There was a problem hiding this comment.
Could you let us know the reason to sync tokenizer?
There was a problem hiding this comment.
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() |
* TEST: update qwen3.5 397b test * fix comments
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