Metadata-Version: 2.4
Name: g2n
Version: 0.4.1
Summary: A compiler backend for PyTorch: pointwise fusion, buffer-reuse planning, and a persistent cross-run compile cache.
Author: g2n
Maintainer: g2n
License: Apache-2.0
Project-URL: Homepage, https://g2n.dev
Project-URL: Documentation, https://g2n.dev/docs
Project-URL: Source, https://github.com/your-org/g2n
Project-URL: Issues, https://github.com/your-org/g2n/issues
Keywords: pytorch,compiler,triton,gpu,inference,torch.compile
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Compilers
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Provides-Extra: torch
Requires-Dist: torch>=2.4; extra == "torch"
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=5; extra == "dev"
Requires-Dist: pytest>=7; extra == "dev"

# g2n

A compiler backend for PyTorch: pointwise fusion, buffer-reuse planning, and a
persistent cross-run compile cache so repeat builds skip recompilation.

```bash
pip install g2n
```

```python
import torch
import g2n

model = MyModule().eval()
compiled = g2n.compile(model)
# or register as a torch.compile backend:
compiled = torch.compile(model, backend="g2n")
```

A license key unlocks the Pro and Enterprise features (enhanced buffer planner,
persistent cache, multi-accelerator routing, model-zoo configurations). See the
documentation at https://g2n.dev/docs.
