Improve: Models can now be loaded directly onto NVIDIA GPUs

This commit is contained in:
tsukumi
2024-08-11 08:40:50 +09:00
parent 0e71d7ef7c
commit cfd6bd5bb6
4 changed files with 8 additions and 6 deletions

View File

@@ -192,8 +192,8 @@ def transfer_model(language: Languages, device: str) -> None:
__loaded_models[language].to(device) # type: ignore
logger.info(
f"Transferred the {language} BERT model from {current_device} to {device}"
)
f"Transferred the {language} BERT model from {current_device} to {device}"
)
def unload_model(language: Languages) -> None: