feat(mm): add config to skip model hash

This is useful for when you are using a memory DB and do not want to wait for all models to be hashed on startup.
This commit is contained in:
psychedelicious
2024-03-05 20:03:37 +11:00
parent e866d90ab2
commit bcf58cac59
2 changed files with 9 additions and 8 deletions

View File

@ -256,6 +256,7 @@ class InvokeAIAppConfig(InvokeAISettings):
profile_graphs : bool = Field(default=False, description="Enable graph profiling", json_schema_extra=Categories.Development)
profile_prefix : Optional[str] = Field(default=None, description="An optional prefix for profile output files.", json_schema_extra=Categories.Development)
profiles_dir : Path = Field(default=Path('profiles'), description="Directory for graph profiles", json_schema_extra=Categories.Development)
skip_model_hash : bool = Field(default=False, description="Skip model hashing, instead assigning a UUID to models. Useful when using a memory db to reduce startup time.", json_schema_extra=Categories.Development)
version : bool = Field(default=False, description="Show InvokeAI version and exit", json_schema_extra=Categories.Other)