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
deepspeed
Commits
50ae149f
Commit
50ae149f
authored
Feb 09, 2020
by
Shaden Smith
Committed by
GitHub
Feb 09, 2020
Browse files
Moving to major/minor/patch versioning. (#51)
parent
e4c55390
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
deepspeed/__init__.py
deepspeed/__init__.py
+10
-2
install.sh
install.sh
+3
-3
setup.py
setup.py
+2
-1
tests/unit/test_config.py
tests/unit/test_config.py
+3
-0
No files found.
deepspeed/__init__.py
View file @
50ae149f
...
@@ -7,12 +7,20 @@ from deepspeed.pt.deepspeed_light import ADAM_OPTIMIZER, LAMB_OPTIMIZER
...
@@ -7,12 +7,20 @@ from deepspeed.pt.deepspeed_light import ADAM_OPTIMIZER, LAMB_OPTIMIZER
from
deepspeed.pt.deepspeed_lr_schedules
import
add_tuning_arguments
from
deepspeed.pt.deepspeed_lr_schedules
import
add_tuning_arguments
try
:
try
:
from
deepspeed.version_info
import
git_hash
,
git_branch
from
deepspeed.
git_
version_info
import
git_hash
,
git_branch
except
ImportError
:
except
ImportError
:
git_hash
=
None
git_hash
=
None
git_branch
=
None
git_branch
=
None
__version__
=
0.1
# Export version information
__version_major__
=
0
__version_minor__
=
1
__version_patch__
=
0
__version__
=
'.'
.
join
(
map
(
str
,
[
__version_major__
,
__version_minor__
,
__version_patch__
]))
__git_hash__
=
git_hash
__git_hash__
=
git_hash
__git_branch__
=
git_branch
__git_branch__
=
git_branch
...
...
install.sh
View file @
50ae149f
...
@@ -80,9 +80,9 @@ if [ "$ds_only" == "1" ] && [ "$tp_only" == "1" ]; then
...
@@ -80,9 +80,9 @@ if [ "$ds_only" == "1" ] && [ "$tp_only" == "1" ]; then
fi
fi
echo
"Updating git hash/branch info"
echo
"Updating git hash/branch info"
echo
"git_hash = '
$(
git rev-parse
--short
HEAD
)
'"
>
deepspeed/version_info.py
echo
"git_hash = '
$(
git rev-parse
--short
HEAD
)
'"
>
deepspeed/
git_
version_info.py
echo
"git_branch = '
$(
git rev-parse
--abbrev-ref
HEAD
)
'"
>>
deepspeed/version_info.py
echo
"git_branch = '
$(
git rev-parse
--abbrev-ref
HEAD
)
'"
>>
deepspeed/
git_
version_info.py
cat
deepspeed/version_info.py
cat
deepspeed/
git_
version_info.py
install_apex
=
'sudo -H pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" third_party/apex'
install_apex
=
'sudo -H pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" third_party/apex'
...
...
setup.py
View file @
50ae149f
...
@@ -9,6 +9,7 @@ The wheel will be located at: dist/*.whl
...
@@ -9,6 +9,7 @@ The wheel will be located at: dist/*.whl
"""
"""
import
torch
import
torch
from
deepspeed
import
__version__
as
ds_version
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
from
torch.utils.cpp_extension
import
CUDAExtension
,
BuildExtension
from
torch.utils.cpp_extension
import
CUDAExtension
,
BuildExtension
...
@@ -29,7 +30,7 @@ ext_modules.append(
...
@@ -29,7 +30,7 @@ ext_modules.append(
}))
}))
setup
(
name
=
'deepspeed'
,
setup
(
name
=
'deepspeed'
,
version
=
'0.1'
,
version
=
ds_version
,
description
=
'DeepSpeed library'
,
description
=
'DeepSpeed library'
,
author
=
'DeepSpeed Team'
,
author
=
'DeepSpeed Team'
,
author_email
=
'deepspeed@microsoft.com'
,
author_email
=
'deepspeed@microsoft.com'
,
...
...
tests/unit/test_config.py
View file @
50ae149f
...
@@ -17,6 +17,9 @@ def test_check_version():
...
@@ -17,6 +17,9 @@ def test_check_version():
assert
hasattr
(
deepspeed
,
"__git_hash__"
)
assert
hasattr
(
deepspeed
,
"__git_hash__"
)
assert
hasattr
(
deepspeed
,
"__git_branch__"
)
assert
hasattr
(
deepspeed
,
"__git_branch__"
)
assert
hasattr
(
deepspeed
,
"__version__"
)
assert
hasattr
(
deepspeed
,
"__version__"
)
assert
hasattr
(
deepspeed
,
"__version_major__"
)
assert
hasattr
(
deepspeed
,
"__version_minor__"
)
assert
hasattr
(
deepspeed
,
"__version_patch__"
)
def
_run_batch_config
(
ds_config
,
train_batch
=
None
,
micro_batch
=
None
,
gas
=
None
):
def
_run_batch_config
(
ds_config
,
train_batch
=
None
,
micro_batch
=
None
,
gas
=
None
):
...
...
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