Instructions to use SandLogicTechnologies/granite-4.1-3b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SandLogicTechnologies/granite-4.1-3b-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/granite-4.1-3b-GGUF:IQ3_M # Run inference directly in the terminal: llama cli -hf SandLogicTechnologies/granite-4.1-3b-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/granite-4.1-3b-GGUF:IQ3_M # Run inference directly in the terminal: llama cli -hf SandLogicTechnologies/granite-4.1-3b-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/granite-4.1-3b-GGUF:IQ3_M # Run inference directly in the terminal: ./llama-cli -hf SandLogicTechnologies/granite-4.1-3b-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/granite-4.1-3b-GGUF:IQ3_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
Use Docker
docker model run hf.co/SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
- LM Studio
- Jan
- Ollama
How to use SandLogicTechnologies/granite-4.1-3b-GGUF with Ollama:
ollama run hf.co/SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
- Unsloth Studio
How to use SandLogicTechnologies/granite-4.1-3b-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/granite-4.1-3b-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/granite-4.1-3b-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/granite-4.1-3b-GGUF to start chatting
- Pi
How to use SandLogicTechnologies/granite-4.1-3b-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use SandLogicTechnologies/granite-4.1-3b-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
Run Hermes
hermes
- OpenClaw new
How to use SandLogicTechnologies/granite-4.1-3b-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use SandLogicTechnologies/granite-4.1-3b-GGUF with Docker Model Runner:
docker model run hf.co/SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
- Lemonade
How to use SandLogicTechnologies/granite-4.1-3b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SandLogicTechnologies/granite-4.1-3b-GGUF:IQ3_M
Run and chat with the model
lemonade run user.granite-4.1-3b-GGUF-IQ3_M
List all available models
lemonade list
- Atomic Chat
Granite-4.1-3B
Granite-4.1-3B is a compact instruction-tuned language model developed by IBM, designed for efficient conversational AI, reasoning, coding, retrieval-augmented generation (RAG), and enterprise NLP workloads. This repository contains GGUF quantized variants of the model optimized for efficient local inference using llama.cpp.
The model emphasizes strong instruction following, structured response generation, multilingual language understanding, and practical deployment efficiency while maintaining a significantly smaller footprint than larger Granite family models. Its compact architecture enables high-quality local inference across a wide variety of production AI workflows.
The quantized formats significantly reduce memory requirements while preserving language understanding and reasoning capability, making the model suitable for consumer hardware, edge deployments, and enterprise AI systems.
Model Overview
- Model Name: Granite-4.1-3B
- Base Model: ibm-granite/granite-4.1-3b
- Architecture: Decoder-Only Transformer
- Parameter Count: Approximately 3 Billion Parameters
- Modalities: Text
- Languages: Multilingual
- Developer: IBM
- License: Apache 2.0
Quantization Formats
This repository provides various GGUF quantized versions of the Granite-4.1-3B model optimized for efficient local inference using llama.cpp.
IQ3_M
- Size reduction of approx 76.18% (1.51 GB) compared to 16-bit (6.34 GB)
- Aggressive 3-bit quantization optimized for lightweight enterprise language model deployments
- Suitable for conversational AI, lightweight coding assistance, and resource-efficient inference environments
- Enables practical execution on consumer hardware while minimizing memory usage
- Complex reasoning, long-context generation, and advanced analytical tasks may exhibit reduced fidelity compared to higher-precision variants
IQ4_NL
- Size reduction of approx 70.50% (1.87 GB) compared to 16-bit (6.34 GB)
- Advanced 4-bit non-linear quantization designed to better preserve reasoning capability and instruction-following quality
- Better suited for production assistants, RAG pipelines, structured generation, and coding workflows
- Designed to reduce quantization loss while maintaining response consistency across diverse NLP tasks
- May require slightly increased computational overhead during inference
IQ4_XS
- Size reduction of approx 71.92% (1.78 GB) compared to 16-bit (6.34 GB)
- Balanced 4-bit quantization focused on efficient inference and dependable language generation
- Provides a practical balance between memory efficiency, response quality, and runtime performance
- Suitable for enterprise assistants, workflow automation, summarization, and production AI services
- Maintains reliable performance across most real-world language understanding and text-generation workloads
Training Background (Original Model)
Granite-4.1-3B is trained with an emphasis on efficient language understanding, instruction following, reasoning, coding, and enterprise-oriented NLP tasks across diverse multilingual datasets.
Pretraining
- Large-scale language pretraining across multilingual and domain-diverse text corpora
- Focus on contextual language understanding, reasoning, and knowledge representation
- Optimized for downstream conversational AI, coding, retrieval, and text-generation workloads
Instruction Tuning
- Refined using high-quality instruction-following and dialogue datasets
- Enhanced for conversational consistency, structured response generation, and tool-oriented interactions
- Improved performance across coding, summarization, question answering, and enterprise assistant workflows
Key Capabilities
Instruction Following Produces reliable responses aligned with user instructions across a broad range of tasks.
Reasoning Supports logical reasoning and multi-step analytical problem solving.
Code Generation Assists with code completion, explanation, debugging, and programming tasks.
Retrieval-Augmented Generation (RAG) Integrates effectively into retrieval-based AI systems and knowledge assistants.
Structured Output Generation Generates organized responses suitable for automation, APIs, and downstream applications.
Efficient Local Deployment Quantized variants enable practical deployment on consumer hardware and edge systems.
Usage Example
Using llama.cpp
./llama-cli \
-m SandLogicTechnologies/Granite-4.1-3B_IQ4_NL.gguf \
-p "Summarize this document and extract the key action items."
Recommended Usecases
Conversational AI Deploy efficient local AI assistants.
Coding Assistance Generate, explain, and debug source code.
Enterprise AI Build knowledge assistants and internal productivity tools.
Workflow Automation Generate structured responses for business processes and automation pipelines.
RAG Applications Power retrieval-augmented enterprise search and question-answering systems.
Research & Experimentation Evaluate compact language models for efficient local inference.
Acknowledgments
These quantized models are based on the original work by the IBM Granite development team.
Special thanks to:
The IBM team for developing and releasing the Granite-4.1-3B model.
Georgi Gerganov and the
llama.cppopen-source community for enabling efficient quantization and inference via 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
- -
3-bit
4-bit
Model tree for SandLogicTechnologies/granite-4.1-3b-GGUF
Base model
ibm-granite/granite-4.1-3b