Debian Codegraph @

examples/config_yaml_templates/fp8.yaml

raw
1 # This config template simply setups up the TransformersEngine config (and a config for a single GPU),
2 # this can interop with the other configs in this folder
3 distributed_type: "NO"
4 mixed_precision: "fp8"
5 # Then we specify the fp8 configuration:
6 fp8_config:
7 backend: TE # Can be TE | MS-AMP
8 # The following are TE specific arguments.
9 # See https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/api/common.html#common-api for more details
10 amax_history_len: 1024
11 fp8_format: E4M3
12 interval: 1
13 margin: 0
14 override_linear_precision: [false, false, false]
15 # Generally this should always be set to `false` to have the most realistic fp8 eval performance
16 use_autocast_during_eval: false
17 # If using MS-AMP, we ignore all of the prior and set a opt_level
18 #opt_level: O1