Welcome to a new series all about working with machine learning models in JavaScript in the browser using the Transformers.js library! In this introduction, I cover what Transformers.js is, how to load it into a p5.js sketch, explain the pipeline API, and demonstrate sentiment a ...
Official documentation for the Transformers.js library.
Platform for sharing machine learning models, datasets, and spaces.
Browse all models compatible with Transformers.js.
Creator of Transformers.js.
Speech recognition demo using Whisper model in the browser.
p5.js version 2.0 with support for async/await.
MDN documentation on JavaScript modules and import/export.
Understanding model quantization and precision levels.
My series on machine learning with ml5.js and TensorFlow.js.
Learn about asynchronous programming in p5.js 2.0.
- Editing
by Mathieu Blanchette
- Animations
by Jason Heglund

