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

Llama

LlamaTokenizer

  • LlamaTokenizer 类
  • from_preset 方法

LlamaBackbone 模型

  • LlamaBackbone 类
  • from_preset 方法
  • token_embedding 属性
  • enable_lora 方法

LlamaCausalLM 模型

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

LlamaCausalLMPreprocessor 层

  • LlamaCausalLMPreprocessor 类
  • from_preset 方法
  • tokenizer 属性
Llama
LlamaTokenizer
LlamaBackbone 模型
LlamaCausalLM 模型
LlamaCausalLMPreprocessor 层
条款 | 隐私权政策