Skip to content

Commit 70c91b8

Browse files
1 parent 0da5a0f commit 70c91b8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

comfy/text_encoders/ovis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def __init__(self, device="cpu", dtype=None, model_options={}):
6161
if dtype_llama is not None:
6262
dtype = dtype_llama
6363
if llama_quantization_metadata is not None:
64+
model_options = model_options.copy()
6465
model_options["quantization_metadata"] = llama_quantization_metadata
6566
super().__init__(device=device, dtype=dtype, model_options=model_options)
6667
return OvisTEModel_

comfy/text_encoders/z_image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def __init__(self, device="cpu", dtype=None, model_options={}):
4040
if dtype_llama is not None:
4141
dtype = dtype_llama
4242
if llama_quantization_metadata is not None:
43+
model_options = model_options.copy()
4344
model_options["quantization_metadata"] = llama_quantization_metadata
4445
super().__init__(device=device, dtype=dtype, model_options=model_options)
4546
return ZImageTEModel_

0 commit comments

Comments
 (0)