Blazing-fast Qwen 2.5-0.5B for Apple Silicon (M1/M2/M3/M4)
MLX-optimized model for generating energetic Tanglish (Tamil-English) radio DJ commentary. Fused LoRA weights for maximum performance on Apple Silicon.
🎯 Model Overview
Base Model: Qwen/Qwen2.5-0.5B-Instruct (4-bit quantized)
Model Type: MLX Fused (LoRA weights merged)
Training Data: 5,027 Tanglish DJ commentary examples
Best Checkpoint: Iteration 2900 (validation loss: 1.856)
Model Size: 276MB
Framework: MLX (Apple Silicon optimized)
⚡ Performance
Speed (M1 Mac)
Loading: ~2 seconds
Inference: ~3 seconds for 150 tokens
Memory: <2GB RAM usage
Latency: ~20ms per token
Why MLX?
🚀 3-5x faster than Transformers on Mac
💾 Lower memory usage with unified memory
🔋 Better power efficiency on Apple Silicon
🎯 Native Metal acceleration
🚀 Quick Start
Installation
pip install mlx mlx-lm
Simple Usage
python
1from mlx_lm import load, generate
23# Load MLX-optimized model4model, tokenizer = load("felixmanojh/DJ-AI-Radio-MLX")56# Generate DJ commentary7messages =[8{"role":"system","content":"You are a Tamil AI radio DJ who speaks energetic Tanglish."},9{"role":"user","content":"Hype up a party track"}10]1112prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)13response = generate(model, tokenizer, prompt=prompt, max_tokens=150, verbose=False)14print(response)
Example Output:
Party mode activate! Friday night ah Saturday night mode activate!
Club vibes high-energy vibes! Dance floor crowded! Everyone jumping!
Party starter! Energy maximum! Music energizing!