Instructions to use SandLogicTechnologies/MiniCPM5-1B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use SandLogicTechnologies/MiniCPM5-1B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SandLogicTechnologies/MiniCPM5-1B-GGUF", filename="MiniCPM5-1B-IQ3_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SandLogicTechnologies/MiniCPM5-1B-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 SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M # Run inference directly in the terminal: llama cli -hf SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M # Run inference directly in the terminal: llama cli -hf SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
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 SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M # Run inference directly in the terminal: ./llama-cli -hf SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
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 SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
Use Docker
docker model run hf.co/SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
- LM Studio
- Jan
- Ollama
How to use SandLogicTechnologies/MiniCPM5-1B-GGUF with Ollama:
ollama run hf.co/SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
- Unsloth Studio
How to use SandLogicTechnologies/MiniCPM5-1B-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 SandLogicTechnologies/MiniCPM5-1B-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 SandLogicTechnologies/MiniCPM5-1B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SandLogicTechnologies/MiniCPM5-1B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use SandLogicTechnologies/MiniCPM5-1B-GGUF with Docker Model Runner:
docker model run hf.co/SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
- Lemonade
How to use SandLogicTechnologies/MiniCPM5-1B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SandLogicTechnologies/MiniCPM5-1B-GGUF:IQ3_M
Run and chat with the model
lemonade run user.MiniCPM5-1B-GGUF-IQ3_M
List all available models
lemonade list
MiniCPM5-1B
MiniCPM5-1B is a compact instruction-tuned language model developed by OpenBMB, designed to deliver strong reasoning, coding, multilingual understanding, and general-purpose language capabilities while maintaining an extremely efficient model footprint. This repository contains GGUF quantized variants of the model optimized for efficient local inference using llama.cpp.
Unlike multimodal or OCR-oriented models, MiniCPM5-1B is a text-only large language model focused on natural language understanding, instruction following, structured generation, and conversational reasoning. Its lightweight architecture enables practical deployment on consumer hardware while providing strong performance across a broad range of NLP tasks.
The quantized formats significantly reduce memory requirements while preserving instruction-following quality and reasoning capability, making the model well suited for local assistants, edge AI deployments, and resource-efficient inference.
Model Overview
- Model Name: MiniCPM5-1B
- Base Model: openbmb/MiniCPM5-1B
- Architecture: Decoder-Only Transformer
- Parameter Count: Approximately 1 Billion Parameters
- Modalities: Text
- Primary Languages: Multilingual
- Developer: OpenBMB
- License: Apache 2.0
Quantization Formats
This repository provides various GGUF quantized versions of the MiniCPM5-1B model optimized for efficient local inference using llama.cpp.
IQ3_M
- Size reduction of approx 75.39% (836.31 MB) compared to 16-bit (3.32 GB)
- Compact 3-bit quantization optimized for extremely memory-efficient language model inference
- Suitable for lightweight assistants, embedded AI applications, and resource-constrained deployments
- Enables practical execution on consumer CPUs and lower-memory systems
- Complex reasoning, long-context generation, and advanced coding tasks may experience reduced quality compared to higher-precision variants
IQ4_NL
- Size reduction of approx 69.90% (1023.07 MB) compared to 16-bit (3.32 GB)
- Optimized 4-bit non-linear quantization balancing language generation quality with efficient memory utilization
- Recommended for conversational AI, structured generation, reasoning, and coding workflows
- Preserves instruction-following capability and contextual consistency across diverse NLP tasks
- May require slightly increased computational overhead during inference
IQ4_XS
- Size reduction of approx 71.24% (978.62 MB) compared to 16-bit (3.32 GB)
- Balanced 4-bit quantization providing an effective compromise between model quality and inference efficiency
- Suitable for local assistants, workflow automation, summarization, and general-purpose NLP applications
- Delivers dependable performance across a wide range of language understanding and text-generation workloads
- Recommended for production deployments requiring efficient inference with stable response quality
Q6_K
- Size reduction of approx 58.98% (1.36 GB) compared to 16-bit (3.32 GB)
- Higher-precision 6-bit K-Quant format optimized for preserving reasoning capability and response fidelity
- Better suited for coding assistance, analytical reasoning, structured generation, and long-context conversations
- Retains more of the original model's language understanding capability compared to lower-bit variants
- Recommended for deployments where response quality is prioritized over maximum memory savings
Training Background (Original Model)
MiniCPM5-1B is trained with an emphasis on efficient language modeling, multilingual understanding, instruction following, and reasoning across diverse text corpora.
Pretraining
- Large-scale pretraining using multilingual text datasets covering diverse domains and writing styles
- Focus on language understanding, contextual representation learning, and knowledge acquisition
- Optimized for downstream conversational AI, reasoning, coding, and text-generation tasks
Instruction Tuning
- Further refined using instruction-following and dialogue-oriented datasets
- Enhanced for conversational consistency, reasoning, and structured response generation
- Improved performance across coding, summarization, question answering, and general assistant workflows
Key Capabilities
Instruction Following Produces accurate and context-aware responses to natural language instructions.
Reasoning Supports logical reasoning and multi-step problem solving across a variety of domains.
Code Generation Assists with code completion, explanation, debugging, and programming-related tasks.
Multilingual Understanding Handles multilingual text understanding and generation across diverse languages.
Structured Output Generation Generates well-formatted responses, including JSON and other structured outputs.
Efficient Local Deployment Quantized variants enable practical inference on consumer hardware.
Usage Example
Using llama.cpp
./llama-cli \
-m SandLogicTechnologies/MiniCPM5-1B_IQ4_NL.gguf \
-p "Explain how retrieval-augmented generation (RAG) works."
Recommended Usecases
Conversational AI Build lightweight local chat assistants.
Code Assistance Generate, explain, and debug source code.
Reasoning Applications Perform analytical reasoning and multi-step problem solving.
Workflow Automation Generate structured outputs for automation pipelines.
Educational Tools Support tutoring, explanation, and knowledge-based interactions.
Edge AI Deployment Deploy compact language models on consumer hardware and embedded systems.
Acknowledgments
These quantized models are based on the original work by the OpenBMB development team.
Special thanks to:
- The OpenBMB team for developing and releasing the MiniCPM5-1B model.
- Georgi Gerganov and the
llama.cppopen-source community for enabling efficient quantization and inference through the GGUF format.
Contact
For questions, feedback, or support, please reach out at support@sandlogic.com or visit https://www.sandlogic.com/
- Downloads last month
- 169
3-bit
4-bit
6-bit
Model tree for SandLogicTechnologies/MiniCPM5-1B-GGUF
Base model
openbmb/MiniCPM5-1B