Hugging Face Transformers.js

Generated by 🤖 AI
🤗
Hugging Face Transformers.js is a JavaScript library that provides a simple way to run LLMs in the browser or node.js (or Bun, Deno, …).
script({ model: "transformers:HuggingFaceTB/SmolLM2-1.7B-Instruct:q4f16",})
GenAIScript will download and cache the model for you, and you can start using it right away fully locally.
There are plenty of models to choose from and you can also follow the Hugging Face documentation to fine tune your own.