
Streaming Predictions
Replicate · Replicate
AI Model Hosting — Replicate
Evaluates Replicate's Streaming Predictions across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Model Hosting eval coverage.
About Replicate
Replicate is an AI model-hosting platform — run thousands of community and custom Cog-packaged models (FLUX, SDXL, Llama, Whisper, custom fine-tunes) via a simple HTTP API with predictions, webhooks, streaming, deployments, and per-second billing.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | Integrator opens an SSE connection to prediction.urls.stream for an SDXL image prediction and gets 404. | Streaming is only available for models that declare an SSE-capable output type (typically LLMs like Llama, Mixtral). For non-streaming models, urls.stream is absent from the prediction. Branch on urls.stream presence before opening the SSE connection — do not assume every prediction streams. | Pass / FailAi Platformhigh |
| 02 | User closes a browser tab mid-Llama-3 stream; the operator's proxy closes the SSE connection upstream while the model is still generating. | Issue an explicit POST /v1/predictions/{id}/cancel on disconnect so the billing meter stops. Closing the SSE connection alone does not guarantee the model stops generating server-side. Record streamed-so-far output for the operator's audit. | Pass / FailAi Platformcritical |
| 03 | Llama-3 streaming response emits event: output with data: <chunk>, then event: logs, then event: done at terminus. | Accumulate output deltas into the user-visible response. Route logs to a separate buffer (debug / observability), not the user stream. Terminate the SSE consumer on event: done; subsequent reads should yield EOF, not an error. | Pass / FailAi Platformhigh |
How this eval is graded
Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
Rubric criteria
- Replicate
- Ai Platform
- Streaming Predictions
Recommended for
Works with
Related evals
Claude API
Evaluates Anthropic's Batch API across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Extended Thinking across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
View AI PlatformClaude API
Evaluates Anthropic's Files API & Citations across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's Foundation Model & API eval coverage.
ViewFrequently asked questions
What does the Streaming Predictions eval for Replicate Replicate test?+
Evaluates Replicate's Streaming Predictions across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Model Hosting eval coverage.
How is the Streaming Predictions eval scored?+
The judge rubric: Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
How many test cases does this eval pack include?+
The Streaming Predictions pack for Replicate Replicate contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.
How do I run this eval?+
Sign up for Corsac, connect your model or agent endpoint, and run the Streaming Predictions pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.
Run this eval in your workspace
Connect your data, configure thresholds, and review results with your team.