Skip to content

docs(rl): update tutorial with AgenticGRPOLearner for async RL training#4181

Merged
copybara-service[bot] merged 1 commit into
mainfrom
yixuanm-doc-fix
Jun 17, 2026
Merged

docs(rl): update tutorial with AgenticGRPOLearner for async RL training#4181
copybara-service[bot] merged 1 commit into
mainfrom
yixuanm-doc-fix

Conversation

@AntonyMei

Copy link
Copy Markdown
Collaborator

Description

Updates the rl.md tutorial documentation to include instructions and an example command for using AgenticGRPOLearner for asynchronous RL training.

Tests

Command tested on Qwen3 4B using a v6e-8 machine.

# [Test Agentic Learner (default)]
export MODEL="qwen3-4b"
export BASE_OUTPUT_DIRECTORY="gs://yixuanm-maxtext-logs/AgenticGRPOTesting"
export RUN_NAME="agentic-0610-default"
export CHIPS_PER_VM=8
export MAXTEXT_CKPT_PATH="gs://yixuanm-maxtext-logs/AgenticGRPOTesting/qwen3-4b-ckpt/0/items/"

# GRPO command
python3 -m maxtext.trainers.post_train.rl.train_rl \
  model_name=${MODEL?} \
  load_parameters_path=${MAXTEXT_CKPT_PATH?} \
  run_name=${RUN_NAME?} \
  base_output_directory=${BASE_OUTPUT_DIRECTORY?} \
  chips_per_vm=${CHIPS_PER_VM?} \
  enable_tunix_perf_metrics=True \
  rl.use_agentic_rollout=True 

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@copybara-service copybara-service Bot merged commit 62fc75c into main Jun 17, 2026
39 checks passed
@copybara-service copybara-service Bot deleted the yixuanm-doc-fix branch June 17, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants