mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Correct the type hint for lazy_load_callback
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user