Views
No views yet
1learning rate = 1e-4
2number of gradients = 1024
3dampening = 1e-61exact_match = 50.29
2f1 = 52.43| Exact Match | F1 | |
|---|---|---|
| Adam | 48.41 ± 0.57 | 49.99 ± 0.54 |
| M-FAC | 49.80 ± 0.43 | 52.18 ± 0.20 |
1CUDA_VISIBLE_DEVICES=0 python run_qa.py \
2 --seed 42 \
3 --model_name_or_path prajjwal1/bert-tiny \
4 --dataset_name squad_v2 \
5 --version_2_with_negative \
6 --do_train \
7 --do_eval \
8 --per_device_train_batch_size 12 \
9 --learning_rate 1e-4 \
10 --num_train_epochs 2 \
11 --max_seq_length 384 \
12 --doc_stride 128 \
13 --output_dir out_dir/ \
14 --optim MFAC \
15 --optim_args '{"lr": 1e-4, "num_grads": 1024, "damp": 1e-6}'per_device_train_batch_size, learning_rate, num_train_epochs, num_grads and damp. For the sake of fair comparison and a robust default setup we use the same hyperparameters across all models (bert-tiny, bert-mini) and all datasets (SQuAD version 2 and GLUE).1@article{frantar2021m,
2 title={M-FAC: Efficient Matrix-Free Approximations of Second-Order Information},
3 author={Frantar, Elias and Kurtic, Eldar and Alistarh, Dan},
4 journal={Advances in Neural Information Processing Systems},
5 volume={35},
6 year={2021}
7}
8