fix cerebras template (#790)

# What does this PR do?

- fix cerebras template

## Test Plan

```
llama stack build --template cerebras --image-type conda
llama stack run cerebras
LLAMA_STACK_BASE_URL="http://localhost:5000" pytest -v tests/client-sdk/ --html=report.html --self-contained-html
```

## Sources

Please link relevant resources if necessary.


## Before submitting

- [ ] This PR fixes a typo or improves the docs (you can dismiss the
other checks if that's the case).
- [ ] Ran pre-commit to handle lint / formatting issues.
- [ ] Read the [contributor
guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md),
      Pull Request section?
- [ ] Updated relevant documentation.
- [ ] Wrote necessary unit or integration tests.
This commit is contained in:
Xi Yan 2025-01-16 13:53:06 -08:00 committed by GitHub
parent 12c994b5b2
commit a6b9f2cec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 43 additions and 0 deletions

View file

@ -342,9 +342,11 @@
], ],
"cerebras": [ "cerebras": [
"aiosqlite", "aiosqlite",
"autoevals",
"blobfile", "blobfile",
"cerebras_cloud_sdk", "cerebras_cloud_sdk",
"chardet", "chardet",
"datasets",
"faiss-cpu", "faiss-cpu",
"fastapi", "fastapi",
"fire", "fire",
@ -352,6 +354,7 @@
"matplotlib", "matplotlib",
"nltk", "nltk",
"numpy", "numpy",
"openai",
"opentelemetry-exporter-otlp-proto-http", "opentelemetry-exporter-otlp-proto-http",
"opentelemetry-sdk", "opentelemetry-sdk",
"pandas", "pandas",

View file

@ -5,9 +5,12 @@ The `llamastack/distribution-cerebras` distribution consists of the following pr
| API | Provider(s) | | API | Provider(s) |
|-----|-------------| |-----|-------------|
| agents | `inline::meta-reference` | | agents | `inline::meta-reference` |
| datasetio | `remote::huggingface`, `inline::localfs` |
| eval | `inline::meta-reference` |
| inference | `remote::cerebras` | | inference | `remote::cerebras` |
| memory | `inline::meta-reference` | | memory | `inline::meta-reference` |
| safety | `inline::llama-guard` | | safety | `inline::llama-guard` |
| scoring | `inline::basic`, `inline::llm-as-judge`, `inline::braintrust` |
| telemetry | `inline::meta-reference` | | telemetry | `inline::meta-reference` |
| tool_runtime | `remote::brave-search`, `remote::tavily-search`, `inline::code-interpreter`, `inline::memory-runtime` | | tool_runtime | `remote::brave-search`, `remote::tavily-search`, `inline::code-interpreter`, `inline::memory-runtime` |

View file

@ -11,6 +11,15 @@ distribution_spec:
- inline::meta-reference - inline::meta-reference
agents: agents:
- inline::meta-reference - inline::meta-reference
eval:
- inline::meta-reference
datasetio:
- remote::huggingface
- inline::localfs
scoring:
- inline::basic
- inline::llm-as-judge
- inline::braintrust
telemetry: telemetry:
- inline::meta-reference - inline::meta-reference
tool_runtime: tool_runtime:

View file

@ -29,6 +29,9 @@ def get_distribution_template() -> DistributionTemplate:
"safety": ["inline::llama-guard"], "safety": ["inline::llama-guard"],
"memory": ["inline::meta-reference"], "memory": ["inline::meta-reference"],
"agents": ["inline::meta-reference"], "agents": ["inline::meta-reference"],
"eval": ["inline::meta-reference"],
"datasetio": ["remote::huggingface", "inline::localfs"],
"scoring": ["inline::basic", "inline::llm-as-judge", "inline::braintrust"],
"telemetry": ["inline::meta-reference"], "telemetry": ["inline::meta-reference"],
"tool_runtime": [ "tool_runtime": [
"remote::brave-search", "remote::brave-search",

View file

@ -3,9 +3,12 @@ image_name: cerebras
conda_env: cerebras conda_env: cerebras
apis: apis:
- agents - agents
- datasetio
- eval
- inference - inference
- memory - memory
- safety - safety
- scoring
- telemetry - telemetry
- tool_runtime - tool_runtime
providers: providers:
@ -38,6 +41,28 @@ providers:
type: sqlite type: sqlite
namespace: null namespace: null
db_path: ${env.SQLITE_STORE_DIR:~/.llama/distributions/cerebras}/agents_store.db db_path: ${env.SQLITE_STORE_DIR:~/.llama/distributions/cerebras}/agents_store.db
eval:
- provider_id: meta-reference
provider_type: inline::meta-reference
config: {}
datasetio:
- provider_id: huggingface
provider_type: remote::huggingface
config: {}
- provider_id: localfs
provider_type: inline::localfs
config: {}
scoring:
- provider_id: basic
provider_type: inline::basic
config: {}
- provider_id: llm-as-judge
provider_type: inline::llm-as-judge
config: {}
- provider_id: braintrust
provider_type: inline::braintrust
config:
openai_api_key: ${env.OPENAI_API_KEY:}
telemetry: telemetry:
- provider_id: meta-reference - provider_id: meta-reference
provider_type: inline::meta-reference provider_type: inline::meta-reference