Gender-Classifier-Mini 路 PNN 50 % 路 1-bit weights and 1-bit activations (V4.4 preview)
Preview. This file uses the PNN V4.4 format (1-bit activations), which is not released yet. It loads only with a PNN package that has the V4.4 preview switched on; released packages (V4.3) refuse it. It is not offered for inference on primeneural.net until V4.4 is released.
A Prime Neural Network (PNN) version of prithivMLmods/Gender-Classifier-Mini,
made by primeneural.net from its 1-bit model
PrimeNeural/Gender-Classifier-Mini-pnn-d50-1bit-j30.
72 linear layers of the encoder are PNN layers at 50 % density: in each layer every output reads a fixed, structured
set of inputs, the same number for every output, and no index is stored. Each connection is one bit, its sign, with
an FP16 scale per input and per output. In 60 of them (attention q, k, v and output projections, first feed-forward layer) the
inputs are 1 bit as well: each input is compared with a trained threshold (act_threshold, FP16 per input), so the
layer is an XOR and a bit count. The second feed-forward layer of each block keeps float inputs.
| Original model | prithivMLmods/Gender-Classifier-Mini |
| PNN layers | 72 at 50 % density, 1-bit weights; 60 of them with 1-bit inputs |
| Agreement with the original model (top-1, 2,000 held-out FairFace images) | 84.8 % (1-bit weights alone: 85.5 %) |
| Gender accuracy on the same images | 82.5 % (original 89.4 %, 1-bit weights alone 82.7 %) |
| Distillation | from the 1-bit model above: 1-bit inputs switched on with calibrated thresholds, then 3 epochs on HuggingFaceM4/FairFace (logit and hidden-state matching against the original; weights, scales and thresholds trained) |
| Model file | 21.7 MB (1-bit PNN layers; the pooling head and patch embedding dense, FP16) |
Accuracy was measured on the trained state; the file stores scales and thresholds in FP16, and the kernel library runs the 1-bit-input layers exactly on those values.
Loading requires the PNN package (evaluation licence: info@primeneural.net). 漏 PreciseStatistics GmbH (Prime Neural Networks) 路 Patent pending (US 19/685,168).
- Downloads last month
- 30
Model tree for PrimeNeural/Gender-Classifier-Mini-pnn-d50-1bit-a1-preview
Base model
google/siglip2-base-patch16-224