A Prime Neural Network (PNN) version of Qwen/Qwen3-0.6B, made on primeneural.net. 197 linear layers are PNN layers at 100 % density: in each layer every output reads a fixed, structured set of inputs, the same number for every output, and no index is stored. The weights are INT8 with one scale per output row.
| Original model | Qwen/Qwen3-0.6B |
| PNN layers | 197 at 100 % density |
| Agreement with the original model (top-1, held-out data) | 94.65 % |
| Distillation | 1 epochs on HuggingFaceFW/fineweb-edu (gather initialisation, hidden-state matching) |
| Model file | 911.41 MB (INT8; dense parts bfloat16) |
AutoModelForCausalLM.from_pretrained on this repository does not work: PNN layers are not a transformers layer type. pnn_load.py (in this repository) builds the original model from Qwen/Qwen3-0.6B, turns the listed layers into PNN layers and loads this file into it.
# pip install torch huggingface_hub transformers -- and the PNN package on the Python path
import importlib.util, torch
from huggingface_hub import hf_hub_download
REPO = "PrimeNeural/Qwen3-0.6B-pnn-d100-int8-j31"
spec = importlib.util.spec_from_file_location("pnn_load", hf_hub_download(REPO, "pnn_load.py"))
pnn_load = importlib.util.module_from_spec(spec); spec.loader.exec_module(pnn_load)
load = pnn_load.load
model = load(REPO) # a transformers AutoModelForCausalLM, ready to use
# tokenizer / processor: the original's, e.g. transformers.AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B")
The PNN layers run in plain PyTorch. The PNN kernel library (part of the PNN package) runs them faster on CPUs and NVIDIA GPUs, and primeneural.net serves this model as an inference endpoint.
The weights are derived from Qwen/Qwen3-0.6B and are distributed under its licence, apache-2.0: see LICENSE in this repository. Its terms apply to this model.
The PNN file format, pnn_load.py and the PNN package are © PreciseStatistics GmbH; the PNN package is licensed separately (evaluation licence: info@primeneural.net).
© PreciseStatistics GmbH (Prime Neural Networks) · Patent pending (US 19/685,168).
Qwen/Qwen3-0.6B