We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fee761 commit e6d3a06Copy full SHA for e6d3a06
distilbert/config.yaml
@@ -3,4 +3,4 @@ model_name: DistilBert
3
python_version: py310
4
requirements_file: ./requirements.txt
5
resources:
6
- accelerator: T4
+ accelerator: T4
distilbert/model/model.py
@@ -9,7 +9,7 @@ def __init__(self, **kwargs):
9
def load(self):
10
# Load model here and assign to self._model.
11
self.device = (
12
- "cuda" if torch.cuda.is_available() else "mps"
+ "cuda" if torch.cuda.is_available() else "cpu"
13
) # the device to load the model onto
14
15
self._tokenizer = AutoTokenizer.from_pretrained(
0 commit comments