In short.
This Together AI tutorial guides Python developers through training a model on school math questions, with an example run estimated to cost about $400. Its 200-step recipe trains a LoRA adapter for Qwen3.6-35B-A3B using GSM8K and a reward based on matching reference answers. The guide explains how learning works, which accuracy metrics to watch and how to retrieve checkpoints. Two practical constraints matter: interrupted resources can continue billing, and the downloaded adapter uses a format that PEFT and Hugging Face Transformers cannot load directly. The page describes a separate merged-model download route. Final accuracy, actual runtime and training gains are not established by the illustrative logs; execution is untested.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://docs.together.ai/docs/post-training/quickstart-rl.md], including prerequisites, configuration, reward behavior, example logs, monitoring, checkpoint retrieval, billing and shutdown instructions. Linked documentation, repository files, model and dataset pages, pricing details and license terms are outside the selected scope. The Mintlify hosting notice establishes no license grant. No commands were executed; actual costs, training gains, export compatibility and deployment behavior remain untested.
The overview
Identity
Reinforcement learning with GRPO quickstart is Together AI documentation at [https://docs.together.ai/docs/post-training/quickstart-rl.md]. It teaches a specific training exercise using the Together post-training cookbook rather than providing a standalone application.
The intended output is a trained LoRA adapter, a smaller set of learned weights used with a base model, registered in the user's Together project.
Assessment
The guide is useful for developers who want a concrete introduction to reward-based training on hosted GPUs. It connects configuration choices to reward calculation, model updates, validation, checkpoints and resource shutdown.
Its strongest practical detail is the explanation of failure conditions: correctly stated answers can receive zero reward when formatting is wrong, groups with identical rewards provide no learning signal, and interrupted resources may remain billable. It does not establish a final accuracy result or the improvement a user should expect.
Who it suits
The tutorial suits Python developers learning reinforcement learning for language models, and experienced developers evaluating Together's training workflow. Beginners receive a ready-made recipe, but still need to manage terminal commands, API credentials, paid resources and training metrics.
The example targets short math answers that can be checked automatically. Its usefulness for open-ended writing, subjective quality or other tasks without a reliable scoring rule is not demonstrated.
What it covers
The recipe provisions a model resource with one generator replica, starts a training session, trains an adapter, records metrics and saves training and inference checkpoints every 20 steps. Greedy validation runs every 100 steps.
The guide covers finding registered inference adapters and downloading them through the CLI. These downloads contain adapter weights in SGLang's multi-LoRA layout, which the page says PEFT and Hugging Face Transformers cannot load. It describes a separate Python SDK download route for base weights with the adapter merged, and links to deployment on Together.
Using it
Requirements
The documented requirements are Python 3.11 or later, uv, Together CLI version 3.0.0 or later for downloads, and a Together account with enough credit for four hours of model-resource use. The cookbook installation supplies the Together Python SDK; its exact version is not stated.
TOGETHER_API_KEY must be set. The example uses WANDB_API_KEY for Weights & Biases logging, with WANDB_MODE=offline offered as an alternative without an account. HF_TOKEN is optional and needed only for gated models or datasets.
How training works
GRPO generates several answers to each prompt, scores them and favors answers that outperform their group's average. The recipe extracts the number after ####, or from a boxed answer when #### is absent, and awards 1.0 for a reference match and 0.0 otherwise. An answer without either marker receives zero even if it states the correct number.
Each initial batch contains 16 prompts with eight completions each. With max_sampling_attempts=3, the recipe can draw up to three batches when too few groups contain different rewards. If none contains a group with differing rewards, it skips the update. Updates use forward_backward, optim_step and weights_sync so subsequent sampling uses the updated weights.
The guide recommends validation accuracy as the main progress signal. Training accuracy includes only groups used for training and is not directly comparable with validation accuracy; loss is described as a poor measure of GRPO progress.
Setup
The documented sequence is to configure credentials, clone [https://github.com/togethercomputer/post-training-cookbook.git], enter the repository and install dependencies with uv sync --locked. The CLI installation command is uv tool install "together[cli]" --upgrade.
Review recipes/grpo/gsm8k.py before starting it with uv run python recipes/grpo/gsm8k.py. The recipe creates remote resources and waits for the resource and session to become ready. Retain the session ID from the output or manifest.json for checkpoint retrieval.
The documented example
The example selects Qwen/Qwen3.6-35B-A3B, 4,000 training examples, 200 validation examples, 200 steps and a learning rate of 1e-5. The page describes the model as a mixture of experts with 3 billion active parameters.
Prompts longer than 768 tokens are dropped, completions are capped at 768 tokens and total model length is set to 1,536 tokens. A default length penalty lowers rewards for completions longer than 672 tokens. enable_thinking=False disables the model's think output to help stay within the completion budget.
The sample logs illustrate readiness messages, accuracy, timing and sampling statistics. They do not supply a final validation score or establish a reproducible improvement.
Assessment & evidence
Limitations
The reward checks the extracted final number, so it does not assess the soundness of the written explanation. Formatting and length penalties can affect rewards independently of mathematical correctness. Uniform rewards within a group remove the relative learning signal.
The example uses a narrow task, short responses and 200 validation examples. Broader reasoning ability, performance on other datasets, reliability across repeated runs and deployment quality are not assessed. Direct adapter compatibility with PEFT and Hugging Face Transformers is explicitly unavailable for the documented CLI export.
Choosing this approach
This tutorial is a reasonable fit when the goal is to understand GRPO through a task with an automatic correctness check and the documented budget is acceptable. Its ready-made loop reduces the amount of training infrastructure a learner must assemble.
For a different task, the key decision is whether a reward can reliably distinguish better answers. The exact-match math example supports that inference, but does not demonstrate that the same settings or reward design will transfer successfully.
Other routes mentioned
For more control, the tutorial points to writing a training loop with the Python SDK [https://docs.together.ai/docs/post-training/training-loop.md]. It also points to GRPO recipes for changing the dataset and reward [https://docs.together.ai/docs/post-training/grpo-recipes.md].
Those linked pages are outside this page's coverage. No comparison with competing services or other training methods is provided, so relative cost, quality and ease of use remain unknown.
Evidence and confidence
Together AI's page supplies prerequisites, commands, a recipe configuration, reward rules, illustrative logs, download instructions and resource shutdown guidance. It supports a detailed description of the documented workflow.
Runtime, cost and behavior are publisher statements rather than independently established results. Repository implementation, external documentation and linked model or dataset contents are not established by this page. Training, downloads and deployment remain untested.
Access & freshness
Costs and billing
The page estimates about four hours for the 200-step recipe, approximately $96 per hour on the model's default GPUs and about $400 for the full run. These are documentation estimates, not measured charges or a guaranteed price. Billing is per GPU-minute from resource readiness until the resource stops.
The recipe is documented to stop its session and resource on exit, but an interruption can leave the resource active. A ready resource is billing; pending or creating resources begin billing when ready. Additional inference, storage, transfer or external logging charges are not established by this page.
Rights and permissions
The page does not state licenses for its documentation or recipe excerpt, and does not establish the license terms of the cookbook, Qwen base model or GSM8K dataset. Commercial-use and redistribution permissions for these materials and resulting weights remain unknown from this page.
The ability to download an adapter or merged weights does not establish permission to redistribute them. Service terms and data-handling commitments are also not supplied.
Freshness
The available page snapshot was captured on 23 November 2026. The documentation itself supplies no publication or last-updated date, cookbook commit or exact Python SDK version.
Python 3.11 and Together CLI 3.0.0 are documented minimums. Current pricing, model availability and compatibility with later package versions are not established beyond the captured text.
Practical next steps
Before starting, confirm current resource pricing, available credit, applicable licenses and the export format needed by the intended inference framework. Review the reward parser and token limits, since both affect what the model is rewarded for producing.
During training, watch val/accuracy and zero_variance_skip_ratio. For an adapter download, use tg training ls-checkpoints --type inference --session <SESSION_ID> to find the registry artifact ID, then tg models download <MODEL_ID> ./gsm8k_adapter. The merged-weight SDK route instead uses the inference checkpoint ID.
After completion or interruption, check tg training ls-resources --created-by me --limit 5 and confirm the resource is stopped. The page documents stopping an active resource through the console or client.post_training.model_resources.stop with force=True, which also stops an attached session.
