Views
No views yet
GaudiConfig file for running the Swin Transformer model on Habana's Gaudi processors (HPU).use_fused_adam: whether to use Habana's custom AdamW implementationuse_fused_clip_norm: whether to use Habana's fused gradient norm clipping operatoruse_torch_autocast: whether to use Torch Autocast for managing mixed precision1python run_image_classification.py \
2 --model_name_or_path microsoft/swin-base-patch4-window7-224-in22k \
3 --dataset_name cifar10 \
4 --output_dir /tmp/outputs/ \
5 --remove_unused_columns False \
6 --do_train \
7 --do_eval \
8 --learning_rate 3e-5 \
9 --num_train_epochs 5 \
10 --per_device_train_batch_size 64 \
11 --per_device_eval_batch_size 64 \
12 --evaluation_strategy epoch \
13 --save_strategy epoch \
14 --load_best_model_at_end True \
15 --save_total_limit 3 \
16 --seed 1337 \
17 --use_habana \
18 --use_lazy_mode \
19 --gaudi_config_name Habana/swin \
20 --throughput_warmup_steps 3 \
21 --ignore_mismatched_sizes \
22 --bf16