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)

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.

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

If you're not sure about the file name format, learn more about wheel file names.

femtocrux-3.5.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file femtocrux-3.5.0-py3-none-any.whl.

File metadata

  • Download URL: femtocrux-3.5.0-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for femtocrux-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fc5499e2a693aedb26d53d3bbe473903ddf510c512e29ee6f6c108f96c9db8
MD5 fd3ed20ceaede15a27d870e8fff254b0
BLAKE2b-256 b5d82416a6e0b2e88f4c31c7d56d1158622052deb25436b18487e9aef5a58f40

See more details on using hashes here.

Supported by

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