Skip to content

Run provenance: record what --no-serve runs, model servers without a static URL, and declared datasets miss #6562

Open

Description

@marcromeyn

Follow-ups from Frederic's review of #5134, which records each run's provenance (provenance.json) and the served models before dispatch. #5134 fixed the probe isolation, the concurrent probing and the credential handling; these three gaps remain.

1. --no-serve runs record only the collector's config. With --no-serve, global_config is the collector's thin CLI config, while the running servers' configuration is on identity_client.global_config_dict (which RunManifest.create already uses). write_run_provenance runs build_provenance on the local config alone, so such a run drops the server-configured models (policy and judge), sampling_overrides, chat_template_kwargs, the judge_prompt_template hashes and judge_prompt_versions unless the collector's command line repeats them. Fix: include the reachable server blocks from identity_client.global_config_dict, scoped to reachable servers as _configuration_identity does, so unused blocks with unset ${oc.env:...} don't make the record unavailable.

2. Some model servers don't line up with served_models() and _MODEL_KEYS.

  • switchyard_model is missing from _MODEL_KEYS and from the configured servers, so models omits it and its multi-route /models catalog never matches.
  • local_vllm_model, genrm_model and local_vllm_model_proxy have base_url: [] in the head config; the live URL is only known inside the model server (GET /get_inner_vllm_config).
  • default_headers / openai_default_headers are not sent with the /models probe, so gateways that authenticate or route by header fail it.
  • azure_openai_model needs an api-key header and /openai/models?api-version=...; the plain GET <openai_base_url>/models always fails. Build the Azure request, or record an explicit unsupported reason.

3. Declared datasets and materialized task rows are missed.

  • Server blocks and Harbor's generated configs declare datasets: [{"name": ..., "jsonl_fpath": ...}], which the config walk never reads.
  • MaterializedTask rows (task_input.responses_create_params, and Harbor multi-turn task_input.turns[*].responses_create_params) give empty input_sampling_parameters, since only a top-level responses_create_params is read.
  • A row's task_source is read after the responses_create_params / metadata guards, so a row with non-mapping sampling metadata loses its dataset identity.

Each needs a test that fails today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions