Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/scripts/generate_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ def resolve_task_dir(task_key: str) -> str:
return TASK_DIR_MAP.get(task_key, task_key)


def resolve_e2e_timeout(config: dict, device: str, task_dir: str) -> int:
"""Return timeout for an E2E task, allowing platform YAML overrides."""
default = DEFAULT_TIMEOUT.get(task_dir, 60)
timeouts = (
config.get(device, {}).get("tests", {}).get("timeouts", {}).get("e2e", {})
)
value = timeouts.get(task_dir, default)
return int(value)


def get_device_sections(config: dict) -> list[str]:
"""Return device section names present in the config.

Expand Down Expand Up @@ -108,7 +118,7 @@ def build_e2e_matrix(
# Build one matrix entry per (task, device) group
entries = []
for (task_dir, device), case_list in groups.items():
timeout = DEFAULT_TIMEOUT.get(task_dir, 60)
timeout = resolve_e2e_timeout(config, device, task_dir)
entries.append(
{
"task": task_dir,
Expand Down
44 changes: 44 additions & 0 deletions tests/models/qwen3_6/27b_tp2_graph_metax.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2026 FlagOS Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Qwen3.6-27B MetaX smoke configuration (TP=2, graph).

llm:
model: "/data/models/Qwen/Qwen3.6-27B"
tensor_parallel_size: 2
pipeline_parallel_size: 1
max_model_len: 8192
gpu_memory_utilization: 0.90
enforce_eager: false
trust_remote_code: false
disable_custom_all_reduce: true

generate:
prompts:
- "Introduce yourself,please"
sampling:
max_tokens: 100
temperature: 0.0

serve:
served_model_name: "qwen"
startup_retries: 300
endpoints: ["chat"]
stream: false
max_tokens: 256
chat_messages:
- role: "user"
content: "Introduce yourself,please"
sampling:
temperature: 0.0
44 changes: 44 additions & 0 deletions tests/models/qwen3_6/35b_a3b_tp2_graph_metax.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2026 FlagOS Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Qwen3.6-35B-A3B MetaX smoke configuration (TP=2, graph).

llm:
model: "/data/models/Qwen/Qwen3.6-35B-A3B"
tensor_parallel_size: 2
pipeline_parallel_size: 1
max_model_len: 8192
gpu_memory_utilization: 0.90
enforce_eager: false
trust_remote_code: false
disable_custom_all_reduce: true

generate:
prompts:
- "Introduce yourself,please"
sampling:
max_tokens: 100
temperature: 0.0

serve:
served_model_name: "qwen"
startup_retries: 300
endpoints: ["chat"]
stream: false
max_tokens: 256
chat_messages:
- role: "user"
content: "Introduce yourself,please"
sampling:
temperature: 0.0
9 changes: 8 additions & 1 deletion tests/platforms/metax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ c550:
inference:
qwen3_6: ["27b_tp2_eager_metax"]
serving:
qwen3_6: ["35b_a3b_tp2_eager_metax"]
qwen3_6:
- "27b_tp2_eager_metax"
- "35b_a3b_tp2_eager_metax"
- "27b_tp2_graph_metax"
- "35b_a3b_tp2_graph_metax"
timeouts:
e2e:
serving: 180
functional:
include: "*"
exclude: []
Expand Down
Loading