rea-analysis-optimization
MOmorluto/rea485k近 7 天新增 7,690 个 star
Run, verify, compare, and refresh benchmarks in this repository using `python -m cli.aisp bench`, Tier-1 suites, validity profiles (`strict` vs `portable`), expectation files, and README refreshes. Use when executing benchmarks, diagnosing speedups or regressions, updating expectations, or running queue-managed sweeps.
Use this skill for all benchmark execution, verification, Tier-1 checks, and
expectation or README updates under code/.
Run commands from code/:
# Discover chapters, labs, and individual targets
python -m cli.aisp bench list-targets --chapter ch01
python -m cli.aisp bench list-targets --chapter labs/flashattention4
# Run one or more targets (strict validity is the default)
python -m cli.aisp bench run --targets ch01:performance --profile minimal
python -m cli.aisp bench run --targets labs/flashattention4:flashattention4_alibi --profile none
# Verify correctness only (output tolerance, signature, jitter, fresh input)
python -m cli.aisp bench verify --targets ch01:performance
# Run canonical Tier-1 suite (captures and auto-evaluates nsys + ncu minimal metrics)
python -m cli.aisp bench run-tier1 --single-gpu --profile minimal
# Deep-dive profiler explanation from any run JSON, pair dir, .nsys-rep, or .ncu-rep
python -m cli.aisp profile explain artifacts/runs/<run_id>/results/benchmark_test_results.json --format md
python -m cli.aisp profile explain artifacts/runs/<run_id>/profiles/<pair_dir> --include-source
Use --profile none during fast kernel edit-and-verify loops (VerifyRunner + CUDA-Event timing), then promote to --profile minimal or --profile deep_dive plus aisp profile explain (or MCP profile_explain) whenever you need nsys/ncu bottleneck classification, baseline-vs-optimized metric deltas, or source/SASS hotspots to drive the next optimization hypothesis.
Never bypass the CLI with direct python chXX/baseline_*.py runs for benchmark
claims. Discoverable benchmark modules expose get_benchmark() and must be run
through the harness.
strict is the default profile and is required for publishable comparisons and
expectation updates.portable must be explicitly passed (--validity-profile portable). It relaxes
only documented clock, application-clock, telemetry, and virtualization checks. It
never bypasses missing CUDA, unsupported platforms, swap, CPU governor, cgroup, or
foreign-process failures.nvidia-smi. Let the harness lock and restore
clocks so provenance records the lock state and restores every GPU by UUID.ps, nvidia-smi, queue
locks). Do not run concurrent benchmarks on the same GPU.python -m cli.aisp bench expectations --hardware b200 --min-speedup 1.05
python core/analysis/analyze_expectations.py --artifacts-dir artifacts
code/README.md, ch*/README.md, or registered
labs/*/README.md). Update code/core/scripts/refresh_readmes.py, regenerate, and
check parity:
python -m core.scripts.refresh_readmes --write --target README.md
python -m core.scripts.refresh_readmes --check
cd code
make lint
python -m core.scripts.refresh_readmes --check
Report exact commands, target hardware, validity profile, and any skipped or unmeasured checks plainly.
MOmorluto/rea485k近 7 天新增 7,690 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star