2301_76761127/scaffdiff-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

ScaffDiff PointCloudVAE on Ascend NPU

This repository provides a compact Ascend NPU inference entry point for the official businesslion/scaffdiff release. It constructs the upstream multi-token Gaussian PointCloudVAE, strictly loads the complete vae_v3/best_point_vae.pth checkpoint, and executes the encoder, stochastic latent sampling, and five-block cross-attention decoder entirely on NPU.

Run

Keep the platform-provided torch and torch_npu packages and run:

git clone https://github.com/A-C-Simon/sonata_ws.git sonata_ws
git -C sonata_ws checkout --detach b20de9cf3b168b3f8d1f39967dd6ac61dbc9539f
git clone https://gitcode.com/hf_mirrors/businesslion/scaffdiff.git model
git -C model checkout --detach 2a0165a5b93259d5ced2f26b196298b36e55dbf0
git -C model lfs pull
python3 -m pip install --target ./pydeps -r requirements.txt
source /usr/local/Ascend/ascend-toolkit/set_env.sh
PYTHONPATH="$PWD/pydeps:$PYTHONPATH" python inference.py \
  --model-dir "$PWD/model" \
  --source-dir "$PWD/sonata_ws" \
  --device npu:0 \
  --output result.json

The source directory is the public A-C-Simon/sonata_ws checkout pinned above. The hosted rerun used CANN 8.5.1 with platform PyTorch 2.9.0 and torch_npu 2.9.0.post1. The result records all device-chain fields, input/output and latent shapes, output value count, finite/non-finite counts, and forward time. Non-NPU execution is rejected and no CPU or CUDA inference fallback is provided.

Verification evidence

The two workflow views are independent DS-V4-Flash plan-only conversations; the device views are two time points from one Python PID; and the result views are the complete result plus a distinct key-field summary.

Agent workflow A Agent workflow B NPU device T1 NPU device T2 Model result Model result summary

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