Community图像github.com

huggingface/transformers-js

使用 Transformers.js 在 JavaScript/TypeScript 中直接运行最先进的机器学习模型。支持 NLP(文本分类、翻译、摘要)、计算机视觉(图像分类、目标检测)、音频(语音识别、音频分类)以及多模态任务。可在浏览器和服务端运行时(Node.js、Bun、Deno)中工作,利用 WebGPU/WASM 和 Hugging Face Hub 的预训练模型。

transformers-js 是什么?

Transformers.js 使得在 JavaScript/TypeScript 环境中直接运行最先进的机器学习模型成为可能,无需依赖后端服务。该技能涵盖了自然语言处理(如文本分类、翻译和摘要)、计算机视觉(如图像分类和目标检测)、音频处理(如语音识别和音频分类)以及多模态任务。它支持在浏览器以及 Node.js、Bun、Deno 等服务端运行时中运行,通过 WebGPU 和 WASM 技术实现高效推理。借助 Hugging Face Hub 上的海量预训练模型,开发者可以在前端或非 Python 后端无缝集成强大的 AI 功能,降低了机器学习应用的门槛。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/huggingface/skills/tree/main/skills/transformers-js

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

transformers-js 是做什么的?

使用 Transformers.js 在 JavaScript/TypeScript 中直接运行最先进的机器学习模型。支持 NLP(文本分类、翻译、摘要)、计算机视觉(图像分类、目标检测)、音频(语音识别、音频分类)以及多模态任务。可在浏览器和服务端运行时(Node.js、Bun、Deno)中工作,利用 WebGPU/WASM 和 Hugging Face Hub 的预训练模型。

Individual skills in this repo

This repo contains 5 individual skills — each has its own dedicated page.

huggingface/hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingface-cli`.

huggingface/huggingface-datasets

Use this skill for Hugging Face Dataset Viewer API workflows that fetch subset/split metadata, paginate rows, search text, apply filters, download parquet URLs, and read size or statistics.

huggingface/huggingface-gradio

Build Gradio web UIs and demos in Python. Use when creating or editing Gradio apps, components, event listeners, layouts, or chatbots.

huggingface/huggingface-llm-trainer

Train or fine-tune language and vision models using TRL (Transformer Reinforcement Learning) or Unsloth with Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs package, UV scripts with PEP 723 format, dataset preparation and validation, hardware selection, cost estimation, Trackio monitoring, Hub authentication, model selection/leaderboards and model persistence. Use for tasks involving cloud GPU training, GGUF conversion, or when users mention training on Hugging Face Jobs without local GPU setup.

huggingface/huggingface-papers

Look up and read Hugging Face paper pages in markdown, and use the papers API for structured metadata such as authors, linked models/datasets/spaces, Github repo and project page. Use when the user shares a Hugging Face paper page URL, an arXiv URL or ID, or asks to summarize, explain, or analyze an AI research paper.

相关技能