Skip to main content
Cerebras Inference 通过 Cerebras Wafer-Scale Engine 和 CS-3 系统提供高速、低延迟的 AI 模型推理。Agno 直接集成 Cerebras Python SDK,让您能够通过简单的接口使用最先进的 Llama 模型。

先决条件

要将 Cerebras 与 Agno 结合使用,您需要:
  1. 安装必需的软件包:
  2. 设置您的 API 密钥: Cerebras SDK 要求您的 API 密钥作为环境变量可用:

基本用法

以下是如何在 Agno 中使用 Cerebras 模型:

支持的模型

Cerebras 目前支持以下模型(有关最新列表,请参阅 文档): * DeepSeek R1 Distill Llama 70B 目前处于私有预览阶段。

配置选项

Cerebras 类接受以下参数:

资源

SDK 示例

  • 在此查看更多示例 here