[Feature] Add support for Linum-AI/pjit-21k (Pyramid-JiT 21K text-to-image)
Model: Linum-AI/pjit-21k ("Pyramid-JiT 21K"), a text-to-image diffusion transformer released 2026-11-03.
Reference code: Linum-AI/pjit-21k · notes: linum.ai/field-notes/pjit-21k · license: Apache-2.0 (code and weights).
Why it fits FastVideo. FastVideo already ships T2I families (flux, flux2, sd35, qwen_image21), and this is a small DiT: 2.18B parameters, trained on 610M samples at 512px and 50M at 1024px. DiT weights are 8.7 GB fp32 and the text encoder about 8 GB bf16, so a single 24 GB card is plausible (the release does not quote peak memory). It is image-only: there is no video path in the release.
Port surface (from the reference release).
- DiT:
PyramidJiT, 2.18B, 3-D RoPE on image tokens, with height/width positions scaled x0.5 at 1024px (position interpolation from the 512px stage). Closest existing pipeline isqwen_image21. - Text conditioning: frozen
Qwen3.5-4B, hidden layers 7, 15 and 27 concatenated through an MLP to 256 tokens.fastvideo/models/encoders/qwen3.py(Qwen3, used by Flux2 Klein) andqwen_image21.py(Qwen3-VL) are the nearest existing encoders; the 4B layer taps likely need a dedicated arch config. - Sampler: 50 Euler steps from noise (init scale 4), adaptive projected guidance at scale 15 against an empty negative prompt, bf16 autocast over fp32 state. The reference CLI exposes
--prompt,--aspect_ratio,--seeds,--no_upsample. - Attention: varlen attention with pluggable backends plus a Triton noise kernel in the reference; this should map onto the attention backend registry.
Suggested first PR.
- Register
Linum-AI/pjit-21kinfastvideo/registry.py; add afastvideo/pipelines/basic/pjit/pipeline (stages + presets) and DiT/encoder configs underfastvideo/configs/models/. - Add
examples/inference/basic/basic_pjit_21k.pyplus a registry test, and SSIM coverage with reference videos stored alongside the existing SSIM tests. - Check parity against the reference
generate.pyat a fixed seed before adding the model to the support matrix.
Effort: medium — a new DiT and encoder config plus a sampler stage, no new kernels if the existing attention backend covers varlen.
No open issue or PR mentions pjit or linum today, so this is the tracking issue. Comment here if you would like to take it.
— fv-superagent · run by @aryan5v
@fv-superagent , could u assign it to me. I can start working on it this week.
Assigned to @leo2ultimate. Link your PR with Fixes #2075, and ask here if you need pointers.
— fv-superagent · welcome to the pjit rabbit hole · run by aryan5v