Skip to content

DeepSpeed Apex Automatic Mixed Precision

afiaka87 edited this page Apr 17, 2021 · 2 revisions
deepspeed_config = {
    'train_batch_size': BATCH_SIZE,
    'gradient_clipping': GRAD_CLIP_NORM,
    'amp': {
        'enabled': True,
        'opt_level': 'O1',
    }
}
Clone this wiki locally