T
traeai
Sign in
返回首页
Hugging FaceVideo

Transformers.js in 30 seconds #MachineLearning #AI #WebAI

8.5Score
Watchable video resourceOpen original video

TL;DR · AI Summary

Transformers.js 是一个将最先进的机器学习模型引入 JavaScript 的工具,通过 ONNX 格式实现高效推理。

Key Takeaways

  • Transformers.js 使用 ONNX 格式存储模型计算图和权重,支持多种执行环境。
  • 工具自动处理模型文件下载、缓存和会话创建,简化开发流程。
  • 输入输出自动转换为张量和用户所需格式,降低使用门槛。

Outline

Jump quickly between sections.

  1. Transformers.js 将机器学习引入 JavaScript,支持高效推理。

  2. ·ONNX 格式

    模型以 ONNX 格式存储,包含计算图和权重。

  3. 工具自动下载模型文件、创建会话并执行推理。

  4. 输入输出自动转换为张量和用户所需格式。

Mindmap

See how the topics connect at a glance.

查看大纲文本(无障碍 / 无 JS 友好)
  • Transformers.js

Highlights

Key sentences worth saving and sharing.

  • Transformers.js uses ONNX, a standard that stores the model as a computation graph plus trained weights.

    Paragraph 0:06

    ⬇︎ 下载 PNG𝕏 分享到 X
  • It then uses ONNX runtime to run the calculations in the execution provider you choose.

    Paragraph 0:14

    ⬇︎ 下载 PNG𝕏 分享到 X
  • Once you run the pipe, it converts your input into tensors in the shape the model expects.

    Paragraph 0:28

    ⬇︎ 下载 PNG𝕏 分享到 X
#Transformers.js#ONNX#JavaScript#Machine Learning

AI may generate inaccurate information. Please verify important content.