Spaces:
Running on Zero
Running on Zero
File size: 580 Bytes
d1f1097 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import subprocess
from setuptools import Extension, setup
setup_args = dict(
ext_modules=[
Extension(
"megatron.core.datasets.helpers_cpp",
sources=["megatron/core/datasets/helpers.cpp"],
language="c++",
extra_compile_args=(
subprocess.check_output(["python3", "-m", "pybind11", "--includes"])
.decode("utf-8")
.strip()
.split()
)
+ ["-O3", "-Wall", "-std=c++17"],
optional=True,
)
]
)
setup(**setup_args)
|