We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6560ba0 commit 6abe498Copy full SHA for 6abe498
2 files changed
main.py
@@ -38,7 +38,9 @@
38
disable_progress_bars()
39
os.environ["TOKENIZERS_PARALLELISM"] = "false"
40
os.environ["TRANSFORMERS_NO_ADVISORY_WARNINGS"] = "true"
41
-device = "cuda" if torch.cuda.is_available() else "cpu"
+#AMD FIX
42
+os.environ["CUDA_VISIBLE_DEVICES"] = "0"
43
+device = "cuda:0" if torch.cuda.is_available() else "cpu"
44
model_name = 'pysentimiento/robertuito-base-cased'
45
model_name = "Twitter/twhin-bert-base"
46
model_name = "nickprock/setfit-italian-hate-speech"
requirements.txt
@@ -10,4 +10,7 @@ evaluate
10
seaborn
11
matplotlib
12
google-generativeai
13
-load-dotenv
+rich
14
+questionary
15
+pysentimiento
16
+
0 commit comments