Skip to main content
Cerebras Inference provides high-speed, low-latency AI model inference powered by Cerebras Wafer-Scale Engines and CS-3 systems. Agno integrates directly with the Cerebras Python SDK, allowing you to use state-of-the-art Llama models with a simple interface.

Prerequisites

To use Cerebras with Agno, you need to:
  1. Install the required packages:
  2. Set your API key: The Cerebras SDK expects your API key to be available as an environment variable:

Basic Usage

Here’s how to use a Cerebras model with Agno:

Supported Models

Cerebras currently supports the following models (see docs for the latest list): * DeepSeek R1 Distill Llama 70B is available in private preview.

Parameters

Cerebras is a subclass of the Model class and has access to the same params.

Structured Outputs

The Cerebras model supports structured outputs using JSON schema:

Resources

SDK Examples

  • View more examples here.