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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tmq-0.1.3.tar.gz.
File metadata
- Download URL: tmq-0.1.3.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58eb274b00794b754bca59394ec5a0aa46f45024769f96f2bebba2baa43ea671
|
|
| MD5 |
b31b0b529ad047663523d8eecd3e77a5
|
|
| BLAKE2b-256 |
98b9e6cb2501c72bffb1ee7e6c78b9e080df4e20b86e3610edd22d84a96ef469
|