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
51597f6a
Unverified
Commit
51597f6a
authored
Nov 10, 2022
by
Jiarui Fang
Committed by
GitHub
Nov 10, 2022
Browse files
[hotfix] pass test_complete_workflow (#1877)
parent
986f8cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_fx/test_complete_workflow.py
tests/test_fx/test_complete_workflow.py
+2
-2
No files found.
tests/test_fx/test_complete_workflow.py
View file @
51597f6a
...
@@ -50,7 +50,7 @@ def run_workflow(world_size, dev):
...
@@ -50,7 +50,7 @@ def run_workflow(world_size, dev):
annotated_gm
.
recompile
()
annotated_gm
.
recompile
()
# materialization and sharding
# materialization and sharding
ctx
.
lazy_init_parameters
(
annotated_gm
)
ctx
.
lazy_init_parameters
(
annotated_gm
,
device
=
dev
)
for
param
in
model
.
parameters
():
for
param
in
model
.
parameters
():
assert
not
param
.
is_meta
assert
not
param
.
is_meta
...
@@ -84,4 +84,4 @@ def test_complete_workflow(world_size, dev):
...
@@ -84,4 +84,4 @@ def test_complete_workflow(world_size, dev):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
test_complete_workflow
(
1
)
test_complete_workflow
(
1
,
'cuda'
)
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