First evaluation via SDK
Run your first benchmark evaluation programmatically via the Stratix Python SDK.
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
What just happened
Verify
Try variations
Different model
Different benchmark
Browse public results before running
Error handling
Where to next
Last updated
Was this helpful?