9b_Linux_Expert / README.md
ArRENCEAI's picture
Update README.md
3382bdc verified
|
Raw History Blame Contribute Delete
19.7 kB
---
license: apache-2.0
base_model:
- Qwen/Qwen3.5-9B
base_model_relation: finetune
language:
- en
pipeline_tag: text-generation
library_name: gguf
tags:
- gguf
- linux
- sysadmin
- devops
- bash
- systemd
- llama.cpp
- lm-studio
- ollama
- qwen3.5
- local-llm
- arrence
---
<p align="center">
<img src="https://huggingface.co/ArRENCEAI/9b_Linux_Expert/resolve/main/assets/arrence-logo.png" alt="ArRENCE AI" width="220">
</p>
<h1 align="center">ArRENCE 9B Linux Expert</h1>
<p align="center"><b>A Linux specialist that makes 18–43% fewer factual errors than Qwen3.5-9B, with the same coverage in 27% fewer words.</b><br>
Runs on your own computer. Your questions never leave your machine.</p>
<p align="center">
<a href="https://arrenceai.com">arrenceai.com</a> ·
<a href="https://x.com/ArRENCEAI">X</a> ·
<a href="https://www.facebook.com/arrenceai">Facebook</a> ·
<a href="https://www.youtube.com/@ArRENCEAI">YouTube</a>
</p>
<p align="center">
<img alt="Base model: Qwen3.5-9B" src="https://img.shields.io/badge/base-Qwen3.5--9B-2563eb">
<img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-2563eb">
<img alt="GGUF: Q4_K_M, Q5_K_M" src="https://img.shields.io/badge/GGUF-Q4__K__M%20·%20Q5__K__M-0ea5e9">
<img alt="Runs locally" src="https://img.shields.io/badge/runs-100%25%20local-0ea5e9">
</p>
---
**ArRENCE 9B Linux Expert** is a Linux system-administration specialist from [ArRENCE AI](https://arrenceai.com). It is
built to give straight, correct answers about the things admins fight with every day: systemd units and timers, mounts
and fstab, SSH and keys, permissions and ACLs, SELinux and AppArmor, journald and logrotate, networking, storage,
filesystem repair and troubleshooting.
It is a fine-tune of [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), one of the strongest open models under 10B
parameters, so it keeps Qwen's speed, memory footprint and long context. These are the **GGUF** builds for
[LM Studio](https://lmstudio.ai), [llama.cpp](https://github.com/ggml-org/llama.cpp) and other local apps.
## Highlights
- **Fewer factual errors.** Two separate AI judges checked every factual claim in the answers to 300 held-out Linux
questions. ArRENCE 9B Linux Expert made **18% (GLM-5.3-Flash) to 43% (DeepSeek-V4.1-Flash) fewer factual errors
than Qwen3.5-9B**, the model it is built on, and **43–61% fewer than Ornith-1.5-9B**.
- **About twice as many error-free answers.** Answers with zero factual errors: **23% vs 11%** for Qwen3.5-9B (GLM) and
**44% vs 20%** (DeepSeek).
- **Same coverage, fewer words.** On our Longform-250 test (250 real-world requests, graded by script against 844 key
points from the man pages) it covers as many key points as Qwen3.5-9B (**80.7% vs 81.9%**, within noise) while
using **27% fewer words**. Less to read, less compute, faster answers.
- **Tool use, reported straight.** On the [Berkeley Function Calling Leaderboard (BFCL v3)](https://gorilla.cs.berkeley.edu/leaderboard.html)
"simple" cases it makes the right call **90.0%** of the time, about 4 points below Qwen3.5-9B's 93.8%. It is better
at holding back when no tool fits: **88.8% vs 84.2%** on BFCL's "irrelevance" cases.
- **Answers directly.** Thinking mode is switched off in the built-in template, so you get the answer, not a wall of
reasoning.
<p align="center">
<img src="https://huggingface.co/ArRENCEAI/9b_Linux_Expert/resolve/main/assets/factual_errors_chart.png" alt="Factual errors per 100 claims: ArRENCE 9B Linux Expert vs Qwen3.5-9B vs Ornith-1.5-9B, two judges" width="900">
</p>
<p align="center">
<img src="https://huggingface.co/ArRENCEAI/9b_Linux_Expert/resolve/main/assets/scorecard_chart.png" alt="Longform-250, Recall-250, answer length and BFCL v3 results for all three models" width="900">
</p>
## Files
| File | Size | Use it when |
|---|---|---|
| [`ArRENCE-9B-Linux-Expert-Q5_K_M.gguf`](https://huggingface.co/ArRENCEAI/9b_Linux_Expert/blob/main/ArRENCE-9B-Linux-Expert-Q5_K_M.gguf) | 6.47 GB | **Recommended.** The quantization all our comparison tests were run with. Needs about 8 GB of GPU memory or unified memory. |
| [`ArRENCE-9B-Linux-Expert-Q4_K_M.gguf`](https://huggingface.co/ArRENCEAI/9b_Linux_Expert/blob/main/ArRENCE-9B-Linux-Expert-Q4_K_M.gguf) | 5.63 GB | Tight on memory. Smaller and faster, and it gives up very little: in our LM Studio check on Recall-250 it scored 211/250 against 214/250 for Q5_K_M. |
SHA-256 checksums:
- Q5_K_M: `a713c9e784002fb28a9af74c49aae69514b38fb81918486b2a20d32159ad8282`
- Q4_K_M: `181996bd531acb09399955616c1773a10e4efdaced022ffc2810f151fca90086`
## Run it in LM Studio (step by step)
1. **Install LM Studio** from [lmstudio.ai](https://lmstudio.ai) and update it.
- This model uses the **Qwen3.5 architecture (`qwen35`)**, so it needs a recent llama.cpp runtime.
- If loading fails with an "unknown architecture" error, open **Settings → Runtime** and update the **llama.cpp**
runtime.
2. **Download the model.**
- Open the **Discover** (magnifying-glass) tab and search for `ArRENCEAI/9b_Linux_Expert`.
- Download **Q5_K_M**, or **Q4_K_M** if you have under 8 GB of GPU memory.
3. **Load it.** Go to the **Chat** tab, pick the model at the top (it shows as **9b_Linux_Expert** or **ArRENCE 9B
Linux Expert**), and set these load options:
- **Context Length:** `16384`. Use `8192` on low-memory machines. Anything up to `32768` is fine.
- **GPU Offload:** max, so all layers go to the GPU. Lower it only if you run out of memory.
- **Flash Attention:** on, if your hardware offers it.
4. **Set the sampling options** in the right-hand panel under **Sampling**. These are the settings ArRENCE runs in
production. We checked them on 300 Linux questions: every answer finished cleanly, with no stray non-English words.
| Setting | Value |
|---|---|
| Temperature | `0.4` |
| Top K | `20` |
| Top P | `0.95` |
| Min P | `0.03` |
| Presence Penalty | `1.0`. Higher values, up to Qwen's 1.5, can occasionally slip a stray non-English word into an answer. If your version lacks presence penalty, set **Repeat Penalty** to `1.05`. |
| Max response length | `4096` tokens |
5. **System prompt (optional).** The model works well with none. If you want one, this is the one our long-form test
uses:
```
You are a Linux expert. Help the user with their request.
```
6. **Thinking:** leave it **off**. The built-in template always runs the model in direct-answer mode. If LM Studio
shows a "thinking" toggle, it has no effect.
### Other ways to run it
**llama.cpp** (`llama-server` gives you an OpenAI-compatible API on port 8080):
```bash
llama-server -hf ArRENCEAI/9b_Linux_Expert:Q5_K_M -c 16384 -ngl 99 --jinja \
--temp 0.4 --top-k 20 --top-p 0.95 --min-p 0.03 --presence-penalty 1.0
```
Use `--jinja` so the model's built-in template, with thinking off, is applied. With a downloaded file, use
`-m ArRENCE-9B-Linux-Expert-Q5_K_M.gguf` instead of `-hf`. For a quick terminal chat, use `llama-cli` with the same
flags and `-cnv`.
**Any OpenAI-compatible client.** This works with LM Studio's server (Developer tab → Start Server, port 1234) or with
`llama-server`:
```python
from openai import OpenAI
client = OpenAI(base_url="http://localhost:1234/v1", api_key="not-needed")
reply = client.chat.completions.create(
model="arrence-9b-linux-expert", # the model name your server shows
messages=[{"role": "user", "content": "Which process is listening on port 443?"}],
temperature=0.4, top_p=0.95, presence_penalty=1.0, max_tokens=4096)
print(reply.choices[0].message.content)
```
**Ollama.** Create a file named `Modelfile` next to the GGUF:
```
FROM ./ArRENCE-9B-Linux-Expert-Q5_K_M.gguf
TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{- range .Messages }}<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{ end }}<|im_start|>assistant
<think>
</think>
"""
PARAMETER stop "<|im_end|>"
PARAMETER temperature 0.4
PARAMETER top_k 20
PARAMETER top_p 0.95
PARAMETER min_p 0.03
PARAMETER presence_penalty 1.0
PARAMETER num_ctx 16384
```
Then run `ollama create arrence-linux -f Modelfile`, followed by `ollama run arrence-linux`. Your Ollama version needs
Qwen3.5 (`qwen35`) support. We test with LM Studio and llama.cpp; if Ollama gives you trouble, use one of those.
## How we tested it
Every number on this page comes from a recorded, repeatable run. All three models (ArRENCE 9B Linux Expert, Qwen3.5-9B
and Ornith-1.5-9B) were run the same way: Q5_K_M GGUF, the same llama.cpp server build, thinking off and **temperature
0. Temperature 0 is a deliberate, test-environment-only setting that makes the results repeatable.** For everyday use,
run the sampling settings above.
### Factual accuracy: 300 held-out questions, two AI judges
- **The questions.** 300 questions drawn with a fixed seed from a bank of 2,485 realistic Linux questions ("I need
to…", "my server…"). None of the 300 appear in the training data. 180 of them share a source passage with a training
question; the result holds on the other 120 (see below).
- **How the sample was drawn.** Half of the 300 came from questions Qwen3.5-9B had originally answered with factual
errors, and half from questions it had answered cleanly. Results are re-weighted to the bank's natural mix (70%/30%),
so neither half counts more than it should.
- **How answers were scored.** Each answer was split into its individual claims. Each judge marked every factual claim
correct, incorrect or uncertain. The score is incorrect claims per 100 factual claims.
- **Questions set aside.** Questions where any of the three models hit the 8,192-token answer limit were set aside for
all three. Questions without a completed judgment for all three models were also left out (1 under GLM, 26 under
DeepSeek). That leaves 276 scored questions under GLM and 262 under DeepSeek.
| Wrong claims per 100 factual claims (95% interval) | ArRENCE 9B Linux Expert | Qwen3.5-9B | Ornith-1.5-9B |
|---|---|---|---|
| Judge 1: GLM-5.3-Flash | **6.5** (5.2–8.5) | 8.0 (7.1–9.0) | 11.5 (9.9–13.4) |
| Judge 2: DeepSeek-V4.1-Flash | **3.5** (2.5–4.7) | 6.1 (5.3–7.0) | 9.0 (7.8–10.4) |
| | GLM-5.3-Flash | DeepSeek-V4.1-Flash |
|---|---|---|
| Fewer errors than Qwen3.5-9B | **18%** (interval −3% to 35%) | **43%** (23% to 58%) |
| Fewer errors than Ornith-1.5-9B | **43%** (28% to 55%) | **61%** (48% to 72%) |
| Answers with zero errors: ours / Qwen / Ornith | **22.9%** / 11.1% / 12.7% | **44.4%** / 19.7% / 18.4% |
| Question by question vs Qwen: we had fewer errors / more errors | **149** / 93 (p < 0.001) | **157** / 56 (p < 0.001) |
<details>
<summary><b>Does the gain hold up? Breakdowns that a skeptic would ask for</b></summary>
| Error cut vs Qwen3.5-9B | GLM-5.3-Flash | DeepSeek-V4.1-Flash |
|---|---|---|
| Questions Qwen originally answered **cleanly** (141 / 137 questions) | 32% (12% to 48%), p = 0.008 | 47% (25% to 64%), p < 0.001 |
| Questions Qwen originally got **wrong** (135 / 125) | 14% (−12% to 35%), p = 0.02 | 42% (18% to 60%), p < 0.001 |
| Questions with **no related training question** (114 / 109) | 28% (6% to 47%), p = 0.003 | 50% (24% to 70%), p < 0.001 |
- The gain is largest on questions Qwen3.5-9B originally handled well, which is where a sampling bias would work
*against* us. It also holds on questions with no related question anywhere in the training data.
- Intervals are 95% bootstrap intervals. p-values are exact two-sided sign tests on the questions where the two models'
error counts differ.
*We know that AI-judged benchmarks come with the downfall of AI judging AI. We encourage anyone with a GPU to run their
own human tests of the model's ability to work with Linux systems compared to its industry peers.*
</details>
### Script-graded tests: no judge involved
| Test | What it measures | ArRENCE 9B Linux Expert | Qwen3.5-9B | Ornith-1.5-9B |
|---|---|---|---|---|
| **Longform-250** | Key points covered in full answers to 250 real-world requests (844 points from the man pages, plus 22 wrong-advice traps); scored on the 221 requests all three models finished within the test's 1,536-token limit | **80.7%** | 81.9% | 81.6% |
| | Requests answered within the 1,536-token limit | 232 / 250 | 237 / 250 | 249 / 250 |
| | Median answer length (same 221 requests) | **322 words** | 469 words | 321 words |
| **Recall-250** | Type the exact answer (command, option, path, value); 250 questions written from the man pages | **86.4%** (216) | 83.2% (208) | 78.8% (197) |
| | Recall-50 "showcase" set (the earlier release's test, kept for comparison) | 72% (36) | 72% (36) | 64% (32) |
| **BFCL v3 simple** | Picks the right function with the right arguments (400 cases) | 90.0% (360) | **93.8%** (375) | 92.5% (370) |
| **BFCL v3 irrelevance** | Declines to call a tool when none of the offered tools fits (240 cases) | **88.8%** (213) | 84.2% (202) | 65.8% (158) |
- **Longform-250:** the differences are within noise (vs Qwen3.5-9B: better on 42 requests, worse on 50, p = 0.47).
It reaches the same coverage in 27% fewer words in total.
- **Recall-250:** ahead of Ornith-1.5-9B (p = 0.004) and level with Qwen3.5-9B within noise (19 vs 11, p = 0.20).
- **BFCL:** the test cases are the official BFCL v3 sets from the
[Berkeley Function Calling Leaderboard](https://huggingface.co/datasets/gorilla-llm/Berkeley-Function-Calling-Leaderboard),
sent through the OpenAI-style tools API. They are scored with a simplified BFCL-style checker (exact function name,
every required argument, values from BFCL's accepted answers, no unexpected arguments), so these are not official
leaderboard scores.
- The 4-point drop on "simple" against Qwen3.5-9B is real (2 cases better, 17 worse, p < 0.001).
- The gain on "irrelevance" is also real (13 better, 2 worse, p = 0.007).
- **Longform-250** is kept private so it stays a clean test for future models.
- **Recall-250** is published in [`benchmark/`](https://huggingface.co/ArRENCEAI/9b_Linux_Expert/tree/main/benchmark),
so you can test any model yourself.
## Test any model yourself: Recall-250
Recall-250 asks 250 short Linux questions, and the model has to *type* the answer: the exact option, path, unit setting
or behaviour. A script grades every answer against accepted-answer rules written from the man pages. No judge model,
no cost, and the same result every time. It also includes the earlier 50-question "showcase" set, scored separately.
Everything is in [`benchmark/recall250/`](https://huggingface.co/ArRENCEAI/9b_Linux_Expert/tree/main/benchmark/recall250):
- `linux_recall_250.jsonl`: the questions with their grading rules
- `recall250.py`: runs a model and grades the answers. It needs only Python 3.8+ and no packages.
- `results/`: our answers for all three models, for comparison
Start your model in LM Studio's server, llama.cpp, Ollama or any OpenAI-compatible API, then run:
```bash
python recall250.py run --base-url http://localhost:1234/v1 --model <your-model-name> --out answers_mine.jsonl
python recall250.py grade answers_mine.jsonl --show-misses
```
- Ports: LM Studio is `:1234`, llama.cpp `:8080` and Ollama `:11434`.
- For hosted APIs, add `--api-key`.
- For models with a thinking mode, add `--thinking-off`.
## How it was made
ArRENCE 9B Linux Expert is Qwen3.5-9B with a LoRA fine-tune merged into its weights in 16-bit precision, then converted
to GGUF. Training ran in three stages:
1. **Grounded Linux knowledge.** Question-and-answer pairs written from current Linux documentation and reference
material, checked for correctness.
2. **Targeted corrections.** Extra training aimed at Linux questions, built with a special in-house process that can be
repeated across domains.
3. **Polish.** Two short preference-tuning passes to sharpen answer quality.
No user conversations were used. Training data is not released. This is a commercial fine-tune, not a research
artifact.
## Technical details
| | |
|---|---|
| Architecture | Qwen3.5 hybrid (`qwen35`): 32 layers, 24 Gated DeltaNet (linear-attention) layers + 8 full-attention layers, 9B parameters |
| Built on | [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) by the Qwen team |
| Fine-tuning | LoRA (rank 64), merged into the 16-bit weights; quantized with llama.cpp |
| Specialization | Linux system administration |
| Prompt format | ChatML (`<\|im_start\|>` / `<\|im_end\|>`), built into the GGUF. Thinking is fixed off. |
| Context | The architecture supports up to 262,144 tokens. The model was tuned on conversations of up to ~5,000 tokens, and 8k–32k is the practical range. |
| Memory | Only 8 of 32 layers keep a KV cache, so long contexts are cheap. Q5_K_M needs about 7.5 GB at 16k context, and Q4_K_M about 6.5 GB. |
| Tested with | llama.cpp `llama-server` (the engine LM Studio uses) and LM Studio |
| Language | English |
## Limitations
- **It is a specialist.** It is tuned for Linux administration. We tested Linux knowledge and tool calling, not
general knowledge, creative writing or other domains, so use a general model for those.
- **Tool calling is slightly below its base model:** 90.0% vs 93.8% on BFCL v3 simple. If tool calling is your main
use, weigh that against the accuracy gains.
- **Check commands before you run them,** especially anything destructive (`rm`, `dd`, `mkfs`, `fsck`, firewall
changes) and anything on production systems. Like every model, it can be confidently wrong.
- **Distribution-specific details** (package names, file locations) can differ from your system, so confirm against
your distro's docs.
- **Rare stray words at a high presence penalty.** As Qwen documents for Qwen3.5, a presence penalty near 1.5 can
occasionally put a non-English word into an answer. The recommended 1.0 showed none in our 300-question check.
## License and credits
- **License:** Apache-2.0. **Base model:** [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) by the Qwen team
(Apache-2.0). Thank you to the Qwen team.
- **Comparison model:** [Ornith-1.5-9B](https://huggingface.co/ornith-ai/Ornith-1.5-9B) by ornith-ai.
- **Test sets and judges:** BFCL v3 test cases from the Berkeley Function Calling Leaderboard (Gorilla, UC Berkeley).
The judge models are GLM-5.3-Flash (Z.ai) and DeepSeek-V4.1-Flash (DeepSeek). These names are used only to report
how we tested.
- "ArRENCE" is a trademark of Webb Local AI, LLC.
## About ArRENCE AI
*Because you deserve to grow into the age of AI safely and with autonomy.*
ArRENCE AI builds AI that is powerful without being wasteful, and useful without being invasive. That means local-first
models, no data harvesting and no dark patterns. No venture capital and no corporate backing: ArRENCE is independently
owned and operated in Oklahoma. ArRENCE 9B Linux Expert is one of the specialist experts behind ArRENCE.
| | |
|---|---|
| ArRENCE AI | [arrenceai.com](https://arrenceai.com) |
| Webb Local AI (the AI company) | [webblocalai.com](https://webblocalai.com) |
| Webb Software Solutions (the software company) | [webbsoftwaresolution.com](https://webbsoftwaresolution.com) |
| ArRENCE Browser | [arrencebrowser.com](https://arrencebrowser.com) |
| Social | [X @ArRENCEAI](https://x.com/ArRENCEAI) · [Facebook](https://www.facebook.com/arrenceai) · [YouTube @ArRENCEAI](https://www.youtube.com/@ArRENCEAI) |
| Our news sites | [My Privacy News](https://myprivacynews.today/) · [Your AI News](https://yourainews.today) · [Your Gamer News](https://yourgamernews.com) · [My Mushroom News](https://mymushroomnews.today) |