Instructions to use hawierdev/shellm-v0.1-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use hawierdev/shellm-v0.1-gguf 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 hawierdev/shellm-v0.1-gguf # Run inference directly in the terminal: llama cli -hf hawierdev/shellm-v0.1-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hawierdev/shellm-v0.1-gguf # Run inference directly in the terminal: llama cli -hf hawierdev/shellm-v0.1-gguf
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf hawierdev/shellm-v0.1-gguf # Run inference directly in the terminal: ./llama-cli -hf hawierdev/shellm-v0.1-gguf
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf hawierdev/shellm-v0.1-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf hawierdev/shellm-v0.1-gguf
Use Docker
docker model run hf.co/hawierdev/shellm-v0.1-gguf
- LM Studio
- Jan
- Ollama
How to use hawierdev/shellm-v0.1-gguf with Ollama:
ollama run hf.co/hawierdev/shellm-v0.1-gguf
- Unsloth Desktop
- Docker Model Runner
How to use hawierdev/shellm-v0.1-gguf with Docker Model Runner:
docker model run hf.co/hawierdev/shellm-v0.1-gguf
- Lemonade
How to use hawierdev/shellm-v0.1-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hawierdev/shellm-v0.1-gguf
Run and chat with the model
lemonade run user.shellm-v0.1-gguf-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
ShellM v0.1
ShellM is a specialized language model based on Qwen2.5 1.5B, fine-tuned for generating intelligent terminal command suggestions. The model has been trained to understand terminal context and suggest appropriate commands.
Model Specifications
- Architecture: Qwen2ForCausalLM
- Size: 1.5B parameters
- Hidden size: 1536
- Layers: 28
- Attention heads: 12 (2 key-value heads)
- Max context length: 32768 tokens
- Precision: bfloat16
Capabilities
- Terminal command suggestions based on context
- Understanding complex system tasks
- Shell script generation
- Command debugging assistance
- Multi-platform support
Usage
The model uses chatml format for conversations:
<|im_start|>user
How to display all processes using port 8080?
<|im_end|>
<|im_start|>assistant
lsof -i :8080
<|im_end|>
Example Use Cases
File Management:
User: How to find all Python files larger than 1MB?
Assistant: find . -name "*.py" -size +1M
Process Management:
User: How to kill all python processes?
Assistant: pkill python
Git Operations:
User: How to undo last commit without losing changes?
Assistant: git reset --soft HEAD~1
Installation and Usage
Requirements:
- transformers
- torch
- tokenizers
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "shellm_v0.1_merged"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example usage
prompt = "<|im_start|>user\nHow to check disk usage?<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=150, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=False)
Special Tokens
The model supports standard Qwen2 tokens:
<|im_start|>,<|im_end|>- conversation markers<|vision_pad|>- padding token- Fill-in-the-middle tokens:
<|fim_prefix|>,<|fim_middle|>,<|fim_suffix|>
Version Info
Version: v0.1 Based on: Qwen2.5-1.5B Fine-tuned with: Unsloth v2025.8.8
- Downloads last month
- 2
We're not able to determine the quantization variants.