mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Materialize on cpu
This commit is contained in:
@@ -205,7 +205,7 @@ def patch_transformers_for_lazyload() -> None:
|
||||
|
||||
if isinstance(param, LazyTensor):
|
||||
# Should always be true
|
||||
param = param.materialize()
|
||||
param = param.materialize(map_location="cpu")
|
||||
utils.bar.update(1)
|
||||
# END PATCH
|
||||
|
||||
|
Reference in New Issue
Block a user