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

Nablaaa/ppo-Pyramids Ascend NPU adaptation

This repository adapts the official Nablaaa/ppo-Pyramids Unity ML-Agents PPO checkpoint for a direct PyTorch smoke run on Ascend NPU. The original model page is Nablaaa/ppo-Pyramids, and the upstream framework is Unity ML-Agents.

Source lock

  • Official revision: 51afdc57fa90b739589ca4b9082ac738191eb606
  • Pyramids.onnx: 1,420,238 bytes, SHA-256 49cc4162e6d328984d43ad977558f3fe9394583729d1ba107f8dd6457b35ca9f
  • Pyramids/checkpoint.pt: 8,655,778 bytes, SHA-256 c1576b480d685a59d9acc8f1026c7ad38bc477dcf363cc79dc62abde79f9bb09

The PyTorch checkpoint was loaded with the official Policy dictionary and a strict 12-key check. The reconstructed policy is 172 -> 512 -> 512 -> 5 with SiLU activations and a discrete five-action head. 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,172] -> [1,5], float32
  • Parameters: 353797; strict policy keys: 12
  • NPU forward: 0.048611861653625965 s
  • CPU/NPU cosine: 0.9999999999999886
  • Max absolute difference: 1.430511474609375e-06
  • Mean absolute difference: 5.46872615814209e-07
  • Deterministic action: 4 on both devices
  • torch_npu reported npu_available=true; all NPU outputs were finite

Run

Place the official checkpoint under model/Pyramids/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 logits artifacts under validation/.

Evidence

Agent workflow

NPU device call

Model result