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 Desktop
- 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 @earendil-works/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
- 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
- OpenClaw
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"
create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
base_model: Nanbeige/Nanbeige4.2-3B
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- gguf
|
| 8 |
+
- llama.cpp
|
| 9 |
+
- nanbeige
|
| 10 |
+
- reasoning
|
| 11 |
+
- instruct
|
| 12 |
+
- local-llm
|
| 13 |
+
license: other
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Nanbeige4.2-3B GGUF
|
| 17 |
+
|
| 18 |
+
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.
|
| 19 |
+
|
| 20 |
+
> **Note:** This repository contains only GGUF conversions. The original Hugging Face model is **Nanbeige/Nanbeige4.2-3B**.
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Base Model
|
| 25 |
+
|
| 26 |
+
**Original Hugging Face Model**
|
| 27 |
+
|
| 28 |
+
**Nanbeige/Nanbeige4.2-3B**
|
| 29 |
+
|
| 30 |
+
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.
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
# Available Files
|
| 35 |
+
|
| 36 |
+
This repository contains the following GGUF files:
|
| 37 |
+
|
| 38 |
+
| File | Description |
|
| 39 |
+
|------|-------------|
|
| 40 |
+
| **Nanbeige4.2-3B-BF16.gguf** | Full-precision BF16 GGUF. Highest quality but requires significantly more RAM/VRAM. |
|
| 41 |
+
| **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. |
|
| 42 |
+
|
| 43 |
+
> **You only need to download ONE of these files.**
|
| 44 |
+
|
| 45 |
+
- Download **BF16** if you want the highest possible quality and have sufficient GPU memory.
|
| 46 |
+
- Download **Q4_K_M** if you want lower memory usage while maintaining excellent performance.
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
# Important
|
| 51 |
+
|
| 52 |
+
At the time of publishing, support for the **Nanbeige** architecture has **not yet been merged into the main llama.cpp repository**.
|
| 53 |
+
|
| 54 |
+
Please use the official Nanbeige fork of llama.cpp:
|
| 55 |
+
|
| 56 |
+
https://github.com/Nanbeige/llama.cpp/tree/nanbeige42
|
| 57 |
+
|
| 58 |
+
If you build the upstream `ggml-org/llama.cpp`, you may encounter an error similar to:
|
| 59 |
+
|
| 60 |
+
```text
|
| 61 |
+
unknown model architecture: 'nanbeige'
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
The Nanbeige fork contains the required architecture support.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
# Building llama.cpp
|
| 69 |
+
|
| 70 |
+
Clone the repository:
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
git clone --recursive -b nanbeige42 https://github.com/Nanbeige/llama.cpp.git
|
| 74 |
+
cd llama.cpp
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
Build:
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
cmake -B build
|
| 81 |
+
cmake --build build -j
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
# Running with llama-server
|
| 87 |
+
|
| 88 |
+
Example:
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
./build/bin/llama-server \
|
| 92 |
+
-m Nanbeige4.2-3B-Q4_K_M.gguf \
|
| 93 |
+
--host 0.0.0.0 \
|
| 94 |
+
--port 8080 \
|
| 95 |
+
-ngl 999 \
|
| 96 |
+
-c 65536
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
After starting the server, the OpenAI-compatible API will be available at:
|
| 100 |
+
|
| 101 |
+
```text
|
| 102 |
+
http://localhost:8080
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
# Using Hermes
|
| 108 |
+
|
| 109 |
+
Hermes works well with this model.
|
| 110 |
+
|
| 111 |
+
1. Start `llama-server`.
|
| 112 |
+
2. Open Hermes.
|
| 113 |
+
3. Go to **Model Selection**.
|
| 114 |
+
4. Choose **Custom URL**.
|
| 115 |
+
5. Enter your llama-server endpoint, for example:
|
| 116 |
+
|
| 117 |
+
```text
|
| 118 |
+
http://localhost:8080
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
Hermes will communicate directly with your local Nanbeige model using the OpenAI-compatible API.
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
# Using a Web UI
|
| 126 |
+
|
| 127 |
+
This model can also be used with web interfaces that support OpenAI-compatible endpoints, including:
|
| 128 |
+
|
| 129 |
+
- Open WebUI
|
| 130 |
+
- Hermes
|
| 131 |
+
- Any application compatible with the OpenAI Chat Completions API
|
| 132 |
+
|
| 133 |
+
Simply configure the application to connect to your running `llama-server` instance.
|
| 134 |
+
|
| 135 |
+
---
|
| 136 |
+
|
| 137 |
+
# Recommended Model
|
| 138 |
+
|
| 139 |
+
For most users, the recommended file is:
|
| 140 |
+
|
| 141 |
+
**✅ Nanbeige4.2-3B-Q4_K_M.gguf**
|
| 142 |
+
|
| 143 |
+
It provides an excellent balance of:
|
| 144 |
+
|
| 145 |
+
- Quality
|
| 146 |
+
- Speed
|
| 147 |
+
- Memory usage
|
| 148 |
+
|
| 149 |
+
---
|
| 150 |
+
|
| 151 |
+
# Credits
|
| 152 |
+
|
| 153 |
+
- **Original model:** Nanbeige/Nanbeige4.2-3B
|
| 154 |
+
- GGUF conversion provided by this repository.
|
| 155 |
+
- llama.cpp support is currently available through the Nanbeige `nanbeige42` branch.
|
| 156 |
+
|
| 157 |
+
All credit for the model architecture, tokenizer, training, and original model weights belongs entirely to the original Nanbeige team.
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
# License
|
| 162 |
+
|
| 163 |
+
This repository distributes GGUF conversions of the original model.
|
| 164 |
+
|
| 165 |
+
The license for these GGUF files is **the same as the license of the original Nanbeige/Nanbeige4.2-3B project**.
|
| 166 |
+
|
| 167 |
+
Please refer to the original model repository for the official license terms, usage conditions, and any applicable restrictions.
|