OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Qkeras

QKeras is a Python extension for TensorFlow Keras that supplies quantized replacements for selected model layers, activations and arithmetic operations, allowing developers to build quantized deep-learning networks.

Independent OpenViST project profile, based on linked sources.

Qkeras — Adapting Keras models with parameter-creating layers such as Dense or Conv2D
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use QKeras when working in a TensorFlow Keras model workflow and you want to construct a quantized version by replacing supported layers and quantizing operations.

Who it is for

  • Developers building or adapting deep-learning models with Keras.
  • Researchers experimenting with quantized parameters, activations and operations.
  • Teams prototyping neural networks intended for hardware-accelerated implementation.

Documented uses

  • Replace selected Keras layers with quantized counterparts in a model.
  • Apply quantization to activation and mathematical operations.
  • Experiment with quantizer settings such as bit width, integer bits and numeric range.
Before you choose

Requirements & limits

The public GitHub repository specifies an Apache-2.0 license.

  • Model changes are required: parameter-creating layers need quantized counterparts, and mathematical operations need quantization afterward.
  • Quantizer settings include bit width and integer-bit allocation; range settings may need adjustment for values outside [-1, 1].
  • The README flags limitations around some high-level layer-wrapper combinations and says the QActivation save-and-restore interface has not been fully tested.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Replace Keras layers with quantized counterparts

Create a quantized Keras model by replacing parameter-creating layers and quantizing layers that perform math operations.

Before you start

  • A Keras model with variable-creating layers such as Dense or Conv2D.
  • QKeras quantized counterparts such as QDense or QConv2D.

Steps

  1. Replace variable-creating layers in the model, such as Dense and Conv2D, with their QKeras counterparts, such as QDense and QConv2D.

  2. Quantize any layers that perform math operations.

Expected outcome

The model is configured as a quantized version of the Keras network.

Guide limitations

  • The guidance does not specify installation, code syntax, training or inference steps, or how to choose quantization settings.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
8 November 2026
Original website title
google/qkeras · Official homepage title · retained in its source language