CoolFace
Modelpublic

C-H-Liu/bash2nl-qwen2.5-coder-7b-GGUF

sourceHugging Faceapache-2.0updated 6d agoView on Hugging Face
1likes66downloads
Model Card

bash2nl — Qwen2.5-Coder-7B QLoRA, GGUF q4KM

Explains a Bash command line in exactly one English sentence, phrased as an instruction starting with a verb. QLoRA fine-tune of Qwen/Qwen2.5-Coder-7B-Instruct, merged and quantized to q4KM.

find . -name "*.py"
-> Display the names of all files in the current directory and recursively into subdirectories with names that end in .py

Usage

bash
hf download C-H-Liu/bash2nl-qwen2.5-coder-7b-GGUF --local-dir bash2nl
cd bash2nl && ollama create bash2nl -f Modelfile
ollama run bash2nl 'ps -ef | grep nginx | awk "{print \$2}" | xargs kill -9'

The Modelfile pins the system prompt and this decoding:

optionvalue
temperature0.0
top_k1
top_p1.0
repeat_penalty1.0
num_predict96
num_ctx4096
stop`<im_end>, <endoftext>`

Evaluation

920 held-out commands Judge columns are claude-sonnet-5 scoring a fixed 200-command subset.

metricbase+ few-shot**this model**
BLEU14.5917.6733.49
chrF44.1545.8252.21
ROUGE-L39.0940.6453.24
judge acceptable+0.8800.9000.890
judge wrong0.1200.1000.110
avg words18.017.212.4

License

Apache-2.0, matching the base model, whose weights this GGUF contains. Training data comes from the nl2bash project; consult it for the terms attached to that corpus.