Vendor-agnostic ML inference on production edge devices [R]
Summary
Describes using ncnn's Vulkan backend for vendor-agnostic ML inference on production edge devices, achieving 10x speedup over CPU ONNX for face detection and embedding models.
Similar Articles
@DanKornas: Need to run a neural network on-device without adding a stack of runtime dependencies? ncnn is a neural network inferen…
ncnn is a lightweight, open-source neural network inference framework for deploying PyTorch and ONNX models to mobile, embedded, and desktop targets without heavy dependencies, supporting CPU and Vulkan GPU backends.
@googlegemma: “Agentic kernel optimization is the future of on-device inference” @xenovacom used Fable 5 to write kernels that pushed…
Xenova used Fable 5 to write optimized kernels achieving 255 tokens per second for Gemma 4 on WebGPU with M4, demonstrating agentic kernel optimization for on-device inference.
Rewriting model inference with CUDA kernels: the bottleneck was not just GEMM [P]
Author describes building FlashRT, a CUDA-first inference runtime that rewrites model inference paths with C++/CUDA kernels to address bottlenecks beyond GEMM for small-batch/realtime workloads, achieving significant latency improvements on Jetson Thor and RTX 5090. The article discusses lessons on precision (FP8 helpful, FP4 mixed) and the need to bypass generic runtimes for realtime inference.
Meta releases new on-device optimized open source model
Meta announces a new open-source model optimized for on-device deployment, aiming to bring efficient AI inference to edge devices.
Spent two weeks on a kernel that benchmarked 29x faster. End to end it's maybe 6-10%, and it's not even wired in yet.
The author optimized a matmul kernel for BitNet's ternary models on CPU, achieving 29x speedup in isolation, but found that the model is memory-bound, resulting in only 6-10% end-to-end gain. The inference engine is available as open-source.