Learning resourcesReviewed · Together AI

Together AI: Run DPO recipes

Together AI's DPO recipe guide is a tutorial for developers tuning language models with preferred and rejected answers, but it requires training resources whose cost is not stated. It covers HelpSteer3 and custom preference datasets through the post-training cookbook, including validation, thinking settings and checkpoint limitations.

Researched 15 Nov 2026

In short.

Together AI's DPO recipe guide is a practical tutorial for developers training language models from preference pairs, but it does not establish training cost or resulting model quality. Its DPOConfig example uses Qwen3.8 27B and HelpSteer3, with support for custom data conversion and held-out validation. Important constraints include disabling thinking for the demonstrated model and data combination, using the SDK to attach to existing resources, and checkpoint resume that restarts the learning-rate schedule and data order while changing the reference policy. The examples were not executed.

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/dpo-recipes.md], including requirements, examples, configuration notes, custom datasets, checkpoint resume, troubleshooting, next-step pointers, the documentation-index notice and the Mintlify hosting footer. Linked documentation, repository code, model artifacts and dataset contents are excluded. No examples or training were executed; operational behavior, outcomes and total cost are not assessed.

The overview

Identity

Run DPO recipes is Together AI documentation for using its post-training cookbook to perform direct preference optimization, or DPO. The selected resource is the complete page at [https://docs.together.ai/docs/post-training/dpo-recipes.md].

The page teaches a specific training workflow using DPOConfig and train from post_training_cookbook.dpo. It includes a HelpSteer3 recipe and instructions for adapting other preference datasets.

Assessment

The guide offers a concrete starting point when developers already have preferred and rejected responses and want to configure a DPO training run. Its useful detail includes dataset conversion, validation defaults, resource lifecycle behavior and unusually consequential checkpoint caveats.

It does not demonstrate that the example improves model quality. No training logs, benchmark results, runtime measurements or completed-run evidence appear on the page, so practical success and quality gains are not assessed.

Who it is for

The Python configuration and dataset-mapping examples make this most useful to developers and machine-learning practitioners comfortable editing scripts and preparing training data. Beginners get a specific command and example settings, but the page assumes access to the cookbook and a supported model.

Teams with their own preference pairs can adapt the recipe through a conversion function. Readers who want to warm up a model on demonstrations before preference training can follow the page's pointer to the SFT recipes at [https://docs.together.ai/docs/post-training/sft-recipes.md].

Capabilities

The documented train function handles dataset loading, the reference-policy snapshot, training, validation and checkpoints. Dataset selection uses dataset_name, dataset_config and dataset_split, which are passed to the Hugging Face datasets loader.

Custom schemas are supported through a to_pair function returning chosen and rejected message lists, or None to skip a row. Configuration also exposes preference-loss settings, learning rate, sequence length, batch sizes and validation frequency.

Using it

Requirements

The stated requirements are a cookbook checkout, a supported model and a preference dataset unless using HelpSteer3. Each preference example needs a prompt and two responses with one preferred over the other. DPO does not require generator support.

The example command uses uv and Python. Exact interpreter and dependency versions, authentication setup, account eligibility and hardware requirements are not specified here. The supported-model list and cookbook checkout instructions are linked pages outside this resource's scope.

How it works

The recipe trains from response preferences while using a snapshot of a reference policy as a comparison baseline. The guide describes beta as the temperature on the implicit reward and says higher values keep the policy closer to the reference. Optional label_smoothing gives weight to the reversed preference; it is off by default.

The default learning rate is 5e-6 and follows cosine decay. The documented lifecycle provisions one trainer-only model resource and one session, then stops both when train returns. Behavior during failures or interrupted execution is not established.

Setup

From a cookbook checkout, configure DPOConfig and run uv run python recipes/dpo/helpsteer3.py. The example sets enable_thinking=False because HelpSteer3 pairs contain no reasoning and the demonstrated Qwen3.8 27B model requires thinking to be disabled for those pairs. Enabling it causes ValueError before resource provisioning.

For another model, check its chat-template behavior before choosing the thinking setting. For custom data, supply the appropriate to_pair mapping and configure a held-out validation split. Validation defaults to the dataset's validation split; val_interval=0 disables it when necessary.

Documented example

The supplied configuration uses model='Qwen/Qwen3.8-27B', enable_thinking=False, dataset_name='nvidia/HelpSteer3', dataset_split='train', dataset_subsample=1600, batch_size=8, learning_rate=5e-6, beta=0.1, max_length=4096, max_steps=200 and precompute_ref_batch_size=512.

For a dataset with prompt, chosen and rejected text columns, the custom mapping builds a user message from prompt and appends the corresponding assistant response to each branch. The default HelpSteer3 mapper instead uses overall_preference to choose the preferred response and skips ties. These are documented examples, not executed results.

Assessment & evidence

Limitations

Checkpoint resume restores the adapter and optimizer through resume_from_checkpoint_id, but restarts the learning-rate schedule and data order from step zero. It also takes the reference-policy snapshot from the restored weights, making the checkpoint the new reference. DPOConfig has no resume_run_dir field.

DPOConfig also has no model_resources_id field; attaching to an existing resource requires the linked SDK route. The run fails before provisioning with Nothing to train when every row is skipped, either because to_pair returned None for it or because truncating to max_length left one side of its pair with no response tokens; the log reports how many rows were skipped for each reason. The guide recommends reducing precompute_ref_batch_size, batch_size or max_length for memory problems.

Validation on training pairs inflates val/preference_accuracy. Disabling validation avoids a missing-split problem but leaves that validation measurement unavailable.

Practical trade-offs

The documented configuration suggests a useful balance between automation and control: the recipe manages training infrastructure and reference handling while exposing dataset conversion and important optimization settings.

Its resume behavior means a restored run should not be assumed equivalent to an uninterrupted run. Likewise, preference accuracy measured on training data cannot provide the same evidence as evaluation on held-out pairs. These implications follow from the documented behavior; no measured comparison is supplied.

Related approaches

The page points to SFT recipes for training on demonstrations before preference optimization [https://docs.together.ai/docs/post-training/sft-recipes.md]. This is presented as preparation for DPO rather than evidence that either approach performs better.

For training on a resource that is already running, it points to SDK attachment instructions [https://docs.together.ai/docs/post-training/model-resources.md#attach-to-an-existing-resource]. Those linked instructions are outside scope. The page provides no comparison with other DPO implementations or providers.

Evidence and confidence

The evidence is the complete Together AI documentation page at [https://docs.together.ai/docs/post-training/dpo-recipes.md]. It supports the reported configuration values, dataset-mapping rules, lifecycle description, validation cautions and resume semantics.

No commands or training were executed. Actual resource provisioning, cleanup, compatibility, memory use, model quality and checkpoint behavior remain UNVERIFIED in practice. The page supplies instructions rather than observed results.

Access & freshness

Costs

Training cost is unknown. The page gives no prices, billing units, runtime estimates or total-cost examples, despite documenting automatic provisioning of a model resource and session.

It links to deployment on dedicated inference, but establishes no deployment or serving costs. Stopping resources when train returns does not establish what a run will cost.

Rights and licensing

The page states no license for the documentation or included code examples. It also does not establish the applicable terms for the cookbook, Qwen model, HelpSteer3 dataset or resulting trained checkpoints.

Permissions for reuse, redistribution and commercial use therefore remain unknown from this page alone. The Mintlify hosting attribution does not supply those permissions.

Freshness

The supplied page was captured on 15 November 2026 at 15:22:39 UTC. It contains no publication date, last-updated date, cookbook commit or pinned dependency versions.

The model identifier and API behavior are reported as documented in that snapshot. Current model availability, compatibility with other cookbook revisions and subsequent changes are unknown.

Before using the recipe

Confirm support for the intended model and its thinking settings, prepare correctly mapped preference pairs, and choose a separate validation split. Establish resource pricing and applicable model, dataset and code terms before committing to training.

Decide whether to provision a new resource through the recipe or attach through the SDK. When continuing from a checkpoint, account for the changed reference policy and restarted schedule and data order. Check skipped-row logs and retained response tokens if the recipe reports Nothing to train.

Evidence for this report

selected-page.txtselected · checked 2026-11-15