Zum Inhalt springen
Kitbay

transformers-js

Apache-2.0Aktualisiert am 11. Nov. 202611.334GitHub-Sterne

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.

Was der Skill vermittelt

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.

Funktionen

  • 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