Text Generation
GGUF
English
llama.cpp
cohere
code
Mixture of Experts
quantized
north-mini-code
conversational
Instructions to use NANI-Nithin/north-mini-code-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 NANI-Nithin/north-mini-code-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 NANI-Nithin/north-mini-code-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf NANI-Nithin/north-mini-code-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NANI-Nithin/north-mini-code-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf NANI-Nithin/north-mini-code-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf NANI-Nithin/north-mini-code-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf NANI-Nithin/north-mini-code-gguf:Q4_K_M
Use Docker
docker model run hf.co/NANI-Nithin/north-mini-code-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use NANI-Nithin/north-mini-code-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NANI-Nithin/north-mini-code-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NANI-Nithin/north-mini-code-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NANI-Nithin/north-mini-code-gguf:Q4_K_M
- Ollama
How to use NANI-Nithin/north-mini-code-gguf with Ollama:
ollama run hf.co/NANI-Nithin/north-mini-code-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use NANI-Nithin/north-mini-code-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NANI-Nithin/north-mini-code-gguf:Q4_K_M
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "NANI-Nithin/north-mini-code-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use NANI-Nithin/north-mini-code-gguf with Docker Model Runner:
docker model run hf.co/NANI-Nithin/north-mini-code-gguf:Q4_K_M
- Lemonade
How to use NANI-Nithin/north-mini-code-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NANI-Nithin/north-mini-code-gguf:Q4_K_M
Run and chat with the model
lemonade run user.north-mini-code-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use NANI-Nithin/north-mini-code-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 NANI-Nithin/north-mini-code-gguf:Q4_K_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:9931/v1 hermes config set model.default NANI-Nithin/north-mini-code-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NANI-Nithin/north-mini-code-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NANI-Nithin/north-mini-code-gguf:Q4_K_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:9931/v1 \ --custom-model-id "NANI-Nithin/north-mini-code-gguf:Q4_K_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"
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: CohereLabs/North-Mini-Code-1.0
|
| 4 |
+
tags:
|
| 5 |
+
- gguf
|
| 6 |
+
- llama.cpp
|
| 7 |
+
- cohere
|
| 8 |
+
- code
|
| 9 |
+
- moe
|
| 10 |
+
- quantized
|
| 11 |
+
- north-mini-code
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# North-Mini-Code-1.0-GGUF
|
| 18 |
+
|
| 19 |
+
GGUF conversions and quantizations of **CohereLabs/North-Mini-Code-1.0** for use with:
|
| 20 |
+
|
| 21 |
+
- llama.cpp
|
| 22 |
+
- LM Studio
|
| 23 |
+
- Ollama
|
| 24 |
+
- Jan
|
| 25 |
+
- KoboldCpp
|
| 26 |
+
- Text Generation WebUI
|
| 27 |
+
- Open WebUI
|
| 28 |
+
- Other GGUF-compatible runtimes
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
# About the Model
|
| 33 |
+
|
| 34 |
+
North-Mini-Code-1.0 is a code-focused Mixture-of-Experts (MoE) model released by CohereLabs.
|
| 35 |
+
|
| 36 |
+
This repository provides ready-to-use GGUF conversions for local inference across a range of hardware configurations.
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
# Available Files
|
| 41 |
+
|
| 42 |
+
### Full Precision
|
| 43 |
+
|
| 44 |
+
- `North-Mini-Code-1.0-F16.gguf`
|
| 45 |
+
|
| 46 |
+
### Quantized Versions
|
| 47 |
+
|
| 48 |
+
- `North-Mini-Code-1.0-Q4_K_M.gguf`
|
| 49 |
+
- `North-Mini-Code-1.0-Q5_K_M.gguf`
|
| 50 |
+
- `North-Mini-Code-1.0-Q6_K.gguf`
|
| 51 |
+
- `North-Mini-Code-1.0-Q8_0.gguf`
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
# Recommended Quantization
|
| 56 |
+
|
| 57 |
+
For most users:
|
| 58 |
+
|
| 59 |
+
```text
|
| 60 |
+
North-Mini-Code-1.0-Q4_K_M.gguf
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
It offers the best balance of:
|
| 64 |
+
|
| 65 |
+
- Quality
|
| 66 |
+
- Memory usage
|
| 67 |
+
- Inference speed
|
| 68 |
+
|
| 69 |
+
If you have more available RAM/VRAM, consider:
|
| 70 |
+
|
| 71 |
+
```text
|
| 72 |
+
North-Mini-Code-1.0-Q5_K_M.gguf
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
or
|
| 76 |
+
|
| 77 |
+
```text
|
| 78 |
+
North-Mini-Code-1.0-Q6_K.gguf
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
for slightly higher output quality.
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
# Approximate File Sizes
|
| 86 |
+
|
| 87 |
+
```text
|
| 88 |
+
F16 ~60+ GB
|
| 89 |
+
Q4_K_M ~20 GB
|
| 90 |
+
Q5_K_M ~23 GB
|
| 91 |
+
Q6_K ~27 GB
|
| 92 |
+
Q8_0 ~34 GB
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
Actual sizes may vary slightly depending on conversion tooling versions.
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
# Usage
|
| 100 |
+
|
| 101 |
+
## llama.cpp
|
| 102 |
+
|
| 103 |
+
Prompt mode:
|
| 104 |
+
|
| 105 |
+
```bash
|
| 106 |
+
./llama-cli \
|
| 107 |
+
-m North-Mini-Code-1.0-Q4_K_M.gguf \
|
| 108 |
+
-p "Write a Python function that reverses a linked list."
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
Chat mode:
|
| 112 |
+
|
| 113 |
+
```bash
|
| 114 |
+
./llama-cli \
|
| 115 |
+
-m North-Mini-Code-1.0-Q4_K_M.gguf \
|
| 116 |
+
-cnv
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
|
| 121 |
+
## LM Studio
|
| 122 |
+
|
| 123 |
+
1. Download your preferred GGUF file.
|
| 124 |
+
2. Open LM Studio.
|
| 125 |
+
3. Import the model.
|
| 126 |
+
4. Start chatting.
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
+
|
| 130 |
+
## Ollama
|
| 131 |
+
|
| 132 |
+
Create a `Modelfile`:
|
| 133 |
+
|
| 134 |
+
```text
|
| 135 |
+
FROM North-Mini-Code-1.0-Q4_K_M.gguf
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
Create the model:
|
| 139 |
+
|
| 140 |
+
```bash
|
| 141 |
+
ollama create north-mini-code -f Modelfile
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
Run it:
|
| 145 |
+
|
| 146 |
+
```bash
|
| 147 |
+
ollama run north-mini-code
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
---
|
| 151 |
+
|
| 152 |
+
# Hardware Recommendations
|
| 153 |
+
|
| 154 |
+
### Q4_K_M
|
| 155 |
+
|
| 156 |
+
Recommended minimum:
|
| 157 |
+
|
| 158 |
+
```text
|
| 159 |
+
24 GB RAM
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
### Q5_K_M
|
| 163 |
+
|
| 164 |
+
Recommended minimum:
|
| 165 |
+
|
| 166 |
+
```text
|
| 167 |
+
32 GB RAM
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
### Q6_K
|
| 171 |
+
|
| 172 |
+
Recommended minimum:
|
| 173 |
+
|
| 174 |
+
```text
|
| 175 |
+
32-40 GB RAM
|
| 176 |
+
```
|
| 177 |
+
|
| 178 |
+
### Q8_0
|
| 179 |
+
|
| 180 |
+
Recommended minimum:
|
| 181 |
+
|
| 182 |
+
```text
|
| 183 |
+
48+ GB RAM
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
### F16
|
| 187 |
+
|
| 188 |
+
Recommended minimum:
|
| 189 |
+
|
| 190 |
+
```text
|
| 191 |
+
80+ GB RAM
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
---
|
| 195 |
+
|
| 196 |
+
# Prompting Tips
|
| 197 |
+
|
| 198 |
+
This model is optimized for programming-related tasks.
|
| 199 |
+
|
| 200 |
+
Example prompts:
|
| 201 |
+
|
| 202 |
+
```text
|
| 203 |
+
Implement a fast Rust HTTP server.
|
| 204 |
+
```
|
| 205 |
+
|
| 206 |
+
```text
|
| 207 |
+
Explain this C++ compiler error.
|
| 208 |
+
```
|
| 209 |
+
|
| 210 |
+
```text
|
| 211 |
+
Write comprehensive unit tests for the following Python code.
|
| 212 |
+
```
|
| 213 |
+
|
| 214 |
+
```text
|
| 215 |
+
Convert this JavaScript function to TypeScript.
|
| 216 |
+
```
|
| 217 |
+
|
| 218 |
+
```text
|
| 219 |
+
Optimize this SQL query.
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
---
|
| 223 |
+
|
| 224 |
+
# Base Model
|
| 225 |
+
|
| 226 |
+
Base model:
|
| 227 |
+
|
| 228 |
+
```text
|
| 229 |
+
CohereLabs/North-Mini-Code-1.0
|
| 230 |
+
```
|
| 231 |
+
|
| 232 |
+
All training, architecture, benchmarks, licensing terms, and usage restrictions belong to the original model authors.
|
| 233 |
+
|
| 234 |
+
Please refer to the original repository for official documentation and licensing information.
|
| 235 |
+
|
| 236 |
+
---
|
| 237 |
+
|
| 238 |
+
# Conversion Details
|
| 239 |
+
|
| 240 |
+
Converted using:
|
| 241 |
+
|
| 242 |
+
```text
|
| 243 |
+
llama.cpp
|
| 244 |
+
```
|
| 245 |
+
|
| 246 |
+
Generated quantizations:
|
| 247 |
+
|
| 248 |
+
```text
|
| 249 |
+
F16
|
| 250 |
+
Q4_K_M
|
| 251 |
+
Q5_K_M
|
| 252 |
+
Q6_K
|
| 253 |
+
Q8_0
|
| 254 |
+
```
|
| 255 |
+
|
| 256 |
+
A tokenizer compatibility workaround was applied during conversion to support current GGUF conversion tooling.
|
| 257 |
+
|
| 258 |
+
---
|
| 259 |
+
|
| 260 |
+
# Credits
|
| 261 |
+
|
| 262 |
+
- Base Model: CohereLabs
|
| 263 |
+
- GGUF Conversion & Quantization: NANI-Nithin
|
| 264 |
+
- Tooling: llama.cpp
|
| 265 |
+
|
| 266 |
+
---
|
| 267 |
+
|
| 268 |
+
# Repository
|
| 269 |
+
|
| 270 |
+
👉 https://huggingface.co/NANI-Nithin/north-mini-code-gguf
|