Downloads · 30 days
80
13% of all-time downloads
abhinavdread/qwen-1.5-3b-Q4-k-m
qwen-1.5-3b-Q4-k-m is a machine learning model from abhinavdread. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Qwen-2.5-3B-Q4-k-m is a quantized GGUF version of the Qwen-2.5-3B-Instruct model optimized for CPU-based inference with llama.cpp and similar runtimes.
Downloads · 30 days
80
13% of all-time downloads
All-time downloads
614
Public
Repo size
986 MB
Likes
0
Public
Click a slice to open those files.
.gguf986 MB · 100%
From the Hugging Face model README
Qwen-2.5-3B-Q4-k-m is a quantized GGUF version of the Qwen-2.5-3B-Instruct model optimized for CPU-based inference with llama.cpp and similar runtimes.
This quantized model is intended to provide a balanced tradeoff between performance, memory efficiency, and quality, making it suitable for research, local RAG (Retrieval-Augmented Generation), and offline usage without relying on GPUs or external APIs.
This model is specifically designed for:
It can be integrated with lightweight vector search systems such as FAISS and combined with embedding models for semantic retrieval.
This model has been quantized using the Q4_K_M method, producing a GGUF file that enables:
llama.cppQuantization makes this model practical for:
llama_cpp)from llama_cpp import Llama
model = Llama(
model_path="qwen2.5-3b-q4_k_m.gguf",
n_ctx=4096,
n_threads=8,
n_gpu_layers=0
)
prompt = "Explain retrieval augmented generation in simple terms."
resp = model(
prompt,
max_tokens=256,
temperature=0.2
)
print(resp["choices"][0]["text"])
./main -m qwen2.5-3b-q4_k_m.gguf -p "Explain retrieval augmented generation in simple terms." -n 256
Typical integration might look like:
This pattern improves accuracy and grounding, especially for domain-specific or academic applications.
If you use this model or adapt it in research, please cite the original Qwen work and include appropriate attributions.
This model inherits the license of the underlying Qwen-2.5-3B model. Please refer to the model card and repository for specific licensing terms.
This quantized version is provided to the community for enabling CPU-friendly inference and broad accessibility. Thanks to the Qwen team and the open-source ecosystem for supporting NN quantization and GGUF runtimes.