Repository
transformers.js-examples
A collection of π€ Transformers.js demos and example applications
- Name
- Description
- Phi-3.5 WebGPU
- Conversational large language model
- Llama-3.2 WebGPU
- Conversational small language model
- SmolLM WebGPU
- Conversational small language model
Specs
- NameDescription
- Phi-3.5 WebGPUConversational large language model
- Llama-3.2 WebGPUConversational small language model
- SmolLM WebGPUConversational small language model
- Segment Anything WebGPUWebGPU image segmentation
- Remove Background WebGPUWebGPU image background removal
- PGlite Semantic SearchSemantic search
- SapiensImage segmentation, depth, and normal estimation in Node.js
- BunCompute text embeddings in Bun
- DenoCompute text embeddings in Deno
- Node.js (ESM)Sentiment analysis in Node.js w/ ECMAScript modules
- Node.js (CJS)Sentiment analysis in Node.js w/ CommonJS
- Next.jsSentiment analysis in Next.js
- SvelteKitSentiment analysis in SvelteKit
README
Transformers.js Examples
A collection of π€ Transformers.js demos and example applications.
| Name | Description | Links |
|---|---|---|
| Phi-3.5 WebGPU | Conversational large language model | Demo |
| Llama-3.2 WebGPU | Conversational small language model | Demo |
| SmolLM WebGPU | Conversational small language model | Demo |
| Segment Anything WebGPU | WebGPU image segmentation | Demo |
| Remove Background WebGPU | WebGPU image background removal | Demo |
| PGlite Semantic Search | Semantic search | Demo |
| Sapiens | Image segmentation, depth, and normal estimation in Node.js | n/a |
| Bun | Compute text embeddings in Bun | n/a |
| Deno | Compute text embeddings in Deno | n/a |
| Node.js (ESM) | Sentiment analysis in Node.js w/ ECMAScript modules | n/a |
| Node.js (CJS) | Sentiment analysis in Node.js w/ CommonJS | n/a |
| Next.js | Sentiment analysis in Next.js | Demo |
| SvelteKit | Sentiment analysis in SvelteKit | Demo |
Check out the Transformers.js template on Hugging Face to get started in one click!