Spaces:
Running
on
Zero
Running
on
Zero
feiyang-cai
commited on
add cuda
Browse files
utils.py
CHANGED
@@ -229,7 +229,7 @@ class MolecularPropertyPredictionModel():
|
|
229 |
self.apapter_scaler_path[adapter_name] = None
|
230 |
assert dataset_task_types[adapter_name] == "classification", f"{adapter_name} is not a regression task."
|
231 |
|
232 |
-
|
233 |
#print(self.base_model)
|
234 |
|
235 |
def swith_adapter(self, adapter_name, adapter_id):
|
|
|
229 |
self.apapter_scaler_path[adapter_name] = None
|
230 |
assert dataset_task_types[adapter_name] == "classification", f"{adapter_name} is not a regression task."
|
231 |
|
232 |
+
self.base_model.to("cuda")
|
233 |
#print(self.base_model)
|
234 |
|
235 |
def swith_adapter(self, adapter_name, adapter_id):
|