slime-rl-training

Automate RL-based post-training workflows for large language models with Megatron-LM and SGLang.

1|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill slime-rl-training-bermudalocals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slime-rl-training
Source: https://github.com/BermudaLocals/hermes-agent-lite/tree/main/optional-skills/mlops/slime
Command: npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill slime-rl-training-bermudalocals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sglang-router>=0.2.3, ray, torch>=2.0.0, transformers>=4.40.0, and includes references (resource) components.

What problem does it solve?

Provides a guided, scalable framework for RL-based post-training of large language models by integrating Megatron-LM with SGLang, enabling efficient rollout, training, and model alignment workflows.

Core Features & Use Cases

  • End-to-end RL post-training workflows for GLMs and transformer-based models using Megatron-LM + SGLang.
  • Support for standard GRPO-style training, asynchronous update modes, and multi-turn / tool-use scenarios.
  • Robust data buffering, configurable model/scripts, and multi-argument coordination to manage rollout, reward computation, and weight synchronization.

Quick Start

Run slime to begin RL-based post-training for your GLM models with Megatron-LM and SGLang.

Frequently Asked Questions about slime-rl-training

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up reinforcement learning post-training for my LLM?

RL-based post-training workflows are automated by integrating Megatron-LM with SGLang to handle scalable rollout, training, and model alignment. This framework supports configurable data buffers and model scripts to manage reward computation and weight synchronization.

What is the best way to run GRPO-style training on transformer models?

Running GRPO-style training is best achieved by using slime to coordinate Megatron-LM and SGLang for scalable rollout and training. This approach supports standard workflows, asynchronous updates, and multi-turn tool-use scenarios.

Can I use SGLang with Megatron-LM for multi-turn tool-use scenarios?

Yes, SGLang works with Megatron-LM to support multi-turn and tool-use scenarios during RL post-training. The integration manages multi-argument coordination to handle rollout, reward computation, and weight synchronization.

Do I need Ray and PyTorch for asynchronous RL updates?

Yes, Ray and PyTorch are required dependencies for executing asynchronous RL updates and managing scalable rollout operations. They provide the distributed execution and tensor computation foundation for transformer model alignment.

Does slime support asynchronous updates for transformer-based language models?

Yes, slime supports asynchronous update modes for GLMs and transformer-based models during RL post-training. It coordinates SGLang and Megatron-LM to manage rollout, reward computation, and weight synchronization.