MidoriChou/ai_final_12_act_2 (https://huggingface.co/MidoriChou/ai_final_12_act_2)92654eb0e3f9ee4329d54a599165aeb12512e92fact (Action Chunking with Transformers) via lerobot ACTPolicydemonstration-policy (LeRobot policy predicting continuous action chunks)observation.state: STATE, shape (9,) - 9-DoF robot proprioceptionobservation.images.wrist: VISUAL, shape (3, 480, 640) - wrist camera RGBobservation.images.front: VISUAL, shape (3, 480, 640) - front camera RGBn_obs_steps: 1 (single timestep observation)action: ACTION, shape (8,) per step, chunk_size=100, n_action_steps=100npu:0 Ascend910_9362 (2 devices available, using 0)torch 2.9.0 + torch_npu + lerobot 0.4.4ACTPolicy.from_pretrained("/tmp/MidoriChou_ai_final_12_act_2") then .to(torch.device("npu:0")) - no code rewrite, no CPU fallback, all params/images/actions on NPUtorch.npu.synchronize() before/after each timed forward for accurate latencypredict_action_chunk(batch) with deterministic zero latent (eval mode, use_vae=True but training=False => latent zeros, no sampling randomness)[2.706, -1.127, 1.122, -0.928, -0.434, -0.628, 0.777, -0.630] (validation batch seed 42, mean 0.106)policy param device: npu:0, input state device: npu:0, output device: npu:0 - see assets/npu_device_call.pngcpu) and NPU (npu:0), compare flattened 800 values (100*8)atol=1e-4, rtol=1e-3 => tolerance 2.918e-03max_abs=1.35e-03, max_ref=2.818, finite=True, count=800 => PASS (within tolerance)python scripts/validate_policy_outputs.py --cpu cpu.json --npu npu.json => {"passed": true}torch.npu.synchronize() bounded
avg_ms: 23.42, min: 22.78, max: 23.85, p50: 23.49, p90: 23.79, p95: 23.85actions_per_s: 4269, chunks_per_s: 42.7 (100 actions per chunk, batch 1)python scripts/benchmark_policy.py --latencies-ms latencies.json --items-per-call 100 --unit actions => avg 23.42mspip install -r requirements.txt
python inference.py # auto-selects npu:0 if available, else cpuExpected output: model/revision/route/backend/device/dtype, input summary, synchronized latencies, action chunk summary, PASS/FAIL.
assets/agent_workflow.pngnpu-smi, torch.npu.is_available, param/input/output device): assets/npu_device_call.pngpython inference.py on NPU): assets/model_result.pngAll three PNGs rendered from real UTF-8 logs via xterm.js with SHA256 verification.