Skip to main content

Write Python. Run JAX

Project description

jaxify

Write Python. Run JAX.

CI Codecov Ruff ty uv Publish PyPI PyPI - Python Version


⚠️ jaxify is an experimental project under development
Right now, only some if statements may work. Use at your own risk.

Installation

pip install jaxify

Getting started

import jax.numpy as jnp
from jaxify import jitx

@jitx
def absolute_value(x):
    if x >= 0:  # <-- If conditional in a JIT-compiled function!
        return x
    else:
        return -x

xs = jnp.arange(-1000, 1000)
ys = absolute_value(xs)  # <-- Runs at JAX speed!
print(ys)

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

jaxify-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

jaxify-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file jaxify-0.0.1.tar.gz.

File metadata

  • Download URL: jaxify-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jaxify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2336929bf21e5b0f093c9581466896b620ab30026556bffc7e9bf7b8a17c6bfd
MD5 bd44367ac1fccff016d620c765705062
BLAKE2b-256 b3de36d21b77d2bd6b85c9b9a46f0c3a34b2fdeb53b48b9e7a60cb4a6d30ec61

See more details on using hashes here.

File details

Details for the file jaxify-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: jaxify-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jaxify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a36e00fa1d36dff69d02701f9d2535a9df6ae397de6f4242c379b0cfc7aee9bc
MD5 e2c4c189f3e8355ae8fd0762398f7c36
BLAKE2b-256 c6bd3b6b99c88acf1c83b97ca2d79cbe14293863391a3b76ece97f2284327200

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