Text Generation
MLX
Safetensors
English
k2_horizon
jang
quantized
apple-silicon
reasoning
tool-use
finance
documents
spreadsheets
gptq
conversational
4-bit precision
Instructions to use OsaurusAI/Diplodocus-preview-JANG_6M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OsaurusAI/Diplodocus-preview-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/Diplodocus-preview-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/Diplodocus-preview-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/Diplodocus-preview-JANG_6M"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/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/Diplodocus-preview-JANG_6M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use OsaurusAI/Diplodocus-preview-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/Diplodocus-preview-JANG_6M"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "OsaurusAI/Diplodocus-preview-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/Diplodocus-preview-JANG_6M", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use OsaurusAI/Diplodocus-preview-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/Diplodocus-preview-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/Diplodocus-preview-JANG_6M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OsaurusAI/Diplodocus-preview-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/Diplodocus-preview-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/Diplodocus-preview-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"
Download evaluation/invoice-loop.json from OsaurusAI/Diplodocus-preview-JANG_6M: direct link, hf CLI and curl.
- Browser
- Download file 2.43 kB
-
https://huggingface.co/OsaurusAI/Diplodocus-preview-JANG_6M/resolve/main/evaluation/invoice-loop.json
- Command line
-
hf download hf://OsaurusAI/Diplodocus-preview-JANG_6M/evaluation/invoice-loop.json
-
curl -L -o invoice-loop.json https://huggingface.co/OsaurusAI/Diplodocus-preview-JANG_6M/resolve/main/evaluation/invoice-loop.json
2.43 kB
| { | |
| "arm": "ar", | |
| "tool": "actual calc-oracle", | |
| "turns": [ | |
| { | |
| "tool_results": [ | |
| { | |
| "request": { | |
| "id": "invoice_tool_turn_0", | |
| "expression": "3 * 19.95 + 2 * 45.50 + 120.00" | |
| }, | |
| "response": { | |
| "envelope": "{\"ok\":true,\"result\":{\"expression\":\"3 * 19.95 + 2 * 45.50 + 120.00\",\"result\":\"270.85\"},\"tool\":\"calculate\"}", | |
| "id": "invoice_tool_turn_0" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "tool_results": [ | |
| { | |
| "request": { | |
| "id": "invoice_tool_turn_1", | |
| "expression": "270.85 * 0.075" | |
| }, | |
| "response": { | |
| "envelope": "{\"ok\":true,\"result\":{\"expression\":\"270.85 * 0.075\",\"result\":\"20.31375\"},\"tool\":\"calculate\"}", | |
| "id": "invoice_tool_turn_1" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "tool_results": [ | |
| { | |
| "request": { | |
| "id": "invoice_tool_turn_2", | |
| "expression": "270.85 - 20.31375" | |
| }, | |
| "response": { | |
| "envelope": "{\"ok\":true,\"result\":{\"expression\":\"270.85 - 20.31375\",\"result\":\"250.53625\"},\"tool\":\"calculate\"}", | |
| "id": "invoice_tool_turn_2" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "tool_results": [ | |
| { | |
| "request": { | |
| "id": "invoice_tool_turn_3", | |
| "expression": "250.54 * 0.0825" | |
| }, | |
| "response": { | |
| "envelope": "{\"ok\":true,\"result\":{\"expression\":\"250.54 * 0.0825\",\"result\":\"20.66955\"},\"tool\":\"calculate\"}", | |
| "id": "invoice_tool_turn_3" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "tool_results": [ | |
| { | |
| "request": { | |
| "id": "invoice_tool_turn_4", | |
| "expression": "250.54 + 20.67 + 12.50" | |
| }, | |
| "response": { | |
| "envelope": "{\"ok\":true,\"result\":{\"expression\":\"250.54 + 20.67 + 12.50\",\"result\":\"283.71\"},\"tool\":\"calculate\"}", | |
| "id": "invoice_tool_turn_4" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "tool_results": [] | |
| } | |
| ], | |
| "status": "PASS", | |
| "final_text": "**Invoice QV-731 \u2014 calculation**\n\n| Item | Qty | Unit price | Amount |\n|---|---|---|---|\n| Cable kits | 3 | $19.95 | $59.85 |\n| Mounts | 2 | $45.50 | $91.00 |\n| Hub | 1 | $120.00 | $120.00 |\n| **Merchandise subtotal** | | | **$270.85** |\n\n- Discount (7.5%): 270.85 \u00d7 0.075 = 20.31375 \u2192 **\u2212$20.31**\n- Discounted subtotal: 270.85 \u2212 20.31375 = 250.53625 \u2192 **$250.54** (half-up)\n- Tax (8.25% on $250.54): 250.54 \u00d7 0.0825 = 20.66955 \u2192 **$20.67** (half-up)\n- Delivery: **$12.50**\n\n**Total: $250.54 + $20.67 + $12.50 = $283.71**" | |
| } |