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.1.tar.gz (2.8 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.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for g2n-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f17f134f0623e4e025655fdda41f1f5115f1663ff8f17bd154f3252bb319e5f1
MD5 1b5751f0817d6fcfae26e624a7373eb8
BLAKE2b-256 fa8ee3dce1a5fad1b7b881eb6a274f73b005250df6b171bcf2c548cb14af01ab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for g2n-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc8f1543c90d4bff7f339bd4aa6587bbf23831f67edf6a74e7655c0bc2cac9c2
MD5 20d68f6a440c0b9c0a17849ca112aba6
BLAKE2b-256 565d04822239edb83984231ea4cf11a282d1e322c5267b099c882bc20158f467

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