How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "donghyunli/Llama-2-13b-KronQ-W3A16-fake"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "donghyunli/Llama-2-13b-KronQ-W3A16-fake",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/donghyunli/Llama-2-13b-KronQ-W3A16-fake
Quick Links

Llama-2-13b โ€” KronQ W3A16 (fake-quant fp16)

Paper: arXiv:2607.07964 ยท Code: GitHub

โš ๏ธ Fake-quant fp16 checkpoint. The 3-bit weights are stored in fp16 (KronQ does not pack int3), so this repo is the same size as bf16 โ€” no compression or speedup, for PPL / accuracy reproduction only. For deployable low-bit, see the W4A16 / W2A16 (packed int4/int2) repos.

Llama-2-13b quantized to 3-bit weights with KronQ (Kronecker-factored Hessian quantization), exported as a standard fp16 model.

Results (WikiText-2, seqlen 2048)

Perplexity: 5.18

Zero-shot accuracy:

PIQA ARC-E ARC-C HellaSwag WinoGrande BoolQ OBQA Average
79.27 73.53 46.50 77.00 71.19 78.87 45.00 67.34

(lm-evaluation-harness, 0-shot. acc_norm for PIQA/HellaSwag/ARC/OBQA, acc for WinoGrande/BoolQ.)

Usage

Loads as a standard fp16 model โ€” no KronQ code needed:

from transformers import AutoModelForCausalLM, AutoTokenizer
m = AutoModelForCausalLM.from_pretrained("donghyunli/Llama-2-13b-KronQ-W3A16-fake", torch_dtype="float16").cuda()
tok = AutoTokenizer.from_pretrained("donghyunli/Llama-2-13b-KronQ-W3A16-fake")

Recipe

Per-channel asymmetric W3, weight-only (a_bits=16), --alpha 0.25, bidirectional incoherence processing (BiIP), act_order, raw H_G. Calibrated on 128 WikiText-2 sequences.

License

Derivative of Llama-2-13b โ€” subject to the Llama 2 Community License.

Downloads last month
134
Safetensors
Model size
13B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for donghyunli/Llama-2-13b-KronQ-W3A16-fake

Finetuned
(76)
this model

Paper for donghyunli/Llama-2-13b-KronQ-W3A16-fake