Views
No views yet
1learning rate = 1e-4
2number of gradients = 1024
3dampening = 1e-6accuracy = 84.74| Accuracy | |
|---|---|
| Adam | 85.46 ± 0.58 |
| M-FAC | 84.20 ± 0.58 |
1CUDA_VISIBLE_DEVICES=0 python run_glue.py \
2 --seed 1234 \
3 --model_name_or_path prajjwal1/bert-mini \
4 --task_name sst2 \
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 3 \
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}
8