What is Transformers.js?

Oct 25, 2025 11:32 PM - 5 months ago 178878


Welcome to a caller bid each astir moving pinch instrumentality learning models successful JavaScript successful the browser utilizing the Transformers.js library! In this introduction, I screen what Transformers.js is, really to load it into a p5.js sketch, explicate the pipeline API, and show sentiment study and connection discovery examples. Code: https://thecodingtrain.com/tracks/transformers-js/transformers-js/introduction πŸš€ Watch this video ad-free connected Nebula https://nebula.tv/videos/codingtrain-machine-learning-in-the-browser p5.js Web Editor Sketches: πŸ•ΉοΈ Sentiment Analysis: https://editor.p5js.org/codingtrain/sketches/JaXqVSHxM πŸ•ΉοΈ Language Detection: https://editor.p5js.org/codingtrain/sketches/VmS9V6-0o References: πŸ’» Transformers.js Documentation: https://huggingface.co/docs/transformers.js πŸ€— Hugging Face: https://huggingface.co/ πŸ€— Hugging Face Models: https://huggingface.co/models?library=transformers.js πŸ€— Xenova connected Hugging Face: https://huggingface.co/Xenova πŸ€— Whisper Web: https://huggingface.co/spaces/Xenova/whisper-web πŸ’» p5.js 2.0 reference: https://beta.p5js.org/ πŸ““ ES6 Modules: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules πŸ““ Quantization: https://huggingface.co/docs/optimum/concept_guides/quantization Videos: πŸš‚ https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YPSwT06y_AEYTqIwbeam3y πŸš‚ https://youtu.be/0Ad5Frf8NBM Timestamps: 0:00 Welcome! 1:53 Why JavaScript and not Python? 3:01 What is Hugging Face? 4:03 Transformers.js Documentation 4:18 Pipeline API 5:41 import syntax and ES6 modules 8:34 Object Destructuring 11:33 Creating a Pipeline 13:18 Sentiment Analysis Example 19:04 Tasks and Models connected Hugging Face 20:20 Language Detection Example 22:27 Device: WebGPU, CPU and more 24:25 Data Types and Quantization 27:54 See you adjacent time! Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound πŸš‚ Website: https://thecodingtrain.com/ πŸ‘Ύ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide 🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box πŸ’‘ GitHub: https://github.com/CodingTrain πŸ’¬ Discord: https://thecodingtrain.com/discord πŸ’– Membership: http://youtube.com/thecodingtrain/join πŸ›’ Store: https://standard.tv/codingtrain πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/ πŸŽ₯ https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH πŸŽ₯ https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA πŸ”— p5.js: https://p5js.org πŸ”— p5.js Web Editor: https://editor.p5js.org/ πŸ”— Processing: https://processing.org πŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct This explanation was auto-generated. If you spot a problem, please unfastened an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new #machinelearning #transformersjs #huggingface #sentimentanalysis #languagedetection #naturallanguageprocessing #pipelineapi #asyncawait #es6modules #javascript #p5js #transformersjs
More
↑