Skip to content

Commit

Permalink
add llama3 evaluator in config generation
Browse files Browse the repository at this point in the history
  • Loading branch information
semio committed May 24, 2024
1 parent 2feba0f commit 2c85d47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions automation-api/yival_experiments/experiment_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ custom_evaluators:
class: ./custom_configuration/vertex_ai_evaluator.VertexAIEvaluator
config_cls: ./custom_configuration/vertex_ai_evaluator_config.VertexAIEvaluatorConfig

llama3_evaluator:
class: ./custom_configuration/llama3_evaluator.Llama3Evaluator
config_cls: ./custom_configuration/llama3_evaluator_config.Llama3EvaluatorConfig


custom_function: model_compare.model_compare

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def get_evaluators(ai_eval_sheet: AiEvalData, evaluator_model="gpt4"):
elif evaluator_model == "claude":
evaluator_name = "vertex_ai_evaluator"
model_name = "vertex_ai/claude-3-opus@20240229"
elif evaluator_model == "llama":
evaluator_name = "llama3_evaluator"
model_name = "replicate/meta/meta-llama-3-70b-instruct"

for m in metrics:
metric: Dict[str, Any] = dict()
Expand Down

0 comments on commit 2c85d47

Please sign in to comment.