凤
weixin_44093752/Huggy
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

PaulVialard/ppo-Huggy Ascend NPU adaptation

This repository adapts the official PaulVialard/ppo-Huggy Unity ML-Agents PPO checkpoint for a direct PyTorch smoke run on Ascend NPU. The model card identifies the Huggy the Dog environment and the upstream Unity ML-Agents library.

Source lock

  • Official revision: 1fd517574882e4b765aa24a2b078d91fa1ab9072
  • Huggy.onnx: 2,274,020 bytes, SHA-256 d6f08bf1fc8865d22b4c005e24d7a8e12eed59b101b08510b2b36b30ff10c195
  • Huggy/checkpoint.pt: 13,509,218 bytes, SHA-256 e2921cc89be3c04ebcdb26a94c6ed28817d615f4da61e4cccea09f3dad5c4bf5

The official Policy dictionary was loaded with a strict 21-key check. The reconstructed continuous policy is 59 -> 512 -> 512 -> 512 -> 21 with SiLU activations and running-stat normalization from the official checkpoint. model-lock.json records the source hashes and architecture.

Real Ascend smoke result

The same deterministic input was executed on CPU and a real Ascend910 npu:0. This is an execution and finite-output smoke gate; it does not claim a full Unity environment reward or task-accuracy result.

  • Input/output: [1,59] -> [1,21], float32
  • Parameters: 566805; strict policy keys: 21
  • NPU forward: 0.044280209112912416 s
  • CPU/NPU action cosine: 0.9999999999999603
  • Action max absolute difference: 1.043081283569336e-06
  • Action mean absolute difference: 1.0359854925246466e-07
  • torch_npu reported npu_available=true; all NPU outputs were finite

Run

Place the official checkpoint under model/Huggy/checkpoint.pt, source the CANN environment, and run:

./run.sh

CPU smoke can be selected with DEVICE=cpu ./run.sh. The script writes JSON and action artifacts under validation/.

Evidence

Agent workflow

NPU device call

Model result