-
Notifications
You must be signed in to change notification settings - Fork 3
Proposed New Leaderboard Schema #25
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
Merged
damian1996
merged 7 commits into
evaleval:main
from
akornilotrust:akornilo/leaderboard-schema
Oct 1, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3abe94e
proposed new leaderboard schema
a189e5e
Add config for sample level data
2dbf00e
fix indent + add score level names
8ceca24
remove some unused keys
64b190e
Additional cleanup
ccd05dd
add Python schema
c6f56ca
updated schema
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,173 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "version": "0.0.1", | ||
| "type": "object", | ||
| "description": "Schema for storing and validating LLMs evaluation data, including model configuration, prompts, instances, Output, and evaluation metrics", | ||
| "required": [ | ||
| "schema_version", | ||
| "evaluation_id", | ||
| "model_info", | ||
| "evaluation_results" | ||
| ], | ||
| "properties": { | ||
| "schema_version": { | ||
| "type": "string", | ||
| "description": "Version of the schema used for this evaluation data" | ||
| }, | ||
| "evaluation_id": { | ||
| "type": "string", | ||
| "description": "Unique identifier for this specific evaluation run" | ||
| }, | ||
| "model_info": { | ||
| "type": "object", | ||
| "description": "Complete model specification including basic information, technical configuration and inference settings", | ||
| "required": [ | ||
| "name", | ||
| "source_url" | ||
| ], | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "description": "Model name in HuggingFace format (e.g. meta-llama/Llama-3.1-8B-Instruct)" | ||
| }, | ||
| "source_url": { | ||
| "type": "string", | ||
| "description": "URL for the source of the evaluation data" | ||
| }, | ||
| "provider_name": { | ||
| "type": "string", | ||
| "description": "Name of the provider of the evaluation results." | ||
| }, | ||
| "developer": { | ||
| "type": "string", | ||
| "description": "Name of organization that provides the model (e.g. 'OpenAI')" | ||
| }, | ||
| "inference_platform": { | ||
| "type": "string", | ||
| "description": "Description of platform used to run the evaluations (e.g. local machine, Bedrock)" | ||
| } | ||
| } | ||
| }, | ||
| "evaluation_results": { | ||
| "type": "array", | ||
| "description": "Array of evaluation results", | ||
| "items": { | ||
| "type": "object", | ||
| "required": [ | ||
| "evaluation_name", | ||
| "metric_config", | ||
| "score_details" | ||
| ], | ||
| "properties": { | ||
| "evaluation_name": { | ||
| "type": "string", | ||
| "description": "Name of the evaluation" | ||
| }, | ||
| "metric_config": { | ||
| "type": "object", | ||
| "description": "Details about the metric", | ||
| "required": [ | ||
| "lower_is_better" | ||
| ], | ||
| "properties": { | ||
| "evaluation_description": { | ||
| "type": "string", | ||
| "description": "Description of the evaluation" | ||
| }, | ||
| "lower_is_better": { | ||
| "type": "boolean", | ||
| "description": "Whether a lower score is better" | ||
| }, | ||
| "score_type": { | ||
| "type": "string", | ||
| "description": "Type of score", | ||
| "enum": [ | ||
| "binary", | ||
| "continuous", | ||
| "levels" | ||
| ] | ||
| }, | ||
| "score_level_names": { | ||
| "type": "array", | ||
| "description": "Names of the score levels", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "min_score": { | ||
| "type": "number", | ||
| "description": "Minimum possible score" | ||
| }, | ||
| "max_score": { | ||
| "type": "number", | ||
| "description": "Maximum possible score" | ||
| } | ||
| } | ||
| }, | ||
| "score_details": { | ||
| "type": "string", | ||
| "description": "The score for the evaluation and related details", | ||
| "required": [ | ||
| "score" | ||
| ], | ||
| "properties": { | ||
| "score": { | ||
| "type": "number", | ||
| "description": "The score for the evaluation" | ||
| }, | ||
| "details": { | ||
| "type": "string", | ||
| "description": "Any additional details about the score" | ||
| } | ||
| } | ||
| }, | ||
| "detailed_evaluation_results_url": { | ||
| "type": "string", | ||
| "description": "Link to detailed evaluation data" | ||
| }, | ||
| "generation_config": { | ||
| "type": "object", | ||
| "generation_args": { | ||
| "type": "object", | ||
| "description": "Parameters used to generate results - properties may vary by model type", | ||
| "properties": { | ||
| "temperature": { | ||
| "type": [ | ||
| "null", | ||
| "number" | ||
| ], | ||
| "description": "Sampling temperature" | ||
| }, | ||
| "top_p": { | ||
| "type": [ | ||
| "null", | ||
| "number" | ||
| ], | ||
| "description": "Nucleus sampling parameter" | ||
| }, | ||
| "top_k": { | ||
| "type": [ | ||
| "null", | ||
| "number" | ||
| ], | ||
| "description": "Top-k sampling parameter" | ||
| }, | ||
| "max_tokens": { | ||
| "type": "integer", | ||
| "minimum": 1, | ||
| "description": "Maximum number of tokens to generate" | ||
| } | ||
| }, | ||
| "additionalProperties": true | ||
| }, | ||
| "additional_details": { | ||
| "type": "string", | ||
| "description": "Additional details about how the results for this metric were generated." | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| # generated by datamodel-codegen: | ||
| # filename: leaderboard.schema.json | ||
| # timestamp: 2025-10-01T17:57:26+00:00 | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from enum import Enum | ||
| from typing import Any, Dict, List, Optional | ||
|
|
||
| from pydantic import BaseModel, Field | ||
|
|
||
|
|
||
| class ModelInfo(BaseModel): | ||
| name: str = Field( | ||
| ..., | ||
| description='Model name in HuggingFace format (e.g. meta-llama/Llama-3.1-8B-Instruct)', | ||
| ) | ||
| source_url: str = Field( | ||
| ..., description='URL for the source of the evaluation data' | ||
| ) | ||
| provider_name: Optional[str] = Field( | ||
| None, description='Name of the provider of the evaluation results.' | ||
| ) | ||
| developer: Optional[str] = Field( | ||
| None, description="Name of organization that provides the model (e.g. 'OpenAI')" | ||
| ) | ||
| inference_platform: Optional[str] = Field( | ||
| None, | ||
| description='Description of platform used to run the evaluations (e.g. local machine, Bedrock)', | ||
| ) | ||
|
|
||
|
|
||
| class ScoreType(Enum): | ||
| binary = 'binary' | ||
| continuous = 'continuous' | ||
| levels = 'levels' | ||
|
|
||
|
|
||
| class MetricConfig(BaseModel): | ||
| evaluation_description: Optional[str] = Field( | ||
| None, description='Description of the evaluation' | ||
| ) | ||
| lower_is_better: bool = Field(..., description='Whether a lower score is better') | ||
| score_type: Optional[ScoreType] = Field(None, description='Type of score') | ||
| score_level_names: Optional[List[str]] = Field( | ||
| None, description='Names of the score levels' | ||
| ) | ||
| min_score: Optional[float] = Field(None, description='Minimum possible score') | ||
| max_score: Optional[float] = Field(None, description='Maximum possible score') | ||
|
|
||
|
|
||
| class ScoreDetails(BaseModel): | ||
| score: float = Field(..., description='The score for the evaluation') | ||
| details: Optional[str] = Field( | ||
| None, description='Any additional details about the score' | ||
| ) | ||
|
|
||
|
|
||
| class EvaluationResult(BaseModel): | ||
| evaluation_name: str = Field(..., description='Name of the evaluation') | ||
| metric_config: MetricConfig = Field(..., description='Details about the metric') | ||
| score_details: ScoreDetails = Field( | ||
| ..., description='The score for the evaluation and related details' | ||
| ) | ||
| detailed_evaluation_results_url: Optional[str] = Field( | ||
| None, description='Link to detailed evaluation data' | ||
| ) | ||
| generation_config: Optional[Dict[str, Any]] = None | ||
|
|
||
|
|
||
| class LeaderboardEvaluationResult(BaseModel): | ||
| schema_version: str = Field( | ||
| ..., description='Version of the schema used for this evaluation data' | ||
| ) | ||
| evaluation_id: str = Field( | ||
| ..., description='Unique identifier for this specific evaluation run' | ||
| ) | ||
| model_info: ModelInfo = Field( | ||
| ..., | ||
| description='Complete model specification including basic information, technical configuration and inference settings', | ||
| ) | ||
| evaluation_results: List[EvaluationResult] = Field( | ||
| ..., description='Array of evaluation results' | ||
| ) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.