Skip to main content

Femtosense Compiler

Project description

Build Status

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


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.10.post1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file femtocrux-0.2.10.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for femtocrux-0.2.10.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 053b6a2b6d4d69e0911ca6b413606429101bbcffb4a52f646c34c16c0a7b7568
MD5 8093239acf882581ce97e4760d208c76
BLAKE2b-256 0e55c9a9e7207134f30e767225e39ae9516d0be5affadb1bf22c98bd4a9a63df

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page