Hugging Face launches @huggingface/kernels with 207 WebGPU kernels for browser-based AI inference
The library and kernel collection aim to standardize and optimize low-level GPU operations for WebAI, with versioned artifacts and a crowdsourced benchmarking tool.
1 source · cross-referenced
- Hugging Face released @huggingface/kernels, a JavaScript library to load and run 207 WebGPU kernels from the Hugging Face Hub for local AI inference.
Hugging Face’s WebAI team introduced @huggingface/kernels, a minimal JavaScript library designed to load and execute optimized WebGPU kernels directly from the Hugging Face Hub. The initial release includes 207 kernels covering operations common to many machine learning architectures, such as matrix multiplications, normalizations, convolutions, attention primitives, quantization, and data-layout transformations.
Each kernel is published as a versioned, self-contained package on the Hugging Face Hub, including its interface definition, WGSL shader templates, correctness tests, benchmark cases, and usage instructions. For example, the ai.onnx.Add kernel repository documents inputs, outputs, supported data types, and multiple implementation variants for equal-shape, vectorized, scalar, and general broadcasting scenarios.
The team also launched Fleet, a browser-based benchmarking and testing suite that scores kernel performance on user hardware. With user consent, Fleet crowdsources correctness and performance evidence from real-world devices, helping identify failures, slow cases, and optimization opportunities across diverse GPUs and browser implementations.
The @huggingface/kernels loader provides a stable API to retrieve and invoke kernels by repository ID and contract version. The library handles tensor shape derivation, data type selection, and memory allocation, allowing developers to focus on application logic rather than low-level GPU details.
The project emphasizes portability and performance by making kernel variants discoverable and testable. For instance, the Add kernel includes multiple implementation paths, and the runtime selects the appropriate variant based on input shapes and device capabilities without requiring changes to the calling code.
- Oct 14, 2026 · TechCrunch — AI
Science Corporation implants vision-restoring PRIMA chip in first Stargardt disease patient
Trust78 - Oct 13, 2026 · TechCrunch — AI
Flox Intelligence raises $5M and launches edge AI devices to deter wildlife from critical infrastructure
Trust79 - Oct 13, 2026 · Hugging Face
Hugging Face releases LFM2.5-24B-A2B, a 24B-parameter reasoning agent with 2B active parameters for on-device use
Trust79