Instructions to use suraj10620/stark-1.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use suraj10620/stark-1.5b 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("suraj10620/stark-1.5b") 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 suraj10620/stark-1.5b with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "suraj10620/stark-1.5b"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "suraj10620/stark-1.5b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use suraj10620/stark-1.5b with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "suraj10620/stark-1.5b"
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 "suraj10620/stark-1.5b" \ --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"
- MLX LM
How to use suraj10620/stark-1.5b with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "suraj10620/stark-1.5b"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "suraj10620/stark-1.5b" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "suraj10620/stark-1.5b", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use suraj10620/stark-1.5b 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 "suraj10620/stark-1.5b"
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 suraj10620/stark-1.5b
Run Hermes
hermes
Stark 1.5B ⚡
Grammarly, but better. And it never leaves your Mac.
The model behind Stark, a macOS menu-bar app that rewrites your text fully offline. Select text anywhere, press a hotkey, and the rewrite replaces your selection in place. No account, no cloud, no subscription. Your typos never leave the building.
It's a small model with one job: you give it a one-word style tag and some text, and it answers with the rewritten text and nothing else. No "Here's your polished version!" preamble, no quotes, no commentary.
The eight styles
| Tag | What it does |
|---|---|
polish |
fixes grammar and flow, keeps your meaning and tone |
concise |
says the same thing in fewer words |
formal |
professional tone |
friendly |
warm, casual tone |
typos |
spelling only, never rephrases |
bullets |
turns prose into a markdown bullet list |
prompt |
sharpens a vague LLM prompt into a precise one |
expand |
grows a terse note into a fuller message: same meaning, no invented facts |
Try it
pip install mlx-lm
mlx_lm.generate --model suraj10620/stark-1.5b \
--system-prompt "polish" \
--prompt "i tested the fix on staging and it seem to working fine now"
The style tag goes in the system message, your text in the user message. That's the whole interface. If you've read API docs longer than this model card, that's the point.
What to expect
On an M-series Mac it uses about 1 GB of RAM and streams at ~97 tokens/sec with ~0.1 s to first token, fast enough that rewrites feel instant. It's a 1.5B model, not a lawyer: an occasional typo slips through, and the odd rewrite drifts. For everyday messages, it does the job.
Appendix: technical details
Training
- Base:
mlx-community/Qwen2.5-1.5B-Instruct-4bit(QLoRA on the quantized model), fused into this standalone model withmlx_lm fuse. - Data: 207 fully synthetic pairs across the 8 style tags. Hand-authored
rewrite pairs plus programmatic typo corruption for
typos. No user or customer data. The seeded generator and training script are in the GitHub repo (model/), so the model is reproducible end-to-end. - Recipe: LoRA, 150 iterations, lr 1e-4, batch 4, 16 layers, max sequence length 1024 (mlx_lm 0.31.3).
Serving
Works with the standard mlx_lm OpenAI-compatible server:
mlx_lm.server --model suraj10620/stark-1.5b --port 8765
curl -s localhost:8765/v1/chat/completions -d '{
"messages": [{"role":"system","content":"concise"},
{"role":"user","content":"I just wanted to quickly reach out to ask whether..."}],
"temperature": 0.2, "max_tokens": 512
}'
Limitations
- Trained on short pairs: past a few hundred words in one request it can drop paragraphs. The Stark app chunks long texts per paragraph and reassembles; do the same if you feed it documents.
- Style tags outside the eight above fall back to vaguely polish-like behavior. The tags are baked in by fine-tuning, not understood as instructions.
- English only (for now).
- Downloads last month
- 170
4-bit
Model tree for suraj10620/stark-1.5b
Base model
Qwen/Qwen2.5-1.5B