Skip to main content

3 posts tagged with "Apple Silicon"

Local AI on Apple Silicon — LoRA fine-tuning Qwen3 for cold email, and Qwen2.5 with MLX for buyer-intent detection distilled to Rust.

View All Tags

Inference Server on an M4 Pro: The Practical 26x Speedup

· 16 min read
Vadim Nicolai
Senior Software Engineer

Athrael's course Introduction to GPU Inference has a lesson called "Your first inference server". You install narwhal-inference and start a router with four llama.cpp engines: two do prefill and two do decode. The engines serve ERNIE-4.5-0.3B at 4-bit, and you load-test them with 2,000 prompts. The lesson lists Linux and WSL2 as supported. It does not list macOS. I ran it on my MacBook (Apple M4 Pro, 24 GB) anyway, to see how far it gets.

In short, it runs on the M4 only inside an x86 Linux container under Rosetta, at about 4% of the lesson's throughput. The same model on native llama.cpp with Metal matches the lesson's per-token decode speed from a single engine.

Inference server on an M4 Pro: Narwhal under Rosetta vs native llama.cpp on Metal

Building a ZoomInfo Alternative with Qwen and MLX: Local Buyer Intent Detection

· 11 min read
Vadim Nicolai
Senior Software Engineer

ZoomInfo charges $300+ per user per month for intent data — buying signals that tell sales teams which companies are actively in-market. It is the platform's number one feature and the reason enterprises pay six figures annually for access. But the underlying technology — classifying company content into intent categories — is a text classification problem. One that a 3-billion-parameter open-source model can solve on a single laptop.

Fine-Tune Qwen3 with LoRA for AI Cold Email Outreach

· 26 min read
Vadim Nicolai
Senior Software Engineer

An AI cold email engine does one thing: it reads what you know about a company and writes a personalized outreach email — automatically, at scale. If you've ever spent an afternoon manually tweaking 50 nearly-identical emails, you understand the problem. If you've paid for Instantly, Smartlead, or Apollo, you've already solved it — just not on your own terms.

Those SaaS tools charge $30-200/month, send your prospect list to their servers, and give you a black-box model you can't touch. You can't train it on your best-performing emails. You can't add custom quality gates. You can't run it offline. For engineers and technical founders, that's a bad deal.

This system is the alternative: a locally-run pipeline where you own every layer — model weights, scoring logic, and approval gates. The core is Qwen3-1.7B, fine-tuned with LoRA adapters on MLX (Apple's framework for M1/M2 Metal acceleration). A Rust orchestration layer drives the full batch loop: pulling company records, invoking the model, running quality filters, and surfacing emails for human review before anything sends.

The result is not a toy. On a single M1 MacBook Pro, the pipeline generates 200+ personalized emails per batch in under 10 seconds — no GPU cloud, no API latency, no per-email cost. Fine-tuning converges in under 30 minutes on the same machine.