Text Generation
GGUF
French
English
llama.cpp
on-device
offline
cpu
africa
adtc-2026
imatrix
conversational
Instructions to use Benewende-dev/baarali-edge-2b 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 Benewende-dev/baarali-edge-2b 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 Benewende-dev/baarali-edge-2b:IQ4_XS # Run inference directly in the terminal: llama cli -hf Benewende-dev/baarali-edge-2b:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Benewende-dev/baarali-edge-2b:IQ4_XS # Run inference directly in the terminal: llama cli -hf Benewende-dev/baarali-edge-2b:IQ4_XS
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 Benewende-dev/baarali-edge-2b:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf Benewende-dev/baarali-edge-2b:IQ4_XS
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 Benewende-dev/baarali-edge-2b:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf Benewende-dev/baarali-edge-2b:IQ4_XS
Use Docker
docker model run hf.co/Benewende-dev/baarali-edge-2b:IQ4_XS
- Llama new
- LM Studio
- Jan
- vLLM
How to use Benewende-dev/baarali-edge-2b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Benewende-dev/baarali-edge-2b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Benewende-dev/baarali-edge-2b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Benewende-dev/baarali-edge-2b:IQ4_XS
- Ollama
How to use Benewende-dev/baarali-edge-2b with Ollama:
ollama run hf.co/Benewende-dev/baarali-edge-2b:IQ4_XS
- Unsloth Desktop
- Pi
How to use Benewende-dev/baarali-edge-2b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Benewende-dev/baarali-edge-2b:IQ4_XS
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": "Benewende-dev/baarali-edge-2b:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Benewende-dev/baarali-edge-2b with Docker Model Runner:
docker model run hf.co/Benewende-dev/baarali-edge-2b:IQ4_XS
- Lemonade
How to use Benewende-dev/baarali-edge-2b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Benewende-dev/baarali-edge-2b:IQ4_XS
Run and chat with the model
lemonade run user.baarali-edge-2b-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use Benewende-dev/baarali-edge-2b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Benewende-dev/baarali-edge-2b:IQ4_XS
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 Benewende-dev/baarali-edge-2b:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Benewende-dev/baarali-edge-2b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Benewende-dev/baarali-edge-2b:IQ4_XS
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 "Benewende-dev/baarali-edge-2b:IQ4_XS" \ --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"
Model card: provenance, measurements, recommended settings
Browse files
README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3.5-2B
|
| 4 |
+
tags:
|
| 5 |
+
- gguf
|
| 6 |
+
- llama.cpp
|
| 7 |
+
- on-device
|
| 8 |
+
- offline
|
| 9 |
+
- cpu
|
| 10 |
+
- africa
|
| 11 |
+
- adtc-2026
|
| 12 |
+
language:
|
| 13 |
+
- fr
|
| 14 |
+
- en
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
+
library_name: llama.cpp
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# baarali-edge-2b
|
| 20 |
+
|
| 21 |
+
The weights for **[Baarali Edge](https://github.com/benewende-dev/baarali-edge)**, a submission to
|
| 22 |
+
the **Africa Deep Tech Challenge 2026 — Laptop LLM track**, domain `corporate_enterprise`.
|
| 23 |
+
|
| 24 |
+
An offline enterprise assistant for the laptops West Africa actually owns: 8 GB of RAM, integrated
|
| 25 |
+
graphics, no network. It reads a company's own documents — supplier contracts, invoices, HR
|
| 26 |
+
policies, meeting notes — and answers with citations, on the machine, in French and English.
|
| 27 |
+
|
| 28 |
+
## What this file is, exactly
|
| 29 |
+
|
| 30 |
+
This repository hosts **`Qwen3.5-2B-IQ4_XS.gguf`, an unmodified copy** of the IQ4_XS build
|
| 31 |
+
published by [unsloth/Qwen3.5-2B-GGUF](https://huggingface.co/unsloth/Qwen3.5-2B-GGUF), itself
|
| 32 |
+
quantised from [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B). Credit for the base model
|
| 33 |
+
goes to Qwen; credit for this quantisation goes to Unsloth. It is republished here so that the
|
| 34 |
+
submission's `download_model.sh` points at a URL under our control and keeps working unchanged
|
| 35 |
+
through the audit window — not because we claim authorship of the weights.
|
| 36 |
+
|
| 37 |
+
```
|
| 38 |
+
sha256 3639f34b5ca22aa1c51f3616566eae8c355111554f6924ad97ee2652ed11c1cd
|
| 39 |
+
size 1 172 996 352 bytes (1.09 GiB)
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
Our contribution is the **selection, measurement and packaging**: which base model, which
|
| 43 |
+
quantisation, which sampling settings, and the evidence for each. That evidence lives in the
|
| 44 |
+
GitHub repository, not in a claim on this page.
|
| 45 |
+
|
| 46 |
+
## Why this model, and why this quantisation
|
| 47 |
+
|
| 48 |
+
Both decisions were measured with the official `adtc-profiler`, never chosen by reputation. Five
|
| 49 |
+
base models between 0.8 B and 4.2 B parameters were profiled, then seven quantisations of the
|
| 50 |
+
winner. Full tables: [`bench/resultats.md`](https://github.com/benewende-dev/baarali-edge/blob/main/bench/resultats.md).
|
| 51 |
+
|
| 52 |
+
Measured on an Apple M1 / 8 GB, CPU only (`-ngl 0`, enforced by the profiler), median of three
|
| 53 |
+
runs. Absolute figures differ from the reference i5 laptop; the comparison between candidates does
|
| 54 |
+
not.
|
| 55 |
+
|
| 56 |
+
| Quantisation | Accuracy (`arc_easy`) | Throughput | Peak RAM |
|
| 57 |
+
|---|---|---|---|
|
| 58 |
+
| **IQ4_XS** *(shipped)* | 0.670 | **34.3 t/s** | **1.74 GB** |
|
| 59 |
+
| Q4_K_M | 0.675 | 31.6 t/s | 2.08 GB |
|
| 60 |
+
| Q5_K_M | 0.670 | 26.7 t/s | 2.01 GB |
|
| 61 |
+
| UD-Q4_K_XL | 0.650 | 29.4 t/s | 2.21 GB |
|
| 62 |
+
| Q3_K_M | 0.630 | 30.7 t/s | 1.93 GB |
|
| 63 |
+
|
| 64 |
+
IQ4_XS is the fastest *and* the lightest, with the tightest run-to-run spread (1.72–1.77 GB).
|
| 65 |
+
Paying for Q5 bought no accuracy at all — 0.670, identical, for 25 % more weight.
|
| 66 |
+
|
| 67 |
+
## Recommended inference settings
|
| 68 |
+
|
| 69 |
+
```bash
|
| 70 |
+
llama-cli -m Qwen3.5-2B-IQ4_XS.gguf -ngl 0 --temp 0 --repeat-penalty 1.10
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
`--repeat-penalty 1.10` is not a preference. On inputs outside its competence this model does not
|
| 74 |
+
decline — it repeats one phrase until the token budget runs out, and llama.cpp applies **no
|
| 75 |
+
repetition penalty by default**. Measured across 23 probes × 5 values, 1.10 is the smallest value
|
| 76 |
+
that eliminates the failure on every trigger we found, at **zero measured cost** on an 18-item
|
| 77 |
+
domain control (6/6 single-step, 9/12 multi-step — identical to no penalty). At 1.15 multi-step
|
| 78 |
+
reasoning collapses to 4/12.
|
| 79 |
+
|
| 80 |
+
Sweep and transcripts: [`bench/copies/penalite-repetition.md`](https://github.com/benewende-dev/baarali-edge/blob/main/bench/copies/penalite-repetition.md).
|
| 81 |
+
|
| 82 |
+
## Known limitations, measured
|
| 83 |
+
|
| 84 |
+
- **No African-language capability.** Probed and documented: asked to identify Dioula it answered
|
| 85 |
+
"the language of Cameroon"; asked for Wolof, "the language of Tigré". `dyu` was consequently
|
| 86 |
+
removed from the submission's `language_scope`. Working languages are French and English.
|
| 87 |
+
- **Rounding to a *week begun*** — a common clause in West African supply contracts — is wrong at
|
| 88 |
+
every configuration we tested.
|
| 89 |
+
- 2 B parameters is a deliberate trade. The scoring function puts 50 % of its weight on throughput
|
| 90 |
+
and memory; a larger model would have to be ~22 accuracy points better to break even, and it is
|
| 91 |
+
not.
|
| 92 |
+
|
| 93 |
+
## Licence
|
| 94 |
+
|
| 95 |
+
Apache 2.0, inherited from Qwen3.5-2B. The submission repository is GPL v3, inherited from the
|
| 96 |
+
official ADTC template; the weights keep their own licence.
|