# Diffusion Policy: Configured policy training launcher

Pinned upstream Hydra training entrypoint that resolves a selected workspace configuration and invokes its operational training run. Statically reviewed source only; not run and no Hub preparation adapter.

ID: `diffusion-policy-train-py`

Record version: `source-4dc8d6e876db25a62bf6c647444d7ee88f6754cda992c75728419d47f26374e5`

Hub commit: `703369d7a095afb46da723634a9d983d2eda3054`

## Access

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

Optional inert file retrieval: `python /PATH_TO_SKILL/scripts/rsh.py fetch-source diffusion-policy-train-py --project ./experiment --expected-source-revision 5ba07ac6661db573af695b419a7947ecb704690f --expected-source-sha256 4dc8d6e876db25a62bf6c647444d7ee88f6754cda992c75728419d47f26374e5 --json`. This verifies one file, preserves provenance and never installs or runs it. See [source-file retrieval](https://hub.superfastrobotics.com/source-files.md).

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

Upstream setup: https://github.com/real-stanford/diffusion_policy/blob/5ba07ac6661db573af695b419a7947ecb704690f/README.md

## Source and license

- Repository: https://github.com/real-stanford/diffusion_policy
- Pinned source: https://github.com/real-stanford/diffusion_policy/blob/5ba07ac6661db573af695b419a7947ecb704690f/train.py
- Revision: `5ba07ac6661db573af695b419a7947ecb704690f`
- Path: `train.py`
- Source SHA256: `4dc8d6e876db25a62bf6c647444d7ee88f6754cda992c75728419d47f26374e5`
- Source bytes: 965
- Original authors: Cheng Chi, Siyuan Feng, Yilun Du, Zhenjia Xu, Eric Cousineau, Benjamin Burchfiel, Shuran Song
- License: [MIT](https://github.com/real-stanford/diffusion_policy/blob/5ba07ac6661db573af695b419a7947ecb704690f/LICENSE)
- License scope: Selected first-party Python workflow source only. Preserve upstream copyright and per-file notices. Model weights, datasets, third-party code, robot drivers/firmware and services retain separate terms; no rights for those assets are inferred.

License SHA256: `304e99a48271e10820f71a1b86ef395c06c100d7f68dd1d308790d1064fc4d41`

## Artifact

```json
{
  "kind": "workflow",
  "format": "python",
  "workflow_role": "policy-training"
}
```

## Requirements

```json
{
  "python": "Python 3.9 in upstream simulation/real conda declarations.",
  "packages": [
    "Pinned diffusion_policy checkout",
    "Workflow-specific conda environment with PyTorch1.12.1 and CUDA toolkit11.6",
    "Configured simulator or real-robot dependencies"
  ],
  "display": "Hardware: README benchmark-reproduction setup specifies Linux with an NVIDIA GPU. Exact device and memory depend on chosen workspace/data; macOS is documented for development only. Weights: Checkpoint initialization/resume behavior depends on the explicitly chosen workspace configuration; no blanket external pretrained-weight requirement is declared by this dispatcher. Datasets: Requires a selected demonstration dataset/task configuration; README's Push-T example downloads a separate training dataset. Services/auth: README's documented training path explicitly logs in to W&B. The dispatcher itself delegates logging to its chosen workspace; no particular API-key variable is named.",
  "execution_domain": "computation",
  "source_imports": [
    "diffusion_policy.workspace.base_workspace",
    "hydra",
    "omegaconf",
    "pathlib",
    "sys"
  ],
  "notes": "Included because README names it as the operational training entrypoint and it calls workspace.run, not as a config-only expansion. Source registers an eval resolver, so only reviewed upstream configurations could be considered for later manual execution. Code licensing does not establish model, checkpoint, dataset or service permission.",
  "declared_requirements": {
    "python": "Python 3.9 in upstream simulation/real conda declarations.",
    "weights": "Checkpoint initialization/resume behavior depends on the explicitly chosen workspace configuration; no blanket external pretrained-weight requirement is declared by this dispatcher.",
    "datasets": "Requires a selected demonstration dataset/task configuration; README's Push-T example downloads a separate training dataset.",
    "hardware": "README benchmark-reproduction setup specifies Linux with an NVIDIA GPU. Exact device and memory depend on chosen workspace/data; macOS is documented for development only.",
    "external_services_and_auth": "README's documented training path explicitly logs in to W&B. The dispatcher itself delegates logging to its chosen workspace; no particular API-key variable is named.",
    "evidence": [
      {
        "anchor": "OmegaConf.register_new_resolver(\"eval\", eval",
        "line": 18
      },
      {
        "anchor": "workspace.run()",
        "line": 32
      }
    ],
    "license_scopes": {
      "code": "MIT for selected first-party workflow source.",
      "weights": "README links separately downloadable trained checkpoints but the reviewed repository text does not separately establish their license. Do not extend first-party-code MIT to weights.",
      "datasets": "README links separate task demonstration datasets and dependencies such as robomimic. Individual dataset licenses were not reviewed; code MIT does not grant dataset rights.",
      "third_party_code": "External dependencies retain their own licenses."
    },
    "interpretation": "Pinned upstream declarations only; no dependency resolution, model/data access, compatibility inference or runtime validation was performed."
  }
}
```

## Invocation

```json
{
  "entrypoint": "python train.py --config-name=<reviewed-training-workspace>",
  "notes": "Included because README names it as the operational training entrypoint and it calls workspace.run, not as a config-only expansion. Source registers an eval resolver, so only reviewed upstream configurations could be considered for later manual execution."
}
```

## Compatibility

```json
[]
```

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

## Evidence

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

Verified exact source, applicable license and author/setup document bytes at a full Git commit; parsed the Python AST and reviewed this guarded operational entrypoint and its explicit license notices. No upstream code, installation, robot command, dataset, mesh or checkpoint was executed or loaded.

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