Instructions to use unsloth/North-Mini-Code-1.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/North-Mini-Code-1.0-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/North-Mini-Code-1.0-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/North-Mini-Code-1.0-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 unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_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 unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_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 unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
Use Docker
docker model run hf.co/unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
- LM Studio
- Jan
- Ollama
How to use unsloth/North-Mini-Code-1.0-GGUF with Ollama:
ollama run hf.co/unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
- Unsloth Studio
How to use unsloth/North-Mini-Code-1.0-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 unsloth/North-Mini-Code-1.0-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 unsloth/North-Mini-Code-1.0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/North-Mini-Code-1.0-GGUF to start chatting
- Pi
How to use unsloth/North-Mini-Code-1.0-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_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": "unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use unsloth/North-Mini-Code-1.0-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/North-Mini-Code-1.0-GGUF:UD-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:8080/v1 \ --custom-model-id "unsloth/North-Mini-Code-1.0-GGUF:UD-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"
- Docker Model Runner
How to use unsloth/North-Mini-Code-1.0-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
- Lemonade
How to use unsloth/North-Mini-Code-1.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
Run and chat with the model
lemonade run user.North-Mini-Code-1.0-GGUF-UD-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use unsloth/North-Mini-Code-1.0-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 unsloth/North-Mini-Code-1.0-GGUF:UD-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:8080/v1 hermes config set model.default unsloth/North-Mini-Code-1.0-GGUF:UD-Q4_K_M
Run Hermes
hermes
- Atomic Chat
Add llama.cpp PR #24260 build and run instructions
Browse files
README.md
CHANGED
|
@@ -29,6 +29,81 @@ tags:
|
|
| 29 |
</div>
|
| 30 |
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# **Model Card for North Mini Code**
|
| 33 |
|
| 34 |
## **Model Summary**
|
|
|
|
| 29 |
</div>
|
| 30 |
|
| 31 |
|
| 32 |
+
## Run these GGUFs with llama.cpp
|
| 33 |
+
|
| 34 |
+
These are GGUF quants of North-Mini-Code-1.0. The model uses the `cohere2moe` architecture, which is not in a stock llama.cpp release yet. Until [llama.cpp PR #24260](https://github.com/ggml-org/llama.cpp/pull/24260) is merged, build llama.cpp from that PR branch to load these files. Once the PR lands in a release, these same GGUFs will run on stock llama.cpp with no re-download, because they already declare `general.architecture = cohere2moe`.
|
| 35 |
+
|
| 36 |
+
### 1. Build llama.cpp from PR #24260
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
git clone https://github.com/ggml-org/llama.cpp
|
| 40 |
+
cd llama.cpp
|
| 41 |
+
git fetch origin pull/24260/head:cohere2-moe
|
| 42 |
+
git checkout cohere2-moe
|
| 43 |
+
|
| 44 |
+
# CUDA build. Drop -DGGML_CUDA=ON for a CPU only build.
|
| 45 |
+
cmake -B build -DGGML_CUDA=ON
|
| 46 |
+
cmake --build build --config Release -j
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
The binaries are written to `build/bin/` (`llama-cli`, `llama-server`, `llama-quantize`).
|
| 50 |
+
|
| 51 |
+
### 2. Download a quant
|
| 52 |
+
|
| 53 |
+
```bash
|
| 54 |
+
pip install huggingface_hub
|
| 55 |
+
|
| 56 |
+
hf download unsloth/North-Mini-Code-1.0-GGUF \
|
| 57 |
+
--include "North-Mini-Code-1.0-UD-Q4_K_XL.gguf" \
|
| 58 |
+
--local-dir North-Mini-Code-1.0-GGUF
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
Every quant here is a single file except `BF16/`, which is split into two shards. To use a split set, download the whole folder and point llama.cpp at the first shard (`...-00001-of-00002.gguf`); it loads the rest automatically.
|
| 62 |
+
|
| 63 |
+
### 3. Run
|
| 64 |
+
|
| 65 |
+
Interactive chat with llama-cli:
|
| 66 |
+
|
| 67 |
+
```bash
|
| 68 |
+
./build/bin/llama-cli \
|
| 69 |
+
--model North-Mini-Code-1.0-GGUF/North-Mini-Code-1.0-UD-Q4_K_XL.gguf \
|
| 70 |
+
--jinja \
|
| 71 |
+
--n-gpu-layers 99 \
|
| 72 |
+
--ctx-size 16384 \
|
| 73 |
+
--temp 1.0 --top-p 0.95 \
|
| 74 |
+
-p "Write a python program to check if a string is a palindrome."
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
OpenAI compatible server with llama-server:
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
./build/bin/llama-server \
|
| 81 |
+
--model North-Mini-Code-1.0-GGUF/North-Mini-Code-1.0-UD-Q4_K_XL.gguf \
|
| 82 |
+
--jinja \
|
| 83 |
+
--n-gpu-layers 99 \
|
| 84 |
+
--ctx-size 16384 \
|
| 85 |
+
--host 0.0.0.0 --port 8080
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
Then query it:
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
curl http://localhost:8080/v1/chat/completions \
|
| 92 |
+
-H "Content-Type: application/json" \
|
| 93 |
+
-d '{
|
| 94 |
+
"messages": [{"role": "user", "content": "Write a python program to check if a string is a palindrome."}],
|
| 95 |
+
"temperature": 1.0,
|
| 96 |
+
"top_p": 0.95
|
| 97 |
+
}'
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
Notes:
|
| 101 |
+
|
| 102 |
+
- Pass `--jinja` so the model chat template, including tool calling, is applied.
|
| 103 |
+
- Recommended sampling settings are `temperature=1.0` and `top_p=0.95`.
|
| 104 |
+
- Set `--n-gpu-layers 99` to offload all layers to GPU, or lower it to fit your VRAM. Use `--ctx-size` to set the context window (the model supports up to 256K).
|
| 105 |
+
- `imatrix_unsloth.gguf_file` is the importance matrix used to build these quants. It is not a model and is not loaded at runtime.
|
| 106 |
+
|
| 107 |
# **Model Card for North Mini Code**
|
| 108 |
|
| 109 |
## **Model Summary**
|