跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Transformers.js

技能 已验证 活跃

Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks. Works in browsers and server-side runtimes (Node.js, Bun, Deno) with WebGPU/WASM using pre-trained models from Hugging Face Hub.

目的

To empower developers to integrate powerful machine learning capabilities directly into their JavaScript/TypeScript applications without the need for Python-based backend infrastructure.

功能

  • Run NLP models (classification, translation, summarization)
  • Perform computer vision tasks (image classification, object detection)
  • Process audio (speech recognition, classification)
  • Support multimodal AI applications
  • Execute in browsers and server-side runtimes (Node.js, Bun, Deno)

使用场景

  • Building client-side ML features in web applications
  • Developing serverless ML inference with Node.js
  • Creating offline-capable AI applications
  • Integrating ML models into existing JavaScript projects

非目标

  • Training large-scale machine learning models
  • Replacing dedicated Python ML backends for complex training pipelines
  • Executing models that require specialized hardware not supported by WebGPU/WASM

工作流

  1. Initialize pipeline with task, model, and optional configurations (device, dtype, etc.)
  2. Process input data through the pipeline
  3. Receive model output (e.g., generated text, classification labels, embeddings)
  4. Dispose of the pipeline to free resources

实践

  • Model inference
  • JavaScript/TypeScript development
  • Web machine learning

先决条件

  • Node.js 18+ (or compatible Bun/Deno runtime) or modern browser with ES modules support
  • WebGPU requires runtime and hardware support; WASM is the broad fallback
  • Internet access for downloading models from Hugging Face Hub (optional if using local models)

安装

/plugin install skills@huggingface-skills

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交2 days ago
星标10.5k
许可证Apache-2.0
状态
查看源代码

类似扩展

Deepinit

100

Deep codebase initialization with hierarchical AGENTS.md documentation

技能
Yeachan-Heo

Cleanup Cycles

100

Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".

技能
raintree-technology

Netlify Identity

100

用于身份验证、用户注册、登录、密码恢复、OAuth 提供商、基于角色的访问控制或保护路由和函数。始终使用 `@netlify/identity`。切勿使用 `netlify-identity-widget` 或 `gotrue-js` — 它们已弃用。

技能
netlify

Vue Router Best Practices

100

Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.

技能
hyf0

Sentry React Router Framework Sdk

100

Full Sentry SDK setup for React Router Framework mode. Use when asked to "add Sentry to React Router Framework", "install @sentry/react-router", or configure error monitoring, tracing, profiling, session replay, logs, or user feedback for a React Router v7 framework app.

技能
getsentry

Transformers

98

This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning models on custom datasets.

技能
K-Dense-AI