You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: invokeai/app/services/config/config_default.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@
45
45
ram: 13.5
46
46
vram: 0.25
47
47
lazy_offload: true
48
+
log_memory_usage: false
48
49
Device:
49
50
device: auto
50
51
precision: auto
@@ -261,6 +262,7 @@ class InvokeAIAppConfig(InvokeAISettings):
261
262
ram : float=Field(default=7.5, gt=0, description="Maximum memory amount used by model cache for rapid switching (floating point number, GB)", json_schema_extra=Categories.ModelCache, )
262
263
vram : float=Field(default=0.25, ge=0, description="Amount of VRAM reserved for model storage (floating point number, GB)", json_schema_extra=Categories.ModelCache, )
263
264
lazy_offload : bool=Field(default=True, description="Keep models in VRAM until their space is needed", json_schema_extra=Categories.ModelCache, )
265
+
log_memory_usage : bool=Field(default=False, description="If True, a memory snapshot will be captured before and after every model cache operation, and the result will be logged (at debug level). There is a time cost to capturing the memory snapshots, so it is recommended to only enable this feature if you are actively inspecting the model cache's behaviour.", json_schema_extra=Categories.ModelCache)
f"Cannot load embedding for {trigger}. It was trained on a model with token dimension {embedding.shape[0]}, but the current model has token dimension {model_embeddings.weight.data[token_id].shape[0]}."
206
+
f"Cannot load embedding for {trigger}. It was trained on a model with token dimension"
207
+
f" {embedding.shape[0]}, but the current model has token dimension"
f"Cannot load embedding for {trigger}. It was trained on a model with token dimension {embedding.shape[0]}, but the current model has token dimension {embeddings[token_id].shape[0]}."
489
+
f"Cannot load embedding for {trigger}. It was trained on a model with token dimension"
490
+
f" {embedding.shape[0]}, but the current model has token dimension"
0 commit comments