[Question] Best Practices for Multi-Turn Long-Context GRPO Training

Open
#9,942 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Active
Tech stack
python

Research direction

The issue names no files, tests, or entry points. Start by checking the repository for existing GRPO, Qwen, long-context, or rollout configuration examples; done would mean identifying or documenting a supported setup for 64K–128K+ training, including hardware and memory guidance.

Written by the indexing model from the issue text.

Description

question
Checklist / 检查清单
  • I have searched existing issues, and this is a new question or discussion topic. / 我已经搜索过现有的 issues,确认这是一个新的问题与讨论。
Question Description / 问题描述

Hi,

I’m currently working on multi-turn GRPO training with Qwen3.5 series models under long-context settings (64K–128K+ tokens).

In my previous attempts at long-context training, I kept running into CUDA Out-of-Memory (OOM) errors, so I’d like to ask whether there are any recommended configurations or best practices for this scenario.

I’m particularly interested in the following:

  • For 64K–128K+ context lengths, what kind of hardware configuration would you recommend? Are there any recommended memory optimization techniques?
  • If using vLLM for rollout, how should it be configured to reduce GPU memory usage while maintaining good training/rollout throughput?
  • Are there any existing configurations, training scripts or best-practice documentation that I could use as a reference?

If there is already a recommended setup or best-practice guide for Qwen + long-context GRPO, I would really appreciate any pointers.

Thanks.

Dominant language
Python
Stars
16.2k
Forks
1.8k
Avg merge
1d 14h
Merged PRs (30d)
68

Getting set up

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.

More from modelscope/ms-swift

All issues in modelscope/ms-swift

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.