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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for femtocrux-0.2.8.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4b543d9bb0cade3b3d136efc72bcd1015c6e3ed801be8eee54d202d5447c86
MD5 257e1497cdfa7394da010d6ba6085892
BLAKE2b-256 352e918b5e9be039d7d78837142ab8921824d4ccd04c4b4c6b598210caddea5f

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