Repository navigation
TeleFuser FP4 with LTX-Video-2B Support on Blackwell - #57
Merged
Merged
Conversation
Uxito-Ada
marked this pull request as draft
November 24, 2026 01:38
Uxito-Ada
force-pushed
the
pan2-nvfp4
branch
from
November 25, 2026 08:46
6acbb8e to
605a546
Compare
Uxito-Ada
marked this pull request as ready for review
November 26, 2026 02:19
Uxito-Ada
force-pushed
the
pan2-nvfp4
branch
from
November 26, 2026 06:09
5ed144d to
fb04d18
Compare
Uxito-Ada
marked this pull request as draft
December 1, 2026 06:12
Uxito-Ada
marked this pull request as ready for review
December 2, 2026 05:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LTXVideo2BPipeline(BasePipeline)andLTXVideo2BGenerationStage(BaseStage).telefuser.opswith the repositorytf-kernelBlackwell FP4 quantization and packed-weight ABI, plus a Blackwell-native scaled-MM fast path.qualityprofile; packed FP4 weights stay resident on GPU.Workload
Official Diffusers LTX prompt and negative prompt, 768x512, 161 frames, 24 FPS, 50 steps, seed 123, CFG 3.0,
decode_timestep=0.03,decode_noise_scale=0.025. Hardware: RTX 5090 Laptop GPU, 24 GiB, SM120; PyTorch 2.14.0+cu132; CUDA 13.2. The repository tf-kernel wheel was built withENABLE_NVFP4andsm_120a.RTX 5090 Results
TeleFuser FP4 is 19.3% faster than BF16 end to end (1.238x) and 2.1% faster than TorchAO FP4 on this run. The initial gap came from the older tf-kernel SM120 CUTLASS dispatch; the fixed path uses the Blackwell-native scaled-MM kernel with tf-kernel packed operands and retains tf-kernel as fallback. All paths remain far from realtime at 24 FPS.
FP4 Quality
The comparison uses the aligned BF16 video as the full-reference baseline:
Both FP4 videos use exactly the same prompt, negative prompt, seed, sampler, geometry, frame count, and frame rate:
ltx-native-tfkernel-bf16.mp4
ltx_fp4_torchao.mp4
ltx-nvfp4.2.mp4
Native FP4 Audit
TeleFuser FP4 does not dequantize weights to BF16 or FP32 before GEMM. Weights and activations are packed as NVFP4 plus E4M3 block scales by tf-kernel, then passed as native FP4 operands to Blackwell scaled-MM; the result is accumulated internally and written as BF16 for the remaining BF16 layers. The tf-kernel CUTLASS path remains the fallback for unsupported shapes or runtimes. TorchAO likewise dispatches native FP4 operands. There is no removable full-matrix FP4-to-BF16/FP32 dequant stage in either path.
Usage
Build
tf-kernelwithmake build-sm100 PYTHON=/path/to/python; the build must reportENABLE FP4 OPERATORS. The complete CLI example isexamples/ltx_video_2b/ltx_video_2b_t2v_nvfp4_5090.py.Validation
pytest: focused pipeline/operator/quality tests passed, including activation-quantization cache coverage.