Text Generation
Transformers
Safetensors
GGUF
English
qwen2
1.5b
commands
devops
fableforge
imatrix
llama.cpp
lm-studio
ollama
shell
sysadmin
terminal
uncensored
conversational
text-generation-inference
Instructions to use fableforge-ai/ShellWhisperer-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fableforge-ai/ShellWhisperer-1.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fableforge-ai/ShellWhisperer-1.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/ShellWhisperer-1.5B") model = AutoModelForCausalLM.from_pretrained("fableforge-ai/ShellWhisperer-1.5B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use fableforge-ai/ShellWhisperer-1.5B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M # Run inference directly in the terminal: llama cli -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M # Run inference directly in the terminal: llama cli -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
Use Docker
docker model run hf.co/fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use fableforge-ai/ShellWhisperer-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fableforge-ai/ShellWhisperer-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fableforge-ai/ShellWhisperer-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
- SGLang
How to use fableforge-ai/ShellWhisperer-1.5B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "fableforge-ai/ShellWhisperer-1.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fableforge-ai/ShellWhisperer-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "fableforge-ai/ShellWhisperer-1.5B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fableforge-ai/ShellWhisperer-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use fableforge-ai/ShellWhisperer-1.5B with Ollama:
ollama run hf.co/fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
- Unsloth Desktop
- Pi
How to use fableforge-ai/ShellWhisperer-1.5B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "fableforge-ai/ShellWhisperer-1.5B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use fableforge-ai/ShellWhisperer-1.5B with Docker Model Runner:
docker model run hf.co/fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
- Lemonade
How to use fableforge-ai/ShellWhisperer-1.5B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
Run and chat with the model
lemonade run user.ShellWhisperer-1.5B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use fableforge-ai/ShellWhisperer-1.5B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
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 fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use fableforge-ai/ShellWhisperer-1.5B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
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 "fableforge-ai/ShellWhisperer-1.5B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Viral card: model-tree metadata, quant table, Ollama-from-source, demo funnel
Browse files
README.md
CHANGED
|
@@ -2,111 +2,92 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
|
|
|
| 5 |
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
|
|
|
| 6 |
tags:
|
| 7 |
-
-
|
| 8 |
- commands
|
| 9 |
-
- terminal
|
| 10 |
- devops
|
| 11 |
-
- system-admin
|
| 12 |
-
- uncensored
|
| 13 |
- fableforge
|
| 14 |
-
- ollama
|
| 15 |
-
- lightweight
|
| 16 |
- gguf
|
| 17 |
-
-
|
| 18 |
-
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
- text
|
| 25 |
-
|
| 26 |
---
|
| 27 |
|
| 28 |
-
# ShellWhisperer-1.5B
|
| 29 |
-
|
| 30 |
-
<div align="center">
|
| 31 |
|
| 32 |
-
**
|
| 33 |
|
| 34 |
-
[](#quantizations)
|
| 36 |
-
[](#license)
|
| 37 |
-
[](#hardware-requirements)
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
**ShellWhisperer is a fast shell command assistant** focused exclusively on shell tasks. Fine-tuned from Qwen2.5-1.5B-Instruct on 100K+ shell command traces, it predicts bash, zsh, PowerShell, and DevOps commands.
|
| 44 |
-
|
| 45 |
-
Unlike general models that *kind of* know shell commands, ShellWhisperer is purpose-built for terminal productivity.
|
| 46 |
|
| 47 |
-
##
|
| 48 |
|
| 49 |
-
### Ollama
|
| 50 |
```bash
|
| 51 |
-
ollama run
|
| 52 |
```
|
| 53 |
|
| 54 |
-
##
|
| 55 |
-
```bash
|
| 56 |
-
./llama-cli -m shellwhisperer-1.5b-Q4_K_M.gguf --prompt "find all files larger than 100MB" -n 512
|
| 57 |
-
```
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 62 |
-
model = AutoModelForCausalLM.from_pretrained("fableforge-ai/ShellWhisperer-1.5B")
|
| 63 |
```
|
| 64 |
|
| 65 |
-
##
|
|
|
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|------|------|----------|
|
| 69 |
-
| `IQ2_XXS.gguf` | 488 MB | Extreme compression |
|
| 70 |
-
| `Q2_K.gguf` | 645 MB | Phone, Raspberry Pi |
|
| 71 |
-
| `IQ3_XXS.gguf` | 638 MB | Ultra low-resource |
|
| 72 |
-
| `Q3_K_M.gguf` | 786 MB | Low-end devices |
|
| 73 |
-
| `Q4_0.gguf` | 895 MB | Fast inference |
|
| 74 |
-
| **`Q4_K_M.gguf`** | **940 MB** | **Recommended** |
|
| 75 |
-
| `IQ4_XS.gguf` | 860 MB | Quality + compression |
|
| 76 |
-
| `Q5_K_M.gguf` | 1.0 GB | High quality |
|
| 77 |
-
| `Q6_K.gguf` | 1.2 GB | Pro quality |
|
| 78 |
-
| `Q8_0.gguf` | 1.5 GB | Near-lossless |
|
| 79 |
-
| `f16.gguf` | 2.9 GB | Full precision |
|
| 80 |
|
| 81 |
-
##
|
| 82 |
|
| 83 |
-
|
|
| 84 |
-
|---------
|
| 85 |
-
|
|
| 86 |
-
|
|
| 87 |
-
|
|
| 88 |
-
|
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|-----------|-------|
|
| 95 |
-
| Base Model | Qwen2.5-1.5B-Instruct |
|
| 96 |
-
| Training Data | 100K+ shell command traces |
|
| 97 |
-
| Method | QLoRA |
|
| 98 |
-
| Precision | bfloat16 |
|
| 99 |
|
| 100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
-
|
| 103 |
-
- **Quantization impact**: Smaller quants may show quality degradation
|
| 104 |
-
- **Uncensored**: Model does not refuse harmful requests β use responsibly
|
| 105 |
|
| 106 |
-
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
---
|
| 111 |
|
| 112 |
-
*
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 8 |
+
base_model_relation: finetune
|
| 9 |
tags:
|
| 10 |
+
- 1.5b
|
| 11 |
- commands
|
|
|
|
| 12 |
- devops
|
|
|
|
|
|
|
| 13 |
- fableforge
|
|
|
|
|
|
|
| 14 |
- gguf
|
| 15 |
+
- imatrix
|
| 16 |
+
- llama.cpp
|
| 17 |
+
- lm-studio
|
| 18 |
+
- ollama
|
| 19 |
+
- shell
|
| 20 |
+
- sysadmin
|
| 21 |
+
- terminal
|
| 22 |
+
- text-generation
|
| 23 |
+
- uncensored
|
| 24 |
---
|
| 25 |
|
| 26 |
+
# ShellWhisperer-1.5B
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
> **Natural language β precise bash commands. Tiny, fast, uncensored.**
|
| 29 |
|
| 30 |
+
[](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B) [](https://huggingface.co/spaces/fableforge-ai/fableforge-nexus)
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
Base model: [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) Β· Part of the **FableForge** ecosystem.
|
| 33 |
|
| 34 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
## β‘ Quickest start β Ollama (pulls straight from this repo β credits the source)
|
| 37 |
|
|
|
|
| 38 |
```bash
|
| 39 |
+
ollama run hf.co/fableforge-ai/ShellWhisperer-1.5B:Q4_K_M
|
| 40 |
```
|
| 41 |
|
| 42 |
+
## π¦ llama.cpp
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
```bash
|
| 45 |
+
llama-cli -hf fableforge-ai/ShellWhisperer-1.5B:Q4_K_M -p "Hello!"
|
|
|
|
|
|
|
| 46 |
```
|
| 47 |
|
| 48 |
+
## π LM Studio
|
| 49 |
+
Search **`fableforge-ai/ShellWhisperer-1.5B`** and pick a quant below.
|
| 50 |
|
| 51 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
+
## π¦ Provided quants (download one file, not the whole repo)
|
| 54 |
|
| 55 |
+
| File | Quant | Size | Notes |
|
| 56 |
+
| ---- | ----- | ---- | ----- |
|
| 57 |
+
| [shellwhisperer-1.5b-f16.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-f16.gguf) | `F16` | 3.09 GB | Full precision (unquantized). Reference / conversion. |
|
| 58 |
+
| [shellwhisperer-1.5b-Q8_0.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q8_0.gguf) | `Q8_0` | 1.65 GB | Extremely high quality β usually overkill. |
|
| 59 |
+
| [shellwhisperer-1.5b-Q6_K.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q6_K.gguf) | `Q6_K` | 1.27 GB | Very high quality, near-perfect. **Recommended** if you have the RAM. |
|
| 60 |
+
| [shellwhisperer-1.5b-Q5_K_M.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q5_K_M.gguf) | `Q5_K_M` | 1.13 GB | High quality. **Recommended.** |
|
| 61 |
+
| [shellwhisperer-1.5b-Q4_K_M.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q4_K_M.gguf) | `Q4_K_M` | 0.99 GB | β **Best size/quality balance β default pick for most users.** |
|
| 62 |
+
| [shellwhisperer-1.5b-IQ4_XS.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-IQ4_XS.gguf) | `IQ4_XS` | 0.90 GB | imatrix β great quality, smaller than Q4_K_S. **Recommended for low RAM.** |
|
| 63 |
+
| [shellwhisperer-1.5b-Q4_0.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q4_0.gguf) | `Q4_0` | 0.93 GB | Legacy format β prefer Q4_K_M. |
|
| 64 |
+
| [shellwhisperer-1.5b-Q3_K_M.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q3_K_M.gguf) | `Q3_K_M` | 0.82 GB | Lower quality; usable when RAM is tight. |
|
| 65 |
+
| [shellwhisperer-1.5b-IQ3_XXS.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-IQ3_XXS.gguf) | `IQ3_XXS` | 0.67 GB | imatrix very low quality. |
|
| 66 |
+
| [shellwhisperer-1.5b-Q2_K.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-Q2_K.gguf) | `Q2_K` | 0.68 GB | Very low quality β surprisingly usable. |
|
| 67 |
+
| [shellwhisperer-1.5b-IQ2_XXS.gguf](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B/blob/main/shellwhisperer-1.5b-IQ2_XXS.gguf) | `IQ2_XXS` | 0.51 GB | Tiny imatrix β last resort. |
|
| 68 |
|
| 69 |
+
**Not sure?** Take **`Q4_K_M`**. Low RAM β **`IQ4_XS`**. Max quality β **`Q6_K`**.
|
| 70 |
|
| 71 |
+
## π§ Prompt format (ChatML)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
+
```
|
| 74 |
+
<|im_start|>system
|
| 75 |
+
{system_prompt}<|im_end|>
|
| 76 |
+
<|im_start|>user
|
| 77 |
+
{prompt}<|im_end|>
|
| 78 |
+
<|im_start|>assistant
|
| 79 |
+
```
|
| 80 |
|
| 81 |
+
## π See it live β the FableForge demos
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
This family powers a galaxy of free, interactive HF Spaces:
|
| 84 |
|
| 85 |
+
- π§ [FableForge Nexus](https://huggingface.co/spaces/fableforge-ai/fableforge-nexus)
|
| 86 |
+
- πΊ [Infinite NPC](https://huggingface.co/spaces/fableforge-ai/infinite-npc)
|
| 87 |
+
- π [Dual-GM](https://huggingface.co/spaces/King3Djbl/dual-gm-simulator)
|
| 88 |
+
- π» [ShellWhisperer](https://huggingface.co/spaces/King3Djbl/shellwhisperer-terminal)
|
| 89 |
+
- π» [Ghost Writer](https://huggingface.co/spaces/fableforge-ai/ghost-writer)
|
| 90 |
|
| 91 |
---
|
| 92 |
|
| 93 |
+
*β Like & share β it helps people find the source instead of a mirror.*
|