Skip to main content

Quantization-aware neural network layers using controllable soft-quantization

Project description

TMQ is a framework for training quantization-aware neural networks with an emphasis on ternary quantization. It uses a differentiable transfer functions on the weights of the following layer types:

  • Linear
  • Conv2d (both transpose and regular)

The transfer function can be parameterized to range from a simple linear mapping to a soft-staircase function, which "forces" the weight values to distinct quantization levels over time.

TMQ-type layers can be used as drop-in replacement into existing models, only requiring minimal change to the training code, resulting in models that can be compressed significantly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmq-0.1.1.tar.gz (41.5 kB view details)

Uploaded Source

File details

Details for the file tmq-0.1.1.tar.gz.

File metadata

  • Download URL: tmq-0.1.1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for tmq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b374765b5cb45446520a5779f4f73fa5eb57e8c3acef2fc0522035f335a5e3b
MD5 4f8cd24cdd2dde60adaa0ff7c5cfc3da
BLAKE2b-256 a123d515fc43e42c2e649e406f5dfe9cfe8411f38319cb8cf609d7a45e9d8d6d

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