> ## 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](/docs/examples/geo3k-vlm)**: Training VLMs with FSDP using GRPO on the GEO3K dataset.
  * **[multi\_turn](/docs/examples/geo3k-vlm/multi-turn)**: The same dataset over multiple turns, with the model cropping images through an interactive environment.
* **[lora](https://github.com/radixark/miles/tree/main/examples/lora)**: LoRA fine-tuning with the Megatron backend.
* **[multi\_lora](/docs/examples/multi-lora)**: Fully-async multi-adapter LoRA training with a slot-keyed adapter page table.
* **[on\_policy\_distillation](/docs/examples/on-policy-distillation)**: Teacher–student distillation on the student's own rollouts, run inside the on-policy training loop.
  * **[qwen3\_5\_35b\_selfdistill](/docs/examples/on-policy-distillation/qwen3-5-35b-selfdistill)**: Two-phase self-distillation of Qwen3.5-35B-A3B on one 8xH200 node, with an in-process Megatron teacher.
* **[ppo](/docs/examples/ppo)**: Actor-critic PPO with GAE advantages, where the critic shares the actor's train GPUs.
* **[retool\_v2](/docs/examples/retool-v2)**: Tool-enabled language model generation with sandboxed Python code execution interleaved with thinking.
* **[swe-agent-harbor-docker](/docs/examples/swe-agent-harbor-docker)**: Trains coding and terminal agents with Harbor-managed local Docker sandboxes and verifier rewards.

## [Infra Features](/docs/examples/infra-features)

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

* **[fully\_async](/docs/examples/infra-features/fully-async)**: Demonstrates fully asynchronous rollout generation for higher efficiency.
* **[low\_precision](/docs/examples/infra-features/low-precision)**: Examples of FP8 training and inference, plus INT4 QAT, for improved throughput and stability.
* **[p2p\_weight\_transfer](/docs/examples/infra-features/p2p-weight-transfer)**: Point-to-point weight transfer between training and rollout engines.
* **[random\_async](/docs/examples/infra-features/random-async)**: Dataset-free stress test of the async rollout ↔ trainer loop.
* **[train\_infer\_mismatch\_helper](/docs/examples/infra-features/train-infer-mismatch-helper)**: Algorithmic methods for rollout correction (e.g., TIS, MIS).
* **[true\_on\_policy](/docs/examples/infra-features/true-on-policy)**: 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.
