# LeRobot: diffusion training example

Official LeRobot python main example for diffusion training example. Inspect the pinned source and upstream setup before use.

ID: `lerobot-examples-tutorial-diffusion-diffusion-training-example-py`

Record version: `source-a7236674dd99cf1851bfe1dd7f179618e1f04689ec77a1019c59ca9026f3c283`

Hub commit: `3a81abb601c3b4b8fcb9a8bed5ca270e546f5f1a`

## Access

Fetch the pinned repository, verify this source checksum, and use upstream installation and invocation. This record does not install or execute code.

Hub preparation adapter: **false**. Runtime verification: **not_run**.

Upstream setup: https://github.com/huggingface/lerobot/blob/7e241bd630a3719a56157a497ce5d08f244784f1/README.md

## Source and license

- Repository: https://github.com/huggingface/lerobot
- Pinned source: https://github.com/huggingface/lerobot/blob/7e241bd630a3719a56157a497ce5d08f244784f1/examples/tutorial/diffusion/diffusion_training_example.py
- Revision: `7e241bd630a3719a56157a497ce5d08f244784f1`
- Path: `examples/tutorial/diffusion/diffusion_training_example.py`
- Source SHA256: `a7236674dd99cf1851bfe1dd7f179618e1f04689ec77a1019c59ca9026f3c283`
- Source bytes: 3613
- Original authors: See pinned upstream source and license notices.
- License: [Apache-2.0](https://github.com/huggingface/lerobot/blob/7e241bd630a3719a56157a497ce5d08f244784f1/LICENSE)
- License scope: Selected example source code only; preserve upstream copyright and per-file notices. Robot models, datasets, weights, simulator binaries and third-party dependencies retain their separate licenses.

License SHA256: `0583375a0ec642ec79c447781f34322b0cfa66baff31258214d040f1f6d86d7c`

## Requirements

```json
{
  "python": "Python version and optional extras from the pinned LeRobot pyproject.toml",
  "packages": [
    "LeRobot from the pinned v0.6.1 checkout",
    "Task-specific torch, camera, robot and policy extras listed upstream"
  ],
  "display": "Examples may move real robots, access serial ports/cameras, download datasets or checkpoints, and train policies. Configure calibration, device, model and dataset identifiers first.",
  "execution_domain": "training-or-hardware",
  "source_imports": [
    "lerobot.configs",
    "lerobot.datasets",
    "lerobot.policies",
    "lerobot.policies.diffusion",
    "lerobot.utils.feature_utils",
    "pathlib",
    "torch"
  ]
}
```

## Invocation

```json
{
  "entrypoint": "python examples/tutorial/diffusion/diffusion_training_example.py",
  "notes": "Examples may move real robots, access serial ports/cameras, download datasets or checkpoints, and train policies. Configure calibration, device, model and dataset identifiers first. No Hub preparation adapter or measured runtime success is claimed."
}
```

## Compatibility

```json
[]
```

Missing environment fields remain unknown. Source discovery labels do not establish robot compatibility.

## Evidence

Level: **source_reviewed**. Runtime verification: **not_run**.

Fetched and SHA-256 checked this immutable source; statically parsed Python or located native main; verified pinned license bytes and checked explicit per-file license identifiers. No upstream code executed.

Source review and contributor reports do not establish task completion. Preserve upstream attribution and licenses.
