weak_proposer — Claude Code prompt for Megatron-Core tuning
The weak_proposer Claude Code prompt tunes Megatron-Core training for speed. It proposes config changes, runs trials and identifies the fastest valid candidate.
no license ★ 99 updated 2026-11-12
.claude/commands/weak_proposer.mdWhat weak_proposer does
The prompt guides a Megatron-Core 0.18.2 training job through speed-focused changes, one proposal at a time. It starts with configuration keys, allowing up to six L0 changes per proposal. Patches become available after the config options are exhausted, and the initial candidate is c0.
It rules out edits to batch size, sequence length, data, loss, learning rate, optimizer, precision, router and model. A trial can run only against a candidate the prompt proposed; its receipt must be read once the run ends. When memory is tight, it suggests recompute, a parallel layout or optimizer offload. With memory to spare, it suggests removing recompute or raising micro-batch size. Replies must contain a single JSON object. The job needs Megatron-Core 0.18.2 and state data with {MODE} and the available action menu.
What it helps with
- tune Megatron-Core training settings for speed
- compare valid candidates using trial results
- reduce memory use when a trial is short on memory
- select the fastest valid candidate within the run budget
Example prompts for the agent
- Tune my Megatron-Core 0.18.2 training job for speed in mode
{MODE}. - Propose the next valid candidate from the current job state and remaining budget.
- Compare the trial receipts and name the fastest valid candidate.
How to install weak_proposer
Manually: put the files in place
.claude/commands/weak_proposer.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about weak_proposer
How do I install weak_proposer in Claude Code?
Save the prompt as .claude/commands/weak_proposer.md.
What does weak_proposer do?
It proposes changes to a Megatron-Core training job, uses trial results to guide further tuning and names the fastest valid candidate.
What does weak_proposer need to run?
It needs Megatron-Core 0.18.2 and job state containing {MODE} and the available action menu.