g2n 0.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- g2n/__init__.py +11 -0
- g2n-0.4.1.dist-info/METADATA +52 -0
- g2n-0.4.1.dist-info/RECORD +5 -0
- g2n-0.4.1.dist-info/WHEEL +5 -0
- g2n-0.4.1.dist-info/top_level.txt +1 -0
g2n/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""g2n — a compiler backend for PyTorch.
|
|
2
|
+
|
|
3
|
+
This is the public distribution installed via ``pip install g2n``. Wire your
|
|
4
|
+
actual compiler entry points (``compile``, ``model_zoo``, the ``torch.compile``
|
|
5
|
+
backend registration, the ``activate`` CLI) into this package; the version
|
|
6
|
+
string below is what PyPI and the license server's update channel read.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
__version__ = "0.4.1"
|
|
10
|
+
|
|
11
|
+
__all__ = ["__version__"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: g2n
|
|
3
|
+
Version: 0.4.1
|
|
4
|
+
Summary: A compiler backend for PyTorch: pointwise fusion, buffer-reuse planning, and a persistent cross-run compile cache.
|
|
5
|
+
Author: g2n
|
|
6
|
+
Maintainer: g2n
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://g2n.dev
|
|
9
|
+
Project-URL: Documentation, https://g2n.dev/docs
|
|
10
|
+
Project-URL: Source, https://github.com/your-org/g2n
|
|
11
|
+
Project-URL: Issues, https://github.com/your-org/g2n/issues
|
|
12
|
+
Keywords: pytorch,compiler,triton,gpu,inference,torch.compile
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Classifier: Topic :: Software Development :: Compilers
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
Provides-Extra: torch
|
|
25
|
+
Requires-Dist: torch>=2.4; extra == "torch"
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
28
|
+
Requires-Dist: twine>=5; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
30
|
+
|
|
31
|
+
# g2n
|
|
32
|
+
|
|
33
|
+
A compiler backend for PyTorch: pointwise fusion, buffer-reuse planning, and a
|
|
34
|
+
persistent cross-run compile cache so repeat builds skip recompilation.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install g2n
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
import torch
|
|
42
|
+
import g2n
|
|
43
|
+
|
|
44
|
+
model = MyModule().eval()
|
|
45
|
+
compiled = g2n.compile(model)
|
|
46
|
+
# or register as a torch.compile backend:
|
|
47
|
+
compiled = torch.compile(model, backend="g2n")
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
A license key unlocks the Pro and Enterprise features (enhanced buffer planner,
|
|
51
|
+
persistent cache, multi-accelerator routing, model-zoo configurations). See the
|
|
52
|
+
documentation at https://g2n.dev/docs.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
g2n/__init__.py,sha256=urIVDxs-yuVy_dSZOM15Q1--uo1IOdGXx15rGgOpC_Y,402
|
|
2
|
+
g2n-0.4.1.dist-info/METADATA,sha256=wmuNaXdlrADcXaH6x2NrIlj86VRRf9EoxyBmDIyw5iU,1805
|
|
3
|
+
g2n-0.4.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
g2n-0.4.1.dist-info/top_level.txt,sha256=jzNH-8UfPoNI74vldBBUTITRM5DOy9HRInubrjezs4w,4
|
|
5
|
+
g2n-0.4.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
g2n
|