eai-distill-0.5b-mlx-16bit
16-bit MLX conversion of Enterprise-AI/eai-distill-0.5b optimized for Apple Silicon native GPU inference.
Converted by: SirSahOl
Source Model: Enterprise-AI/eai-distill-0.5b
Framework: MLX by Apple
Quantization: 16-bit (Average 16.00 (unquantized bfloat16) bits per weight)
Format: safetensors
License: unknown
Model Details
- Architecture: Qwen2ForCausalLM
- Parameters: 0.5B
- Context Length: 32,768 tokens
- Format: MLX (Apple Silicon native GPU format)
- Quantization: 16-bit (Average 16.00 (unquantized bfloat16) bits per weight)
- Active VRAM Footprint: ~1250 MB (Minimum recommended: 8 GB Unified Memory)
Quick Start
Installation
pip install mlx-lm
Usage
CLI
# Chat interactively
mlx_lm.chat --model SirSahOl/eai-distill-0.5b-chat-mlx-16bit
# Generate text
mlx_lm.generate --model SirSahOl/eai-distill-0.5b-chat-mlx-16bit --prompt "Write a short poem about artificial intelligence."
Python API (with Chat Template)
from mlx_lm import load, generate
model, tokenizer = load("SirSahOl/eai-distill-0.5b-chat-mlx-16bit")
messages = [
{"role": "user", "content": "Explain quantum superposition in simple terms."}
]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
print(response)
Performance Benchmarks
Apple Silicon Hardware Sizing Matrix
Estimated decoding throughput, time-to-first-token (TTFT), and active unified memory footprint across Apple Silicon tiers:
| Apple Silicon Tier | Unified Memory | Active VRAM | Estimated Speed | Est. TTFT | Recommended Use Case |
|---|---|---|---|---|---|
| M1 / M2 / M3 / M4 (Base) | 8 GB Unified Memory | ~1200 MB | ~160 tokens/sec | ~30 ms | Ultra-fast low-latency local edge inference & embedded assistants |
| M1 / M2 / M3 / M4 Pro | 18 GB – 36 GB | ~1200 MB | ~240 tokens/sec | ~21 ms | High-throughput concurrent processing, real-time agent loops |
| M1 / M2 / M3 / M4 Max | 36 GB – 128 GB | ~1200 MB | ~336 tokens/sec | ~15 ms | Maximum single-stream decoding velocity, swarm agents |
| M1 / M2 / M3 Ultra | 64 GB – 192 GB | ~1200 MB | ~448 tokens/sec | ~1 ms | Massive parallel batch evaluation, enterprise high-throughput serving |
Projections based on Apple Silicon memory bandwidth saturation for 16-bit weights. Real-world speeds vary by prompt length.
Multi-Quantization Comparison
Evaluate your hardware budget and choose the optimal precision:
| Variant | Disk Size | VRAM Footprint | Target Apple Silicon Hardware | Key Advantage |
|---|---|---|---|---|
| 4-bit MLX | ~285 MB | ~325 MB | M1 / M2 / M3 / M4 (8GB+ Unified Memory) | Ultra-compact footprint, maximum generation speed; negligible memory pressure. |
| 8-bit MLX | ~540 MB | ~585 MB | M1 / M2 / M3 / M4 (8GB+ Unified Memory) | Near-lossless precision with an extremely lightweight footprint. |
| 16-bit MLX (This Repository) | ~1020 MB | ~1090 MB | M1 / M2 / M3 / M4 (8GB+ Unified Memory) | Full unquantized precision; zero perplexity penalty for reference evaluation. |
Who Should Use This?
| Your Hardware | Recommended Quantization |
|---|---|
| M1/M2/M3/M4 (8GB – 16GB) | 4-bit — Best balance of speed, low memory, and multitasking capability |
| M1/M2/M3/M4 Pro/Max (18GB – 36GB) | 8-bit — Higher quality reasoning with comfortable memory headroom |
| M1/M2/M3/M4 Max/Ultra (36GB – 192GB) | 16-bit — Unquantized full precision, zero quality degradation |
General guidance:
- Use 4-bit if you want to run this model alongside IDEs, browsers, and background development tools.
- Use 8-bit if you have 16GB+ unified memory and require superior reasoning and code accuracy.
- Use 16-bit for research, benchmarking, evaluation, or high-end workstation deployments.
Other Quantization Variants
| Variant | Link |
|---|---|
| 4-bit | SirSahOl/eai-distill-0.5b-chat-mlx-4bit |
| 8-bit | SirSahOl/eai-distill-0.5b-chat-mlx-8bit |
| 16-bit | SirSahOl/eai-distill-0.5b-chat-mlx-16bit |
LM Studio & Local Inference Setup Guide
To prevent runaway loops and ensure correct conversational turn-taking, configure custom stop tokens in your local inference runtime:
<|im_start|><|im_end|><|endoftext|>
Prompt Template Formatting
- System Prefix:
<|im_start|>system\n - System Suffix:
<|im_end|>\n - User Prefix:
<|im_start|>user\n - Assistant Suffix:
<|im_end|>\n<|im_start|>assistant\n
Ollama Quickstart
FROM SirSahOl/eai-distill-0.5b-chat-mlx-16bit
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"
PARAMETER temperature 0.7
ollama create eai-distill-0.5b-chat-mlx-16bit -f Modelfile
ollama run eai-distill-0.5b-chat-mlx-16bit
Conversion Details
| Property | Value |
|---|---|
| Source Model | Enterprise-AI/eai-distill-0.5b |
| Quantization | 16-bit |
| mlx-lm Version | 0.31.3 |
| Conversion Time | 5.73s |
| Output Size | 2.4 GB |
| Date | 2026-09-22T02:18:01.485214+00:00 |
Reproduction
To reproduce this conversion:
pip install mlx-lm==0.31.3
python3 -m mlx_lm.convert --hf-path /root/.cache/huggingface/hub/models--EssentialAI--eai-distill-0.5b/snapshots/39f51ea6e8f1e959961feea0403c69ecfcc8b342 --mlx-path output/eai-distill-0.5b-mlx-16bit
Limitations & Known Issues
- 4-bit group-wise quantization introduces minor precision loss compared to unquantized weights; for deep mathematical derivations or precision-critical reasoning, test the 8-bit or 16-bit variants.
- High context sequences (>32K tokens) require sufficient unified memory headroom; ensure unified memory is not overcommitted.
- This is a weight-only MLX conversion designed specifically for Apple Silicon GPUs (M1/M2/M3/M4 series).
License
This model conversion inherits the license of the source model: unknown.
See the original model card for full license details.
Changelog
| Version | Date | Changes |
|---|---|---|
| v1.0 | 2026-09-22 | Initial conversion |
Converted with MLX Foundry — a professional pipeline for converting models to Apple MLX format.