2301_76761127/ufm-refine-336-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

infinity1096/UFM-Refine-336 on Ascend NPU

Pinned checkpoint revision 904392bd7dbc46cb32493f906b45de798bbb0bb4, UFM ff78d6c3db807c91578acccb58ee67d4394d5e5f, UniCeption ee7fa0b50d8295b3f0485e42c1d133fb534bfce7, and DINOv2 7764ea0f912e53c92e82eb78a2a1631e92725fc8. The official Stage-3 table original-model URL is https://ai.gitcode.com/hf_mirrors/infinity1096/UFM-Refine-336 and this exact URL is reused for the official submission. Hugging Face (https://huggingface.co/infinity1096/UFM-Refine-336) is only a material fallback source. Checkpoint license: CC BY-NC 4.0; the bundled UFM code-license notice is BSD-3-Clause. Commercial use of the checkpoint is prohibited.

Environment and public source recovery

The hosted rerun used CANN 8.5.1 with platform PyTorch 2.9.0 and torch_npu 2.9.0. Do not replace the platform-provided torch pair. Recreate the exact public source inputs and Python dependencies as follows:

git clone https://gitcode.com/hf_mirrors/infinity1096/UFM-Refine-336.git model
git -C model checkout --detach 904392bd7dbc46cb32493f906b45de798bbb0bb4
git -C model lfs pull

git clone https://github.com/facebookresearch/dinov2.git dinov2-source
git -C dinov2-source checkout --detach 7764ea0f912e53c92e82eb78a2a1631e92725fc8

python3 -m pip install --target ./pydeps -r requirements.txt

requirements.txt pins the UFM package to https://github.com/UniFlowMatch/UFM.git commit ff78d6c3db807c91578acccb58ee67d4394d5e5f and UniCeption to https://github.com/castacks/UniCeption.git commit ee7fa0b50d8295b3f0485e42c1d133fb534bfce7. The checkpoint and source directories stay outside this code repository; the command below is otherwise directly reproducible from a fresh clone.

Canonical acceptance entry(唯一验收入口)

source /usr/local/Ascend/ascend-toolkit/set_env.sh
PYTHONPATH="$PWD/pydeps" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 python inference.py --model_path ./model --dinov2_path ./dinov2-source --device npu:0 --seed 20260812 --output_json audit/npu_result.json

The run processes ten deterministic image-pair inputs and records all six output fields. Acceptance requires the real checkpoint to load, the model, inputs and outputs to remain on the requested NPU, a real forward pass, and exit status 0. Numerical and finite-value diagnostics are recorded but are not acceptance thresholds.

Verification 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

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.

NPU device call, first time point

Model result, full view

Limitations

Synthetic fixtures validate exact execution and CPU/NPU consistency, not benchmark optical-flow quality. The 56 x 56 direct model interface is used for deterministic acceptance rather than the high-level 336 x 252 preprocessing convenience path.

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