Cerebras
Cerebras #
Bases: OpenAILike
Cerebras LLM.
Examples:
pip install llama-index-llms-cerebras
from llama_index.llms.cerebras import Cerebras
# Set up the Cerebras class with the required model and API key
llm = Cerebras(model="llama-3.3-70b", api_key="your_api_key")
# Call the complete method with a query
response = llm.complete("Why is fast inference important?")
print(response)
Source code in llama-index-integrations/llms/llama-index-llms-cerebras/llama_index/llms/cerebras/base.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
class_name
classmethod
#
class_name() -> str
Get class name.
Source code in llama-index-integrations/llms/llama-index-llms-cerebras/llama_index/llms/cerebras/base.py
50 51 52 53 |
|