Aller au contenu

Hugging Face Transformers.js

AI generated translation.

An 8-bit style image displays various technology icons symbolizing JavaScript, transformers, and AI. These icons are integrated into an arrangement of abstract geometric shapes that represent a browser and server environment. The image is simplified using a 5-color palette, maintaining a consistent and coherent aesthetic. No people or text are present.
Generated by 🤖 AI

🤗

Hugging Face Transformers.js est une bibliothèque JavaScript qui offre un moyen simple d’exécuter des LLMs dans le navigateur ou dans node.js (ou Bun, Deno, …).

script({
model:
"transformers:HuggingFaceTB/SmolLM2-1.7B-Instruct:q4f16",
});

GenAIScript téléchargera et mettra en cache le modèle pour vous, et vous pourrez commencer à l’utiliser immédiatement complètement localement.

Il existe de nombreux modèles parmi lesquels choisir, et vous pouvez également suivre la documentation de Hugging Face pour affiner le vôtre.