dylanyunlon
09e7751d27
feat(muh): add muh_apply.py — Python-level injection tool for EngineX
EngineX ships Python + precompiled .so + Triton, no .cu source.
gen_patch.py generates C++ #define patches that have no target files.
muh_apply.py patches the actual Python runtime values:
Injection targets:
- paged_attn.py: _PARTITION_SIZE (reduce tuning → partition granularity)
- paged_attn.py: use_v1 threshold (V1/V2 dispatch)
- computility-run.yaml: --max-num-seqs, --max-num-batched-tokens, --gpu-memory-utilization
- prefix_prefill.py: BLOCK_M, NUM_WARPS (Triton JIT config)
Source of truth: muh/include/muh/tuning/tuning_*.cuh bi100_* structs
Pipeline: C++ headers → muh_apply.py extract → Python source patch
Modes:
--check: verify Python values match C++ headers (CI gate)
--dry-run: show what would change
(default): apply patches in-place
2026-08-07 02:44:25 +00:00
..
2026-08-06 06:19:59 +00:00
2026-07-30 10:39:06 +00:00
2026-07-30 15:08:30 +00:00
2026-08-01 12:37:14 +08:00
2026-08-03 10:24:37 +00:00
2026-08-03 11:18:18 +00:00
2026-08-04 06:19:07 +00:00
2026-08-04 06:19:07 +00:00
2026-08-04 06:19:07 +00:00
2026-08-06 05:56:28 +00:00
2026-07-30 10:39:06 +00:00
2026-08-06 04:01:40 +00:00
2026-07-30 10:39:06 +00:00
2026-08-07 02:44:25 +00:00
2026-07-30 10:39:06 +00:00
2026-08-03 11:18:18 +00:00
2026-08-03 10:27:10 +00:00