@@ -266,7 +266,9 @@ class HuggingFaceAutoLM(BaseLM):
...
@@ -266,7 +266,9 @@ class HuggingFaceAutoLM(BaseLM):
try:
try:
self.model.to(self._device)
self.model.to(self._device)
except:
except:
print("Failed to place model onto specified device. This may be because the model is quantized via `bitsandbytes`. If the desired GPU is being used, this message is safe to ignore.")
print(
"Failed to place model onto specified device. This may be because the model is quantized via `bitsandbytes`. If the desired GPU is being used, this message is safe to ignore."
)
def_create_auto_model(
def_create_auto_model(
self,
self,
...
@@ -292,7 +294,9 @@ class HuggingFaceAutoLM(BaseLM):
...
@@ -292,7 +294,9 @@ class HuggingFaceAutoLM(BaseLM):
"""Returns a pre-trained pytorch model from a pre-trained model configuration."""
"""Returns a pre-trained pytorch model from a pre-trained model configuration."""