Skip to content

Commit dd48329

Browse files
committed
helpers.cpp suupport added, version changed, clean up
Signed-off-by: Evelina Bakhturina <[email protected]>
1 parent cd3529b commit dd48329

File tree

5 files changed

+19
-51
lines changed

5 files changed

+19
-51
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include megatron/data/Makefile
2+
include megatron/data/helpers.cpp

megatron/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# limitations under the License.
1515

1616
from .package_info import (
17-
__contact_emails__,
18-
__contact_names__,
1917
__description__,
2018
__url__,
2119
__download_url__,

megatron/package_info.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# ! /usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
4-
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
2+
# coding=utf-8
3+
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");
76
# you may not use this file except in compliance with the License.
@@ -15,17 +14,14 @@
1514
# See the License for the specific language governing permissions and
1615
# limitations under the License.
1716

18-
MAJOR = 0
19-
MINOR = 1
20-
PATCH = 0
17+
MAJOR = 1
18+
MINOR = 0
2119

2220
# Use the following formatting: (major, minor, patch)
23-
VERSION = (MAJOR, MINOR, PATCH)
21+
VERSION = (MAJOR, MINOR)
2422

2523
__version__ = '.'.join(map(str, VERSION))
26-
__package_name__ = 'megatron_lm'
27-
__contact_names__ = 'NVIDIA'
28-
__contact_emails__ = '[email protected]'
24+
__package_name__ = 'megatron-lm'
2925
__url__ = 'https://github.com/NVIDIA/Megatron-LM'
3026
__download_url__ = 'https://github.com/NVIDIA/Megatron-LM/releases'
3127
__description__ = 'Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism.'

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
nltk
1+
pybind11
2+
torch
3+
torchvision

setup.py

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# ! /usr/bin/python
2-
# -*- coding: utf-8 -*-
3-
4-
# Copyright 2020 NVIDIA. All Rights Reserved.
1+
# coding=utf-8
2+
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
53
#
64
# Licensed under the Apache License, Version 2.0 (the "License");
75
# you may not use this file except in compliance with the License.
@@ -14,7 +12,6 @@
1412
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1513
# See the License for the specific language governing permissions and
1614
# limitations under the License.
17-
# =============================================================================
1815

1916
"""Setup for pip package."""
2017

@@ -25,21 +22,7 @@
2522
if sys.version_info < (3,):
2623
raise Exception("Python 2 is not supported by Megatron.")
2724

28-
def is_build_action():
29-
if len(sys.argv) <= 1:
30-
return False
31-
32-
BUILD_TOKENS = ["egg_info", "dist", "bdist", "sdist", "install", "build", "develop", "style"]
33-
34-
if any([sys.argv[1].startswith(x) for x in BUILD_TOKENS]):
35-
return True
36-
else:
37-
return False
38-
39-
4025
from megatron.package_info import (
41-
__contact_emails__,
42-
__contact_names__,
4326
__description__,
4427
__url__,
4528
__download_url__,
@@ -49,6 +32,9 @@ def is_build_action():
4932
__version__,
5033
)
5134

35+
with open("README.md", "r") as fh:
36+
long_description = fh.read()
37+
5238
###############################################################################
5339
# Dependency Loading #
5440
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #
@@ -71,38 +57,21 @@ def req_file(filename):
7157
# https://packaging.python.org/en/latest/single_source_version.html
7258
version=__version__,
7359
description=__description__,
60+
long_description=long_description,
61+
long_description_content_type="text/markdown",
7462
# The project's main homepage.
7563
url=__url__,
76-
# Author details
77-
author=__contact_names__,
78-
author_email=__contact_emails__,
79-
# maintainer Details
80-
maintainer=__contact_names__,
81-
maintainer_email=__contact_emails__,
8264
# The licence under which the project is released
8365
license=__license__,
8466
classifiers=[
85-
# How mature is this project? Common values are
86-
# 1 - Planning
87-
# 2 - Pre-Alpha
88-
# 3 - Alpha
89-
# 4 - Beta
90-
# 5 - Production/Stable
91-
# 6 - Mature
92-
# 7 - Inactive
9367
'Development Status :: 4 - Beta',
9468
# Indicate who your project is intended for
9569
'Intended Audience :: Developers',
9670
'Intended Audience :: Science/Research',
9771
'Intended Audience :: Information Technology',
9872
# Indicate what your project relates to
99-
'Topic :: Scientific/Engineering',
100-
'Topic :: Scientific/Engineering :: Mathematics',
101-
'Topic :: Scientific/Engineering :: Image Recognition',
10273
'Topic :: Scientific/Engineering :: Artificial Intelligence',
103-
'Topic :: Software Development :: Libraries',
10474
'Topic :: Software Development :: Libraries :: Python Modules',
105-
'Topic :: Utilities',
10675
# Pick your license as you wish (should match "license" above)
10776
'License :: OSI Approved :: Apache Software License',
10877
# Supported python versions
@@ -114,6 +83,7 @@ def req_file(filename):
11483
'Natural Language :: English',
11584
'Operating System :: OS Independent',
11685
],
86+
python_requires='>=3.6',
11787
packages=setuptools.find_packages(),
11888
install_requires=install_requires,
11989
# Add in any packaged data.

0 commit comments

Comments
 (0)