Views
No views yet
vs the earlier xv0y5ncu/SmolLM2-135M-Instruct-GLQ-4bpw: that checkpoint zero-padded non-power-of-2 dimensions up to the next power of two for the FHT, which inflated the effective rate to ~10 bpw (~191 MB). This block-diagonal version stores only the real weights — smaller, with an accurate bpw label. At equal storage, block-diagonal also yields higher SQNR, so it is a strict per-bit improvement.
| Task | GLQ 4 bpw | bf16 | GLQ / bf16 |
|---|---|---|---|
| arc_easy | 0.4407 | 0.4899 | 90.0% |
| hellaswag (acc_norm) | 0.4178 | 0.4294 | 97.3% |
| piqa | 0.6545 | 0.6687 | 97.9% |
| winogrande | 0.5422 | 0.5107 | 106.2% |
| lambada_openai | 0.3846 | 0.4007 | 96.0% |
| average | 0.4880 | 0.4999 | 97.6% |
acc_norm where available, else acc). Per-task ratios slightly above 100% are within lm-eval noise.pip install glq1import glq.hf_integration # registers GLQ with transformers
2import torch
3from transformers import AutoModelForCausalLM, AutoTokenizer
4
5repo = "xv0y5ncu/SmolLM2-135M-Instruct-GLQ-block-diagonal-4bpw"
6tok = AutoTokenizer.from_pretrained(repo)
7model = AutoModelForCausalLM.from_pretrained(repo, device_map="cuda", dtype=torch.float16)
8ids = tok("The capital of France is", return_tensors="pt").to("cuda")
9print(tok.decode(model.generate(**ids, max_new_tokens=20)[0], skip_special_tokens=True))vllm serve xv0y5ncu/SmolLM2-135M-Instruct-GLQ-block-diagonal-4bpw --quantization glq.