slime-user — Claude Code skill: what it does, how to install
slime-user is a Claude Code skill for post-training LLMs with reinforcement learning in SLIME, covering GRPO, PPO, Megatron and FSDP backends, and tool use.
no license ★ 158 updated 2026-07-09
npx skills add yzlnew/infra-skills --skill slime-user -a claude-codeWhat slime-user does
This skill guides LLM reinforcement learning workflows in the SLIME framework from THUDM. It covers algorithm selection across GRPO, GSPO, PPO, and Reinforce++, helping coordinate inference rollouts in SGLang with reward calculation and optimizer updates.
It details configuration flags for single-node and multi-node hardware setups on H100, H200, or B200 systems. Choosing Megatron means running weight conversion via tools/convert_hf_to_torch_dist.py before launching, whereas --train-backend fsdp uses HuggingFace checkpoints directly.
You also get reference patterns for multi-turn tool calling routines with token masking in loss_mask, custom reward model definitions, and batch size balance equations.
What it helps with
- balance rollout and global batch sizes across training iterations
- configure GRPO or PPO runs with SGLang rollouts
- implement multi-turn generation loops with masked tool outputs
- set up model training scripts for FSDP or Megatron backends
Example prompts for the agent
- Configure a GRPO training script for Qwen3-4B on eight H100 GPUs.
- Show how to structure loss_mask for multi-turn tool calling in SLIME.
- What arguments do I need to switch from Megatron to the FSDP backend?
How to install slime-user
1Skills CLI (Vercel)
npx skills add yzlnew/infra-skills --skill slime-user -a claude-code2Manually: put the files in place
~/.claude/skills/slime-user/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/slime-user/
1Skills CLI (Vercel)
npx skills add yzlnew/infra-skills --skill slime-user -a codex2Manually: put the files in place
.agents/skills/slime-user/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add yzlnew/infra-skills --skill slime-user -a cursor2Manually: put the files in place
.cursor/skills/slime-user/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install yzlnew/infra-skills slime-user2Manually: put the files in place
.github/skills/slime-user/SKILL.md1Skills CLI (Vercel)
npx skills add yzlnew/infra-skills --skill slime-user -a gemini-cli2Platform CLI
gemini skills install https://github.com/yzlnew/infra-skills --path slime-userManually: put the files in place
.devin/skills/slime-user/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about slime-user
How do I install slime-user in Claude Code?
Run npx skills add yzlnew/infra-skills --skill slime-user -a claude-code in your terminal, or place the skill file at ~/.claude/skills/slime-user/SKILL.md.
What does slime-user do?
It provides reference parameters, workflows, and script templates for reinforcement learning post-training using SLIME.
What hardware and backends does SLIME support?
It supports H100, H200, and B200 GPUs using either Megatron or FSDP backends with SGLang for rollout generation.