This repository contains a minimal, auditable Ascend NPU inference entry for
hmellor/tiny-random-LlamaForCausalLM. Model weights are loaded from a local
fixed-revision snapshot and are not redistributed here.
Use a Python environment that already provides matching platform builds of
PyTorch and torch_npu, then install the remaining packages:
python3 -m pip install --index-url https://pypi.org/simple --target ./pydeps -r requirements.txt
source /usr/local/Ascend/ascend-toolkit/set_env.sh
PYTHONPATH="$PWD/pydeps" python3 inference.py \
--model_path /path/to/fixed-revision/model \
--device npu:0 \
--output_json result.jsonThe script performs a real causal-language-model forward on the requested NPU. It rejects CPU and CUDA devices, verifies that the model, input, and output all remain on NPU, and records the input/output shape, element count, device chain, and observed NaN/Inf counts. Numerical quality is reported but is not used as a pass threshold.
The official hosted rerun passed with CANN 8.5.1, platform PyTorch 2.9.0,
and torch_npu 2.9.0. Keep that platform torch pair while rebuilding only the
listed non-platform packages into ./pydeps.
The explicit public PyPI index avoids an observed mirror lag for the published
ARM64 safetensors==0.8.0 wheel; no private wheelhouse is required.
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.


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