Instructions to use arunb74/Nanbeige4.2-3B 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 arunb74/Nanbeige4.2-3B 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 arunb74/Nanbeige4.2-3B:BF16 # Run inference directly in the terminal: llama cli -hf arunb74/Nanbeige4.2-3B:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf arunb74/Nanbeige4.2-3B:BF16 # Run inference directly in the terminal: llama cli -hf arunb74/Nanbeige4.2-3B:BF16
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 arunb74/Nanbeige4.2-3B:BF16 # Run inference directly in the terminal: ./llama-cli -hf arunb74/Nanbeige4.2-3B:BF16
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 arunb74/Nanbeige4.2-3B:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf arunb74/Nanbeige4.2-3B:BF16
Use Docker
docker model run hf.co/arunb74/Nanbeige4.2-3B:BF16
- LM Studio
- Jan
- vLLM
How to use arunb74/Nanbeige4.2-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arunb74/Nanbeige4.2-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "arunb74/Nanbeige4.2-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/arunb74/Nanbeige4.2-3B:BF16
- Ollama
How to use arunb74/Nanbeige4.2-3B with Ollama:
ollama run hf.co/arunb74/Nanbeige4.2-3B:BF16
- Unsloth Studio
How to use arunb74/Nanbeige4.2-3B 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 arunb74/Nanbeige4.2-3B 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 arunb74/Nanbeige4.2-3B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for arunb74/Nanbeige4.2-3B to start chatting
- Pi
How to use arunb74/Nanbeige4.2-3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf arunb74/Nanbeige4.2-3B:BF16
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": "arunb74/Nanbeige4.2-3B:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use arunb74/Nanbeige4.2-3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf arunb74/Nanbeige4.2-3B:BF16
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 "arunb74/Nanbeige4.2-3B:BF16" \ --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 arunb74/Nanbeige4.2-3B with Docker Model Runner:
docker model run hf.co/arunb74/Nanbeige4.2-3B:BF16
- Lemonade
How to use arunb74/Nanbeige4.2-3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull arunb74/Nanbeige4.2-3B:BF16
Run and chat with the model
lemonade run user.Nanbeige4.2-3B-BF16
List all available models
lemonade list
- Hermes Agent
How to use arunb74/Nanbeige4.2-3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf arunb74/Nanbeige4.2-3B:BF16
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 arunb74/Nanbeige4.2-3B:BF16
Run Hermes
hermes
- Atomic Chat
Nanbeige4.2-3B GGUF
This repository provides the GGUF conversions of the original Nanbeige/Nanbeige4.2-3B model. All credit for the model architecture and weights belongs to the original Nanbeige team.
Note: This repository contains only GGUF conversions. The original Hugging Face model is Nanbeige/Nanbeige4.2-3B.
Base Model
Original Hugging Face Model
Nanbeige/Nanbeige4.2-3B
This repository does not modify or fine-tune the original model. It simply provides GGUF conversions for running the model locally with llama.cpp and other GGUF-compatible applications.
Available Files
This repository contains the following GGUF files:
| File | Description |
|---|---|
| Nanbeige4.2-3B-BF16.gguf | Full-precision BF16 GGUF. Highest quality but requires significantly more RAM/VRAM. |
| Nanbeige4.2-3B-Q4_K_M.gguf | 4-bit quantized GGUF. Recommended for most users due to its excellent balance of quality, speed, and memory usage. |
You only need to download ONE of these files.
- Download BF16 if you want the highest possible quality and have sufficient GPU memory.
- Download Q4_K_M if you want lower memory usage while maintaining excellent performance.
Important
At the time of publishing, support for the Nanbeige architecture has not yet been merged into the main llama.cpp repository.
Please use the official Nanbeige fork of llama.cpp:
https://github.com/Nanbeige/llama.cpp/tree/nanbeige42
If you build the upstream ggml-org/llama.cpp, you may encounter an error similar to:
unknown model architecture: 'nanbeige'
The Nanbeige fork contains the required architecture support.
Building llama.cpp
Clone the repository:
git clone --recursive -b nanbeige42 https://github.com/Nanbeige/llama.cpp.git
cd llama.cpp
Build:
cmake -B build
cmake --build build -j
Running with llama-server
Example:
./build/bin/llama-server \
-m Nanbeige4.2-3B-Q4_K_M.gguf \
--host 0.0.0.0 \
--port 8080 \
-ngl 999 \
-c 65536
After starting the server, the OpenAI-compatible API will be available at:
http://localhost:8080
Using Hermes
Hermes works well with this model.
- Start
llama-server. - Open Hermes.
- Go to Model Selection.
- Choose Custom URL.
- Enter your llama-server endpoint, for example:
http://localhost:8080
Hermes will communicate directly with your local Nanbeige model using the OpenAI-compatible API.
Using a Web UI
This model can also be used with web interfaces that support OpenAI-compatible endpoints, including:
- Open WebUI
- Hermes
- Any application compatible with the OpenAI Chat Completions API
Simply configure the application to connect to your running llama-server instance.
Recommended Model
For most users, the recommended file is:
✅ Nanbeige4.2-3B-Q4_K_M.gguf
It provides an excellent balance of:
- Quality
- Speed
- Memory usage
Credits
- Original model: Nanbeige/Nanbeige4.2-3B
- GGUF conversion provided by this repository.
- llama.cpp support is currently available through the Nanbeige
nanbeige42branch.
All credit for the model architecture, tokenizer, training, and original model weights belongs entirely to the original Nanbeige team.
License
This repository distributes GGUF conversions of the original model.
The license for these GGUF files is the same as the license of the original Nanbeige/Nanbeige4.2-3B project.
Please refer to the original model repository for the official license terms, usage conditions, and any applicable restrictions.
- Downloads last month
- 366
4-bit
16-bit
docker model run hf.co/arunb74/Nanbeige4.2-3B:BF16