mlsanityData to 14 Oct 2026

WebLLM: A High-Performance In-Browser LLM Inference Engine

arXiv 2412.15803 ↗First posted 20 Dec 2024cs.LG cs.AIcited by 14

On the map: Efficient LLM inference and serving → Serving systems and request scheduling

Abstract (arXiv)

Advancements in large language models (LLMs) have unlocked remarkable capabilities. While deploying these models typically requires server-grade GPUs and cloud-based inference, the recent emergence of smaller open-source models and increasingly powerful consumer devices have made on-device deployment practical. The web browser as a platform for on-device deployment is universally accessible, provides a natural agentic environment, and conveniently abstracts out the different backends from diverse device vendors. To address this opportunity, we introduce WebLLM, an open-source JavaScript framework that enables high-performance LLM inference entirely within web browsers. WebLLM provides an OpenAI-style API for seamless integration into web applications, and leverages WebGPU for efficient local GPU acceleration and WebAssembly for performant CPU computation. With machine learning compilers MLC-LLM and Apache TVM, WebLLM leverages optimized WebGPU kernels, overcoming the absence of performant WebGPU kernel libraries. Evaluations show that WebLLM can retain up to 80% native performance on the same device, with room to further close the gap. WebLLM paves the way for universally accessible, privacy-preserving, personalized, and locally powered LLM applications in web browsers. The code is available at: https://github.com/mlc-ai/web-llm.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Serving systems and request scheduling, one of 12 directions in Efficient LLM inference and serving. Builds on 9 of its 17 references that are in the map. First posted on arXiv 20 Dec 2024.

Builds on

9 of 17 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Models22 Nov

Other references · 8

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
  6. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  7. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  8. 2024Qwen2.5-Coder Technical Reportcited by 1,203

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 4; 2026: 10.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency
  2. 2024GUIDE: A Global Unified Inference Engine for Deploying Large Language Models in Heterogeneous Environments
  3. 2026A Measurement Study of LLM Inference Trade-offs Across Edge Continuum Hardware
  4. 2023Efficient LLM Inference on CPUs
  5. 2025Bench360: Benchmarking Local LLM Inference from 360 Degrees
  6. 2025MNN-LLM: A Generic Inference Engine for Fast Large Language Model Deployment on Mobile Devices
  7. 2025Forecasting LLM Inference Performance via Hardware-Agnostic Analytical Modeling
  8. 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM models