Chris Maher (@defilan) header
Chris Maher (@defilan) profile picture

Building LLMKube: K8s inference across NVIDIA, AMD, and Apple Silicon. Data stays yours. AI/ML Ops Director @ Ashley. Ham Radio: N7CPM

Gig Harbor, WA
Joined January 2018
My MacBook's GPU, from inside a Kubernetes pod. A pod on the laptop is serving Qwen4-35B-A3B at 512K context, 88-97 tokens/sec. No relay to a native process. llama.cpp and MLX run their own Metal backends inside the Linux VM, through the stock virtio-gpu driver. How: macOS 27's new VZCustomVirtioDevice API. I wrote a virtio-gpu device in Swift that carries Metal work from the guest to the host GPU. Guest kernel is unpatched. What I measured: - Greedy output matches native, byte for byte - 21,647 / 21,647 llama.cpp backend tests pass inside the container - Generation from the pod is 95-97% of native speed - 126,505-token prompt prefilled at about 1,130 tok/s (the 88-97 tok/s is with MTP drafting) It's a prototype (macOS 27 only, tested on two Macs; deep swap can still hurt prefill). Open source as of today, v0.1.0. The write-up keeps every wrong turn, including the guest crash I blamed on my device that also happens with nothing attached. Links in the reply.
3
3
198
LLMKube 0.11.0 is out. A Raspberry Pi 5 with the Hailo AI HAT+ 2 can now join a cluster the same way a Mac does. Community contributors shipped a solid chunk of this release (three first-time PRs). llmkube.com/blog/llmkube-0-1… Anyone else running Hailo or Intel NPUs for local inference?
1
2
93
LLMKube 0.11.0 is out, and it's a big one: the first minor release since 0.10.0 in September. 40 PRs merged and 30 issues closed. Seven community contributors wrote 12 of the 34 non-Dependabot PRs, and three of them sent their first PR to LLMKube. Thank you! What's new: → LLMKube on a Raspberry Pi 5. The host agent now runs on Linux, llmkube metal join works there, and a Pi 5 with an AI HAT+ 2 serves hailo:// models on its Hailo-10H through hailo-ollama, joined to your cluster the same way a Mac is → TensorFold in-cluster on NVIDIA GPU nodes: runtime: tensorfold now starts @ashxhart's CUDA engine as a pod, the way vLLM and SGLang run → An idle ModelPool can give the GPU back (swapPolicy: reclaim-down), and swapDelay keeps a client probing models from kicking off swaps nobody waits for → accelerator: npu for Intel NPUs → spec.schedulerName, so KAI Scheduler and other schedulers can place inference pods → vLLM and SGLang keep their compile caches across pod restarts (opt-in) → A Model can delete its cached files when the Model is deleted → An opt-in Go model downloader, so an air-gapped cluster no longer needs a curl image mirror to stage models → Embedding mode uses the pooling type the GGUF records instead of always forcing --pooling last → Foreman moved to its own repo, Meitheal. LLMKube is now the inference operator only Two of those are breaking changes (Foreman and embedding pooling), so if you run either, read the release notes before you upgrade. Who built it: → Christian Nuss (@chrisnuss): the Raspberry Pi work. Hailo-10H serving, Linux release archives for the agent, metal join and leave on Linux, and a Hailo end-to-end suite in CI → Cindy Singleton (cindy-pi): a page-cache flusher and MemFree guard for multi-node members on unified memory, and spec.reclaimPolicy for cleaning up a Model's files → Jean-François Roy (jfroy), first PR: reclaim-down, so an idle pool releases its GPU slot → Adhik Agarwal (adhikbuilds), first PR: swapDelay for cross-model swaps → Muhammad Isyan Maulana (isyanpcr), first PR: runtime docs that describe each platform the way LLMKube runs it → Aditya Rai (aditya-rai-5): embedding pooling read from the model's metadata → Noah Khomer (noahkhomer18): the Intel NPU accelerator If you've been meaning to make your first open source contribution, the issues are open and I'll help you get it through review. github.com/defilantech/LLMKu…
1
4
231
Oh man, this is going to be a fun night with Qwen4. Sleep is for the weak 😜
2
111
LET'S GO!! Gonna be a fun night of hacking testing this with LLMKube in the lab!!
Qwen4-35B-A3B is open-weight under Apache 2.0, ready to tackle your real-world tasks! 🎉 ⚡ Qwen4-35B-A3B: - A native multimodal MoE model (35B total, 3B activated), 1M-token native context. - Outperforms dense Qwen3.8-27B, and matches Qwen3.8-Flash-Next at ~1/3 the size. - Enhanced agentic capabilities for professional tasks, excelling in practical scenarios like long-document analysis, enterprise knowledge bases, and edge deployment. Runs on a single GPU when quantized. Try the model and start building. 👇 - Hugging Face: huggingface.co/Qwen/Qwen4-35… - ModelScope: modelscope.cn/models/Qwen/Qw…
37
I had been using Fable 5.2 on Dlúth (open-source Rust inference engine, hand-written CUDA attention kernels). It was useful early on. Then refusals started and kept expanding inside the same session. Anthropic’s announcement and system card are explicit: accelerator kernel optimization was limited in training, and there are transparent fallbacks to Opus 5 for kernel work on certain nonstandard accelerators. The `frontier_llm` category is the one with a documented fallback. `reasoning_extraction` is the one with none. In one continuous session the hard blocks came back labeled `reasoning_extraction`. Request IDs: req_011Chc25V9qX2zY1JUw391jG req_011ChfCPxkhaksTd6ChVu4Dn req_011ChfCcQ6H5HUwzhTN2BvBN No Opus tokens appear in the session accounting. The documented fallback path was never exercised. The boundary moved inside the conversation. The model first said the kernel body was the issue and the Rust wiring was fine. Then editing the wiring was stopped. Then timing numbers. Then evaluating already-merged PRs. Two full kernel-heavy PR reviews in the same transcript went through cleanly. The checks review everything the model has read, not just the latest message. Once the context was saturated, even the request to save the local transcript got blocked. So I moved the remaining kernel and attention work to local models + my own harnesses. It’s going well, and honestly I’m glad I was forced to stretch it. The loop is slower in some places and faster in others, but it doesn’t stop mid-tool-call because a classifier decided the conversation had crossed a line. This is the part that feels like the future. Local models don’t have that particular failure mode. The hardware is mine, the weights are mine, and the harness can be as aggressive as the problem requires. Getting pushed onto that stack turned out to be useful. The interesting part isn’t “they blocked an open-source project.” The public remote was visible to the classifier the whole time. The interesting part is the gap between the published fallback for this class of work and the category that actually fired, and how cleanly local models sidestep it.
🤖 Made with AI
3
257
Strange times we are in. Good reminder for everyone to check their keys, update what you can, and keep following the latest updates as they come out. Buckle up, gonna be a bumpy ride
Joint statement from Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle on transition to post-quantum cryptography: We strongly support the guidance issued by the U.S. government urging organizations to move to the algorithms in the National Institute of Standards and Technology (NIST) Post-Quantum Cryptography (PQC) standards and to accelerate the migration as soon as possible. We are working to support organizations and governments in implementing this change across the internet. anthropic.com/news/joint-sta…
36
Update on the Rust inference engine I've been writing from scratch. A few days ago it answered "Dublin" at 2.6 tokens per second on a CPU. Today, with CUDA kernels I wrote myself, it answered "Dublin" at 40 on a DGX Spark. The container image was built on my Mac with Apple containers. No Docker, no GPU needed to compile GPU code. Still so much to learn but having a blast!
1
2
75
Been writing an LLM inference engine from scratch in Rust, mostly to understand how these models really work. Last night it loaded Inkling 2 Mini in my home lab, thought for a bit, and answered "Dublin." 2.6 tokens per second on a CPU. I have never been so happy about something so slow. So much to learn and it's slow going, but dang, this is fun.
1
3
137
Chris Maher retweeted
Open source everything as quickly as humanly possible. They can't put the toothpaste back in the tube.
20
134
3
1,144
14,136
Chris Maher retweeted
November has been a rough month for cybersecurity. From vulnerabilities to supplychain attacks and now a reported breach of the FBI's criminal information database. The attack surface keeps expanding. Security can't be an afterthought in infrastructure engineering.
2
1
1
14
767
LLMKube v0.10.19 is out! 5 community contributors helped build it, and 2 of last release's first-time contributors came back with their second PR. 24 PRs merged, 15 issues closed, and 9 of those PRs came from the community. The highlights: → ModelRouter backendSelector: add every InferenceService that matches a label instead of listing backends by hand → The router now forwards any other POST /v1 path, like /v1/responses, to the local model the request names → Per-pod router metrics: KV cache, slot utilization, running and waiting requests, labeled by pod and node → The agent starts on Linux hosts (experimental), groundwork for Raspberry Pi nodes → On the Mac: a free-disk check before downloads, controller and agent version skew reporting, and engines that survive a Model being deleted and re-created → Third-party license and NOTICE files in every release archive and image Thank you to everyone who built it: aditya-rai-5: a memory-conscious default context for Llama 3.1 8B brandonliuli: per-pod router metrics, pod and node labels, InferenceService capacity metrics, parallelSlots above 64 for vLLM @chrisnuss (cnuss): the agent on Linux hosts, Linux host capacity, a Hailo-10H simulator noahkhomer18: the GGUF layer layout on the Model status (second PR) vjsairam: keeping a Metal agent's refusal over a stale heartbeat (second PR) Release notes: github.com/defilantech/LLMKu…
2
3
216
Same box. Same model. Same weights. Same settings. My local code reviewer just got 1.5x faster at writing and 3x faster at reading. The only change: I moved my Strix Halo from Gufo v0.5.0 to v0.34.0. That's 29 releases and ~450 commits Gufo's contributors shipped in six weeks. I didn't write a line of it. Real traffic, not a benchmark. Qwen3.8 Flash-Next (UD-Q4_K_XL) on a Ryzen AI Max+ 395 with 128GB, running as the code reviewer in my agent pipeline: • Decode: ~31 → ~48 tok/s • Prompt processing: ~530 → ~1,560 tok/s • Model time per review (median): 12.3 → 8.9 min, while writing 11% more Early numbers: the first 10 hours, 8 reviews on the new version against 62 the week before. A single replay hit 65 tok/s, but real reviews settle around 48, so 48 is the number I'm planning on. On my side, the swap was two fields on one LLMKube InferenceService. This is what excites me about building in the open. Someone else's work landed on hardware I already own, and the slowest step in my pipeline got faster in an afternoon. That's the kind of compounding I want LLMKube to be part of. Gufo: github.com/gufo-org/gufo
2
1
294
LLMKube v0.10.18 is out. 7 community contributors helped build it, and 5 of them landed their first PR. 42 PRs merged, 23 issues closed, and 17 of those PRs came from the community. The highlights: → First steps toward running the agent on Linux hosts → Multi-node members drop the page cache and set vm sysctls before boot → Per-InferenceService model cache size → 15 fixes, several of them on the Metal path → The one-Mac quickstart now lives on llmkube.com Thank you to everyone who built it: @chrisnuss (cnuss): Linux agent groundwork, router readiness, relay source IP aditya-rai-5: quota admission, model file pattern warnings, engine adoption cindy-pi: multi-node boot prep, a catalog context fix (first PR) gabrielcosi: per-service cache size, PodMonitor relabelings (first PR) IG-ABHINAV: llama-3.3-70b default context (first PR) noahkhomer18: qwen-2.5-coder-7b default context (first PR) vjsairam: the Metal EndpointSlice fix (first PR) Release notes: github.com/defilantech/LLMKu…
5
286
LLMKube is serving a model from a Mac tonight without the Metal Agent. The node is a Linux VM in Apple's container machine, joined to the rest of my cluster as an ordinary worker. Lots more to come. This one has been a blast to hack on!
1
2
132
Chris Maher retweeted
Local AI. Local compute. Open weights. Open source. Global collaboration.
3
5
47
2,232
Apple Containers are really changing how I think about Macs and inference. Having a blast digging into them. How’s everybody else exploring this?
1
222
Chris Maher retweeted
Every one of you can help open source win. If you care about open source, I need you to know that you can help and that you can make a difference. A handful of people independently took on open source inference engineering and, through research, hillclimbing, mad scientist experiments, managed to drastically improve KV cache quality, MoE routing, perf, to the degree that several one-man teams are outperforming larger projects like vLLM, llama-cpp, and SGLang (@PeasantSmith @coldniko @Anbeeld @tbraun96 @no_stp_on_snek @Blackwellboy @coffeecup2020 , many others) Sekai-1 is a 100m param model that scores #2 for its weight class and was trained on a single 16gb 5070 Ti (!) by one person. YOU can compete. Start learning LLM concepts today. Read The Annotated Transformer over a weekend. Spend some spare time learning about the differences in attention mechanisms. Start hoarding your own training data. Get your feet wet. If you have access to 16gb of VRAM, start experimenting. All it takes is one of you having a crazy idea that works well at this size and by the grace of God happens to scale. We will collectively BRUTE FORCE lab competition. By decreasing the barrier to entry we can will more labs into existence. There are so many gains on the table still, and believe me, it is possible for you to discover them. We can't let intelligence be monopolized by these people. We need as many people learning and experimenting as possible because I know there are heroes among them that don't even know it.
14
42
1
328
11,236