DEV Community

Discussion on: Embrace the AI Revolution: Explore Text Transformation with Transformers.js in JavaScript

Collapse
 
schemetastic profile image
Rodrigo Isaias Calix

Hey! Very interesting post!

I have one question... if some content is cached, how would you make it run on the browser?

Collapse
 
robertobutti profile image
Roberto B.

Although Transformers.js was originally designed to be used in the browser, it’s also able to run inference on the server. This article is about and testes for running inference on the server (node). I prefer to implement the logic on the server side, and exposing an API to the frontend. Especially because some of the models could be huge (hundreads of Gigabytes)