@Alex_tra_memory: Kev on Core ML After seeing this tweet, We got inspired to port Kev-0.8B (the Qwen3.5 variant) and ran Guess Who over 8…
Summary
This article details the porting of the Kev-0.8B model, a Qwen3.5 variant, to Core ML, demonstrating substantial improvements in inference speed and memory efficiency on Apple Silicon devices through benchmarks.
View Cached Full Text
Cached at: 09/26/26, 08:57 AM
Kev on Core ML 🍎
After seeing this tweet, We got inspired to port Kev-0.8B (the Qwen3.5 variant) and ran Guess Who over 80 Wiki bios, on an M5 Pro, same accuracy, coreml vs original PyTorch:
🚅 37 ms vs 1.07 s per bio → all 80 in 3.0 s vs 99 s 🧠 ~2 GB vs 6.6 GB memory 📦 1.45 GB vs 1.79 GB model
Model: http://huggingface.co/FluidInference/kev-0.8b-coreml… Code: http://github.com/FluidInference/FluidUse…
FluidInference/kev-0.8b-coreml · Hugging Face
Source: https://huggingface.co/FluidInference/kev-0.8b-coreml
https://huggingface.co/FluidInference/kev-0.8b-coreml#kev-08b-for-core-mlKev-0.8B for Core ML
Core ML export ofjaredpalmer/kev-0.8b(Jared Palmer, Apache-2.0): Kev’s LoRA folded intoQwen/Qwen3.5-0.8B-Basein fp32 with Kev’s own loader, plus Kev’s pointer head. Kev answers questions about a piece of text (astate): multiple choice, yes/no, or a score, with calibrated probabilities.
https://huggingface.co/FluidInference/kev-0.8b-coreml#filesFiles
PathWhatfused/KevFused\.mlpackageMultifunction package, weight-shared:fused\_S<state\>\_P<packed\>\_B16\_K16for states of 32–384 tokens and up to 192 packed question tokens. One call reads the state and answers all of a request’s questions (up to 16 answers, 16 options each).fused/config\.jsonDimensions, special tokens, temperature.L512\_K16/KevRow\_fp16\.mlpackageOne question per call (state + question ≤ 512 tokens, ≤ 16 options), for questions that do not fit the fused path.L1024\_K80/KevRow\_fp16\.mlpackageOne question per call up to 1,024 tokens and 80 options (e.g. 77-way intent questions).L512\_K16/embeddings\.f16Token embeddings (fp16, 248,320 × 1,024), gathered on the host.tokenizer\.jsonQwen3.5 tokenizer.
fp16, GPU (cpuAndGPU), iOS 18 / macOS 15. Swift:KevFastManagerinFluidUse(own Qwen BPE tokenizer, exact against Hugging Face tokenizers).
https://huggingface.co/FluidInference/kev-0.8b-coreml#how-the-fused-call-worksHow the fused call works
The state’s tokens come first, then every question packed end to end. A segment mask keeps each question from seeing the others: it is the attention mask, the local decay of the Gated DeltaNet layers, and the triangle of their WY solve, so every question restarts from the state exactly as if it were its own row. Everything except the delta-rule core runs once over all positions.
https://huggingface.co/FluidInference/kev-0.8b-coreml#fidelityFidelity
Kev’s own benchmark, unchanged, scored the row packages against Kev’s fp32 PyTorch model on the development splits:
SuiteQuestionsTop answer differsKev fp32PublishedCore ML fp16transfer-v476410.64790.6480.6463decision-v71,46820.82670.8270.8252 The fused pass matches the row form in fp32 (0 flips, max |Δp| 3e-6 with every question packed three times), and the fp16 fused functions agree with the fp16 row packages on 191 questions (0 flips, max |Δp| 0.004).
https://huggingface.co/FluidInference/kev-0.8b-coreml#speed-and-memory-against-the-original-modelSpeed and memory against the original model
MacBook Pro M5 Pro (24 GB). Guess Who over 80 Wikipedia people (DBpedia-14 test split): each bio is one request with 12 yes/no questions, 960 decisions. The original is Kev’s own checkpoint loader and serving path in PyTorch on the GPU (MPS).
Core ML (this repo, fp16, GPU)Original, PyTorch bf16Original, PyTorch fp32 (default)80 bios × 12 questions2.98 s98.6 s123.9 sper bio (12 answers, one call)36.6 ms1,070 ms1,287 mspeak memory footprint0.67 GB(+1.45 GB weights mapped from disk)6.6 GB9.5 GBweights1.45 GB (fused package + embeddings)1.79 GB (bf16 base + LoRA/head)sameanswers vs original fp320 of 960 differ3 of 960 differreference
PyTorch on a Mac runs Qwen3.5’s Gated DeltaNet and causal conv through transformers’ reference implementations (theflash\-linear\-attention/causal\_conv1dkernels are not available there). Peak memory footprint is Activity Monitor’s Memory; Core ML maps its weights from disk, so count them as resident for a conservative ~2.1 GB. This backbone does not suit the Neural Engine (one call: GPU 30.8 ms, CPU 186 ms, CPU + ANE 740 ms). A function left idle pays a 0.3–0.8 s re-setup on its next call; warm it before latency-sensitive work.
Conversion code and reports:FluidInference/mobius,models/computer\-use/kev\-0\.8b/coreml.
Jared Palmer (@jaredpalmer): UPDATE: Kev-0.6B, 4B, and 8B are now available. Kev is a family of small open source Jev-like decision models you can train and run yourself.
This new family is based on Qwen3 using the same LoRA + small pointer head technique as before, but scaled up.
Out of domain, on data
Similar Articles
@neural_avb: I am working on porting SAM models and harness into Apple silicon. Already seeing 1.25x inference speed increase on mlx…
Porting SAM 2.1 models to Apple silicon with MLX, achieving 1.25x inference speed increase on the small model, with quantized versions planned.
Qwen3.8-27B at 144 tok/s on an M5 Max MacBook Pro
Inco Splash is an open-source inference engine optimized for Apple silicon, offering significant speed improvements for running AI models like Qwen3.8-27B on M-series MacBooks.
@Oluwaphilemon1: Qwen3.8-27B is running locally on an M1 MacBook with just 16GB of unified memory. No cloud API. No external GPU. Just a…
Qwen3.8-27B is shown running locally on an M1 MacBook with 16GB unified memory using UD-Q2_K_XL quantization and full Metal offload, achieving ~4 tokens/sec generation (~5.5 with speculative decoding) — demonstrating that large open-weight models can run on hardware many people already own.
Optimizing On-Device Inference for Apple Silicon (20 minute read)
Apple's Lily engine optimizes on-device LLM inference for Apple silicon by leveraging unified memory and hardware, outperforming MLX-LM, and is tuned for the Qwen3.6-35B-A3B model's architecture.
@remilouf: Following @julien_c’s tweet I bought a MacBook Pro with 128B unified memory, and started running Qwen3.6 as my daily dr…
The author shares their experience running the Qwen3.6 model on a MacBook Pro with 128GB of unified memory, praising Apple's hardware efficiency for local AI inference.