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
8e14344e
Unverified
Commit
8e14344e
authored
Dec 09, 2022
by
Jiarui Fang
Committed by
GitHub
Dec 09, 2022
Browse files
[hotfix] fix a type in ColoInitContext (#2106)
parent
05545bfe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/utils/model/colo_init_context.py
colossalai/utils/model/colo_init_context.py
+1
-1
No files found.
colossalai/utils/model/colo_init_context.py
View file @
8e14344e
...
...
@@ -38,7 +38,7 @@ def _convert_to_coloparam(param: torch.nn.Parameter,
requires_grad
=
param
.
requires_grad
if
param
.
device
.
type
==
'meta'
:
raise
NotImplemented
(
raise
NotImplemented
Error
(
"ColoInitContext is initializing a model with meta parameters! This is not allowed right now!"
)
else
:
# param is the global tensor.
...
...
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