Skip to content
Open
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
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,8 @@ or you can get the `run_id` via the MLFlow UI.
MLFLOW_TRACKING_URI=http://localhost:8080 uv run modelplane annotate --annotator_id {annotator_id} --experiment expname --response_run_id {run_id}
```

#### Private Ensemble
#### Private annotator
If you have access to the private annotator, you can run directly with:
```
MLFLOW_TRACKING_URI=http://localhost:8080 uv run modelplane annotate --annotator_id safety-v1.1 --experiment expname --response_run_id {run_id}
```


### Custom Ensembles
```
MLFLOW_TRACKING_URI=http://localhost:8080 uv 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 uv run modelplane annotate --annotator_id safety-v1.2 --experiment expname --response_run_id {run_id}
```
287 changes: 0 additions & 287 deletions flightpaths/Ensemble Development Template.ipynb

This file was deleted.

16 changes: 0 additions & 16 deletions src/modelplane/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

import click
from modelgauge.data_schema import AnnotationSchema
from modelgauge.ensemble_strategies import ENSEMBLE_STRATEGIES

from modelplane.runways.annotator import annotate
from modelplane.runways.lister import (
list_annotators,
list_ensemble_strategies,
list_suts,
)
from modelplane.runways.responder import respond
Expand All @@ -27,11 +25,6 @@ def list_annotators_cli():
list_annotators()


@cli.command(name="list-ensemble-strategies", help="List known ensemble strategies.")
def list_ensemble_strategies_cli():
list_ensemble_strategies()


@cli.command(name="list-suts", help="List known suts.")
def list_suts_cli():
list_suts()
Expand Down Expand Up @@ -146,13 +139,6 @@ def get_sut_responses(
default=None,
help="The annotator UID(s) to use. Multiple annotators can be specified.",
)
@click.option(
"--ensemble_strategy",
type=str,
default=None,
help="The ensemble strategy to use. If set, individual annotator results will be combined using the given strategy. "
"Available strategies: " + ", ".join(list(ENSEMBLE_STRATEGIES.keys())),
)
@click.option(
"--overwrite",
is_flag=True,
Expand Down Expand Up @@ -202,7 +188,6 @@ def get_annotations(
dvc_repo: str | None = None,
response_file: str | None = None,
response_run_id: str | None = None,
ensemble_strategy: str | None = None,
overwrite: bool = False,
disable_cache: bool = False,
num_workers: int = 1,
Expand All @@ -217,7 +202,6 @@ def get_annotations(
response_file=response_file,
response_run_id=response_run_id,
annotator_ids=annotator_id,
ensemble_strategy=ensemble_strategy,
overwrite=overwrite,
disable_cache=disable_cache,
num_workers=num_workers,
Expand Down
Loading
Loading