You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 890a33b
Browse filesBrowse the repository at this point in the historyBrowse files
ci: keep only the automatic Claude PR review (#4384)
Removes the @claude comment/issue agent (claude job) and the @pr-claude comment trigger. The review now runs only when a PR from an owner, member, or collaborator is marked ready for review. Klaud and codeowner sign-off workflows are unchanged.
gh run list --repo ${{ github.repository }} --workflow e2e-tests.yml --limit 5
98
-
```
99
-
100
-
You can analyze the json with:
101
-
```bash
102
-
python3 <<'EOF'\nimport json \nwith open('agg_bmk.json') as f: data = json.load(f) \n# Your analysis code here \nEOF
103
-
```
104
-
## E2E Tests
105
-
To trigger e2e tests, use the `mcp__github__run_workflow` tool to directly dispatch the e2e-tests.yml workflow.
106
-
107
-
**Syntax:**
108
-
```
109
-
mcp__github__run_workflow(
110
-
owner="SemiAnalysisAI",
111
-
repo="InferenceX",
112
-
workflow_id="e2e-tests.yml",
113
-
ref="branch-name",
114
-
inputs={
115
-
"generate-cli-command": "generator-cli-args",
116
-
"test-name": "Test description"
117
-
}
118
-
)
119
-
```
120
-
121
-
The `generate-cli-command` input accepts arguments for `python -m infx.matrix.generate`. Usage: `python -m infx.matrix.generate` `[-h]` `{full-sweep,test-config}`
122
-
123
-
**Subcommand reference:**
124
-
- `full-sweep`: Use this subcommand with filter flags like `--model-prefix`, `--framework`, `--precision`, `--runner-type`, `--min-conc`, `--max-conc`, `--seq-lens`. This is the primary subcommand for running benchmarks.
125
-
- `test-config`: Use this subcommand ONLY when prompted to with 'test-config'. Uses the flags `--config-files` and `--config-keys`, does NOT accept any other arguments.
- Use `full-sweep` with filter flags to narrow down the benchmark scope - "full-sweep" does NOT mean running everything
156
-
- When using `full-sweep`, you must use `--min-conc` and `--max-conc` together to specify a single concurrency value. Unless prompted otherwise, use `--min-conc 4 --max-conc 4`
157
-
- For fixed-sequence runs, use `--seq-lens 8k1k`; 1k1k is retired for all models. Consult `inferencex-e2e/docs/MODELS.md` for model-specific scenario eligibility.
158
-
- Use `test-config` ONLY when given specific config keys to test - Use `--config-files`, `--config-keys`, and `--conc` flags ONLY
159
-
- Always filter by specific models, frameworks, precision, conc, or config keys when possible
- After reviewing code changes that might affect performance
177
-
- For all runs, ensure they have links in the comment.
178
-
179
-
After triggering, monitor the workflow run using the returned run_id. Wait for completion using exponential backoff:
180
-
- Start with `sleep 120` (2 minutes), then double the sleep time each iteration (4 min, 8 min) up to an max of 8 minutes per sleep before checking the status.
181
-
- After each sleep, check the run status using `mcp__github__get_workflow_run`
182
-
- If the run fails or errors, cancel it with `mcp__github__cancel_workflow_run`, then start a new run
183
-
- Only wait for the final successful run to complete before analyzing benchmark results
184
-
- Do NOT claim completion until the most recent job finishes and results are analyzed
185
-
- If jobs cannot be run, say exactly what you could not run and why
186
-
- **Important** Append an inferencex-e2e/perf-changelog.yaml entry when the change alters what any benchmark runs (see "Updating perf-changelog.yaml" below)
187
-
188
-
## Profiling (SGLang only)
189
-
When asked to profile a config, dispatch the `profile.yml` workflow. **Only SGLang configs can be profiled** — the profiler uses SGLang's `/start_profile` and `/stop_profile` HTTP endpoints. Reject profiling requests for vLLM, TRT, or other frameworks.
190
-
191
-
**Syntax:**
192
-
```
193
-
mcp__github__run_workflow(
194
-
owner="SemiAnalysisAI",
195
-
repo="InferenceX",
196
-
workflow_id="profile.yml",
197
-
ref="main",
198
-
inputs={
199
-
"config-key": "<config-key-ending-in-sglang>",
200
-
"config-file": "<configs/nvidia-master.yaml or amd-master.yaml>",
201
-
"conc": "<concurrency>"
202
-
}
203
-
)
204
-
```
205
-
206
-
**How to map a natural-language request to inputs:**
207
-
The user will say something like "profile sglang b200 deepseek fp4 conc=4". Parse it as:
208
-
- Model: resolve the requested model against the current active master configs and `inferencex-e2e/docs/MODELS.md`; for example, `dsr1` means DeepSeek-R1 and `qwen3.5` means Qwen3.5. Reject retired model/scenario requests and preserve documented exceptions.
209
-
- Precision: "fp4" / "fp8" / "bf16"
210
-
- Runner/hardware: "b200", "h200", "h100", "mi300x", "mi325x", "mi355x", etc.
211
-
- Framework: must be "sglang" (reject if not)
212
-
- Concurrency: "conc=N" → `"conc": "N"`. Default to `"64"` if not specified.
213
-
214
-
Construct the config-key as: `{model-prefix}-{precision}-{runner}-sglang`
Monitor with `mcp__github__get_workflow_run`. The profile workflow takes ~15-30 minutes. When complete, the **Perfetto relay link** is in the workflow run's step summary. Retrieve it with:
Post the Perfetto relay link back to the user in the comment.
231
-
232
-
Focus on: code quality, benchmark config changes, and performance impact. Do not be lazy.
233
-
234
-
## Updating perf-changelog.yaml
235
-
236
-
See `AGENTS.md` → "Non-negotiable benchmark invariants" for changelog rules and `inferencex-e2e/perf-changelog.yaml` for entry format. Add an entry when the change alters what any benchmark runs: run `uv run python -m infx.matrix.changed --base origin/main` from `inferencex-e2e/` and cover every config key it lists; if it lists none (refactors, recipe moves, docs), add no entry. Use `XXX` as the PR-link placeholder until the PR exists.
237
-
238
-
If an entry uses `append-only: true`, require the generated base matrix to remain an immutable subset of the generated head matrix. New concurrency values or new recipe variants may be added inside a selected existing config/scenario, but no existing generated point may be removed or modified, and every addition must retain the target visual curve's single non-null image. Do not enforce a file allowlist: supporting code, benchmark scripts, launchers, helpers, and other files may change when their benchmark effect is exclusive to the corresponding newly appended points. All added changelog entries must be append-only, and eval modifiers are forbidden. Trace behavior through the complete diff; unguarded changes or paths reachable by an existing point are blocking.
239
-
240
-
## Spawning Additional Workers:
241
-
You CAN spawn additional Claude workers by commenting "@claude" with a specific task.
242
-
243
-
**Rules for spawning workers:**
244
-
1. Only spawn workers for truly parallel, independent tasks
245
-
2. Never spawn more than 2 workers at once
246
-
3. Include `[depth:N]` in your spawn comment (increment from parent)
247
-
4. Do NOT spawn if you see `[depth:3]` or higher in the thread
248
-
5. Each spawned worker should have a clearly scoped, specific task
249
-
250
-
Example spawn comment: `@claude [depth:1] Please analyze the AMD benchmark results while I focus on NVIDIA results.`
251
-
252
-
**Never spawn workers for:**
253
-
- Sequential tasks that depend on each other
254
-
- Simple tasks you can do yourself
255
-
- When you're unsure if it's needed
256
-
257
-
## Web Access:
258
-
Use `WebFetch` to read documentation and other URLs.
vLLM and SGLang handle expert parallelism differently. When writing or reviewing benchmark scripts for MoE models:
270
-
271
-
- **vLLM** (`vllm serve`): Uses `--enable-expert-parallel` (a boolean flag). vLLM does NOT accept `--expert-parallel-size`. When EP is enabled, vLLM automatically determines the EP size based on TP and the number of available GPUs.
272
-
- **SGLang** (`sglang.launch_server`): Uses `--expert-parallel-size N` (an explicit integer). Pass the `EP_SIZE` env var value directly.
273
-
- **ATOM** (AMD vLLM fork): Uses `--enable-expert-parallel` (same as vLLM).
274
-
275
-
**Required pattern for vLLM/ATOM scripts:** Scripts must conditionally enable `--enable-expert-parallel` based on the `EP_SIZE` env var from the config YAML, rather than hardcoding it:
276
-
```bash
277
-
if [ "$EP_SIZE" -gt 1 ]; then
278
-
EP=" --enable-expert-parallel"
279
-
else
280
-
EP=" "
281
-
fi
282
-
# Then use $EP in the vllm serve command
283
-
```
284
-
This ensures the script respects the `ep` setting in the master config YAML's search-space.
0 commit comments