This repository provides deterministic, offline inference for lerobot/folding_latest, an Apache-2.0 PI05 vision-language-action policy for robotic folding. The official Stage 3 mirror and default model source is https://ai.gitcode.com/hf_mirrors/lerobot/folding_latest, pinned at source revision a53a72876215dd19b3bf63fb5f4d7aa56387cf2a. The policy consumes language plus three cameras and emits a 30-step, 16-dimensional action chunk.
The hosted Model Agent validation uses Ascend 910, CANN 8.5.1, Python 3.11.14, PyTorch 2.9.0 and torch_npu 2.9.0. These platform packages form one atomic compatibility set and must not be replaced individually.
From a fresh clone, place the pinned snapshot at the independent sibling path ../model. ../model/model.safetensors must be exactly 9,354,050,752 bytes. Inference is strictly local and offline; every runtime path is relative to the fresh checkout.
git clone --no-checkout https://gitcode.com/hf_mirrors/lerobot/folding_latest.git ../model
git -C ../model fetch --depth 1 origin a53a72876215dd19b3bf63fb5f4d7aa56387cf2a
GIT_LFS_SKIP_SMUDGE=1 git -C ../model checkout --detach a53a72876215dd19b3bf63fb5f4d7aa56387cf2a
git -C ../model lfs pull
test "$(git -C ../model rev-parse HEAD)" = "a53a72876215dd19b3bf63fb5f4d7aa56387cf2a"
python3 -m pip install --no-deps --target ../pydeps -r requirements.txtInventory CANN, PyTorch, torch_npu and torchvision before installing model packages. Install the locked model-owned packages into an independent sibling directory: python3 -m pip install --no-deps --target ../pydeps -r requirements.txt. The OpenPI Transformers replacement is fixed at commit dcddb970176382c0fcf4521b0c0e6fc15894dfe0; tokenizers==0.21.4 and huggingface-hub==0.36.0 are its compatible auxiliaries.
Two small, explicit inference adaptations are contained in the sole entry. First, LeRobot's training/dataset/robot-I/O imports are bypassed with in-memory inference-only package shims; the official PI05 model definition remains in use. Second, the PI05 sinusoidal time embedding uses FP32 instead of unsupported FP64 on Ascend NPU. PI05 also requires LeRobot's official OpenPI Transformers replacement pinned at commit dcddb970176382c0fcf4521b0c0e6fc15894dfe0, declared in requirements.txt; the entry uses its real AdaRMS and PaliGemma implementation and does not bypass the compatibility check. The 9.35 GB bfloat16 checkpoint is strict assign-loaded before moving to NPU.
source /usr/local/Ascend/cann-8.5.1/set_env.sh
export PYTHONNOUSERSITE=1
export PYTHONPATH="$(pwd)/../pydeps${PYTHONPATH:+:$PYTHONPATH}"
EVIDENCE_HOLD_SECONDS=90 python3 inference.py --model_path ../model --device npu:1 --seed 42 --sample_count 8 --output_json audit/hosted-npu/npu_result.jsonDefaults are ../model, npu:0, seed 42, eight deterministic fixtures and audit/hosted-npu/npu_result.json. Controlled validation exposes --model_path, --device, --seed, --sample_count (8-10) and --output_json. Missing NPU, unsupported devices, non-finite output or an incomplete sample set fails closed; there is no CPU or CUDA fallback. EVIDENCE_HOLD_SECONDS keeps the successful process alive for concurrent npu-smi capture; use 0 outside evidence collection.
After placing the local material, run the command above; the expected exit code is 0. Each fixture generates fixed language tokens, three compact camera images and diffusion noise. Official PI05 preprocessing expands images to 224 x 224. A successful NPU result records the actual device for model/input/output tensors, NPU name and all 3,840 action values (8 x 30 x 16); concurrent HBM/process evidence is shown by the hosted device screenshots.
accuracy/README.md defines the eight-fixture protocol. The acceptance entry requires the full action chunks on the requested NPU and rejects device, completeness and finite-value failures. The public result and device screenshots retain the execution summary and live-process evidence.



The images are populated only after the immutable candidate runs successfully in the Model Agent NPU environment. They supplement and do not replace execution evidence.
Deterministic synthetic fixtures prove checkpoint execution and CPU/NPU consistency; they are not a substitute for physical-robot folding success evaluation. Weights, acquisition scripts, complete fixtures, raw logs and full output remain outside this public repository.
本仓为 2301_76761127 队伍交付件(与备份账号合并提交)。