Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.mlflow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/mlflow/mlflow:v2.22.1
FROM ghcr.io/mlflow/mlflow:v3.1.1

# The base image does not include various dependencies that are needed for
# the MLflow server. We assume a postgres backend, so we need psycopg2.
Expand Down
52 changes: 16 additions & 36 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ python = ">=3.10,!=3.12.5,<3.13"
click = "^8"
dvc = {extras = ["gs"], version = "^3.60"}
modelbench = {git = "https://github.com/mlcommons/modelbench.git", rev = "2b19f4f79dfb51fe3db8d9d11af12beccc749844" }
mlflow = "^2.22.1"
mlflow = "^3.1.1"
python-dotenv = "^1"
requests = "^2"
prometheus-client = "*" # version controlled by dependencies
Expand Down
11 changes: 7 additions & 4 deletions src/modelplane/runways/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ def get_experiment_id(experiment_name: str) -> str:
# check if the experiment exists
experiment = mlflow.get_experiment_by_name(experiment_name)
if experiment is None:
experiment_id = mlflow.create_experiment(name=experiment_name)
return mlflow.create_experiment(name=experiment_name)
elif experiment is not None and experiment.lifecycle_stage != "active":
raise ValueError(
f"Experiment '{experiment_name}' exists but is not active. "
"Please delete it or create a new experiment with a different name."
)
else:
experiment_id = experiment.experiment_id

return experiment_id
return experiment.experiment_id
3 changes: 2 additions & 1 deletion tests/it/runways/test_e2e.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import csv
import tempfile
import time
from typing import List

import mlflow
Expand All @@ -18,7 +19,7 @@ def test_e2e():
sut_id = "demo_yes_no"
prompts = "tests/data/prompts.csv"
ground_truth = "tests/data/ground_truth.csv"
experiment = "test_experiment"
experiment = "test_experiment_" + time.strftime("%Y%m%d%H%M%S", time.localtime())
n_jobs = 1

run_id = check_responder(
Expand Down