凤
weixin_44093752/videoflextok-d18-d28-ascend-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

VideoFlexTok d18/d28 Ascend NPU smoke adaptation

This delivery tracks the live EPFL-VILAB/videoflextok_d18_d28 checkpoint and the official Apple implementation:

  • model: https://huggingface.co/EPFL-VILAB/videoflextok_d18_d28
  • revision: b08f2d168ce208b54b15e55d427ca1fb5910168c
  • source: https://github.com/apple/ml-videoflextok
  • source revision: 4fd72ec0c0c8c05f879012cce285d5a14c81920f
  • weight: model.safetensors, 10,779,872,388 bytes
  • SHA-256: d54e409a198cf6364bd7d0a70503d29fd898ea5110b10a563ba087dc88a77ce2

The official model is vendored under vendor/videoflextok. On the current Ascend910/CANN image, upstream Triton compilation of FlexAttention exceeds the local-buffer limit, while upstream eager FlexAttention rejects NPU devices. inference.py therefore keeps the official model and applies a narrow compatibility shim: disable torch.compile and route FlexAttention to scaled_dot_product_attention.

The verified run loaded 2,694,937,197 parameters on npu:0, took 35.676291 s to load and 0.510061 s for forward, and produced finite token IDs [1,5,256]. The acceptance gate is a real finite-output NPU smoke on npu:0; it does not claim complete video reconstruction quality or CPU/NPU precision equivalence. Weights stay outside this repository under /tmp/model-agent.

python inference.py --model-path /tmp/model-agent/videoflextok_d18_d28 --device npu --output-dir validation

Model Agent CPU/NPU workflow

Ascend NPU device call

NPU smoke result