How to use from
OpenClaw
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "osirisbrain/OsirisPtah-Coder-v7-MLX"
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 "osirisbrain/OsirisPtah-Coder-v7-MLX" \
  --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"
Quick Links

OsirisPtah-Coder-v7-MLX

The Ptah — Osiris's dedicated coding and hacking brain. Fully uncensored (abliterated). Runs natively on Apple Silicon via MLX Metal.

Architecture

  • Base Model: Qwen2.5-Coder-7B-Instruct (7 billion parameters)
  • Modification: Abliterated by huihui-ai, converted to MLX 4-bit by OsirisBrain
  • Format: MLX 4-bit quantized (4.501 bits/weight)
  • Size: ~4.0 GB
  • Speed: ~120-180 tokens/sec on M2 Pro (MLX Metal)
  • Specialization: Code generation, debugging, security analysis, full-stack development

Usage

from mlx_lm import load, generate

model, tokenizer = load("osirisbrain/OsirisPtah-Coder-v7-MLX")
prompt = tokenizer.apply_chat_template(
    [{"role": "user", "content": "Write a TypeScript WebSocket server"}],
    add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, max_tokens=2048)

Credits

Abliterated by huihui-ai. Original model: Qwen/Qwen2.5-Coder-7B-Instruct by Alibaba.

Downloads last month
19
Safetensors
Model size
1B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for osirisbrain/OsirisPtah-Coder-v7-MLX

Base model

Qwen/Qwen2.5-7B
Quantized
(203)
this model