mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-10-29 12:52:44 +00:00
[tutorial] added synthetic data for sequence parallel (#1927)
* [tutorial] added synthetic data for sequence parallel * polish code
This commit is contained in:
@@ -31,10 +31,8 @@ SEED = 1234
|
||||
NUM_MICRO_BATCHES = 4
|
||||
|
||||
# colossalai config
|
||||
parallel = dict(pipeline=1, tensor=dict(size=4, mode='sequence'))
|
||||
parallel = dict(pipeline=1, tensor=dict(size=2, mode='sequence'))
|
||||
|
||||
fp16 = dict(mode=AMP_TYPE.NAIVE, verbose=True)
|
||||
|
||||
clip_grad_norm = 1.0
|
||||
|
||||
gradient_handler = [dict(type='SequenceParallelGradientHandler')]
|
||||
|
||||
Reference in New Issue
Block a user