[!IMPORTANT]
Naming notice (2026-04-10). The "HLWQ" technique used in this model is being rebranded to HLWQ (Hadamard-Lloyd Weight Quantization). The change is only the name; the algorithm and the weights in this repository are unchanged.
The rebrand resolves a name collision with an unrelated, earlier KV cache quantization method also named HLWQ (Han et al., arXiv:2502.02617, 2025). HLWQ addresses weight quantization with a deterministic Walsh-Hadamard rotation and Lloyd-Max scalar codebook; Han et al.'s HLWQ addresses KV cache quantization with a random polar rotation. The two methods are technically distinct.
Existing loaders that load this repository by ID continue to work without changes. Future model uploads will use the HLWQ name.
Reference paper for this technique: arXiv:2603.29078 (v2 in preparation; v1 still uses the old name).
🧊 Gemma-4-E4B-it — HLWQ Multi (PQ1-PQ8)
ALL quantization variants of Google's hottest model (108K downloads in 2 days).
Multimodal: text + image + audio + video | Apache 2.0 | 128K context | Edge-optimized
Real generation tests comparing HLWQ output vs the original BF16 model on 3 prompts:
Prompt
BF16 Original
PQ5 (5-bit)
PQ3 (3-bit)
PQ1 (1-bit)
"What is 2+2?"
"Four"
✅ "Four"
✅ "Four"
❌ garbage
"Write a prime checker in Python"
Correct code
✅ Exact match
✅ Correct code
❌ garbage
"Explain gravity briefly"
Correct explanation
✅ Exact match
⚠️ Different wording, coherent
❌ garbage
Score
—
3/3 MATCH
2/3 MATCH
0/3
Summary
Variant Range
Status
Recommendation
PQ5 — PQ8
✅ Verified — generation matches original
Production ready
PQ3 — PQ4
⚠️ Near-match — coherent, minor wording differences
Good for most use cases
PQ2
⚠️ Untested — cos_sim 0.93 suggests usable
Use with caution
PQ1
❌ Experimental — outputs random unicode garbage
Research only
Recommendation: Use PQ5 (11.7 GB) for the best quality-to-size ratio. It produces outputs identical to the original BF16 model across all tested prompts.
GGUF uses uniform spacing between quantization levels — suboptimal.
HLWQ places centroids where the weight density is highest (Lloyd-Max algorithm).
Hadamard rotation spreads outliers before quantizing — each code carries maximum information.