This repository provides the NPU-only inference entry for the official model
HuggingFaceTB/SmolVLM-256M-Instruct.
The immutable source revision is
7e3e67edbbed1bf9888184d9df282b700a323964 under Apache-2.0.
Restore that revision at ./model. The single-run PyTorch path uses
model.safetensors (513,028,808 bytes, SHA-256
74dea5904032e5ae99a2e0eef5179e6ac0f1dedc3ab0c7c2a5d4d387c843203e).
The alternative ONNX and quantized exports are not required.
The back-half verification used Python 3.11, CANN 8.5.1, PyTorch 2.9.0 and
torch_npu 2.9.0.post1 on Ascend 910B3. Container PyTorch, torch_npu, and
CANN must not be replaced by requirements.txt.
git clone https://gitcode.com/hf_mirrors/HuggingFaceTB/SmolVLM-256M-Instruct.git model
git -C model checkout --detach 7e3e67edbbed1bf9888184d9df282b700a323964
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_path ./model --device npu:0 --seed 20260819 --output_json audit/npu_result.jsonThe program is offline-only and refuses CPU/CUDA fallback. It records the actual model, input and generated-output devices plus parameter and output counts. Under the current acceptance policy, real complete NPU computation and exit status 0 are the environment gate; numerical quality and finiteness are reported when applicable but are not blocking criteria. Private runtime logs and model weights remain outside the public repository.
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 队伍交付件(与备份账号合并提交)。