Downloads · 30 days
20
13% of all-time downloads
Pinsara/Qwen3-4B-Q4_K_M-GGUF
Qwen3-4B-Q4_K_M-GGUF is a text generation model from Pinsara. Use it when you need the model to write or continue text. It is set up for llama.cpp. The card lists the license as apache-2.0.
This is a quantized GGUF version of the Qwen3 4B model using Q4KM quantization.
Downloads · 30 days
20
13% of all-time downloads
All-time downloads
151
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
This is a quantized GGUF version of the Qwen3 4B model using Q4_K_M quantization.
# Install llama.cpp
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
# Run inference
./main -m Qwen3-4B-Q4_K_M.gguf -p "Your prompt here" -n 128
from llama_cpp import Llama
# Load model
llm = Llama(
model_path="Qwen3-4B-Q4_K_M.gguf",
n_ctx=2048,
n_threads=8
)
# Generate text
output = llm("Your prompt here", max_tokens=128)
print(output['choices'][0]['text'])
from ctransformers import AutoModelForCausalLM
# Load model
llm = AutoModelForCausalLM.from_pretrained(
"Pinsara/Qwen3-4B-Q4_K_M-GGUF",
model_file="Qwen3-4B-Q4_K_M.gguf",
model_type="qwen2"
)
# Generate text
print(llm("Your prompt here"))
This model uses Q4_K_M quantization:
The quantized model is approximately 2.5-3GB (vs ~8GB for the original FP16 model).
This model inherits the Apache 2.0 license from the base Qwen model.