LTXV Q8 Patcher doesn't work with the public q8_kernels (missing `patch_comfyui_native_avtransformer`, old signature, old RoPE format)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 43/100
Direzione di ricerca
Start by reading q8_nodes.py and comparing its imports and patcher call with the public q8_kernels 0.0.5 API described in the issue. Then inspect q8_kernels/integration/comfyui_native.py around lines 145–150 and ComfyUI’s LTXV RoPE format in comfy/ldm/lightricks/model.py. Done means the node works with the stated public package and current RoPE format; the issue does not name tests to run.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The "LTXV Q8 Patcher" node (q8_nodes.py) can't be used with the q8_kernels version that the node's error message points to (https://github.com/Lightricks/LTX-Video-Q8-Kernels, master f3066ed, version 0.0.5). With ComfyUI-LTXVideo 220e1d4 and ComfyUI 7ef8178 there are three separate problems:
-
Import.
q8_nodes.pyimportspatch_comfyui_native_avtransformerfromq8_kernels.integration.patch_transformer(added in the 2026-03-06 sync). That function doesn't exist in the public q8_kernels:ImportError: cannot import name 'patch_comfyui_native_avtransformer' from 'q8_kernels.integration.patch_transformer'The
except ImportErrorsetsQ8_AVAILABLE = False, so the node says "Q8 kernels are not available" even when q8_kernels is installed. -
Signature. For q8_kernels < 0.1.5 the node calls
patch_comfyui_native_transformer(transformer, use_fp8_attention, True, quantize_self_attn, quantize_cross_attn, quantize_ffn). The public version ispatch_comfyui_native_transformer(transformer, use_fp8_attention=False, transform_weights=True), so this raisesTypeError(too many positional arguments). LTX-Video-Q8-Kernels#12 reported an earlier mismatch of the same kind. -
RoPE format. Since ComfyUI #15056 (2026-07-24), LTXV attention receives
pe = (rotation_matrix, split_pe), whererotation_matrixis[B, T, heads, head_dim/2, 2, 2](freqs_cis_matrixincomfy/ldm/lightricks/model.py). q8_kernels' patched attention (q8_kernels/integration/comfyui_native.py:145-150) still assumespe = (cos, sin)and callsrms_norm_rope(q, pe[0], pe[1], ...). That passes the 6-D rotation matrix ascos_freqsand thesplit_pebool assin_freqs. (#532 handled this core change for the embeddings connector only.)
The node looks like it was written against a newer q8_kernels (>= 0.1.5) that hasn't been published. Could you publish that version (or its source), or document which q8_kernels the node requires? If 0.0.5 is meant to keep working, problems 1 and 2 need the import to be optional and the old call signature on the < 0.1.5 path, and problem 3 needs a fix in q8_kernels.
For reference, here is what worked for problem 3 in a local port (interleaved RoPE, LTXV 0.9.x): convert the rotation matrices back to cos/sin once per step and keep ComfyUI's own RoPE for split_pe=True. cos = rot[..., 0, 0] and sin = rot[..., 1, 0], each .reshape(B, T, -1).repeat_interleave(2, -1), give the [B, T, dim] tables that rms_norm_rope expects.
How this was checked: CPU only (no NVIDIA GPU). I imported the public q8_kernels Python package with its CUDA extension stubbed, bound the node's call against the public signature, and built pe with current ComfyUI's freqs_cis_matrix (--cpu). Output:
1) ImportError: cannot import name 'patch_comfyui_native_avtransformer' from 'q8_kernels.integration.patch_transformer'
2) TypeError: too many positional arguments; signature is patch_comfyui_native_transformer(transformer, use_fp8_attention=False, transform_weights=True)
3) ComfyUI pe = (rotation_matrix (1, 6, 32, 32, 2, 2) torch.bfloat16, split_pe=False)
-> rms_norm_rope(q, pe[0], pe[1], ...) gets cos_freqs=(1, 6, 32, 32, 2, 2), sin_freqs=False; expects [B, T, 2048]
- Lingua principale
- Python
- Stelle
- 4.2k
- Fork
- 508
- Merge medio
- 7h 14m
- PR unite (30g)
- 3
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Lightricks/ComfyUI-LTXVideo
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Lightricks/ComfyUI-LTXVideo#569 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Lightricks/ComfyUI-LTXVideo#541 · 3 commenti · 3 reazioni ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
Lightricks/ComfyUI-LTXVideo#525 · 6 commenti · 3 reazioni ·
-
001Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Lightricks/ComfyUI-LTXVideo#589 ·
-
001Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Lightricks/ComfyUI-LTXVideo#588 ·
Tutte le issue di Lightricks/ComfyUI-LTXVideo
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
splunk/security_content#4418 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug / Enhancement]: Improve teleop_robot CLI with configurable timeout, robust input validation, and clean ROS shutdownForse già presa @muskan-creates352 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 3 giorni
-
bug(pipelines): shortcode stripping deletes text between a {{< >}} shortcode and the next {{% %}}Forse già presa @Ashborne-lab l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
kubeflow/docs-agent#293 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Imbad0202/academic-research-skills#1093 ·
I maintainer di solito rispondono entro 1 giorno
-
Input: placeholder drawn in the text colour when the empty Input is focused but not yet editedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pierreaubert/gpui-toolkit#114 ·
I maintainer di solito rispondono entro 1 giorno