Views
No views yet
GaudiConfig file for running the GPT2 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 PyTorch's autocast mixed precision1python run_clm.py \
2 --model_name_or_path gpt2 \
3 --dataset_name wikitext \
4 --dataset_config_name wikitext-2-raw-v1 \
5 --per_device_train_batch_size 4 \
6 --per_device_eval_batch_size 4 \
7 --do_train \
8 --do_eval \
9 --output_dir /tmp/test-clm \
10 --gaudi_config_name Habana/gpt2 \
11 --use_habana \
12 --use_lazy_mode \
13 --throughput_warmup_steps 2