Remove hmp from gaudi_config.json and README
#2
by jwieczorekhabana - opened
Files changed (2)
- README.md+5-7
- gaudi_config.json+1-19
12 unmodified lines13141516171819202122232425262728293018 unmodified lines4950515253545512 unmodified lines**This model contains no model weights, only a GaudiConfig.**This enables to specify:- `use_habana_mixed_precision`: whether to use Habana Mixed Precision (HMP)- `hmp_opt_level`: optimization level for HMP, see [here](https://docs.habana.ai/en/latest/PyTorch/PyTorch_Mixed_Precision/PT_Mixed_Precision.html#configuration-options) for a detailed explanation- `hmp_bf16_ops`: list of operators that should run in bf16- `hmp_fp32_ops`: list of operators that should run in fp32- `hmp_is_verbose`: verbosity- `use_fused_adam`: whether to use Habana's custom AdamW implementation- `use_fused_clip_norm`: whether to use Habana's fused gradient norm clipping operator## UsageThe model is instantiated the same way as in the Transformers library.The only difference is that there are a few new training arguments specific to HPUs.[Here](https://github.com/huggingface/optimum-habana/blob/main/examples/audio-classification/run_audio_classification.py) is an audio classification example script to fine-tune a model. You can run it with Wav2Vec2 with the following command:```bash18 unmodified lines--use_habana \--use_lazy_mode \--gaudi_config_name Habana/wav2vec2 \--throughput_warmup_steps 2```Check the [documentation](https://huggingface.co/docs/optimum/habana/index) out for more advanced usage and examples.12 unmodified lines13141516171819202122232425262718 unmodified lines464748495051525312 unmodified lines**This model contains no model weights, only a GaudiConfig.**This enables to specify:- `use_fused_adam`: whether to use Habana's custom AdamW implementation- `use_fused_clip_norm`: whether to use Habana's fused gradient norm clipping operator- `use_torch_autocast`: whether to use Torch Autocast for managing mixed precision## UsageThe model is instantiated the same way as in the Transformers library.The only difference is that there are a few new training arguments specific to HPUs.\It is strongly recommended to train this model doing bf16 mixed-precision training for optimal performance and accuracy.[Here](https://github.com/huggingface/optimum-habana/blob/main/examples/audio-classification/run_audio_classification.py) is an audio classification example script to fine-tune a model. You can run it with Wav2Vec2 with the following command:```bash18 unmodified lines--use_habana \--use_lazy_mode \--gaudi_config_name Habana/wav2vec2 \--throughput_warmup_steps 2 \--bf16```Check the [documentation](https://huggingface.co/docs/optimum/habana/index) out for more advanced usage and examples.
1234567891011121314151617181920212223{"use_habana_mixed_precision": true,"hmp_is_verbose": false,"use_fused_adam": true,"use_fused_clip_norm": true,"hmp_bf16_ops": ["addmm","iadd","linear","matmul","mm","mv","conv1d","conv2d","instance_norm"],"hmp_fp32_ops": ["embedding","nll_loss","log_softmax","cross_entropy"]}12345{"use_fused_adam": true,"use_fused_clip_norm": true,"use_torch_autocast": true}
README.md+5-7
gaudi_config.json+1-19