Merge branch 'main' into lstein-import-safetensors

This commit is contained in:
Lincoln Stein
2023-01-17 21:31:56 -05:00
committed by GitHub
16 changed files with 73 additions and 37 deletions

View File

@ -349,7 +349,7 @@ class ModelManager(object):
if self.precision == 'float16':
print(' | Using faster float16 precision')
model.to(torch.float16)
model = model.to(torch.float16)
else:
print(' | Using more accurate float32 precision')
@ -761,7 +761,7 @@ class ModelManager(object):
for model in legacy_locations:
source = models_dir /model
if source.exists():
print(f'DEBUG: Moving {models_dir / model} into hub')
print(f'** Moving {models_dir / model} into hub')
move(models_dir / model, hub)
# anything else gets moved into the diffusers directory