femtocrux
Compiler API for the Femotsense Sparse Processing Unit (SPU).
This package drives compilation of machine learning models to SPU binaries, as well as simulation of those binaries on SPU hardware.
The package itself is a thin Python wrapper communicating to the actual compiler / simulator via gRPC.
Supported ML model representations:
- Femtosense Quantized IR (FQIR)
Installation
You will need to install femtocrux and femtodriver to compile models to run on the SPU and to run simulations to
get power metrics.
You will need to have python 3.10 and Docker installed.
Install Docker by following these instructions.
femtocrux is available on PyPI via
pip install femtocrux
femtodriver is also available on PyPI via
pip install femtodriver
Usage
Please refer to the documentation in the e2e walkthrough for a full example of how to create a model in pytorch, use femtodriver to compile program files to run on the SPU, and for how to run simulations of the model to get power estimates.
If you want more detailed documentation of all the options you can use to compile and simulate with please refer to the femtodriver documentation.
Metadata
Release files for femtocrux 3.11.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| femtocrux-3.11.7-py3-none-any.whl | Python 3 | none | any | Details for femtocrux-3.11.7-py3-none-any.whl |
Release files / femtocrux-3.11.7-py3-none-any.whl
| Download URL | femtocrux-3.11.7-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db16e5488aa9d7446d2a0292ac39727b1633143f4c0bb26e77adf5691c63f93a
|
|
BLAKE2b-256 checksum How to use checksums |
2a93101764c89b349419145e1d0d95e6ceb140204827f929f3a03a7b03e126ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for femtocrux 3.11.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.