Tech Tree of the Web

The history of web technology, 1945 to now: 112 ideas and the lines between them. Drag, scroll or press ← → to travel. Open any one for its story.

No. 111 / 112Seen 0 / 112Colophon

The Present

Transformers.js, 2023. Era VI, The Present.

Era VI · 2017–2026

← drag · scroll · arrow keys →

2023pipelineimport { pipeline } from '@xenova/transformers'; const classify = await pipeline('sentiment-analysis');await classify('I love this');

A pretrained model downloaded once and run in the browser, with no server. Typeset for this timeline: no licence-clean photograph of the thing itself was found.

Key details

When
2023 (repository created 13 February)
Who
Joshua ("Xenova"), Hugging Face
Where
Hugging Face
Answered
It removed the need for a Python server by running pretrained Transformers models in the browser.
Led to
It grew into Hugging Face's official JavaScript library, with WebGPU acceleration from version 3.

No. 111 · 2023 · Machine learning · Era VI, The Present

Transformers.js

Ran pretrained Hugging Face models directly in the browser, with no server, through ONNX Runtime.

Facts

  1. The Transformers.js GitHub repository was created on February 13, 2023. 2
  2. It uses ONNX Runtime to run models in the browser and is designed to be functionally equivalent to Hugging Face's Python transformers library. 1
  3. Versions 1 and 2 were published as @xenova/transformers; version 3 moved to the official Hugging Face organization on npm and GitHub. 3
  4. Version 3, released October 22, 2024, added WebGPU support, claimed up to 100 times faster than WASM. 3
  5. Version 3 supported 120 architectures and over 1,200 pre-converted models on the Hugging Face Hub. 3

Sources

  1. huggingface/transformers.js - GitHub
  2. GitHub API, huggingface/transformers.js repository metadata
  3. Hugging Face Blog, "Transformers.js v3", October 2024
Came from
Led to
Nothing on this tree yet