This repository provides a minimal NPU-only inference entrypoint for the
DreamShaper 7 denoising UNet from Lykon/dreamshaper-7, fixed at revision
9b481047f77996efa025e75e03941dbf51f506ad.
The upstream weights are not redistributed here.
The back-half verification used CANN 8.5.1, PyTorch 2.9.0, and
torch_npu 2.9.0.post1. Keep that platform stack unchanged. Restore the exact
official GitCode model revision and the isolated model-layer dependencies:
git clone https://gitcode.com/hf_mirrors/Lykon/dreamshaper-7.git model
git -C model checkout --detach 9b481047f77996efa025e75e03941dbf51f506ad
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" python inference.py \
--model-dir ./model --device npu:0 \
--samples 2 --output result.jsonThe script loads the complete official UNet, runs its full conditional denoising forward pass on Ascend NPU, and records the device chain, shapes/counts, finite/non-finite counts, timing, and exit status. Attention is implemented with ordinary NPU operations and has no CPU/CUDA bridge or fallback.
The two DS-V4-Flash workflow views are independent plan-only conversations: an overall Ascend NPU migration design and a separate dependency, operator, full-NPU validation, and troubleshooting plan. They do not execute tools or modify repository files.


The device views show the same Python PID at two distinct times. The result views show complete and concise views of the same successful real-NPU run.




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