Views
No views yet
1learning rate = 1e-4
2number of gradients = 1024
3dampening = 1e-61matched_accuracy = 69.55
2mismatched_accuracy = 70.58| Matched Accuracy | Mismatched Accuracy | |
|---|---|---|
| Adam | 65.36 ± 0.13 | 66.78 ± 0.15 |
| M-FAC | 68.28 ± 3.29 | 68.98 ± 3.05 |
1CUDA_VISIBLE_DEVICES=0 python run_glue.py \
2 --seed 42 \
3 --model_name_or_path prajjwal1/bert-tiny \
4 --task_name mnli \
5 --do_train \
6 --do_eval \
7 --max_seq_length 128 \
8 --per_device_train_batch_size 32 \
9 --learning_rate 1e-4 \
10 --num_train_epochs 5 \
11 --output_dir out_dir/ \
12 --optim MFAC \
13 --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}