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
43ff1d4f
Commit
43ff1d4f
authored
Jun 05, 2023
by
zhuwenwen
Browse files
modify dcu_version
parent
dff277ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
colossalai/__init__.py
colossalai/__init__.py
+1
-1
setup.py
setup.py
+2
-5
version.txt
version.txt
+1
-0
No files found.
colossalai/__init__.py
View file @
43ff1d4f
...
...
@@ -9,7 +9,7 @@ from .initialize import (
try
:
# .version will be created by setup.py
from
.version
import
__version__
from
.version
import
__version__
,
__dcu_version__
except
ModuleNotFoundError
:
# this will only happen if the user did not run `pip install`
# and directly set PYTHONPATH to use Colossal-AI which is a bad practice
...
...
setup.py
View file @
43ff1d4f
...
...
@@ -151,12 +151,9 @@ def get_version_add(sha: Optional[str] = None) -> str:
# torch version
version
+=
".torch"
+
torch
.
__version__
[:
4
]
lines
=
[]
with
open
(
add_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
[
2
]
=
"__dcu_version__ = '0.1.13+{}'
\n
"
.
format
(
version
)
with
open
(
add_version_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
file
.
writelines
(
lines
)
file
.
write
(
"__version__='0.1.13'
\n
"
)
file
.
write
(
"__dcu_version__='0.1.13+{}'
\n
"
.
format
(
version
))
file
.
close
()
...
...
version.txt
View file @
43ff1d4f
0.1.13
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