mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Prevent model loading status from going over 100%
This commit is contained in:
@@ -220,6 +220,7 @@ class LazyloadPatches:
|
|||||||
# BEGIN PATCH
|
# BEGIN PATCH
|
||||||
utils.bar = tqdm(total=len(state_dict), desc="Loading model tensors", file=utils.UIProgressBarFile(), position=1)
|
utils.bar = tqdm(total=len(state_dict), desc="Loading model tensors", file=utils.UIProgressBarFile(), position=1)
|
||||||
utils.koboldai_vars.total_layers = len(state_dict)
|
utils.koboldai_vars.total_layers = len(state_dict)
|
||||||
|
utils.koboldai_vars.loaded_layers = 0
|
||||||
|
|
||||||
for param_name, param in sorted(
|
for param_name, param in sorted(
|
||||||
state_dict.items(),
|
state_dict.items(),
|
||||||
|
Reference in New Issue
Block a user