Model: lerobot/diffusion_pusht (Diffusion Policy for PushT) Revision: 84a7c23178445c6bbf7e1a884ff497017910f653 Route: demonstration-policy (Diffusion Policy) Backend: PyTorch + torch_npu (Ascend 910) Device: npu:0 (Ascend910_9362)
Diffusion Policy for vision-based pushing (PushT-v0). Maps observation history (image + proprio state) to denoised action chunk.
observation.image (3,96,96) RGB, observation.state (2,) agent position, history n_obs_steps=2horizon=16 with n_action_steps=8 executed, action_dim=2 (delta xy)| Component | Shape | Device | Dtype |
|---|---|---|---|
| observation.image | [1,3,96,96] | npu:0 | float32 |
| observation.state | [1,2] | npu:0 | float32 |
| noise (diffusion) | [1,16,2] | npu:0 | float32 |
| action chunk | [1,8,2] | npu:0 | float32 |
| final action | [1,2] | npu:0 | float32 |
All tensors verified on npu:0, no CPU fallback.
See logs: assets/npu_device_call.png (device proof), assets/model_result.png (consistency & perf), assets/agent_workflow.png (workflow)
Shared weights, same dummy observation, same noise seed 42, same DDPM steps (100), same dtype float32. Compared action chunk [1,8,2] and single action [1,2]. Threshold atol 1e-2 for demonstration-policy (diffusion sampling tolerance).
torch.npu.synchronize()pip install -r requirements.txt
python inference.pyassets/agent_workflow.png - workflow stepsassets/npu_device_call.png - NPU device proofassets/model_result.png - CPU-NPU consistency & perfApache-2.0 (original model), adaptation retains original license.