Skip to main content
Back to News Hub
🤗Hugging Face
September 1, 2026
Tech

Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI

Overview

Hugging Face has released '@huggingface/kernels', a JavaScript library designed to fetch and execute optimized WebGPU kernels from the Hugging Face Hub. The initial launch includes 207 kernels published under the Apache-2.0 license, alongside an in-browser benchmarking tool called Fleet. These components aim to make machine learning inference within browsers faster and more reliable across varied hardware.

Key Takeaways

  • The WebAI team at Hugging Face announced '@huggingface/kernels' on September 1, 2026, to provide a foundational layer for browser-based artificial intelligence.

    The release features 207 WebGPU kernels that handle standard machine learning operations, including convolutions, matrix multiplications, attention primitives, and elementwise addition.

  • Published under the Apache-2.0 license, every kernel exists as an individual versioned repository complete with WGSL shader templates, usage documentation, correctness checks, and benchmark cases.

    Because GPU hardware and browser implementations vary, identical WGSL shaders can yield vastly different performance outcomes depending on workgroup sizes or memory access patterns.

  • To refine these execution paths, Hugging Face also introduced Fleet, a web-based benchmarking tool that tests and scores kernels directly on user devices.

    By gathering crowdsourced correctness and speed evidence, Fleet helps developers identify pathological execution delays, fix errors, and improve higher-level browser runtimes.

  • Hugging Face launched '@huggingface/kernels' with an initial set of 207 WebGPU kernels hosted at huggingface.co/webgpu-kernels.

    Each kernel is distributed under the Apache-2.0 license as an individual repository containing WGSL shader templates, contracts, and benchmark tests.

  • The launch includes Fleet, an in-browser benchmarking suite that crowdsources GPU execution evidence to refine shader performance.

The WebAI team at Hugging Face announced '@huggingface/kernels' on September 1, 2026, to provide a foundational layer for browser-based artificial intelligence. The release features 207 WebGPU kernels that handle standard machine learning operations, including convolutions, matrix multiplications, attention primitives, and elementwise addition. Published under the Apache-2.0 license, every kernel exists as an individual versioned repository complete with WGSL shader templates, usage documentation, correctness checks, and benchmark cases.

Because GPU hardware and browser implementations vary, identical WGSL shaders can yield vastly different performance outcomes depending on workgroup sizes or memory access patterns. To refine these execution paths, Hugging Face also introduced Fleet, a web-based benchmarking tool that tests and scores kernels directly on user devices. By gathering crowdsourced correctness and speed evidence, Fleet helps developers identify pathological execution delays, fix errors, and improve higher-level browser runtimes.

Hugging Face launched '@huggingface/kernels' with an initial set of 207 WebGPU kernels hosted at huggingface.co/webgpu-kernels. Each kernel is distributed under the Apache-2.0 license as an individual repository containing WGSL shader templates, contracts, and benchmark tests. The launch includes Fleet, an in-browser benchmarking suite that crowdsources GPU execution evidence to refine shader performance.

For more details please read the original article at Hugging Face.

Continue Learning

Comments

Comments appear only after moderation. Your email identifies your submission to the moderator and is never displayed here.

No approved comments yet.

Originally published by Hugging Face
Read the original