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-07-30 17:03:23 +08:00

project_6

Description
No description provided
Readme 427 MiB
Languages
C++ 41.8%
Cuda 31.6%
Python 22.2%
C 2.1%
CMake 1.1%
Other 1.1%