๐Ÿ† Transformers.js Benchmark Leaderboard

Compare benchmark results for different models, platforms, and configurations.

๐Ÿ’ก Tip: Use the recommended models section below to find popular models that are fast to load and quick to run - perfect for getting started!

โญ Recommended WebGPU Models for Beginners

These models are selected for being:

  • WebGPU compatible - Work in modern browsers with GPU acceleration
  • Beginner-friendly - Popular, fast to load, and quick to run
  • Sorted by task type, showing top 3-5 models per task

Top WebGPU-Compatible Models by Task

๐Ÿ“ Markdown Output for llms.txt

Copy the markdown below to embed in your llms.txt or documentation:


๐Ÿ” Full Benchmark Results

Task
Platform
Device
Mode
DType
Status

All Benchmark Results

๐Ÿ“Š Metrics

Benchmark Metrics:

  • load_ms: Model loading time in milliseconds
  • first_infer_ms: First inference time in milliseconds
  • subsequent_infer_ms: Subsequent inference time in milliseconds
  • p50/p90: 50th and 90th percentile values

HuggingFace Metrics:

  • downloads: Total downloads from HuggingFace Hub
  • likes: Number of likes on HuggingFace Hub

WebGPU Compatibility:

  • Models in the recommended section are all WebGPU compatible
  • WebGPU enables GPU acceleration in modern browsers

โš ๏ธ Important Note About Performance Metrics: All metrics are measured in a controlled benchmark environment. They are useful for comparing models against each other, but may not reflect actual performance in your environment. Factors like hardware, browser, OS, and system load affect real-world performance. We recommend testing models in your own environment for accurate measurements.