This package implements the operations required to perform inference with the LTXVideo FP8-quantized model.
Note: CUDA Toolkit 12.8 or later is required. The instructions below assume CUDA 12.8 is installed.
-
Install the Microsoft Build Tools.
During installation, select "Desktop development with C++". -
Make sure the CUDA Toolkit is installed by following the instructions here.
-
Run the following commands inside your ComfyUI python environment.
python.exe -m pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 python.exe -m pip install -U packaging wheel ninja setuptools python.exe -m pip install --no-build-isolation git+https://github.com/Lightricks/LTX-Video-Q8-Kernels.git
-
Open a Command Prompt in the portable ComfyUI installation folder.
-
Check the version of the embedded Python:
.\python_embeded\python.exe --version
-
Install the matching Python version (e.g., 3.12.10):
- Download from the official Python website,
or use pyenv for Windows.
- Download from the official Python website,
-
Locate your Python installation.
If installed from official Python website, it is typically located at:
C:\Users\YOUR_USERNAME\AppData\Local\Programs\Python\Python312
-
Copy the
include
andlibs
directories from the full Python installation into thepython_embeded
folder in your ComfyUI directory. -
Run the following commands in the Command Prompt:
.\python_embeded\python.exe -m pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 .\python_embeded\python.exe -m pip install -U packaging wheel ninja setuptools .\python_embeded\python.exe -m pip install --no-build-isolation git+https://github.com/Lightricks/LTX-Video-Q8-Kernels.git
-
Make sure the CUDA Toolkit is installed using the instructions here.
Your CUDA version must match the version used by your installed PyTorch (e.g., CUDA 12.8).
-
Run the following commands in your ComfyUI Python environment:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 pip install packaging wheel ninja setuptools pip install --no-build-isolation git+https://github.com/Lightricks/LTX-Video-Q8-Kernels.git
-
If you encounter issues with the
typing-extensions
package, run:pip install typing-extensions
Then repeat the installation steps.
To run inference with ComfyUI:
- Install the ComfyUI-LTXVideo custom nodes pack.
- Use the LTXVideo Q8 Patcher node on the loaded model.
- See the example ComfyUI flow here.