This repository provides a minimal NPU-only inference entrypoint for
yuvalkirstain/PickScore_v1. It loads fixed revision
a4e4367c6dfa7288a00c550414478f865b875800 and executes the complete CLIP text
and vision towers plus similarity scoring on an Ascend NPU.
The upstream model snapshot is not redistributed here.
The back-half run used CANN 8.5.1, PyTorch 2.9.0, and torch_npu
2.9.0.post1. Keep that platform stack unchanged and restore the exact public
model revision plus the isolated model-layer dependencies:
git clone https://gitcode.com/hf_mirrors/yuvalkirstain/PickScore_v1.git model
git -C model checkout --detach a4e4367c6dfa7288a00c550414478f865b875800
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:$PYTHONPATH" python inference.py \
--model-dir ./model --device npu:0 \
--samples 8 --output result.jsonThe script refuses non-NPU devices and records the model/input/output device chain, every output shape and count, finite/non-finite counts, timing, and exit status. There is no CPU/CUDA inference 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.

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