Genie
Collection
Mixed-precision MLX dynamic quantizations for Apple Silicon. โข 9 items โข Updated
How to use gpustack/DaisyRose-27B-MLX-5bit-dynamic with MLX:
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config
# Load the model
model, processor = load("gpustack/DaisyRose-27B-MLX-5bit-dynamic")
config = load_config("gpustack/DaisyRose-27B-MLX-5bit-dynamic")
# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."
# Apply chat template
formatted_prompt = apply_chat_template(
processor, config, prompt, num_images=1
)
# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)How to use gpustack/DaisyRose-27B-MLX-5bit-dynamic with Pi:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "gpustack/DaisyRose-27B-MLX-5bit-dynamic"
# 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": "gpustack/DaisyRose-27B-MLX-5bit-dynamic"
}
]
}
}
}# Start Pi in your project directory: pi
How to use gpustack/DaisyRose-27B-MLX-5bit-dynamic with Hermes Agent:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "gpustack/DaisyRose-27B-MLX-5bit-dynamic"
# 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 gpustack/DaisyRose-27B-MLX-5bit-dynamic
hermes
How to use gpustack/DaisyRose-27B-MLX-5bit-dynamic with OpenClaw:
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "gpustack/DaisyRose-27B-MLX-5bit-dynamic"
# 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 "gpustack/DaisyRose-27B-MLX-5bit-dynamic" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
An MLX-native mixed-precision affine (group_size = 64) 5-bit dynamic quantization of RadixArk/DaisyRose-27B for Apple Silicon (mlx-lm and mlx-vlm), preserving the full BF16 multimodal vision tower and retaining the native 1-layer Multi-Token Prediction (mtp.*) head.
5-bit dynamic, ~20.13 GiB weights, 5 Shards)
256 samples (seq_len = 1024) from bartowski-v3 (128 / 128 RMSNorm groups calibrated; zero extra runtime ops).mode = "affine", group_size = 64) with per-module precision overrides in config.json:| Precision | Modules | Assignment |
|---|---|---|
8-bit (Q8G64) |
embed_tokens, lm_head, GDN linear_attn.in_proj_a/b, all self_attn.{q,k,v,o}_proj, mtp.fc, mtp.layers.0.self_attn.{q,k,v,o}_proj |
promoted |
6-bit (Q6G64) |
All linear_attn.out_proj, first (layers.0) & last (layers.63) mlp.{gate,up,down}_proj |
promoted |
5-bit (Q5G64) |
Interior mlp.{gate,up,down}_proj (layers.1..62), linear_attn.in_proj_{qkv,z}, mtp.layers.0.mlp.{gate,up,down}_proj |
base |
| BF16 (preserved) | Vision encoder (model.visual.*), all RMSNorm weights, A_log, dt_bias, conv1d.weight |
preserved |
mlx-lm)
pip install -U mlx-lm
mlx_lm.generate \
--model gpustack/DaisyRose-27B-MLX-5bit-dynamic \
--max-tokens 256 \
--prompt "Write a quick bash script to check open ports."
mlx-vlm)
pip install -U mlx-vlm
python -m mlx_vlm generate \
--model gpustack/DaisyRose-27B-MLX-5bit-dynamic \
--max-tokens 256 \
--prompt "Describe this image." \
--image <path-to-image>
5-bit