A JAX backend for pynapple.
Project description
pynajax
Welcome to pynajax, a GPU accelerated backend for pynapple built on top on jax. It offers a fast acceleration for the core pynapple functions using GPU.
Warning ⚠️ This package is not meant to be used on its own. It should only be used through the pynapple API.
Installation
Run the following pip command in your virtual environment.
For macOS/Linux users:
pip install pynajax
For Windows users:
python -m pip install pynajax
Alternatively, you can install pynapple and pynajax together.
pip install pynapple[jax]
Basic usage
To use pynajax, you need to change the pynapple backend using nap.nap_config.set_backend. See the example below :
import pynapple as nap
import numpy as np
nap.nap_config.set_backend("jax")
tsd = nap.Tsd(t=np.arange(100), d=np.random.randn(100))
# This will run on GPU or CPU depending on the jax installation
tsd.convolve(np.ones(11))
Benchmark
This benchmark for the convolve function was run on a GPU.
See the documentation for others benchmarks.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynajax-0.2.1.tar.gz.
File metadata
- Download URL: pynajax-0.2.1.tar.gz
- Upload date:
- Size: 67.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf2e2eaad92b6a399c0b7dadac454f3d70660feb75cdefaed13ca180a24f9ad
|
|
| MD5 |
f19bd85b064fe5f4b40187256d6d73bf
|
|
| BLAKE2b-256 |
c445d9e31a3677a148514ae7196e20481cb5d5b7ad78104416d738084aadf596
|
Provenance
The following attestation bundles were made for pynajax-0.2.1.tar.gz:
Publisher:
deploy.yml on pynapple-org/pynajax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pynajax-0.2.1.tar.gz -
Subject digest:
4cf2e2eaad92b6a399c0b7dadac454f3d70660feb75cdefaed13ca180a24f9ad - Sigstore transparency entry: 192606543
- Sigstore integration time:
-
Permalink:
pynapple-org/pynajax@4ba6a2341949ce3e25b7aa1d3748a57182c6153c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/pynapple-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@4ba6a2341949ce3e25b7aa1d3748a57182c6153c -
Trigger Event:
release
-
Statement type:
File details
Details for the file pynajax-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pynajax-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c716cbf7633f9060b1e5cdba23a83ff47fcc5eaa2e1935cf02986acaf117e22
|
|
| MD5 |
b103b84beb2f15e8e03c08da186073fa
|
|
| BLAKE2b-256 |
5441a5dfd6b65610b4f6f674ce3ee3e9204958ba1e604bac9d438414473af02b
|
Provenance
The following attestation bundles were made for pynajax-0.2.1-py3-none-any.whl:
Publisher:
deploy.yml on pynapple-org/pynajax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pynajax-0.2.1-py3-none-any.whl -
Subject digest:
8c716cbf7633f9060b1e5cdba23a83ff47fcc5eaa2e1935cf02986acaf117e22 - Sigstore transparency entry: 192606544
- Sigstore integration time:
-
Permalink:
pynapple-org/pynajax@4ba6a2341949ce3e25b7aa1d3748a57182c6153c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/pynapple-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@4ba6a2341949ce3e25b7aa1d3748a57182c6153c -
Trigger Event:
release
-
Statement type: