"vscode:/vscode.git/clone" did not exist on "c587b06e8a9655f30112932693c9e715664ebe41"
Commit f15f69bf authored by zhuwenwen's avatar zhuwenwen
Browse files

add dcu version and readme

parent 2bd45062
......@@ -36,4 +36,8 @@ pip install dist/colossalai*
```
## Note
+ 若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
\ No newline at end of file
+ 若使用 pip install 下载安装过慢,可添加源:-i https://pypi.tuna.tsinghua.edu.cn/simple/
## 参考
- [README_ORIGIN](README_ORIGIN.md)
- [README_zh-Hans](README_zh-Hans.md)
\ No newline at end of file
......@@ -154,7 +154,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
lines=[]
with open(add_version_path, 'r',encoding='utf-8') as file:
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:
file.writelines(lines)
file.close()
......@@ -181,7 +181,7 @@ def get_version():
get_version_add()
with open(version_py_path, encoding='utf-8') as f:
exec(compile(f.read(), version_py_path, 'exec'))
return locals()['__version__']
return locals()['__dcu_version__']
return version
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment