Skip to main content

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

Project description

g2n

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

pip install g2n
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

g2n-0.4.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

g2n-0.4.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file g2n-0.4.2.tar.gz.

File metadata

  • Download URL: g2n-0.4.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for g2n-0.4.2.tar.gz
Algorithm Hash digest
SHA256 5d7bcb78f1d142e937f267e6f854d9403840fa6407037329905569f74fde68c7
MD5 096020b92af524999a9f99120929775e
BLAKE2b-256 75f5a33210550dfdc3c688204274c73bdb8414967c01936271e88330e8a30273

See more details on using hashes here.

File details

Details for the file g2n-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: g2n-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for g2n-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2300339eefbcbb26e06a07e0849d942bbbb8dda492cb1eaa735feb3825e2d893
MD5 521861080e64fd3228f6b03d004bdc1b
BLAKE2b-256 e456206a710919af735572f33dde2d082f0f626134925019e32f0f3a61663be8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page