Femtosense Compiler
Project description
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)
- Tensorflow Lite (TFLite)
Installation
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
Basic Usage
# fqir_model = ... # Assuming we have an FQIRModel
# inputs = ... # Assuming we have inputs for the model
from femtocrux import CompilerClient
client = CompilerClient()
simulator = client.simulate(fqir_model)
outputs = simulator.simulate(inputs)
APIs
Coming soon...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
femtocrux-0.2.9-py3-none-any.whl
(18.5 kB
view details)
File details
Details for the file femtocrux-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: femtocrux-0.2.9-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e19d1febef381f576ce7947000925cd4b6a48aa0724c2ede6bc0932113e6ffc |
|
MD5 | 93e45d434b41d6de15a82eae57cc55b5 |
|
BLAKE2b-256 | 17a8e63fbc82f216cc13de48466625c82bd6f0cf30253dc5a7c7b3f71f2caffc |