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
Megatron-LM
Commits
cd3529b9
Commit
cd3529b9
authored
Apr 21, 2020
by
Evelina Bakhturina
Browse files
review feedback
parent
71f9e76c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
23 deletions
+9
-23
megatron/__init__.py
megatron/__init__.py
+5
-8
megatron/package_info.py
megatron/package_info.py
+2
-2
requirements.txt
requirements.txt
+0
-1
setup.py
setup.py
+2
-12
No files found.
megatron/__init__.py
View file @
cd3529b9
...
...
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
from
.package_info
import
(
__contact_emails__
,
__contact_names__
,
...
...
@@ -27,12 +25,11 @@ from .package_info import (
__version__
,
)
if
"MEGATRON_PACKAGE_BUILDING"
not
in
os
.
environ
:
from
.global_vars
import
get_args
from
.global_vars
import
get_tokenizer
from
.global_vars
import
get_tensorboard_writer
from
.global_vars
import
get_adlr_autoresume
from
.global_vars
import
get_timers
from
.global_vars
import
get_args
from
.global_vars
import
get_tokenizer
from
.global_vars
import
get_tensorboard_writer
from
.global_vars
import
get_adlr_autoresume
from
.global_vars
import
get_timers
import
torch
...
...
megatron/package_info.py
View file @
cd3529b9
...
...
@@ -16,8 +16,8 @@
# limitations under the License.
MAJOR
=
0
MINOR
=
0
PATCH
=
1
MINOR
=
1
PATCH
=
0
# Use the following formatting: (major, minor, patch)
VERSION
=
(
MAJOR
,
MINOR
,
PATCH
)
...
...
requirements.txt
View file @
cd3529b9
setuptools
nltk
\ No newline at end of file
setup.py
View file @
cd3529b9
...
...
@@ -18,17 +18,10 @@
"""Setup for pip package."""
import
codecs
import
os
import
subprocess
import
sys
from
distutils
import
cmd
as
distutils_cmd
from
distutils
import
log
as
distutils_log
from
itertools
import
chain
import
setuptools
import
sys
if
sys
.
version_info
<
(
3
,):
raise
Exception
(
"Python 2 is not supported by Megatron."
)
...
...
@@ -44,9 +37,6 @@ def is_build_action():
return
False
if
is_build_action
():
os
.
environ
[
'MEGATRON_PACKAGE_BUILDING'
]
=
'True'
from
megatron.package_info
import
(
__contact_emails__
,
__contact_names__
,
...
...
@@ -75,7 +65,7 @@ def req_file(filename):
install_requires
=
req_file
(
"requirements.txt"
)
setuptools
.
setup
(
name
=
__package_name__
+
'_test'
,
name
=
__package_name__
,
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
...
...
@@ -130,5 +120,5 @@ setuptools.setup(
include_package_data
=
True
,
zip_safe
=
False
,
# PyPI package information.
keywords
=
__keywords__
,
keywords
=
__keywords__
)
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