2301_76761127/ppo-seals-cartpole-v0-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

ppo-seals-CartPole-v0 on Ascend NPU

This repository provides a single NPU-only inference entry for the official HumanCompatibleAI/ppo-seals-CartPole-v0 policy at revision a86541dd3744275227cb16d07192967fc6b7775e.

Fresh preparation

Keep the platform-provided CANN, PyTorch, and torch_npu stack. From a fresh parent directory:

git clone https://gitcode.com/2301_78565107/ppo-seals-CartPole-v0.git repo
git clone --no-checkout https://gitcode.com/hf_mirrors/HumanCompatibleAI/ppo-seals-CartPole-v0.git model
git -C model checkout a86541dd3744275227cb16d07192967fc6b7775e
git -C model lfs pull
python3 -m pip install --target ./repo/pydeps -r ./repo/requirements.txt

The entry reads the official Stable-Baselines3 policy state and reconstructs its two 64-unit tanh MLP heads directly with PyTorch. It does not require Gym, Stable-Baselines3, or a CPU/CUDA execution fallback.

NPU run

cd repo
source /usr/local/Ascend/ascend-toolkit/set_env.sh
export TORCH_DEVICE_BACKEND_AUTOLOAD=0
PYTHONPATH="$PWD/pydeps" python3 inference.py --model_path ../model --device npu:0 --seed 20260819 --output_json result.json

The official hosted rerun passed with CANN 8.5.1, platform PyTorch 2.9.0, and torch_npu 2.9.0. requirements.txt is intentionally empty apart from the platform-stack note, so the preparation command performs no third-party download and must not replace the provided torch pair.

Success requires the model, input tensor, and both policy outputs to stay on the requested Ascend NPU through the forward. The JSON records the device chain, output shapes/counts, finite/non-finite counts, values, and exit status. Numerical accuracy and finite-value thresholds are not acceptance gates.

Official hosted evidence

The two device views show the same live inference PID at two different UTC timestamps. The two result views show the persisted full-device summary and the substantive policy outputs from that run. The two DS-V4-Flash workflow views come from independent plan-only conversations: the first covers the overall Ascend NPU migration design, while the second covers dependencies, code/operator risks, full-NPU validation, and troubleshooting. Neither conversation executes tools or changes the repository.

DS-V4-Flash overall Ascend NPU migration plan DS-V4-Flash dependency, operator, validation and troubleshooting plan NPU device call, first time point NPU device call, second time point Model result summary Model result values

本仓为 2301_76761127 队伍交付件(与备份账号合并提交)。