This delivery tracks the live EPFL-VILAB/videoflextok_d18_d28 checkpoint and
the official Apple implementation:
b08f2d168ce208b54b15e55d427ca1fb5910168c4fd72ec0c0c8c05f879012cce285d5a14c81920fmodel.safetensors, 10,779,872,388 bytesd54e409a198cf6364bd7d0a70503d29fd898ea5110b10a563ba087dc88a77ce2The 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

