forked from pytorch/torchdynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·60 lines (53 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env python
import sys
from setuptools import find_packages
from setuptools import setup
long_description = """
TorchDynamo is a Python-level JIT compiler designed to make unmodified
PyTorch programs faster. TorchDynamo hooks into the frame evaluation API
in CPython (PEP 523) to dynamically modify Python bytecode right before
it is executed. It rewrites Python bytecode in order to extract sequences
of PyTorch operations into an FX Graph which is then just-in-time
compiled with an ensemble of different backends and autotuning.
"""
package_include = [
"torchdynamo",
"torchdynamo.*",
"torchinductor",
"torchinductor.*",
]
if "develop" in sys.argv:
package_include += [
"benchmarks",
"benchmarks.microbenchmarks",
"benchmarks.microbenchmarks.*",
]
install_requires = [
"torch>=1.13.0",
"numpy",
"tabulate",
"pyyaml",
"dill",
"jinja2",
"networkx",
"sympy",
]
setup(
name="torchdynamo",
version="1.14.0.dev0",
url="https://github.com/pytorch/torchdynamo",
description="A Python-level JIT compiler designed to make unmodified PyTorch programs faster.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Jason Ansel",
author_email="jansel@meta.com",
license="BSD-3",
keywords="pytorch machine learning compilers",
python_requires=">=3.7, <3.11",
install_requires=install_requires,
packages=find_packages(include=package_include),
package_data={
"torchinductor.codegen": ["*.h", "*.j2"],
},
zip_safe=False,
)