huggingface/transformers.js-examples
A collection of demos running Hugging Face Transformers.js ML models (LLMs, segmentation, semantic search) directly in the browser using WebGPU.

Velocity · 7d
+3.1
★ / day
Trend
→steady
star history
This repository contains example applications demonstrating how to use the Transformers.js JavaScript library to run various machine learning models in the browser. It includes examples for conversational LLMs (Phi-3.5, Llama-3.2, SmolLM), image segmentation (Segment Anything, Sapiens), background removal, and semantic search. All demos leverage WebGPU for client-side inference without server dependencies.