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

OPT

OPTTokenizer

  • OPTTokenizer 类
  • from_preset 方法

OPTBackbone 模型

  • OPTBackbone 类
  • from_preset 方法
  • token_embedding 属性

OPTCausalLM 模型

  • OPTCausalLM 类
  • from_preset 方法
  • generate 方法
  • backbone 属性
  • preprocessor 属性

OPTCausalLMPreprocessor 层

  • OPTCausalLMPreprocessor 类
  • from_preset 方法
  • tokenizer 属性
OPT
OPTTokenizer
OPTBackbone 模型
OPTCausalLM 模型
OPTCausalLMPreprocessor 层
条款 | 隐私权