> ## Documentation Index
> Fetch the complete documentation index at: https://miles.radixark.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> These examples are runnable starting points for your own RL workflow.

A few are purely demonstrative, but most are verifiable against a concrete performance score.

## Recipes

End-to-end training workflows — the place to start.

* **[geo3k\_vlm](https://miles.radixark.com/docs/examples/geo3k-vlm.md)**: Training VLMs with FSDP using GRPO on the GEO3K dataset.
  * **[multi\_turn](https://miles.radixark.com/docs/examples/geo3k-vlm/multi-turn.md)**: The same dataset over multiple turns, with the model cropping images through an interactive environment.
* **[timelens\_video](https://miles.radixark.com/docs/examples/timelens-video.md)**: Video temporal-grounding RL for Qwen3.5 with token-space media and a frozen vision tower.
* **[avqa\_audio](https://miles.radixark.com/docs/examples/avqa-audio.md)**: AVQA audio RL for Inkling-Small with token-space audio and a LoRA on one node.
* **[lora](https://github.com/radixark/miles/tree/main/examples/lora)**: LoRA fine-tuning with the Megatron backend.
* **[multi\_lora](https://miles.radixark.com/docs/examples/multi-lora.md)**: Serve concurrent LoRA fine-tuning clients on one shared base model through the Tinker protocol.
  * **[harbor\_tinker](https://miles.radixark.com/docs/examples/multi-lora/harbor-tinker.md)**: Terminal-Bench 2 training with Harbor sandboxes and the official Tinker cookbook RL loop.
  * **[tinker\_agent](https://miles.radixark.com/docs/examples/multi-lora/tinker-agent.md)**: Agentic training with your own sandbox or harness through the official Tinker cookbook capture recipe.
* **[multi\_policy](https://miles.radixark.com/docs/examples/multi-policy.md)**: Two policies in one run — a solver answering gsm8k, and a verifier scored on ruling correctly about the solver's answers.
* **[on\_policy\_distillation](https://miles.radixark.com/docs/examples/on-policy-distillation.md)**: Teacher–student distillation on the student's own rollouts, run inside the on-policy training loop.
  * **[qwen3\_5\_35b\_selfdistill](https://miles.radixark.com/docs/examples/on-policy-distillation/qwen3-5-35b-selfdistill.md)**: Two-phase self-distillation of Qwen3.5-35B-A3B on one 8xH200 node, with an in-process Megatron teacher.
* **[ppo](https://miles.radixark.com/docs/examples/ppo.md)**: Actor-critic PPO with GAE advantages, where the critic shares the actor's train GPUs.
* **[retool\_v2](https://miles.radixark.com/docs/examples/retool-v2.md)**: Tool-enabled language model generation with sandboxed Python code execution interleaved with thinking.
* **[swe-agent-harbor-docker](https://miles.radixark.com/docs/examples/swe-agent-harbor-docker.md)**: Trains coding and terminal agents with Harbor-managed local Docker sandboxes and verifier rewards.
* **[text\_to\_sql](https://miles.radixark.com/docs/examples/text-to-sql.md)**: Multi-turn text-to-SQL RL on BIRD-Platinum with a read-only SQLite tool, following River's recipe on Qwen3.6-35B-A3B.

## [Infra Features](https://miles.radixark.com/docs/examples/infra-features.md)

Runtime and infrastructure plumbing rather than training recipes — how miles moves
data and weights around.

* **[fully\_async](https://miles.radixark.com/docs/examples/infra-features/fully-async.md)**: Demonstrates fully asynchronous rollout generation for higher efficiency.
* **[hot\_restart](https://miles.radixark.com/docs/examples/infra-features/hot-restart.md)**: Replaces the orchestration script and rollout executor of a live run, keeping trainers and engines up.
* **[low\_precision](https://miles.radixark.com/docs/examples/infra-features/low-precision.md)**: Examples of FP8 training and inference, plus INT4 QAT, for improved throughput and stability.
* **[p2p\_weight\_transfer](https://miles.radixark.com/docs/examples/infra-features/p2p-weight-transfer.md)**: Point-to-point weight transfer between training and rollout engines.
* **[random\_async](https://miles.radixark.com/docs/examples/infra-features/random-async.md)**: Dataset-free stress test of the async rollout ↔ trainer loop.
* **[score\_centering](https://miles.radixark.com/docs/examples/infra-features/score-centering.md)**: Center off-policy policy gradients using the sampler's top-k probabilities, with optional TIS or MIS weights.
* **[split\_deployment](https://miles.radixark.com/docs/examples/infra-features/split-deployment.md)**: Installs one run as several helm releases — trainer, engines and orchestration script apart.
* **[train\_infer\_mismatch\_helper](https://miles.radixark.com/docs/examples/infra-features/train-infer-mismatch-helper.md)**: Algorithmic methods for rollout correction (e.g., TIS, MIS).
* **[true\_on\_policy](https://miles.radixark.com/docs/examples/infra-features/true-on-policy.md)**: Ensures strictly equal log probabilities between inference (SGLang) and training engines.

## [Experimental](https://github.com/radixark/miles/tree/main/examples/experimental)

Not fully verified — for experimental and development use.

* **[agentenv](https://github.com/radixark/miles/tree/main/examples/experimental/agentenv)**: Rollouts against AgentENV, a self-hosted platform running agent sandboxes on Firecracker microVMs.
* **[DrGRPO](https://github.com/radixark/miles/tree/main/examples/experimental/DrGRPO)**: Custom reducer for Dr.GRPO algorithm.
* **[eval](https://github.com/radixark/miles/tree/main/examples/experimental/eval)**: Documentation and setup for evaluation environments using NeMo-Skills.
* **[eval\_multi\_task](https://github.com/radixark/miles/tree/main/examples/experimental/eval_multi_task)**: Example for supporting OOD evaluation tasks, e.g., GPQA, IFBench.
* **[formal\_math](https://github.com/radixark/miles/tree/main/examples/experimental/formal_math)**: Examples related to formal math reasoning tasks, including a single round demo.
* **[multi\_agent](https://github.com/radixark/miles/tree/main/examples/experimental/multi_agent)**: Example of running multi-agent RL with `miles`.
* **[nemo-gym](https://github.com/radixark/miles/tree/main/examples/experimental/nemo-gym)**: SWE-agent training with NVIDIA NeMo Gym as the environment ecosystem.
* **[openenv](https://github.com/radixark/miles/tree/main/examples/experimental/openenv)**: Rollouts against OpenEnv-hosted environments.
* **[reproducibility](https://github.com/radixark/miles/tree/main/examples/experimental/reproducibility)**: Guides on achieving bitwise experiment reproduction using deterministic modes.
* **[search-r1](https://github.com/radixark/miles/tree/main/examples/experimental/search-r1)**: A minimal reproduction of Search-R1, featuring multi-turn conversation and tool-calling.
* **[strands\_sglang](https://github.com/radixark/miles/tree/main/examples/experimental/strands_sglang)**: Integration example with the Strands-Agents scaffolding framework.
* **[swe-agent-harbor-daytona](https://github.com/radixark/miles/tree/main/examples/experimental/swe-agent-harbor-daytona)**: The `swe-agent-harbor-docker` pipeline with task sandboxes hosted on Daytona instead of local Docker.
* **[tau-bench](https://github.com/radixark/miles/tree/main/examples/experimental/tau-bench)**: Training in an agentic multi-turn tool use environment (Tau-bench).
* **[verifiers](https://github.com/radixark/miles/tree/main/examples/experimental/verifiers)**: Training on a Prime Intellect Verifiers environment instead of a Miles prompt dataset.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.