The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Disable prompt weights for ltxv2. (#12354)
comfyanonymousf350a842611f
diff --git a/comfy/text_encoders/lt.py b/comfy/text_encoders/lt.pyindex 26573fb12..3f87dfd6a 100644--- a/comfy/text_encoders/lt.py+++ b/comfy/text_encoders/lt.py@@ -25,7 +25,7 @@ def ltxv_te(*args, **kwargs):class Gemma3_12BTokenizer(sd1_clip.SDTokenizer):def __init__(self, embedding_directory=None, tokenizer_data={}):tokenizer = tokenizer_data.get("spiece_model", None)- super().__init__(tokenizer, pad_with_end=False, embedding_size=3840, embedding_key='gemma3_12b', tokenizer_class=SPieceTokenizer, has_end_token=False, pad_to_max_length=False, max_length=99999999, min_length=1, tokenizer_args={"add_bos": True, "add_eos": False}, tokenizer_data=tokenizer_data)+ super().__init__(tokenizer, pad_with_end=False, embedding_size=3840, embedding_key='gemma3_12b', tokenizer_class=SPieceTokenizer, has_end_token=False, pad_to_max_length=False, max_length=99999999, min_length=1, disable_weights=True, tokenizer_args={"add_bos": True, "add_eos": False}, tokenizer_data=tokenizer_data)def state_dict(self):return {"spiece_model": self.tokenizer.serialize_model()}