Text Generation
MLX
Safetensors
English
zaya
applescript
macos
computer-use
agent
tool-calling
function-calling
Mixture of Experts
osaurus
conversational
Instructions to use OsaurusAI/Osaurus-AppleScript-8B-JANG_6M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Osaurus-AppleScript-8B-JANG_6M 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("OsaurusAI/Osaurus-AppleScript-8B-JANG_6M") 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 OsaurusAI/Osaurus-AppleScript-8B-JANG_6M with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M"
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": "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use OsaurusAI/Osaurus-AppleScript-8B-JANG_6M 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 "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M"
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 OsaurusAI/Osaurus-AppleScript-8B-JANG_6M
Run Hermes
hermes
- OpenClaw new
How to use OsaurusAI/Osaurus-AppleScript-8B-JANG_6M with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M"
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 "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M" \ --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 OsaurusAI/Osaurus-AppleScript-8B-JANG_6M with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OsaurusAI/Osaurus-AppleScript-8B-JANG_6M", "messages": [ {"role": "user", "content": "Hello"} ] }'
Fixed JANG 6-bit affine quant — coherent tool-calling, verified in Osaurus runtime (replaces broken 4-bit)
7348596 verified | license: other | |
| license_name: zyphra-zaya | |
| language: | |
| - en | |
| library_name: mlx | |
| tags: | |
| - applescript | |
| - macos | |
| - computer-use | |
| - agent | |
| - tool-calling | |
| - function-calling | |
| - mlx | |
| - moe | |
| - osaurus | |
| base_model: Zyphra/ZAYA1-8B | |
| pipeline_tag: text-generation | |
|  | |
| # Osaurus-AppleScript-8B-JANG_6M | |
| **A fast, small tool-calling model for macOS AppleScript & agentic computer-use.** Given a `run_applescript` | |
| tool, it emits a structured **tool call** with valid AppleScript to drive macOS — app automation | |
| (Safari, Finder, Mail, Notes, Calendar, System Events), system control, clipboard, screenshots, and | |
| `do shell script` — ready to execute in an agent loop. Without a tools spec, it writes AppleScript | |
| directly (hybrid). | |
| Built by **[Osaurus](https://osaurus.ai)**. Base: **Zyphra/ZAYA1-8B** (MoE). Quantized with **JANG** | |
| (6-bit affine, MLX-native) for fast on-device inference via | |
| [MLX](https://github.com/ml-explore/mlx). Verified in the Osaurus runtime. | |
| | | | | |
| |---|---| | |
| | Parameters | 8.84 B (MoE, 16 experts) | | |
| | Quant | **JANG 6-bit** — 6-bit affine weights + 8-bit embeddings (MLX `mx.quantize`, group 32) | | |
| | Size | ~7.4 GB | | |
| | Tool-calling | native (`<zyphra_tool_call>`), `run_applescript` | | |
| | Runtime | MLX (Apple Silicon) / Osaurus | | |
| ## Benchmark — base vs final (held-out executable AppleScript bench, 87 tasks) | |
| *Tool-call emission* = emits a `run_applescript` call. *Compile* = the emitted script is valid | |
| AppleScript. *Exec* = it runs and returns the correct result (scored on the pure-computational subset | |
| with a deterministic answer). | |
| | | Tool-call emission | Compile | Exec | | |
| |---|---|---|---| | |
| | Base (Zyphra/ZAYA1-8B) | ✗ (writes raw text, no tool calls) | 28.9% | 30.0% | | |
| | **Osaurus-AppleScript-8B-JANG_6M** | **100%** ⭐ | **80%** ⭐ | **75%** ⭐ | | |
| The fine-tune teaches structured tool-calling **and** valid AppleScript (base does neither). Typical | |
| app-automation tool-calls sit at the compile tier; the exec column is the hardest computational subset | |
| (string/number algorithms, shell, coercions). | |
| ## Usage (MLX, tool-calling) | |
| ```python | |
| from mlx_lm import load, generate | |
| model, tok = load("OsaurusAI/Osaurus-AppleScript-8B-JANG_6M") | |
| tools = [{"type":"function","function":{"name":"run_applescript", | |
| "description":"Execute AppleScript on macOS and return its output.", | |
| "parameters":{"type":"object","properties":{"script":{"type":"string"}},"required":["script"]}}}] | |
| msgs = [{"role":"user","content":"Get the URL of the front Safari tab."}] | |
| prompt = tok.apply_chat_template(msgs, tools=tools, add_generation_prompt=True, tokenize=False) | |
| print(generate(model, tok, prompt=prompt, max_tokens=300)) | |
| # -> <zyphra_tool_call><function=run_applescript><parameter=script> ... </parameter>... | |
| ``` | |
| Your agent parses the `run_applescript` tool call, runs the script (e.g. via `osascript`), and feeds | |
| the result back. (Omit `tools=` to get raw AppleScript instead.) | |
| ## Tiers | |
| For higher accuracy use **`OsaurusAI/Osaurus-AppleScript-16B-A4B-JANG_4M`**. This 8B is the fast/small | |
| tier for low-latency on-device automation. | |
| ## License | |
| Inherits the **Zyphra/ZAYA1-8B** license — review and comply with the base model's terms. | |
| --- | |
| Made by Osaurus · contact **eric@osaurus.ai** | |