2301_76761127/has-820m-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

HaS-820m Ascend NPU inference

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.

Run

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.json

The 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.

Official hosted evidence

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.

DS-V4-Flash overall Ascend NPU migration plan DS-V4-Flash dependency, operator, validation and troubleshooting plan

NPU device call, first time point NPU device call, second time point Model result summary Model result details

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