Skip to content

Commit e6d3a06

Browse files
committed
lint
1 parent 4fee761 commit e6d3a06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

distilbert/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ model_name: DistilBert
33
python_version: py310
44
requirements_file: ./requirements.txt
55
resources:
6-
accelerator: T4
6+
accelerator: T4

distilbert/model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, **kwargs):
99
def load(self):
1010
# Load model here and assign to self._model.
1111
self.device = (
12-
"cuda" if torch.cuda.is_available() else "mps"
12+
"cuda" if torch.cuda.is_available() else "cpu"
1313
) # the device to load the model onto
1414

1515
self._tokenizer = AutoTokenizer.from_pretrained(

0 commit comments

Comments
 (0)