omidvaramin
commited on
Commit
•
97f0a4c
1
Parent(s):
375ec79
Update README.md
Browse files
README.md
CHANGED
@@ -62,7 +62,8 @@ are simply reacting to it, which is how markets should operate."""
|
|
62 |
import transformers
|
63 |
import os
|
64 |
import torch
|
65 |
-
|
|
|
66 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
67 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
68 |
print(device)
|
|
|
62 |
import transformers
|
63 |
import os
|
64 |
import torch
|
65 |
+
#If you have more than one GPU, you can specify here which one to use
|
66 |
+
os.environ["CUDA_VISIBLE_DEVICES"]="5"
|
67 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
68 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
69 |
print(device)
|