Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Cerebras LLM for ~2000 TPS inference #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sk5268
Copy link

@sk5268 sk5268 commented Dec 30, 2024

Purpose

Cerebras using its 3rd generation Wafer-Scale-Engine (WSE-3) can make inference at ~2000 TPS.
So I added Cerebras API via cerebras-cloud-sdk

Usage

import os
from beyondllm.llms.cerebras import CerebrasModel

os.environ['CEREBRAS_API_KEY'] = "YOUR_CEREBRAS_API_KEY"

llm = CerebrasModel()

# Generate a prediction
prompt = "Tell me a about machine learning"
response = llm.predict(prompt)
print(response)

@sk5268
Copy link
Author

sk5268 commented Dec 30, 2024

@lucifertrj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant