mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 02:51:59 +00:00
[example] add zero1, zero2 example in GPT examples (#2146)
* [example] add zero1 and zero2 for GPT * update readme in gpt example * polish code * change init value * update readme
This commit is contained in:
@@ -35,13 +35,13 @@ class LowLevelZeroOptimizer(ColossalaiOptimizer):
|
||||
optimizer: Optimizer,
|
||||
|
||||
# grad scaler config
|
||||
initial_scale=2**32,
|
||||
initial_scale=2**16,
|
||||
min_scale=1,
|
||||
growth_factor=2,
|
||||
backoff_factor=0.5,
|
||||
growth_interval=1000,
|
||||
growth_interval=2000,
|
||||
hysteresis=2,
|
||||
max_scale: int = 2**32,
|
||||
max_scale: int = 2**24,
|
||||
|
||||
# grad clipping
|
||||
clip_grad_norm=0.0,
|
||||
|
Reference in New Issue
Block a user