justheuristic/Llama-2-7b-AQLM-PV-1Bit-1x16-hf

Model

An official quantization of meta-llama/Llama-2-7b using PV-Tuning on top of AQLM.

0

9 commits

1 linked in READMEs

updated May 31, 2024

See the code

README

An official quantization of meta-llama/Llama-2-7b using PV-Tuning on top of AQLM. For this quantization, we used 1 codebook of 16 bits for groups of 16 weights, totalling about 1.58 bits per weight.

The 1x16g16 models require aqlm inference library v1.1.6 or newer:

pip install aqlm[gpu,cpu]>=1.1.6

ModelAQLM schemeWikiText 2 PPLModel size, GbHub link
Llama-2-7b1x165.682.4Link
Llama-2-7b2x85.902.2Link
Llama-2-7b (this)1x16g169.211.7Link
Llama-2-13b1x165.054.1Link
Llama-2-70b1x163.7818.8Link

To learn more about the inference, as well as the information on how to quantize models yourself, please refer to the official GitHub repo. The original code for PV-Tuning can be found in the AQLM@pv-tuning branch.

aqlm
conversational
endpoints_compatible
facebook
llama
llama-2
meta
safetensors
text-generation
text-generation-inference
transformers

justheuristic/Llama-2-7b-AQLM-PV-1Bit-1x16-hf

Model

An official quantization of meta-llama/Llama-2-7b using PV-Tuning on top of AQLM.

0

9 commits

1 linked in READMEs

updated May 31, 2024

See the code

README

An official quantization of meta-llama/Llama-2-7b using PV-Tuning on top of AQLM. For this quantization, we used 1 codebook of 16 bits for groups of 16 weights, totalling about 1.58 bits per weight.

The 1x16g16 models require aqlm inference library v1.1.6 or newer:

pip install aqlm[gpu,cpu]>=1.1.6

ModelAQLM schemeWikiText 2 PPLModel size, GbHub link
Llama-2-7b1x165.682.4Link
Llama-2-7b2x85.902.2Link
Llama-2-7b (this)1x16g169.211.7Link
Llama-2-13b1x165.054.1Link
Llama-2-70b1x163.7818.8Link

To learn more about the inference, as well as the information on how to quantize models yourself, please refer to the official GitHub repo. The original code for PV-Tuning can be found in the AQLM@pv-tuning branch.

aqlm
conversational
endpoints_compatible
facebook
llama
llama-2
meta
safetensors
text-generation
text-generation-inference
transformers