mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-24 22:42:15 +00:00
Modify torch version requirement to adapt torch 2.0
This commit is contained in:
parent
281b33f362
commit
46503c35dd
@ -154,7 +154,7 @@ def get_launch_command(
|
|||||||
extra_launch_args = dict()
|
extra_launch_args = dict()
|
||||||
|
|
||||||
torch_version = version.parse(torch.__version__)
|
torch_version = version.parse(torch.__version__)
|
||||||
assert torch_version.major == 1
|
assert torch_version.major >= 1
|
||||||
|
|
||||||
if torch_version.minor < 9:
|
if torch_version.minor < 9:
|
||||||
cmd = [
|
cmd = [
|
||||||
|
Loading…
Reference in New Issue
Block a user