~/talk

How to AI in JavaScript

Talkat UtahJS Conf 2024 · on Friday, 2024-09-13· [javascript, machine-learning]
links:none on file
slides:none on file

Five live demos show AI running entirely in the browser: a Teachable Machine banana classifier trained and inferred offline with Tensorflow.js; a natural-language to-do parser using Transformers.js that answers in ~0.8s and a zero-shot labeler at 1.4s; a streamed rhyme generator that takes ~12s; a 20-questions loop implemented with LangChain.ts on Node; and a Chrome-embedded Gemini Nano session that performs offline conversations. Models cache locally, require no servers, and the demos successfully execute end-to-end.

AI-written summary · about

  1. 0:00Introduction to AI in JavaScript
  2. 2:53Why run AI in the browser
  3. 5:01TensorFlow.js overview
  4. 6:06Demo: Text to speech and speech to text
  5. 7:11Demo: Hugging Face Transformers JS
  6. 13:45Demo: LangChain in Node.js
  7. 15:10Demo: Chrome’s built-in AI model
  8. 17:20Future of AI in JavaScript
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.