-
Notifications
You must be signed in to change notification settings - Fork 0
Modelplane upgrades #93
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3a704a0
Add text files to gitignore.
superdosh dc428ed
Add tests to confirm mlflow versions match for all dependencies.
superdosh b48715c
Upgrade mlflow and modelbench
superdosh eaf9087
Align with latest modelbench and fix tests.
superdosh c2b4840
Fix flightpaths.
superdosh e384503
Try not locking poetry version.
superdosh e3b3ae8
Doc fixes and cleanup no longer relevant flightpath.
superdosh 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
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
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 |
|---|---|---|
|
|
@@ -7,3 +7,7 @@ secrets.toml | |
| .vscode/ | ||
| .coverage* | ||
| .cache | ||
| *.csv | ||
| *.txt | ||
| *.json | ||
| *.jsonl | ||
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 |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| FROM ghcr.io/mlflow/mlflow:v3.1.1 | ||
| FROM ghcr.io/mlflow/mlflow:v3.7.0 | ||
|
|
||
| # The base image does not include various dependencies that are needed for | ||
| # the MLflow server. We assume a postgres backend, so we need psycopg2. | ||
| # We also need boto3 for S3 support, and google-cloud-storage for GCS support. | ||
| # TODO: better way to install these (maybe using poetry.lock to grab consistent versions?) | ||
| RUN pip install mlflow[auth]==3.1.1 psycopg2-binary==2.9.10 boto3==1.38.31 \ | ||
| google-cloud-storage==3.1.0 | ||
| RUN pip install mlflow[auth]==3.7.0 psycopg2-binary==2.9.11 boto3==1.42.5 \ | ||
| google-cloud-storage==3.4.1 |
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 |
|---|---|---|
|
|
@@ -43,9 +43,8 @@ for access. | |
| MLFlow server (`MLFLOW_TRACKING_USERNAME` / | ||
| `MLFLOW_TRACKING_PASSWORD`). | ||
| * Alternatively, put the credentials in `~/.mlflow/credentials` as described [here](https://mlflow.org/docs/latest/ml/auth/#credentials-file). | ||
| 1. To access `modelbench-private` code (assuming you have | ||
| access), you must also set `USE_MODELBENCH_PRIVATE=true` in `.env.jupyteronly`. This will forward your ssh agent to the container | ||
| allowing it to load the private repository to build the image. | ||
| 1. To access the private annotators, you need to set up credentials to access cheval (see `modelgauge.annotators.cheval.registration`) | ||
| and reach out to [[email protected]](mailto:[email protected]) for the credentials. | ||
| 1. Start jupyter with `./start_jupyter.sh`. (You can add the | ||
| `-d` flag to start in the background.) | ||
|
|
||
|
|
@@ -97,17 +96,14 @@ or you can get the `run_id` via the MLFlow UI. | |
| MLFLOW_TRACKING_URI=http://localhost:8080 poetry run modelplane annotate --annotator_id {annotator_id} --experiment expname --response_run_id {run_id} | ||
| ``` | ||
|
|
||
| ### Custom Ensembles | ||
| #### Private Ensemble | ||
| If you have access to the private annotator, you can run directly with: | ||
| ``` | ||
| MLFLOW_TRACKING_URI=http://localhost:8080 poetry run modelplane annotate --annotator_id {annotator_id1} --annotator_id {annotator_id2} --ensemble_strategy {ensemble_strategy} --experiment expname --response_file path/to/response.csv | ||
| MLFLOW_TRACKING_URI=http://localhost:8080 poetry run modelplane annotate --annotator_id safety-v1.1 --experiment expname --response_run_id {run_id} | ||
| ``` | ||
|
|
||
| ### Private Ensemble | ||
| If you have access to the private ensemble, you can install with the needed extras | ||
| ``` | ||
| poetry install --extras modelbench-private | ||
| ``` | ||
| And then run annotations with: | ||
|
|
||
| ### Custom Ensembles | ||
| ``` | ||
| MLFLOW_TRACKING_URI=http://localhost:8080 poetry run modelplane annotate --ensemble_id official --experiment expname --response_run_id {run_id} | ||
| MLFLOW_TRACKING_URI=http://localhost:8080 poetry run modelplane annotate --annotator_id {annotator_id1} --annotator_id {annotator_id2} --ensemble_strategy {ensemble_strategy} --experiment expname --response_file path/to/response.csv | ||
| ``` | ||
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not specify the version anymore?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were pinned to a very old version because of some weirdness (in modelbench) that I never fully understood, but I figure that's not necessary here anymore -- I think it was actually driven by modelbench-private? Potentially pinning to some newer version is good, but at least we shouldn't be stuck on 1 if not necessary. Going to leave it open for now!