Downloads · 30 days
0
0% of all-time downloads
rendivs/qwen2.5-coder-3b-linux-expert
qwen2.5-coder-3b-linux-expert is a machine learning model from rendivs. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
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.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
1
Public
Repo size
6.2 GB
Likes
0
Public
Click a slice to open those files.
.md3.9 KB · 72%
From the Hugging Face model README
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:
This is a merged LoRA model, meaning it is fully standalone and can replace the base Qwen2.5-Coder-3B for Linux tasks.
| 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:
safe, caution, danger)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.jinjafrom 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))
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
ollama create linux-expert -f Modelfile
ollama run linux-expert
The finetuning dataset contains:
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.
Thanks to the Qwen team for the model, and to the open-source Linux/Arch community whose practices inform the dataset.