Text Generation
MLX
Safetensors
English
qwen2
terminal
code-generation
macos
shell
qlora
conversational
Instructions to use Ahmad170412/Doom-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Ahmad170412/Doom-V1 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Ahmad170412/Doom-V1") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use Ahmad170412/Doom-V1 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ahmad170412/Doom-V1"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Ahmad170412/Doom-V1" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Ahmad170412/Doom-V1 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Ahmad170412/Doom-V1"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Ahmad170412/Doom-V1" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ahmad170412/Doom-V1", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Ahmad170412/Doom-V1 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ahmad170412/Doom-V1"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Ahmad170412/Doom-V1
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Ahmad170412/Doom-V1 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Ahmad170412/Doom-V1"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Ahmad170412/Doom-V1" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
DOOM — Terminal Command Generator
A fine-tuned Qwen2.5-Coder-1.5B that translates natural-language requests into macOS terminal commands.
Want to use this model? Check out the CLI: Ahmad170412/DoomCLI
What It Does
You type what you want in plain English. The model outputs exactly one zsh command + a short explanation.
| You say | Model generates |
|---|---|
| "how much ram does this mac have" | sysctl hw.memsize |
| "create 50 folders named project-01 through 50" | mkdir -p project-{01..50} |
| "add my deepseek api key to zshrc" | echo 'export DEEPSEEK_API_KEY="sk-…"' >> ~/.zshrc |
| "which ports does ssh have open" | lsof -iTCP -sTCP:LISTEN -P | grep sshd |
| "delete all .o files recursively" | find . -name "*.o" -delete |
| "zip up this folder" | zip -r archive.zip . |
Usage
from mlx_lm import load, generate
# Load base model + adapter
model, tokenizer = load(
"mlx-community/Qwen2.5-Coder-1.5B-Instruct-4bit",
adapter_path="adapter"
)
messages = [
{"role": "system", "content": "You are Doom, a macOS terminal assistant. Output exactly one zsh command wrapped in ```zsh code fences, followed by a one-line explanation."},
{"role": "user", "content": "how much ram does this mac have"}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
response = generate(model, tokenizer, prompt=prompt, max_tokens=256)
print(response)
Architecture
- Base:
Qwen2.5-Coder-1.5B-Instruct(4-bit quantized) - Method: QLoRA (rank 8, alpha 16, 8 layers)
- Training: MLX on Apple Silicon
Training Data
3,200 hand-crafted samples across 7 categories:
| Category | Samples |
|---|---|
| system_info | ~500 |
| file_ops | ~500 |
| config_edits | ~500 |
| process_ports | ~400 |
| search_inspect | ~400 |
| archive | ~400 |
| permissions | ~400 |
Each sample is a chat-format conversation with system context (OS version, shell, cwd).
Evaluation
Evaluated on 319 held-out prompts:
| Metric | Base Qwen 1.5B | DOOM |
|---|---|---|
| Combined correct | 25% | 50% |
| Exact string match | 19% | 38% |
| Format violations | 38 | 0 |
Limitations
- macOS only — trained on macOS commands (
sysctl,lsof,sw_vers) - 50% accuracy — common cases work well, edge cases need the edit flow
- One command only — no
&&,;, or multi-step workflows - No context — only knows cwd, OS version, and shell
License
MIT
- Downloads last month
- 182
Model size
0.2B params
Tensor type
F16
·
U32 ·
Hardware compatibility
Log In to add your hardware
Quantized
Model tree for Ahmad170412/Doom-V1
Base model
Qwen/Qwen2.5-1.5B Finetuned
Qwen/Qwen2.5-Coder-1.5B