This repository contains an Ascend NPU-only validation entry point for the published HaS-820m Bloom checkpoint. It loads the complete causal language model, creates token and attention tensors directly on npu:0, and executes a real language-model forward.
git clone https://gitcode.com/2301_78565107/HaS-820m.git repo
git clone --no-checkout https://ai.gitcode.com/hf_mirrors/SecurityXuanwuLab/HaS-820m.git model
git -C model checkout 1625dd472fd64b99daadaf4dd7ae1183c2ecaf95
git -C model lfs pull
python3 -m pip install --target ./repo/pydeps -r ./repo/requirements.txt
cd repo
source /usr/local/Ascend/ascend-toolkit/set_env.sh
export TORCH_DEVICE_BACKEND_AUTOLOAD=0
PYTHONPATH="$PWD/pydeps" python3 inference.py \
--model ../model \
--output ./npu-result.jsonThe official hosted rerun passed with CANN 8.5.1, platform PyTorch 2.9.0 and
torch_npu 2.9.0. An empty-target rebuild of the five pinned model-layer
dependencies passed without replacing that platform pair. The fixed public
model revision and requirements.txt form the full recovery contract; no
private AUX is required.
The result records the requested, model, input, and output devices together with auditable shapes, element count, and observed NaN/Inf counts.
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 队伍交付件(与备份账号合并提交)。