meta-llama/Llama-3.2-1B Quantized
Collection
Find the quantized versions of Llama-3.2-1B all in one place
•
9 items
•
Updated
This model is a quantized version of the original model meta-llama/Llama-3.2-1B
. It was quantized using GPTQ.
GPTQConfig(bits=4, dataset=c4)
You can use this model in your applications by loading it directly from the Hugging Face Hub.
In order to run the inference with Llama-3.2-1B-GPTQ-INT4
, torch
andauto_gptq
need to be installed as:
pip install torch auto_gptq --upgrade
Then, preferably the latest version of transformers need to be installed, as:
pip install transformers[accelerate] --upgrade
To run the inference the model can be instantiated as any other causal language modeling model via AutoModelForCausalLM and run the inference normally.
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("Llama-3.2-1B-GPTQ-INT4")
Base model
meta-llama/Llama-3.2-1B