mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-21 14:10:39 +01:00
Correct the type hint for lazy_load_callback
This commit is contained in:
parent
21de36c4b0
commit
4dd59e0a9d
@ -1668,7 +1668,7 @@ def load_model(use_gpu=True, gpu_layers=None, initial_load=False, online_model="
|
|||||||
else:
|
else:
|
||||||
ram_blocks = gpu_blocks = cumulative_gpu_blocks = None
|
ram_blocks = gpu_blocks = cumulative_gpu_blocks = None
|
||||||
|
|
||||||
def lazy_load_callback(model_dict: Dict[str, torch.Tensor], f, **_):
|
def lazy_load_callback(model_dict: Dict[str, Union[torch_lazy_loader.LazyTensor, torch.Tensor]], f, **_):
|
||||||
if lazy_load_callback.nested:
|
if lazy_load_callback.nested:
|
||||||
return
|
return
|
||||||
lazy_load_callback.nested = True
|
lazy_load_callback.nested = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user