fgaim commited on
Commit
656848b
1 Parent(s): f6e586f
Files changed (1) hide show
  1. run.sh +17 -0
run.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ PLM_DIR=/home/shared/bert-base-uncased-swahili
4
+ MODEL_DIR=/home/shared/bert-swahili-news-classification
5
+ TASK_NAME=swahili_news
6
+ echo "PLM_DIR: ${PLM_DIR}"
7
+ echo "MODEL_DIR: ${MODEL_DIR}"
8
+ echo "TASK_NAME: ${TASK_NAME}"
9
+
10
+ python run_flax_glue.py \
11
+ --model_name_or_path ${PLM_DIR} \
12
+ --task_name ${TASK_NAME} \
13
+ --max_length 512 \
14
+ --learning_rate 2e-5 \
15
+ --num_train_epochs 3 \
16
+ --per_device_train_batch_size 4 \
17
+ --output_dir ${MODEL_DIR}