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
9ae9e740
"...models/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "36c4bb2893e73022b1060bd6ad5c0685869e5465"
Commit
9ae9e740
authored
Jan 06, 2023
by
Ziyue Jiang
Browse files
fix diff device in some partition
parent
3a15b204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
colossalai/pipeline/rpc/_pipeline_base.py
colossalai/pipeline/rpc/_pipeline_base.py
+2
-0
No files found.
colossalai/pipeline/rpc/_pipeline_base.py
View file @
9ae9e740
...
...
@@ -789,6 +789,8 @@ class WorkerBase(ABC):
args_kwargs
=
pyobj_map
(
args_kwargs
,
fn
=
lambda
x
:
x
.
to
(
self
.
device
).
detach
(),
process_types
=
torch
.
Tensor
)
# torch rpc doesn't support args or rets in GPU
args_kwargs
=
pyobj_map
(
args_kwargs
,
fn
=
lambda
x
:
self
.
device
,
process_types
=
torch
.
device
)
# change devices from last stage to current device
args
,
kwargs
=
data_process_func
(
args_kwargs
)
...
...
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