THUDM / THUDM/slime

[Question] Proposal: Add Train–Inference Consistency Data Collection to slime

Open
#2,244 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
8.5k
Forks
1.3k
Avg merge
5h 36m
Merged PRs (30d)
22

Description

Your Question

Background

We appreciate the slime team’s work. As an RL framework, slime is strong in engineering readiness and issue diagnosis, especially in key stages such as rollout and training updates.

In practice, we find that slime currently lacks train–inference consistency data collection. We would like to discuss with the authors whether this capability can be upstreamed.

Why This Matters

In MoE-based RL workloads, train–inference consistency is critical. Systematic forward-pass divergence can distort reward / KL signals, or in severe cases cause training divergence or policy collapse. Root causes are often complex (e.g., operator numerics, data types, framework adaptation). With train–inference consistency data collection, differences can be localized quickly, reducing precision debugging time.

What We Propose

We have already implemented a train–inference consistency data collection feature, and propose upstreaming it to slime in a parameter-controlled, default-off manner that does not affect the existing training path.

Request for Confirmation

Please confirm:

  1. Whether “train–inference consistency data collection / comparison” is accepted as a complementary capability for slime.
  2. If accepted, whether a default-off, flag-controlled, non-intrusive integration approach is acceptable.

If the direction is approved, we will follow up with a more detailed design and integration scope. We also welcome any constraints or guidance from the authors.

We would appreciate your reply at your earliest convenience. Thank you.
@zhuzilin

What I've Tried

We have already implemented a train–inference consistency data collection feature, and propose upstreaming it to slime in a parameter-controlled, default-off manner that does not affect the existing training path.

Environment (if relevant)
  • slime version:
  • Python version:
  • PyTorch version:
  • CUDA/ROCm version:
  • GPU type and count:
  • OS:
Additional Context

No response

Pre-submission Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with CONTRIBUTING.md and the linked documentation and FAQ, then seek maintainer confirmation because the issue names no source files, tests, or entry points. The proposal requires a detailed design and integration scope before implementation. Done would mean an accepted, default-off, parameter-controlled capability that does not change the existing training path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.