Files
modelscope/examples/pytorch/text_classification/run_train.sh
xingjun.wang 48c0d2a9af add 1.6
2023-05-22 10:53:18 +08:00

17 lines
648 B
Bash

PYTHONPATH=. python examples/pytorch/text_classification/finetune_text_classification.py \
--task 'text-classification' \
--model 'damo/nlp_structbert_backbone_base_std' \
--train_dataset_name 'clue' \
--train_subset_name 'tnews' \
--first_sequence 'sentence' \
--preprocessor.label label \
--model.num_labels 15 \
--labels '0,1,2,3,4,5,6,7,8,9,10,11,12,13,14' \
--preprocessor 'sen-cls-tokenizer' \
--use_model_config True \
--max_epochs 1 \
--train.dataloader.workers_per_gpu 0 \
--evaluation.dataloader.workers_per_gpu 0 \
--train.optimizer.lr 1e-5 \
--eval_metrics 'seq-cls-metric' \