Skip to content

Commit

Permalink
fix version string; switch mistral-large to MistralAI and disable it …
Browse files Browse the repository at this point in the history
…in the VertexAI sut, with comment explaining why
  • Loading branch information
rogthefrog committed Nov 20, 2024
1 parent e10a470 commit c450624
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions plugins/mistral/modelgauge/suts/mistral_sut.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ def translate_response(self, request: MistralAIRequest, response: MistralAIRespo
MISTRAL_API_KEY = InjectSecret(MistralAIAPIKey)

model_name = "ministral-8b"
model_version = "latest"
model_uid = f"{model_name}-{model_version}"
model_version = "2410"
model_uid = f"{model_name}-latest"
SUTS.register(MistralAISut, model_uid, model_uid, model_version, MISTRAL_API_KEY)


model_name = "mistral-large"
model_version = "2411"
model_uid = f"{model_name}-latest"
SUTS.register(MistralAISut, model_uid, model_uid, model_version, MISTRAL_API_KEY)
4 changes: 3 additions & 1 deletion plugins/vertexai/modelgauge/suts/vertexai_mistral_sut.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,6 @@ def translate_response(self, request: VertexAIMistralRequest, response: VertexAI
model_name = "mistral-large"
model_version = "2407"
model_uid = f"{model_name}-{model_version}"
SUTS.register(VertexAIMistralAISut, model_uid, model_name, model_version, VERTEX_KEY, VERTEX_PROJECT_ID, VERTEX_REGION)
# Uncomment this if you want to run mistral-large on VertexAI.
# See plugins/mistral for an implementation that runs on MistralAI instead.
# SUTS.register(VertexAIMistralAISut, model_uid, model_name, model_version, VERTEX_KEY, VERTEX_PROJECT_ID, VERTEX_REGION)

0 comments on commit c450624

Please sign in to comment.