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
File details
Details for the file femtocrux-0.2.8.post1-py3-none-any.whl
.
File metadata
- Download URL: femtocrux-0.2.8.post1-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4b543d9bb0cade3b3d136efc72bcd1015c6e3ed801be8eee54d202d5447c86 |
|
MD5 | 257e1497cdfa7394da010d6ba6085892 |
|
BLAKE2b-256 | 352e918b5e9be039d7d78837142ab8921824d4ccd04c4b4c6b598210caddea5f |