For the complete documentation index, see llms.txt. This page is also available as Markdown.

First evaluation via SDK

Run your first benchmark evaluation programmatically via the Stratix Python SDK.

Twenty lines of Python that run a real evaluation.

Prerequisites

Sync version

from layerlens import Stratix

client = Stratix()

# Pick a model and a benchmark from the public catalog
model = client.models.get_by_key("openai/gpt-4o")
benchmark = client.benchmarks.get_by_key("arc-agi-2")

# Create the evaluation
evaluation = client.evaluations.create(
 model=model,
 benchmark=benchmark,
)

# Wait for completion (polling)
result = client.evaluations.wait_for_completion(evaluation)
print(f"Accuracy: {result.accuracy}")

Async version

Every method has an async counterpart on AsyncStratix:

What just happened

  1. The SDK authenticated with your API key.

  2. It fetched the model and benchmark records from the public catalog.

  3. It created an evaluation in your org.

  4. The platform queued the work; the SDK polled for completion.

  5. The result was returned; you got an accuracy score.

Verify

The same evaluation should appear in Premium → Evaluations. Same record, same ID, same scores.

Try variations

Different model

Different benchmark

Browse public results before running

Error handling

Where to next

Last updated

Was this helpful?