Skip to content

Commit 68ad3ec

Browse files
committed
loadModel: local_files_only shaves off almost 2s on my Quadro RTX 5k
1 parent a1614df commit 68ad3ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

loadModel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def loadModel(model_id: str, load=True):
3030
torch_dtype=torch.float16,
3131
use_auth_token=HF_AUTH_TOKEN,
3232
scheduler=scheduler,
33+
local_files_only=load,
3334
)
3435

3536
return model.to("cuda") if load else None

0 commit comments

Comments
 (0)