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
f15f69bf
Commit
f15f69bf
authored
Jun 05, 2023
by
zhuwenwen
Browse files
add dcu version and readme
parent
2bd45062
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
README.md
README.md
+5
-1
setup.py
setup.py
+2
-2
No files found.
README.md
View file @
f15f69bf
...
@@ -36,4 +36,8 @@ pip install dist/colossalai*
...
@@ -36,4 +36,8 @@ pip install dist/colossalai*
```
```
## Note
## Note
+
若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
+
若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
\ No newline at end of file
## 参考
-
[
README_ORIGIN
](
README_ORIGIN.md
)
-
[
README_zh-Hans
](
README_zh-Hans.md
)
\ No newline at end of file
setup.py
View file @
f15f69bf
...
@@ -154,7 +154,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
...
@@ -154,7 +154,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
lines
=
[]
lines
=
[]
with
open
(
add_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
with
open
(
add_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
=
file
.
readlines
()
lines
[
1
]
=
"__version__
=
'0.1.13+{}'
\n
"
.
format
(
version
)
lines
[
2
]
=
"__
dcu_
version__
=
'0.1.13+{}'
\n
"
.
format
(
version
)
with
open
(
add_version_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
with
open
(
add_version_path
,
encoding
=
"utf-8"
,
mode
=
"w"
)
as
file
:
file
.
writelines
(
lines
)
file
.
writelines
(
lines
)
file
.
close
()
file
.
close
()
...
@@ -181,7 +181,7 @@ def get_version():
...
@@ -181,7 +181,7 @@ def get_version():
get_version_add
()
get_version_add
()
with
open
(
version_py_path
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
version_py_path
,
encoding
=
'utf-8'
)
as
f
:
exec
(
compile
(
f
.
read
(),
version_py_path
,
'exec'
))
exec
(
compile
(
f
.
read
(),
version_py_path
,
'exec'
))
return
locals
()[
'__version__'
]
return
locals
()[
'__
dcu_
version__'
]
return
version
return
version
...
...
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