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
5602760a
Commit
5602760a
authored
Feb 25, 2023
by
zhuww
Browse files
add helpers.so and delete __init__ note
parent
1016e98a
Pipeline
#230
failed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
megatron/data/helpers.cpython-37m-x86_64-linux-gnu.so
megatron/data/helpers.cpython-37m-x86_64-linux-gnu.so
+0
-0
megatron/fused_kernels/__init__.py
megatron/fused_kernels/__init__.py
+1
-7
megatron/initialize.py
megatron/initialize.py
+1
-1
No files found.
megatron/data/helpers.cpython-37m-x86_64-linux-gnu.so
0 → 100644
View file @
5602760a
File added
megatron/fused_kernels/__init__.py
View file @
5602760a
...
@@ -31,8 +31,6 @@ def load(args):
...
@@ -31,8 +31,6 @@ def load(args):
# Check if cuda 11 is installed for compute capability 8.0
# Check if cuda 11 is installed for compute capability 8.0
cc_flag
=
[]
cc_flag
=
[]
_
,
bare_metal_major
,
_
=
_get_cuda_bare_metal_version
(
cpp_extension
.
CUDA_HOME
)
# Build path
# Build path
srcpath
=
pathlib
.
Path
(
__file__
).
parent
.
absolute
()
srcpath
=
pathlib
.
Path
(
__file__
).
parent
.
absolute
()
...
@@ -98,17 +96,13 @@ def load(args):
...
@@ -98,17 +96,13 @@ def load(args):
def
_get_cuda_bare_metal_version
(
cuda_dir
):
def
_get_cuda_bare_metal_version
(
cuda_dir
):
raw_output
=
subprocess
.
check_output
([
cuda_dir
+
"/bin/
nv
cc"
,
"--version"
],
raw_output
=
subprocess
.
check_output
([
cuda_dir
+
"/bin/
hip
cc"
,
"--version"
],
universal_newlines
=
True
)
universal_newlines
=
True
)
output
=
raw_output
.
split
()
output
=
raw_output
.
split
()
print
(
"output:"
,
output
)
release_idx
=
output
.
index
(
"version:"
)
+
1
release_idx
=
output
.
index
(
"version:"
)
+
1
print
(
"release_idx"
,
release_idx
)
release
=
output
[
release_idx
].
split
(
"."
)
release
=
output
[
release_idx
].
split
(
"."
)
print
(
"release"
,
release
)
bare_metal_major
=
release
[
0
]
bare_metal_major
=
release
[
0
]
bare_metal_minor
=
release
[
1
][
0
]
bare_metal_minor
=
release
[
1
][
0
]
print
(
"bare_metal_major, bare_metal_minor"
,
bare_metal_major
,
bare_metal_minor
)
return
raw_output
,
bare_metal_major
,
bare_metal_minor
return
raw_output
,
bare_metal_major
,
bare_metal_minor
...
...
megatron/initialize.py
View file @
5602760a
...
@@ -237,7 +237,7 @@ def set_jit_fusion_options():
...
@@ -237,7 +237,7 @@ def set_jit_fusion_options():
if
(
TORCH_MAJOR
>
1
)
or
(
TORCH_MAJOR
==
1
and
TORCH_MINOR
>=
10
):
if
(
TORCH_MAJOR
>
1
)
or
(
TORCH_MAJOR
==
1
and
TORCH_MINOR
>=
10
):
# nvfuser
# nvfuser
torch
.
_C
.
_jit_set_profiling_executor
(
True
)
torch
.
_C
.
_jit_set_profiling_executor
(
True
)
torch
.
_C
.
_jit_set_profiling_mode
(
Tru
e
)
torch
.
_C
.
_jit_set_profiling_mode
(
Fals
e
)
torch
.
_C
.
_jit_override_can_fuse_on_cpu
(
False
)
torch
.
_C
.
_jit_override_can_fuse_on_cpu
(
False
)
torch
.
_C
.
_jit_override_can_fuse_on_gpu
(
False
)
torch
.
_C
.
_jit_override_can_fuse_on_gpu
(
False
)
torch
.
_C
.
_jit_set_texpr_fuser_enabled
(
False
)
torch
.
_C
.
_jit_set_texpr_fuser_enabled
(
False
)
...
...
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