Instructions to use QuantLLM/Llama-3.2-3B-2bit-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantLLM/Llama-3.2-3B-2bit-gguf", dtype="auto") - llama-cpp-python
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantLLM/Llama-3.2-3B-2bit-gguf", filename="Llama-3.2-3B.Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K # Run inference directly in the terminal: llama cli -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K # Run inference directly in the terminal: llama cli -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K # Run inference directly in the terminal: ./llama-cli -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
Use Docker
docker model run hf.co/QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
- LM Studio
- Jan
- Ollama
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with Ollama:
ollama run hf.co/QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
- Unsloth Studio
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantLLM/Llama-3.2-3B-2bit-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantLLM/Llama-3.2-3B-2bit-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantLLM/Llama-3.2-3B-2bit-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with Docker Model Runner:
docker model run hf.co/QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
- Lemonade
How to use QuantLLM/Llama-3.2-3B-2bit-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantLLM/Llama-3.2-3B-2bit-gguf:Q2_K
Run and chat with the model
lemonade run user.Llama-3.2-3B-2bit-gguf-Q2_K
List all available models
lemonade list
Llama-3.2-3B-2bit-gguf
Description
This is meta-llama/Llama-3.2-3B converted to GGUF format for use with llama.cpp, Ollama, LM Studio, and other compatible tools.
- Base Model: meta-llama/Llama-3.2-3B
- Format: GGUF
- Quantization: Q2_K
- Created with: QuantLLM
Usage
With llama.cpp
# Download the model
huggingface-cli download QuantLLM/Llama-3.2-3B-2bit-gguf Llama-3.2-3B-2bit-gguf.Q2_K.gguf --local-dir .
# Run with llama.cpp
./llama-cli -m Llama-3.2-3B-2bit-gguf.Q2_K.gguf -p "Hello, how are you?" -n 128
With Ollama
# Create a Modelfile
echo 'FROM ./Llama-3.2-3B-2bit-gguf.Q2_K.gguf' > Modelfile
# Create the model
ollama create llama-3.2-3b-2bit-gguf -f Modelfile
# Run
ollama run llama-3.2-3b-2bit-gguf
With LM Studio
- Download the
.gguffile from this repository - Open LM Studio and go to the Models tab
- Click "Add Model" and select the downloaded file
- Start chatting!
With Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="QuantLLM/Llama-3.2-3B-2bit-gguf",
filename="Llama-3.2-3B-2bit-gguf.Q2_K.gguf",
)
output = llm(
"Write a story about a robot:",
max_tokens=256,
echo=True
)
print(output["choices"][0]["text"])
Model Details
| Property | Value |
|---|---|
| Base Model | meta-llama/Llama-3.2-3B |
| Format | GGUF |
| Quantization | Q2_K |
| License | apache-2.0 |
| Created | 2025-12-20 |
Quantization Details
- Type: Q2_K
- Bits: 2-bit
- Description: Smallest size, lowest quality
Available Quantizations
| Quantization | Bits | Use Case |
|---|---|---|
| Q2_K | 2-bit | Minimum size, experimental |
| Q3_K_M | 3-bit | Very constrained environments |
| Q4_K_M | 4-bit | Recommended for most users |
| Q5_K_M | 5-bit | Higher quality, more memory |
| Q6_K | 6-bit | Near-original quality |
| Q8_0 | 8-bit | Best quality, largest size |
About QuantLLM
This model was converted using QuantLLM - the ultra-fast LLM quantization and export library.
from quantllm import turbo
# Load and quantize any model
model = turbo("meta-llama/Llama-3.2-3B")
# Export to any format
model.export("gguf", quantization="Q2_K")
⭐ Star us on GitHub!
- Downloads last month
- 37
Hardware compatibility
Log In to add your hardware
2-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for QuantLLM/Llama-3.2-3B-2bit-gguf
Base model
meta-llama/Llama-3.2-3B