关于Keras 入门指南 开发者指南 Keras 3 API 文档 模型 API 层 API 回调API 操作API 优化器 度量标准 损失函数 数据加载 内置小型数据集 Keras 应用程序 混合精度 多设备分布 RNG API 实用工具 Keras调优器 KerasCV Keras自然语言处理(KerasNLP) 预训练模型 模型API 分词器 预处理层 模型层 采样器 指标 Keras 2 API 文档 代码示例 KerasTuner:超参数调优 KerasCV:计算机视觉工作流 KerasNLP:自然语言工作流程
► Keras 3 API 文档 / Keras自然语言处理(KerasNLP) / 预训练模型 / DistilBERT

DistilBERT

模型、分词器和用于 DistilBERT 的预处理层,如在 "DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter" 中所述。

有关可用 预设 的完整列表,请参见 模型页面。

DistilBert分词器

  • DistilBertTokenizer class
  • from_preset method

DistilBert预处理器层

  • DistilBertPreprocessor class
  • from_preset method
  • tokenizer property

DistilBertBackbone 模型

  • DistilBertBackbone class
  • from_preset method
  • token_embedding property

DistilBert分类器模型

  • DistilBertClassifier class
  • from_preset method
  • backbone property
  • preprocessor property

DistilBertMaskedLM 模型

  • DistilBertMaskedLM class
  • from_preset method
  • backbone property
  • preprocessor property

DistilBertMaskedLM预处理层

  • DistilBertMaskedLMPreprocessor class
  • from_preset method
  • tokenizer property
DistilBERT
DistilBert分词器
DistilBert预处理器层
DistilBertBackbone 模型
DistilBert分类器模型
DistilBertMaskedLM 模型
DistilBertMaskedLM预处理层
Terms | Privacy