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-g128-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-g128-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-g128-fake
Quick Links

Llama-2-13b — KronQ W3A16 g128 (fake-quant fp16)

Paper: arXiv:2607.07964 · Code: GitHub

⚠️ Fake-quant fp16 checkpoint. 3-bit group-128 weights stored in fp16 (KronQ does not pack int3) — same size as bf16, for PPL/accuracy reproduction. For deployable low-bit see the W4A16-g128 / W2A16-g128 (packed) repos.

Llama-2-13b quantized to 3-bit weights (group 128) with KronQ, exported as a standard fp16 model.

Results (WikiText-2, seqlen 2048)

Perplexity: 5.135

Zero-shot accuracy:

PIQA ARC-E ARC-C HellaSwag WinoGrande BoolQ OBQA Average
79.22 76.30 48.72 77.53 72.14 81.62 44.60 68.59

(lm-evaluation-harness 0-shot.)

Usage

Loads as a standard fp16 model (no KronQ code):

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

Recipe

Group-128 asymmetric W3, weight-only, --alpha 0.25, --act_order, BiIP, raw H_G.

License

Derivative of Llama-2-13b — llama2 license.

Downloads last month
138
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-g128-fake

Finetuned
(76)
this model

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