Optimum 文档

概述

您正在查看 main 版本,该版本需要从源代码安装. 如果您想使用常规 pip 安装,请查看最新的稳定版本 (v1.24.0)。
Hugging Face's logo
加入 Hugging Face 社区

并获得增强的文档体验

开始使用

概述

🤗 Optimum 处理 TensorFlow 模型到 exporters.tflite 模块中 TFLite 的导出。此外,托管在 Hugging Face Hub 上且具有 PyTorch 权重但具有 TensorFlow 实现的模型也将通过 Transformers 的 TFPreTrainedModel.from_pretrained() 自动转换为 TensorFlow 的功能在导出中得到支持。

TFLite 导出支持提供类、函数和命令行界面,以便轻松导出模型。

支持的架构

  • Albert
  • BERT
  • Camembert
  • ConvBert
  • Deberta
  • Deberta V2
  • DistilBert
  • Electra
  • Flaubert
  • MobileBert
  • MPNet
  • ResNet
  • Roberta
  • RoFormer
  • XLM
  • XLMRoberta
< > 更新 on GitHub