Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bolasim committed Apr 18, 2024
1 parent 4fee761 commit e6d3a06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distilbert/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ model_name: DistilBert
python_version: py310
requirements_file: ./requirements.txt
resources:
accelerator: T4
accelerator: T4
2 changes: 1 addition & 1 deletion distilbert/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, **kwargs):
def load(self):
# Load model here and assign to self._model.
self.device = (
"cuda" if torch.cuda.is_available() else "mps"
"cuda" if torch.cuda.is_available() else "cpu"
) # the device to load the model onto

self._tokenizer = AutoTokenizer.from_pretrained(
Expand Down

0 comments on commit e6d3a06

Please sign in to comment.