Text-to-Video
Diffusers
LTX2VideoPipeline
custom_ltx2
video-generation
image-to-video
audio-to-video
audio-video-generation
quantized
4-bit precision
int4
svdquant
ltx-2
ltx-2.5
quantfunc
comfyui
Instructions to use QuantFunc/LTX-2.5-QuantFunc-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use QuantFunc/LTX-2.5-QuantFunc-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("QuantFunc/LTX-2.5-QuantFunc-4bit", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update LTX-2.5 model card with 4 vertical showcase demos, SM75-SM120 GPU support, and Python SDK
Browse files- README.md +54 -42
- assets/ltx25_case4.mp4 +2 -2
- assets/ltx25_case4.webp +2 -2
README.md
CHANGED
|
@@ -25,34 +25,34 @@ tags:
|
|
| 25 |
|
| 26 |
<div align="center" style="margin-top: 50px;">
|
| 27 |
<a href="https://github.com/QuantFunc/ComfyUI-QuantFunc">
|
| 28 |
-
<img src="https://raw.githubusercontent.com/QuantFunc/ComfyUI-QuantFunc/main/assets/logo.webp" width="300" alt="QuantFunc
|
| 29 |
</a>
|
| 30 |
</div>
|
| 31 |
|
| 32 |
<p align="center">
|
| 33 |
-
๐ <a href="https://www.quantfunc.com/">
|
| 34 |
๐ <a href="https://github.com/QuantFunc/ComfyUI-QuantFunc">ComfyUI-QuantFunc</a> |
|
| 35 |
๐ <a href="https://github.com/QuantFunc/Quantfunc-Python-SDK">Python SDK</a> |
|
| 36 |
๐ค <a href="https://huggingface.co/QuantFunc">Hugging Face</a> |
|
| 37 |
๐ค <a href="https://www.modelscope.cn/profile/QuantFunc">ModelScope</a> |
|
| 38 |
-
|
| 39 |
๐ฎ <a href="https://discord.gg/jCp9TpFWcn">Discord</a>
|
| 40 |
</p>
|
| 41 |
|
| 42 |
# LTX-2.5-QuantFunc-4bit
|
| 43 |
|
| 44 |
-
**4-bit
|
| 45 |
|
| 46 |
-
QuantFunc INT4 compresses
|
| 47 |
|
| 48 |
## Showcase
|
| 49 |
|
| 50 |
-
All
|
| 51 |
|
| 52 |
<table>
|
| 53 |
<tr>
|
| 54 |
-
<th>Arctic Aurora
|
| 55 |
-
<th>Cathedral Cello
|
| 56 |
</tr>
|
| 57 |
<tr>
|
| 58 |
<td>
|
|
@@ -67,8 +67,8 @@ All vertical clips below were generated by `LTX-2.5-QuantFunc-4bit` (`896 ร 115
|
|
| 67 |
</td>
|
| 68 |
</tr>
|
| 69 |
<tr>
|
| 70 |
-
<th>Volcanic Lava
|
| 71 |
-
<th>
|
| 72 |
</tr>
|
| 73 |
<tr>
|
| 74 |
<td>
|
|
@@ -84,58 +84,70 @@ All vertical clips below were generated by `LTX-2.5-QuantFunc-4bit` (`896 ร 115
|
|
| 84 |
</tr>
|
| 85 |
</table>
|
| 86 |
|
| 87 |
-
> Poster frames are
|
| 88 |
|
| 89 |
## Why pure 4-bit holds up
|
| 90 |
|
| 91 |
-
Compressing a 22B joint video+audio DiT to **4-bit activations ร 4-bit weights (
|
| 92 |
|
| 93 |
-
1. **Enhanced low-rank outlier absorption**
|
| 94 |
-
2. **Composite residual smoothing**
|
| 95 |
|
| 96 |
-
##
|
| 97 |
|
| 98 |
-
|
|
|
|
|
|
|
| 99 |
|
| 100 |
-
|
| 101 |
|
| 102 |
-
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|---|---|---:|---|
|
| 106 |
-
| `ltx-2.5-22b-distilled-quantfunc-int4-r128.safetensors` | INT4 weights / INT4 activations (SVDQuant, rank-128) | 15.79 GB (~14.71 GiB) | NVIDIA SM75 / SM86 / SM89 / SM120 (RTX 20/30/40/50, T4, A10/A40, L4/L40, RTX 6000 Ada / PRO 6000 Blackwell) |
|
| 107 |
|
| 108 |
-
|
| 109 |
|
| 110 |
-
|
| 111 |
-
2. Download `ltx-2.5-22b-distilled-quantfunc-int4-r128.safetensors`.
|
| 112 |
-
3. Swap the standard transformer loader for the QuantFunc loader; keep the rest of your LTX-2.5 workflow (text encoder, VAE, audio VAE, latent upscaler, prompts) unchanged.
|
| 113 |
|
| 114 |
-
|
|
|
|
|
|
|
| 115 |
|
| 116 |
-
## Required
|
| 117 |
|
| 118 |
-
This is the **distilled** joint video+audio checkpoint and must be sampled with its native distilled schedule:
|
| 119 |
|
| 120 |
- **Stage 1 Sigma schedule (8 steps, fixed):** `1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0`
|
| 121 |
- **Stage 2 Sigma schedule (3 steps, upscaled refinement):** `0.85, 0.7250, 0.4219, 0.0`
|
| 122 |
-
- **CFG:** `1.0` (guidance-distilled model)
|
| 123 |
- **STG:** disabled
|
| 124 |
|
| 125 |
-
##
|
| 126 |
|
| 127 |
-
|
| 128 |
-
- Upstream repository: [github.com/Lightricks/LTX-2](https://github.com/Lightricks/LTX-2)
|
| 129 |
-
- License: **LTX-2 Community License Agreement** ([license text](https://github.com/Lightricks/LTX-2/blob/main/LICENSE)). This repository redistributes derived post-training quantized weights only.
|
| 130 |
|
| 131 |
-
|
| 132 |
|
| 133 |
-
|
| 134 |
-
- ๐ [ComfyUI-QuantFunc GitHub](https://github.com/QuantFunc/ComfyUI-QuantFunc)
|
| 135 |
-
- ๐ [Quantfunc-Python-SDK GitHub](https://github.com/QuantFunc/Quantfunc-Python-SDK)
|
| 136 |
-
- ๐ฎ [Discord Server](https://discord.gg/jCp9TpFWcn)
|
| 137 |
-
- ๐ฌ Scan below to join our WeChat group
|
| 138 |
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
<div align="center" style="margin-top: 50px;">
|
| 27 |
<a href="https://github.com/QuantFunc/ComfyUI-QuantFunc">
|
| 28 |
+
<img src="https://raw.githubusercontent.com/QuantFunc/ComfyUI-QuantFunc/main/assets/logo.webp" width="300" alt="QuantFunc logo">
|
| 29 |
</a>
|
| 30 |
</div>
|
| 31 |
|
| 32 |
<p align="center">
|
| 33 |
+
๐ <a href="https://www.quantfunc.com/">Website</a> |
|
| 34 |
๐ <a href="https://github.com/QuantFunc/ComfyUI-QuantFunc">ComfyUI-QuantFunc</a> |
|
| 35 |
๐ <a href="https://github.com/QuantFunc/Quantfunc-Python-SDK">Python SDK</a> |
|
| 36 |
๐ค <a href="https://huggingface.co/QuantFunc">Hugging Face</a> |
|
| 37 |
๐ค <a href="https://www.modelscope.cn/profile/QuantFunc">ModelScope</a> |
|
| 38 |
+
๐จ <a href="https://civitai.com/user/quantfunc">Civitai</a> |
|
| 39 |
๐ฎ <a href="https://discord.gg/jCp9TpFWcn">Discord</a>
|
| 40 |
</p>
|
| 41 |
|
| 42 |
# LTX-2.5-QuantFunc-4bit
|
| 43 |
|
| 44 |
+
**True 4-bit compression (~1/3 the footprint), BF16-level quality held.**
|
| 45 |
|
| 46 |
+
QuantFunc INT4 compresses [Lightricks LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B distilled) core transformer weights and activations to 4-bit (**A4W4** SVDQuant rank-128), reducing the 42 GB BF16 checkpoint down to **15.79 GB (~14.71 GiB)**. Fine texture, lighting, smooth temporal motion, and native 48 kHz synchronized stereo audio stay clear and coherent.
|
| 47 |
|
| 48 |
## Showcase
|
| 49 |
|
| 50 |
+
All clips below were generated by LTX-2.5-QuantFunc-4bit โ click a player to watch with audio.
|
| 51 |
|
| 52 |
<table>
|
| 53 |
<tr>
|
| 54 |
+
<th>Arctic Aurora</th>
|
| 55 |
+
<th>Cathedral Cello</th>
|
| 56 |
</tr>
|
| 57 |
<tr>
|
| 58 |
<td>
|
|
|
|
| 67 |
</td>
|
| 68 |
</tr>
|
| 69 |
<tr>
|
| 70 |
+
<th>Volcanic Lava</th>
|
| 71 |
+
<th>Abyssal Jellyfish</th>
|
| 72 |
</tr>
|
| 73 |
<tr>
|
| 74 |
<td>
|
|
|
|
| 84 |
</tr>
|
| 85 |
</table>
|
| 86 |
|
| 87 |
+
> Poster frames are the first frame of each clip. Showcase spec: 896 ร 1152, 121 frames, 24 FPS, ~5s, 48 kHz synchronized stereo audio (two-stage I2V).
|
| 88 |
|
| 89 |
## Why pure 4-bit holds up
|
| 90 |
|
| 91 |
+
Compressing a 22B joint video+audio DiT to **4-bit activations ร 4-bit weights (pure A4W4)** is primarily challenged by activation outliers that blow up the 4-bit dynamic range and cause blur or detail loss. QuantFunc adds two layers of algorithmic enhancement on top of SVDQuant:
|
| 92 |
|
| 93 |
+
1. **Enhanced low-rank outlier absorption:** Our rank-128 low-rank branch absorbs substantially more activation outlier energy before 4-bit quantization, leaving a much cleaner distribution for the main 4-bit path.
|
| 94 |
+
2. **Composite residual smoothing:** Combined in-house smoothing transforms further flatten residual outliers so the 4-bit grid covers the true distribution with minimal error.
|
| 95 |
|
| 96 |
+
## Swap one loader, keep the rest of your workflow
|
| 97 |
|
| 98 |
+
1. Install or update [ComfyUI-QuantFunc](https://github.com/QuantFunc/ComfyUI-QuantFunc) (`>= 0.0.08`, or [Quantfunc-Python-SDK](https://github.com/QuantFunc/Quantfunc-Python-SDK) for Python integration; QuantFunc PC Engine `>= 0.0.18`).
|
| 99 |
+
2. Download `ltx-2.5-22b-distilled-quantfunc-int4-r128.safetensors` from the table below.
|
| 100 |
+
3. Swap your model loader for the QuantFunc LTX loader and select the downloaded weight file.
|
| 101 |
|
| 102 |
+
Prompts, input images, text encoder (`gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors`), video/audio VAEs, latent upscaler, and the rest of your LTX-2.5 workflow stay unchanged.
|
| 103 |
|
| 104 |
+
## RTX 20-series through RTX 50-series, one build covers it all
|
| 105 |
|
| 106 |
+
Supports NVIDIA **SM75 / SM86 / SM89 / SM120** GPUs โ covering **RTX 20 / 30 / 40 / 50 series**, as well as **T4, A10 / A40, L4 / L40, RTX 6000 Ada, and RTX PRO 6000 Blackwell**.
|
|
|
|
|
|
|
| 107 |
|
| 108 |
+
4-bit weights cut weight memory and bandwidth roughly 3x compared to BF16, making LTX-2.5 22B practical on consumer GPUs (including 8 GB VRAM cards such as RTX 5060 Ti with dynamic VRAM offloading). Actual VRAM needs depend on resolution, frame count, and the rest of your workflow.
|
| 109 |
|
| 110 |
+
## Choose a model
|
|
|
|
|
|
|
| 111 |
|
| 112 |
+
| Variant | File | Size | SVDQuant Rank | Format | Recommended use |
|
| 113 |
+
|---|---|---:|---:|---|---|
|
| 114 |
+
| **LTX-2.5 22B Distilled** | `ltx-2.5-22b-distilled-quantfunc-int4-r128.safetensors` | 15.79 GB (~14.71 GiB) | **r128** | INT4 weights ร INT4 activations (A4W4) | Two-stage T2V / I2V joint video + 48 kHz synchronized audio generation |
|
| 115 |
|
| 116 |
+
### Required inference settings (distilled schedule)
|
| 117 |
|
| 118 |
+
This is the **distilled** joint video+audio checkpoint and must be sampled with its native distilled schedule (generic schedules degrade output):
|
| 119 |
|
| 120 |
- **Stage 1 Sigma schedule (8 steps, fixed):** `1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0`
|
| 121 |
- **Stage 2 Sigma schedule (3 steps, upscaled refinement):** `0.85, 0.7250, 0.4219, 0.0`
|
| 122 |
+
- **CFG:** `1.0` (guidance-distilled model, no classifier-free guidance)
|
| 123 |
- **STG:** disabled
|
| 124 |
|
| 125 |
+
## Loading
|
| 126 |
|
| 127 |
+
Weights use QuantFunc's own sealed safetensors format (quantization parameters and metadata are sealed).
|
|
|
|
|
|
|
| 128 |
|
| 129 |
+
Load with **[ComfyUI-QuantFunc](https://github.com/QuantFunc/ComfyUI-QuantFunc)** (`>= 0.0.08`) or **[Quantfunc-Python-SDK](https://github.com/QuantFunc/Quantfunc-Python-SDK)** (QuantFunc PC Engine `>= 0.0.18`) โ this is not a drop-in Diffusers or stock ComfyUI checkpoint. (This repo declares `library_name: diffusers` purely so Hugging Face counts real downloads of the flat `.safetensors` file above โ see [HF's download-stats docs](https://huggingface.co/docs/hub/models-download-stats) โ not because the file loads via the `diffusers` package.)
|
| 130 |
|
| 131 |
+
If the model isn't recognized or fails to load, update ComfyUI-QuantFunc to the latest version and restart ComfyUI.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
+
## Technical details
|
| 134 |
+
|
| 135 |
+
- INT4 weights ร INT4 activations (W4A4 / A4W4)
|
| 136 |
+
- SVDQuant rank 128 low-rank residual branch + composite residual smoothing
|
| 137 |
+
- Joint 22B video + 48 kHz synchronized stereo audio DiT (distilled)
|
| 138 |
+
- Supported GPU architectures: NVIDIA SM75 / SM86 / SM89 / SM120
|
| 139 |
+
- SHA256: `781356c78f7d40d3f9787e34eee5bba9c43cd20b4435f8de1090d7f6cfb97bc6`
|
| 140 |
+
|
| 141 |
+
## Source & license
|
| 142 |
+
|
| 143 |
+
This repository distributes derived post-training quantized weights produced from [Lightricks/LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (`ltx-2.5-22b-distilled-transformer-bf16.safetensors`, ~42 GB BF16; upstream repo: [github.com/Lightricks/LTX-2](https://github.com/Lightricks/LTX-2)).
|
| 144 |
+
|
| 145 |
+
LTX-2.5 and its derivative weights follow the **LTX-2 Community License Agreement** ([license text](https://github.com/Lightricks/LTX-2/blob/main/LICENSE)). QuantFunc's quantization tooling and implementation follow their own respective licenses. Please read and comply with the original model's license terms before use.
|
| 146 |
+
|
| 147 |
+
## Community
|
| 148 |
+
|
| 149 |
+
- ๐ [QuantFunc website](https://www.quantfunc.com/)
|
| 150 |
+
- ๐ [ComfyUI-QuantFunc on GitHub](https://github.com/QuantFunc/ComfyUI-QuantFunc)
|
| 151 |
+
- ๐ [Quantfunc-Python-SDK on GitHub](https://github.com/QuantFunc/Quantfunc-Python-SDK)
|
| 152 |
+
- ๐จ [Civitai](https://civitai.com/user/quantfunc)
|
| 153 |
+
- ๐ฎ [Discord](https://discord.gg/jCp9TpFWcn)
|
assets/ltx25_case4.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:255c023855736d34cb287f7ac04fd611918062d8838598da5369fd9a893e20c3
|
| 3 |
+
size 5042196
|
assets/ltx25_case4.webp
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|