Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StellaAthena authored Nov 26, 2023
1 parent 4808ced commit 6e8e92a
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions megatron/fused_kernels/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,35 @@ def _get_cuda_bare_metal_version(cuda_dir):
}
setup(
name="fused_kernels",
version="0.0.1",
author="Sid Black & Alejandro Molina et al.",
author_email="[email protected]",
version="0.0.2",
author="EleutherAI",
author_email="[email protected]",
include_package_data=False,
ext_modules=[
CUDAExtension(
"scaled_upper_triang_masked_softmax_cuda",
[
name="scaled_upper_triang_masked_softmax_cuda",
sources=[
str(srcpath / "scaled_upper_triang_masked_softmax.cpp"),
str(srcpath / "scaled_upper_triang_masked_softmax_cuda.cu"),
],
extra_compile_args=cuda_ext_args,
),
CUDAExtension(
"scaled_masked_softmax_cuda",
[
name="scaled_masked_softmax_cuda",
sources=[
str(srcpath / "scaled_masked_softmax.cpp"),
str(srcpath / "scaled_masked_softmax_cuda.cu"),
],
extra_compile_args=cuda_ext_args,
),
CUDAExtension(
name="fused_rotary_positional_embedding",
sources=[
str(srcpath / "fused_rotary_positional_embedding.cpp"),
str(srcpath / "csrc/megatron/fused_rotary_positional_embedding_cuda.cu"),
],
extra_compile_args=cuda_ext_args,
),
],
cmdclass={"build_ext": BuildExtension},
)

0 comments on commit 6e8e92a

Please sign in to comment.