mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 11:32:10 +00:00
Hotfix/Colossalai layers (#92)
* optimized 1d layer apis; reorganized nn.layer modules; fixed tests * fixed 2.5d runtime issue * reworked split batch, now called in trainer.schedule.load_batch Co-authored-by: BoxiangW <45734921+BoxiangW@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
ALLOWED_MODES = [None, '1d', '2d', '2.5d', '3d', 'sequence']
|
||||
TENSOR_PARALLEL_MODE = 'tensor_parallel_mode'
|
||||
|
||||
# intializer
|
||||
INITIALIZER_MAPPING = {
|
||||
@@ -16,6 +17,9 @@ INITIALIZER_MAPPING = {
|
||||
'sequence': 'Initializer_Sequence'
|
||||
}
|
||||
|
||||
# 1D parallel
|
||||
PARALLEL_INPUT_1D = 'parallel_input_1d'
|
||||
|
||||
# 2D paralllel
|
||||
SUMMA_DIM = 'SUMMA_DIM'
|
||||
|
||||
|
Reference in New Issue
Block a user