mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 02:51:59 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -11,8 +11,10 @@ HIDDEN_SIZE = 768
|
||||
TENSOR_SHAPE = (BATCH_SIZE // NUM_MICRO_BATCHES, SEQ_LEN, HIDDEN_SIZE)
|
||||
|
||||
# if you do no want zero, just comment out this dictionary
|
||||
zero = dict(model_config=dict(tensor_placement_policy='cuda', shard_strategy=TensorShardStrategy()),
|
||||
optimizer_config=dict(initial_scale=2**5))
|
||||
zero = dict(
|
||||
model_config=dict(tensor_placement_policy="cuda", shard_strategy=TensorShardStrategy()),
|
||||
optimizer_config=dict(initial_scale=2**5),
|
||||
)
|
||||
|
||||
optimizer = dict(
|
||||
type=HybridAdam,
|
||||
@@ -27,5 +29,5 @@ model = dict(type=GPT2_small_pipeline_hybrid, checkpoint=True, num_chunks=1)
|
||||
# for the current model implementation, mode can only be 1D or None
|
||||
parallel = dict(
|
||||
pipeline=1,
|
||||
tensor=dict(size=2, mode='1d'),
|
||||
tensor=dict(size=2, mode="1d"),
|
||||
)
|
||||
|
Reference in New Issue
Block a user