meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

740: Local AI Models in JavaScript - Machine Learning Deep Dive With Xenova

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, Technology, News

4.91.2K Ratings

🗓️ 8 March 2024

⏱️ 80 minutes

🧾️ Download transcript

Summary

Scott and Wes are joined by special guest Xenova to explore local AI models in JavaScript. From Hugging Face to Transformers.js and practical applications like real-time speech recognition and object detection, this episode dives deep into the world of machine learning. Show Notes 00:00 Welcome to Syntax! 00:41 Brought to you by Sentry.io 01:05 Who is Xenova? 02:08 What is Hugging Face? 03:29 What is Transformers.js? 06:16 How was the library developed? SponsorBlock 09:04 How is it able to run? 10:09 Do they have to run in Python and how does Onnx work? Onnx.ai Hugging Face Optimum 14:19 What are some things you can do with this tech? 16:15 Vision tools. 17:38 This is actually running locally. 18:35 Doodle Dash 21:09 They currently run on CPU, what is required to make it run on GPU? 24:44 Can you run in JavaScript? 28:32 How it works with image vectors. 34:23 Why would people want to run it in another language? 35:55 Resizing images in the browser instead of on the server. 38:55 Applications distributed on the web vs running locally. 43:54 Electron has Node and Chrome, where would you run Transformers.js? 44:32 The API of Transformers.js 46:30 Object Detection. Semantic Image Search Client Real-Time Object Detection Background Removal Tool 48:33 What is the easiest way to get started? 51:26 Real-time speech recognition on the horizon? 52:08 Will we ever be able to run Stable Diffusion via JavaScript? 56:10 The Web LLM. 57:22 Practical applications for YouTube. 59:39 What we want to build for Syntax.fm. 01:06:43 Mean pooling, why it’s necessary. 01:09:30 Stopping YouTube spam comments. 01:10:34 K-Means Clustering. Text Clustering 01:13:49 Quantization. 01:17:35 Sick Picks + Shameless Plugs. Sick Picks Xeonva: WebGPU Shameless Plugs Xenova: Xenova on X Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads Wes: X Instagram Tiktok LinkedIn Threads Scott:X Instagram Tiktok LinkedIn Threads Randy: X Instagram YouTube Threads

Transcript

Click on a timestamp to play from that location

0:00.0

Welcome to Syntax. Today we have a very exciting episode today. We have Zenova on from Transformers

0:07.6

J.S. which is a library from Hugging Face that allows you to run AI models, hundreds of them,

0:15.8

dozens, I don't even know how many, all kinds in JavaScript in the browser in

0:20.7

node and no it's not an API that you hit and comes back you're actually

0:24.5

running them locally on your machine and I've been like you probably have seen me

0:29.1

tweeting about it because I've been playing with it like crazy lately and the fact that you can just like

0:33.8

run like 20 lines of code and get these AI models to run locally it just blows my mind

0:41.5

yeah totally and also if you're asking questions of your code like hey why did this bug happen

0:47.7

maybe you want to have a tool like Century on your side to reveal all of those bugs and why they happen so that way you can

0:55.0

go solve them. So if you want to use a tool like that, they've been an awesome partner

1:00.4

for syntax and this show is presented by Century at

1:03.1

century. I.O. slash syntax. So we have the the developer behind Transformers

1:08.1

J.S. on with us today. He's very mysterious. Never done a face reveal his name is we're going to call him

1:14.6

Zenova. Welcome thanks for coming on. Thanks so much for having me. That's a very

1:21.9

amazing intro.

1:22.7

Thanks so much.

1:23.6

I feel a flat honored.

1:25.4

But yeah, that's just, yeah, I've been working on the library for around a year.

1:31.3

I actually, I should probably check the commit history because one of these days will be like the one year anniversary

1:36.7

Yeah, it started like midway through February in in in 2023

1:40.8

So I guess one of these days possibly when you release the episode you're coming up on a year

1:47.2

Indeed yeah, so that's going to be quite exciting and since then we've put out quite a few demos, the library's seen quite a few updates,

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.