|
Download README.md from JhLU/KernelMux: direct link, hf CLI and curl.
- Browser
- Download file 4.54 kB
-
https://huggingface.co/datasets/JhLU/KernelMux/resolve/main/README.md
- Command line
-
hf download hf://datasets/JhLU/KernelMux/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/JhLU/KernelMux/resolve/main/README.md
4.54 kB
| license: mit | |
| pretty_name: KernelMux traces | |
| tags: | |
| - reinforcement-learning | |
| - gpu-kernels | |
| - kernelbench | |
| - triton | |
| configs: [] | |
| # KernelMux traces | |
| Rollout, evaluation and trainer traces from GPU-kernel RL experiments (KernelBench, Triton backend). They back the | |
| measurements of where time goes in a GPU-kernel RL step: rollout, kernel evaluation, and the trainer update. | |
| Code: https://github.com/RL-System-Project/KernelMux | |
| ## `qwen38-27b_kernelbench_20261124/` | |
| Policy: Qwen3.8-27B (bf16), served with vLLM on 8 H100 (4 engines, TP=2, 128 requests in flight per engine). | |
| Workload: 250 KernelBench problems x 8 samples = 2,000 trajectories. Two modes: `nothink` (`enable_thinking=False`, | |
| max 8,192 new tokens) and `think_low` (`reasoning_effort=low`, max 24,576 new tokens). `think_xhigh` is the template | |
| default effort and is included for reference only (93.5% of samples hit the token cap). | |
| Evaluation uses the upstream KernelBench timing convention (synchronise and flush L2 before every trial), 8 H100, one | |
| task per GPU at a time, a fresh Triton cache per run. Correctness tolerance is 1e-2. Three evaluator modes: | |
| | name in paths | meaning | | |
| |---|---| | |
| | `cold1_up` | stock KernelGYM: one new process per kernel, inputs generated on CPU | | |
| | `cold1_gi_up` | same, inputs generated on the GPU | | |
| | `warm1_gi_up` | warm process pool: one process per kernel, started ahead of time | | |
| | `shared1_gi_up` | persistent executor: long-lived processes evaluate many kernels | | |
| A `_gN` suffix means N evaluation GPUs instead of 8. `@<node>` is the machine the run used. | |
| | folder | contents | | |
| |---|---| | |
| | `prompts/` | the 250 prompts | | |
| | `single_turn/rollout/<mode>/` | one generation per trajectory: `rollout_gpu*.jsonl` (text, tokens, submit/done timestamps) | | |
| | `single_turn/eval/<stream>/<config>@<node>/` | replay of a stream at its recorded arrival times: `tasks.jsonl` (verdict, speedup, phase times, start/end), `summary.json` | | |
| | `multi_turn_staged/<mode>/turn{1,2,3}/` | 3-turn rollout recorded turn by turn: prompts with evaluator feedback, generations, verdicts | | |
| | `multi_turn_live/<run>/` | 3-turn pipeline with rollout and evaluator online together (8 rollout + 8 eval H100) | | |
| | `rollout_sweep/` | non-reasoning rollout with other engine layouts (TP=1/4/8; `g16a` = one of two nodes of a 16-GPU run, half the problems) | | |
| | `trainer/` | FSDP2 trainer step timings on 8 H100 (and 4 H100: `g4_*`) | | |
| | `scripts/` | the drivers that produced the traces | | |
| ### Multi-turn format | |
| Always 3 turns, no early stop (Dr.Kernel's setting). After each turn the evaluator verdict is appended as a user | |
| message with Dr.Kernel's feedback template. The history keeps each past turn's final answer; reasoning text is dropped, | |
| except in `live_think_keep_shared`, where it is kept through the chat template's `reasoning_content`. | |
| `multi_turn_live/<run>/traj_gpu*.jsonl`, one record per generation: `problem`, `sample`, `turn`, `t_request`, | |
| `t_submit`, `t_done`, `t_verdict`, `in_tokens`, `out_tokens`, `finish`, `text` (raw, with reasoning), `result` | |
| (the verdict). `stream.jsonl` is what the evaluator read (final answers; `sample = (turn-1)*100 + sample`). | |
| `eval/tasks.jsonl` has one record per evaluation. | |
| ### Headline numbers | |
| Wall-clock time of the live 3-turn pipeline, 2,000 trajectories (6,000 generations and evaluations): | |
| | | non-reasoning | reasoning (low) | | |
| |---|---|---| | |
| | rollout alone, 3 turns | 1,749 s | 7,813 s | | |
| | live, stock KernelGYM | 11,624 s | 11,760 s | | |
| | live, warm process pool | 3,024 s | 7,843 s | | |
| | live, persistent executor | 1,699 s | 7,693 s | | |
| The live time cannot be shorter than the rollout itself; where the two match, the evaluator is not the bottleneck. | |
| Work per training step of 256 trajectories x 3 turns, 8 H100 per stage: | |
| | | non-reasoning | reasoning (low) | | |
| |---|---|---| | |
| | rollout | 224 s | 1,000 s | | |
| | trainer, one row per turn | 462 s | 946 s | | |
| | trainer, one sequence per trajectory | 215 s | n/a (history omits reasoning) | | |
| | eval, stock KernelGYM | 1,482 s | 1,484 s | | |
| | eval, warm process pool | 383 s | 229 s | | |
| | eval, persistent executor | 213 s | 180 s | | |
| ### Caveats | |
| - Runs used different machines (all 8x H100, three regions); numbers in one table are not all from one node. | |
| - The verdicts between staged turns come from an all-at-once evaluation; reported evaluator times come from paced or live runs. | |
| - In the live runs the rollout does not cap concurrent trajectories, which favours slow evaluators. | |
| - User names, host names and internal addresses in paths and logs were replaced. | |