Merge pull request #222 from ebolam/united

Fix for lazy loading on models after a non-lazy load model
This commit is contained in:
henk717 2022-09-28 01:54:21 +02:00 committed by GitHub
commit 0f7ecb3257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2088,6 +2088,8 @@ def reset_model_settings():
vars.sampler_order = [6, 0, 1, 2, 3, 4, 5]
vars.newlinemode = "n"
vars.revision = None
vars.lazy_load = True
def load_model(use_gpu=True, gpu_layers=None, disk_layers=None, initial_load=False, online_model="", use_breakmodel_args=False, breakmodel_args_default_to_cpu=False):
global model