Downloads · 30 days
23
64% of all-time downloads
mahsery/howdo-4b
howdo-4b is a machine learning model from mahsery. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
howdo-4b-v4 is a 4.0B parameter language model fine-tuned for single-line natural-language-to-shell-command translation (POSIX and Bash).
Downloads · 30 days
23
64% of all-time downloads
All-time downloads
36
Public
Repo size
2.7 GB
Likes
1
Public
Click a slice to open those files.
.gguf2.7 GB · 100%
From the Hugging Face model README
howdo-4b-v4 is a 4.0B parameter language model fine-tuned for single-line natural-language-to-shell-command translation (POSIX and Bash).
The model is designed for fast, local inference with llama.cpp and powers the howdo CLI tool.
The model was fine-tuned using LoRA (rank 32, alpha 64) on 69,000 verified command generation examples, with particular focus on:
-maxdepth 1 constraints).-- for filenames beginning with -).find -print0 | xargs -0).rg, fd, jq, sed, awk, tar).Install the howdo tool:
git clone https://github.com/Mahsery/howdo.git
cd howdo
cargo install --path .
howdo setup
Generate commands:
howdo find all empty directories in the current folder only
Run the GGUF model directly using llama-cli:
llama-cli -m howdo-4b-v4-Q4_K_M.gguf \
-p "<|im_start|>system\nYou are a shell command generator. Output exactly one line: a single POSIX/bash command that accomplishes the user's request. No prose, no markdown fences, no explanation.<|im_end|>\n<|im_start|>user\nfind all empty directories in the current folder only<|im_end|>\n<|im_start|>assistant\n" \
-n 64 --temp 0.0
The model expects the ChatML format with a strict single-line instruction system prompt:
<|im_start|>system
You are a shell command generator. Output exactly one line: a single POSIX/bash command that accomplishes the user's request. No prose, no markdown fences, no explanation.<|im_end|>
<|im_start|>user
[Your request in plain English]<|im_end|>
<|im_start|>assistant