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.3.tar.gz (10.3 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.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: g2n-0.4.3.tar.gz
  • Upload date:
  • Size: 10.3 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.3.tar.gz
Algorithm Hash digest
SHA256 a4380a2ef9cde85cb7d3921762f2f9a0f0568476a500ca5e2b61209a73df0bb4
MD5 cded6f5e96a9e77e0cb648a1626a2b7a
BLAKE2b-256 3da929cd3c8a190e393a3bdc497546278d74c5ad1d66fd47a1765d2998090d57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: g2n-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a2aed6e9c29cf81367aa5d95ee5479de8cb245beac91992eb760731a3ac64148
MD5 c7027cfd29cf8dc3f6ffb93e2b5fc533
BLAKE2b-256 777301486734cb2018f40441ad584ebae330325b789ffa40879f016b4923b950

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