Increase chunk size when computing SHAs

This commit is contained in:
AbdBarho 2023-04-09 21:53:59 +02:00 committed by GitHub
parent 4463124bdd
commit de189f2db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1204,7 +1204,7 @@ class ModelManager(object):
return self.device.type == "cuda"
def _diffuser_sha256(
self, name_or_path: Union[str, Path], chunksize=4096
self, name_or_path: Union[str, Path], chunksize=16777216
) -> Union[str, bytes]:
path = None
if isinstance(name_or_path, Path):