Show HN: Kiln – A WebGPU alternative to transformers.js, 2.2× faster (median)
Category: ai-ml
Tags: webgpu, inference, browser-ai, transformers-js, llm
Score: 7.3/10 (Innovation: 7, Technical: 8, Documentation: 8, Utility: 6)
Kiln is a TypeScript/WebGPU library that runs language, vision, and speech models directly in the browser from their original Hugging Face weights (safetensors, pytorch_model.bin, GGUF) without ONNX export or an inference server. It implements model families as custom WebGPU kernels, mirrors the transformers.js API for easy migration, and benchmarks a median 2.2x speed-up across 31 task/model pairs on modest integrated-GPU hardware.
Target audience: frontend and full-stack devs building in-browser AI features, ML engineers wanting client-side inference
Repository: https://github.com/erdemozkan/kiln · TypeScript · MIT · 4 stars
View on Hacker News