g2n 0.4.1__tar.gz

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-0.4.1/PKG-INFO ADDED
@@ -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.
g2n-0.4.1/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # g2n
2
+
3
+ A compiler backend for PyTorch: pointwise fusion, buffer-reuse planning, and a
4
+ persistent cross-run compile cache so repeat builds skip recompilation.
5
+
6
+ ```bash
7
+ pip install g2n
8
+ ```
9
+
10
+ ```python
11
+ import torch
12
+ import g2n
13
+
14
+ model = MyModule().eval()
15
+ compiled = g2n.compile(model)
16
+ # or register as a torch.compile backend:
17
+ compiled = torch.compile(model, backend="g2n")
18
+ ```
19
+
20
+ A license key unlocks the Pro and Enterprise features (enhanced buffer planner,
21
+ persistent cache, multi-accelerator routing, model-zoo configurations). See the
22
+ documentation at https://g2n.dev/docs.
@@ -0,0 +1,71 @@
1
+ # =============================================================================
2
+ # pyproject.toml — builds the `g2n` distribution (pip install g2n).
3
+ #
4
+ # Layout: src/ (the import package lives at src/g2n/). Build with:
5
+ # python -m build -> dist/g2n-<ver>-py3-none-any.whl
6
+ # dist/g2n-<ver>.tar.gz
7
+ # See PACKAGING.md for the full build + upload runbook.
8
+ #
9
+ # IMPORTANT before first upload:
10
+ # * `name = "g2n"` is the PyPI distribution name. If you already own the
11
+ # `g2n` project on PyPI (the open-core compiler), uploading here updates
12
+ # THAT project — bump `version` past whatever is already published, and
13
+ # upload to TestPyPI first.
14
+ # * Distribution name (`g2n`) and import name (`import g2n`) match here.
15
+ # =============================================================================
16
+
17
+ [build-system]
18
+ requires = ["setuptools>=64", "wheel"]
19
+ build-backend = "setuptools.build_meta"
20
+
21
+ [project]
22
+ name = "g2n"
23
+ version = "0.4.1" # <-- set to your next release; must exceed PyPI
24
+ description = "A compiler backend for PyTorch: pointwise fusion, buffer-reuse planning, and a persistent cross-run compile cache."
25
+ readme = "README.md"
26
+ requires-python = ">=3.10"
27
+ license = { text = "Apache-2.0" } # <-- set to your actual licence
28
+ authors = [{ name = "g2n" }]
29
+ maintainers = [{ name = "g2n" }]
30
+ keywords = ["pytorch", "compiler", "triton", "gpu", "inference", "torch.compile"]
31
+ classifiers = [
32
+ "Development Status :: 4 - Beta",
33
+ "Intended Audience :: Developers",
34
+ "License :: OSI Approved :: Apache Software License",
35
+ "Programming Language :: Python :: 3",
36
+ "Programming Language :: Python :: 3.10",
37
+ "Programming Language :: Python :: 3.11",
38
+ "Programming Language :: Python :: 3.12",
39
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
40
+ "Topic :: Software Development :: Compilers",
41
+ ]
42
+
43
+ # Runtime dependencies. torch is declared as an extra (not a hard dep) so the
44
+ # wheel installs without forcing a specific build; pin to match your codegen
45
+ # requirements when you wire the real package.
46
+ dependencies = []
47
+
48
+ [project.optional-dependencies]
49
+ torch = ["torch>=2.4"]
50
+ dev = ["build>=1.2", "twine>=5", "pytest>=7"]
51
+
52
+ [project.urls]
53
+ Homepage = "https://g2n.dev"
54
+ Documentation = "https://g2n.dev/docs"
55
+ Source = "https://github.com/your-org/g2n"
56
+ Issues = "https://github.com/your-org/g2n/issues"
57
+
58
+ # Optional CLI entry point (the `g2n activate <key>` command). Point this at the
59
+ # real callable in your package when you wire it.
60
+ # [project.scripts]
61
+ # g2n = "g2n.cli:main"
62
+
63
+ [tool.setuptools]
64
+ package-dir = { "" = "src" }
65
+
66
+ [tool.setuptools.packages.find]
67
+ where = ["src"]
68
+
69
+ [tool.setuptools.dynamic]
70
+ # Alternatively, read the version from the package instead of hard-coding it:
71
+ # version = { attr = "g2n.__version__" }
g2n-0.4.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/g2n/__init__.py
4
+ src/g2n.egg-info/PKG-INFO
5
+ src/g2n.egg-info/SOURCES.txt
6
+ src/g2n.egg-info/dependency_links.txt
7
+ src/g2n.egg-info/requires.txt
8
+ src/g2n.egg-info/top_level.txt
@@ -0,0 +1,8 @@
1
+
2
+ [dev]
3
+ build>=1.2
4
+ twine>=5
5
+ pytest>=7
6
+
7
+ [torch]
8
+ torch>=2.4
@@ -0,0 +1 @@
1
+ g2n