Skip to content

Commit 66c5adb

Browse files
committed
using far small model, same error
1 parent d12dcf5 commit 66c5adb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

simpletransformers.clj

+12-12
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121

2222

2323
(println "train...")
24-
(py/with-gil
25-
(let [
26-
train-df (pd/DataFrame train-data)
27-
eval-df (pd/DataFrame eval-data)
24+
25+
(let [
26+
train-df (pd/DataFrame train-data)
27+
eval-df (pd/DataFrame eval-data)
2828

29-
model (ClassificationModel "roberta" "roberta-base" :use_cuda false :args
30-
{:num_train_epochs 1
31-
:use_multiprocessing false
32-
:overwrite_output_dir true})
33-
34-
35-
x (py. model train_model train-df)]
36-
(println x)))
29+
model (ClassificationModel "bert" "prajjwal1/bert-tiny" :use_cuda false :args
30+
{:num_train_epochs 1
31+
:use_multiprocessing false
32+
:overwrite_output_dir true})
33+
34+
35+
x (py. model train_model train-df)]
36+
(println x))
3737

3838
(println "finished train")

0 commit comments

Comments
 (0)