Pular para o conteúdo
Kitbay
SkillOficial

transformers-js

Apache-2.0Atualizado em 11 de nov. de 202611.334Estrelas no GitHub

A Hugging Face skill on using the Transformers.js library to run machine learning models from JavaScript or TypeScript, in the browser or in Node.js, Bun and Deno, with WebGPU or WebAssembly.

O que a skill ensina

A Hugging Face skill on using the Transformers.js library to run machine learning models from JavaScript or TypeScript, in the browser or in Node.js, Bun and Deno, with WebGPU or WebAssembly. It covers installing the package, the pipeline API, the supported text, vision, audio and multimodal tasks, finding suitable models on the Hub, configuration such as device and data type, differences between runtimes, error handling, performance, memory management and troubleshooting, with a quick reference of task ids and further reference files. Models download from the Hub unless local copies are used.

O que faz

  • Run Hub models in JavaScript with Transformers.js
  • Use pipelines for text, vision and audio tasks
  • Configure WebGPU or WASM execution
  • Manage model memory in browser and server runtimes