mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Patch safetensors again
This commit is contained in:
@@ -520,8 +520,8 @@ def use_lazy_load(
|
||||
|
||||
torch.load = torch_load
|
||||
|
||||
#if HAS_SAFETENSORS:
|
||||
#patch_safetensors(callback)
|
||||
if HAS_SAFETENSORS:
|
||||
patch_safetensors(callback)
|
||||
|
||||
if dematerialized_modules:
|
||||
# Most devices can just use Accelerate's implementation, but the Transformers on
|
||||
|
Reference in New Issue
Block a user