凤
weixin_44093752/trajectorycrafter-ascend-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

TrajectoryCrafter Ascend NPU adaptation

This delivery adapts the official TrajectoryCrafter/TrajectoryCrafter custom Diffusers transformer. The current Hugging Face revision is c175473b1972cb4728d45557c11af897adf7d056; the official source revision is b0699f31e5c276722843805da7e69a91c6febbec.

The two official safetensors shards total 11,292,571,024 bytes. Their Hugging Face resolve ETags and exact sizes are recorded in model-lock.json. The upstream model license is retained in LICENSE_MODEL; it includes the CogVideoX license and an additional commercial-use requirement, so this delivery does not relabel it as Apache or MIT.

NPU validation

inference.py loads the official CrossTransformer3DModel and runs its full 42-layer forward on npu:0 with a reduced legal tensor shape. This is a compatibility smoke only. It does not execute the complete video pipeline, DepthCrafter, captioner, base CogVideo model, video decoding, or accuracy and CPU/NPU precision comparisons.

PYTHONPATH=. python3 inference.py \
  --model-path /tmp/model-agent/trajectorycrafter \
  --device npu \
  --output-dir validation

The machine-readable results are in validation/npu.json and validation/precision.json.

Evidence

Agent workflow

NPU device call

Model result

Upstream references

  • Model: https://huggingface.co/TrajectoryCrafter/TrajectoryCrafter
  • Source: https://github.com/TrajectoryCrafter/TrajectoryCrafter
  • Paper: https://arxiv.org/abs/2503.05638