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.7.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: femtocrux-3.7.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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65484371659891884482f9b0df4cdfe1cd40b2f6a8499244cf8333f521e2a971
MD5 c09ba7544e495d66cb1829d30560c856
BLAKE2b-256 c74a06815dbafed6e5f92cd6984fb872668680458117b8898f4249d1f61c61f5

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