mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
reward scoring model enum
This commit is contained in:
parent
ebb59aa35f
commit
6ec7c47938
4 changed files with 24 additions and 17 deletions
|
@ -29,6 +29,7 @@ from model_types import (
|
|||
InstructModel,
|
||||
Message,
|
||||
PretrainedModel,
|
||||
RewardModel,
|
||||
SamplingParams,
|
||||
ShieldConfig,
|
||||
StopReason,
|
||||
|
@ -245,9 +246,7 @@ class RewardScoringRequest:
|
|||
"""Request to score a reward function. A list of prompts and a list of responses per prompt."""
|
||||
|
||||
prompt_generations: List[KPromptGenerations]
|
||||
|
||||
# TODO(ragho): create a RewardModel enum tye
|
||||
model: str
|
||||
model: RewardModel
|
||||
|
||||
|
||||
@json_schema_type
|
||||
|
|
|
@ -137,3 +137,6 @@ class PretrainedModel(Enum):
|
|||
class InstructModel(Enum):
|
||||
llama3_8b_chat = "llama3_8b_chat"
|
||||
llama3_70b_chat = "llama3_70b_chat"
|
||||
|
||||
class RewardModel(Enum):
|
||||
llama3_405b_reward = "llama3_405b_reward"
|
||||
|
|
|
@ -1976,7 +1976,10 @@
|
|||
}
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"llama3_405b_reward"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
@ -2312,23 +2315,23 @@
|
|||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "RewardScoring"
|
||||
},
|
||||
{
|
||||
"name": "Inference"
|
||||
},
|
||||
{
|
||||
"name": "SyntheticDataGeneration"
|
||||
},
|
||||
{
|
||||
"name": "Datasets"
|
||||
},
|
||||
{
|
||||
"name": "AgenticSystem"
|
||||
},
|
||||
{
|
||||
"name": "Finetuning"
|
||||
"name": "Datasets"
|
||||
},
|
||||
{
|
||||
"name": "RewardScoring"
|
||||
"name": "SyntheticDataGeneration"
|
||||
},
|
||||
{
|
||||
"name": "Finetuning"
|
||||
},
|
||||
{
|
||||
"name": "ShieldConfig",
|
||||
|
|
|
@ -1039,6 +1039,8 @@ components:
|
|||
additionalProperties: false
|
||||
properties:
|
||||
model:
|
||||
enum:
|
||||
- llama3_405b_reward
|
||||
type: string
|
||||
prompt_generations:
|
||||
items:
|
||||
|
@ -1412,12 +1414,12 @@ security:
|
|||
servers:
|
||||
- url: http://llama.meta.com
|
||||
tags:
|
||||
- name: Inference
|
||||
- name: SyntheticDataGeneration
|
||||
- name: Datasets
|
||||
- name: AgenticSystem
|
||||
- name: Finetuning
|
||||
- name: RewardScoring
|
||||
- name: Inference
|
||||
- name: AgenticSystem
|
||||
- name: Datasets
|
||||
- name: SyntheticDataGeneration
|
||||
- name: Finetuning
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldConfig" />
|
||||
name: ShieldConfig
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemCreateRequest"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue