Memory tweaks.
Python Linting / Run Pylint (push) Failing after 29s
Build package / Build Test (3.10) (push) Failing after 37s
Build package / Build Test (3.11) (push) Failing after 29s
Build package / Build Test (3.8) (push) Failing after 35s
Build package / Build Test (3.9) (push) Failing after 33s
Tests CI / test (push) Failing after 37s
Python Linting / Run Pylint (push) Failing after 29s
Build package / Build Test (3.10) (push) Failing after 37s
Build package / Build Test (3.11) (push) Failing after 29s
Build package / Build Test (3.8) (push) Failing after 35s
Build package / Build Test (3.9) (push) Failing after 33s
Tests CI / test (push) Failing after 37s
This commit is contained in:
@@ -438,11 +438,11 @@ def load_models_gpu(models, memory_required=0, force_patch_weights=False, minimu
|
||||
global vram_state
|
||||
|
||||
inference_memory = minimum_inference_memory()
|
||||
extra_mem = max(inference_memory, memory_required) + 100 * 1024 * 1024
|
||||
extra_mem = max(inference_memory, memory_required + 300 * 1024 * 1024)
|
||||
if minimum_memory_required is None:
|
||||
minimum_memory_required = extra_mem
|
||||
else:
|
||||
minimum_memory_required = max(inference_memory, minimum_memory_required) + 100 * 1024 * 1024
|
||||
minimum_memory_required = max(inference_memory, minimum_memory_required + 300 * 1024 * 1024)
|
||||
|
||||
models = set(models)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user