YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Qwen2.5-Coder-3B Linux Expert
This model is a specialized Linux/Arch/SRE finetune of Qwen2.5-Coder-3B, trained on a curated dataset of 5,000 expert-level system administration instructions.
It excels at:
- Arch Linux commands (pacman, system maintenance)
- Systemd & journald diagnostics
- Bash scripting (strict mode, traps, safety)
- Filesystem inspection & process management
- Networking (ip, ss, ping, firewall basics)
- Docker & Podman operations
- Security + risk classifications of commands
- Real-world troubleshooting scenarios
This is a merged LoRA model, meaning it is fully standalone and can replace the base Qwen2.5-Coder-3B for Linux tasks.
π§ Training Details
| Item | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-Coder-3B |
| Method | LoRA Finetune β Merged |
| Dataset Size | 5,000 instructions |
| Max Seq Length | 768 |
| Epochs | 3 |
| LR | 2e-4 |
| Batch Size | 1 (GA 12) |
| Precision | FP16 training |
| Hardware | Single GPU (8GB VRAM) |
The training data includes:
- High-quality expert Linux instructions
- Strict-mode bash scripting
- Arch Linux system tasks
- Structured risk labels (
safe,caution,danger) - Scenario-style SRE workflows
π¦ Files Included
HF Transformers Model
config.jsongeneration_config.jsonmodel-00001-of-00002.safetensorsmodel-00002-of-00002.safetensorsmodel.safetensors.index.jsontokenizer.jsontokenizer_config.jsonvocab.jsonmerges.txtspecial_tokens_map.jsonadded_tokens.jsonchat_template.jinja
π Usage (Transformers)
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "rendivs/qwen2.5-coder-3b-linux-expert"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
prompt = "How do I safely remove orphaned packages on Arch Linux?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
π§ Example Questions It Handles Well
β Arch Linux operations
- "Show me how to clean pacman cache safely."
- "Detect broken symlinks under /etc."
β systemd troubleshooting
- "My service won't start, show systemctl debugging steps."
β Networking
- "Explain difference between ss -lntp and netstat equivalents."
β Bash scripting
- "Write a script to monitor CPU temp with trap cleanup."
β Docker/Podman
- "Generate systemd units from Podman containers."
β Security & safety
- "Classify the danger level of: rm -rf /var/lib/docker/*"
π³ Usage With Ollama (GGUF)
Example Modelfile
FROM ./qwen_linux_expert.Q5_K_M.gguf
TEMPLATE """<|user|>
{{ .Prompt }}
<|assistant|>
"""
PARAMETER temperature 0.2
PARAMETER top_p 0.9
PARAMETER num_ctx 4096
Create model
ollama create linux-expert -f Modelfile
ollama run linux-expert
π Dataset Summary
The finetuning dataset contains:
- Arch Linux system knowledge
- pacman workflows (install, cleanup, orphans, backups)
- systemd/journalctl debugging
- bash strict-mode patterns (set -euo pipefail, trap cleanup)
- common SRE troubleshooting patterns
- disk, memory, CPU diagnostics
- container runtime workflows (Docker + Podman)
- real-world risk classification
π License
- Base model: Apache 2.0
- This finetune: Apache 2.0
π€ Contributions
Pull requests and improvements are welcome!
If you'd like to contribute new high-quality Linux examples or benchmarks, feel free to open an issue or PR.
β Acknowledgements
Thanks to the Qwen team for the model, and to the open-source Linux/Arch community whose practices inform the dataset.
license: apache-2.0
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support