Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
c50bfb80
Unverified
Commit
c50bfb80
authored
Apr 01, 2022
by
アマデウス
Committed by
GitHub
Apr 01, 2022
Browse files
[model checkpoint] updated saving/loading for 1d layers (#594)
parent
7636d518
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
371 additions
and
30 deletions
+371
-30
colossalai/nn/layer/parallel_1d/__init__.py
colossalai/nn/layer/parallel_1d/__init__.py
+3
-3
colossalai/nn/layer/parallel_1d/layers.py
colossalai/nn/layer/parallel_1d/layers.py
+368
-27
No files found.
colossalai/nn/layer/parallel_1d/__init__.py
View file @
c50bfb80
from
.layers
import
(
Classifier1D
,
Dropout1D
,
Embedding1D
,
Linear1D
,
Linear1D_Col
,
Linear1D_Row
,
from
.layers
import
(
Classifier1D
,
Dropout1D
,
Embedding1D
,
LayerNorm1D
,
Linear1D
,
Linear1D_Col
,
Linear1D_Row
,
VocabParallelClassifier1D
,
VocabParallelEmbedding1D
)
PatchEmbedding1D
,
VocabParallelClassifier1D
,
VocabParallelEmbedding1D
)
__all__
=
[
__all__
=
[
'Linear1D'
,
'Linear1D_Col'
,
'Linear1D_Row'
,
'Embedding1D'
,
'Dropout1D'
,
'Classifier1D'
,
'VocabParallelClassifier1D'
,
'Linear1D'
,
'Linear1D_Col'
,
'Linear1D_Row'
,
'Embedding1D'
,
'Dropout1D'
,
'Classifier1D'
,
'VocabParallelClassifier1D'
,
'VocabParallelEmbedding1D'
'VocabParallelEmbedding1D'
,
'LayerNorm1D'
,
'PatchEmbedding1D'
]
]
colossalai/nn/layer/parallel_1d/layers.py
View file @
c50bfb80
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment