Spaces:
Running
on
A100
Running
on
A100
File size: 509 Bytes
174ae06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#ifndef FP8_ADAMW
#define FP8_ADAMW
#include <torch/types.h>
void FP8_AdamW(torch::Tensor params, // parameter
torch::Tensor grads, // gradient
torch::Tensor exp_avg, // first order momentum
torch::Tensor scale_exp_avg,
torch::Tensor exp_avg_sq, // second order momentum
torch::Tensor scale_exp_avg_sq, float beta1, float beta2,
float lr, float wd, float eps, int step, int qgroup_size);
#endif // FP8_ADAMW
|