Instructions to use dpoled/antares-1b-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use dpoled/antares-1b-mlx-8bit 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("dpoled/antares-1b-mlx-8bit") 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 dpoled/antares-1b-mlx-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "dpoled/antares-1b-mlx-8bit"
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": "dpoled/antares-1b-mlx-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use dpoled/antares-1b-mlx-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "dpoled/antares-1b-mlx-8bit"
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 "dpoled/antares-1b-mlx-8bit" \ --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 dpoled/antares-1b-mlx-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "dpoled/antares-1b-mlx-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "dpoled/antares-1b-mlx-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dpoled/antares-1b-mlx-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use dpoled/antares-1b-mlx-8bit 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 "dpoled/antares-1b-mlx-8bit"
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 dpoled/antares-1b-mlx-8bit
Run Hermes
hermes
antares-1b-mlx-8bit
8-bit MLX quantization of fdtn-ai/antares-1b
(Cisco Foundation AI's Antares 1B, built on IBM Granite 4.0 1B) for Apple Silicon.
- Format: MLX, 8-bit affine, group size 64 (~8.5 bits/weight)
- Size: ~1.7 GB weights, ~1.9 GB peak inference memory
- Converted with:
mlx-lm0.31.3 - Base model:
fdtn-ai/antares-1b— agentic vulnerability localization
Usage
pip install mlx-lm
mlx_lm.generate --model dpoled/antares-1b-mlx-8bit \
--prompt "List common causes of SQL injection." --max-tokens 256
from mlx_lm import load, generate
model, tok = load("dpoled/antares-1b-mlx-8bit")
msgs = [{"role": "user", "content": "Explain a buffer overflow in one sentence."}]
prompt = tok.apply_chat_template(msgs, add_generation_prompt=True)
print(generate(model, tok, prompt=prompt, max_tokens=256, verbose=True))
It is a reasoning model — output may include a </think> segment before the final answer.
Example run
mlx_lm.generate --model dpoled/antares-1b-mlx-8bit \
--prompt "List common causes of SQL injection." --max-tokens 1024
Output (abridged):
I'll list the most common causes of SQL injection, focusing on input handling
and query construction vulnerabilities.
1. Using string concatenation to build SQL queries
2. Using dynamic SQL with user input
...
Measured on Apple Silicon: prompt 39 tokens @ ~840 tok/s, generation 297 tokens @ ~183 tok/s, peak memory ~1.88 GB.
Conversion notes
The base checkpoint needed two fixes before mlx_lm.convert (0.31.3) would run:
- Flatten
rope_theta— the config (transformers 5.8.0) nests it underrope_parameters, whilemlx-lm'sgranitemoehybridexpects a flatrope_theta. - Strip the redundant
lm_head.weight— it is byte-identical tomodel.embed_tokens.weight(tied embeddings);mlx-lmties the output projection and rejects the extra tensor.
License
Apache 2.0, inherited from the base model. See fdtn-ai/antares-1b.
- Downloads last month
- 519
8-bit
Model tree for dpoled/antares-1b-mlx-8bit
Base model
ibm-granite/granite-4.0-1b-base