Downloads · 30 days
47
8% of all-time downloads
alefalab/gemma-3-4b-it-Q4_K_M-GGUF
gemma-3-4b-it-Q4_K_M-GGUF is a text generation model from alefalab. Use it when you need the model to write or continue text. The card lists the license as gemma.
Quantized version of google/gemma-3-4b-it using llama.cpp Q4KM quantization.
Downloads · 30 days
47
8% of all-time downloads
All-time downloads
567
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.5 GB · 100%
From the Hugging Face model README
Quantized version of google/gemma-3-4b-it using llama.cpp Q4_K_M quantization.
Self-quantized from the official weights — not sourced from a third party.
| Property | Value |
|---|---|
| Base model | google/gemma-3-4b-it |
| Parameters | 4B |
| Quantization | Q4_K_M (4-bit, medium-high quality) |
| Approximate size | ~2.4 GB |
| Quantization tool | llama.cpp |
| Primary use case | On-device Android CV analysis (CVPilot) |
Q4_K_M uses a mixed quantization strategy (some layers at Q4, key layers at Q6) which gives significantly better output quality than naive INT4 while staying at roughly the same file size.
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="alefalab/gemma-3-4b-it-Q4_K_M-GGUF",
filename="gemma-3-4b-it-Q4_K_M.gguf",
n_ctx=4096,
)
response = llm.create_chat_completion(messages=[
{"role": "user", "content": "Analyze this CV for a Software Engineer role: ..."}
])
print(response["choices"][0]["message"]["content"])
This model is used in the CVPilot Android app via llama.cpp Android bindings. The GGUF format is inference-engine agnostic — compatible with llama.cpp, llama-android, Ollama, LM Studio, and any other GGUF-compatible runtime.
This model inherits the Gemma Terms of Use.