From 6a5c091d6f150b8ee37e2f1ab0094b1a4c3a7aba Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 12:17:04 -0500 Subject: [PATCH 01/74] Add vLLM-Omni performance dashboard and consolidated CSV schema - Add Omni Streamlit view with TTS, ASR, and text tabs - Add 166-column template, sanitized sample rows, and metadata example - Add vLLM-Omni/ASR CSV converter and schema tests - Wire S3_KEY_OMNI and dashboard view selection Co-Authored-By: Claude Code --- .gitignore | 2 + README.md | 32 +- dashboard.py | 18 + ...dated_dashboard_omni_metadata.example.json | 28 + .../consolidated_dashboard_omni_sample.csv | 4 + .../consolidated_dashboard_omni_template.csv | 1 + docs/omni-dashboard.md | 127 ++++ .../scripts/build_consolidated_omni_csv.py | 632 ++++++++++++++++++ omni_dashboard.py | 380 +++++++++++ tests/test_omni_csv.py | 116 ++++ 10 files changed, 1339 insertions(+), 1 deletion(-) create mode 100644 datasets/omni/consolidated_dashboard_omni_metadata.example.json create mode 100644 datasets/omni/consolidated_dashboard_omni_sample.csv create mode 100644 datasets/omni/consolidated_dashboard_omni_template.csv create mode 100644 docs/omni-dashboard.md create mode 100644 manual_runs/scripts/build_consolidated_omni_csv.py create mode 100644 omni_dashboard.py create mode 100644 tests/test_omni_csv.py diff --git a/.gitignore b/.gitignore index 79a8d98..c0343f1 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ __pycache__/ !mlperf-data/mlperf-*.csv !mlperf-data/summaries/*.csv !datasets/summaries/*.csv +!datasets/omni/*.csv +!datasets/omni/*.json vllm-cpu-perf-eval/ # Ignore large original dataset files in datasets/ (pkl, parquet, npy) diff --git a/README.md b/README.md index b7c8d22..4a3ee78 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AI Inference Performance Dashboard -A comprehensive performance analysis dashboard for AI inference benchmarks including RHAIIS (Red Hat AI Inference Server), LLM-D (disaggregated LLM inference), and MLPerf submissions. This dashboard provides interactive visualizations and analysis of AI model performance across different accelerators, versions, and configurations. +A comprehensive performance analysis dashboard for AI inference benchmarks including RHAIIS (Red Hat AI Inference Server), LLM-D (disaggregated LLM inference), vLLM-Omni (speech-in, speech-out, and text), and MLPerf submissions. This dashboard provides interactive visualizations and analysis of AI model performance across different accelerators, versions, and configurations. ## Features @@ -24,6 +24,14 @@ A comprehensive performance analysis dashboard for AI inference benchmarks inclu - **Performance Plots**: Interactive visualizations with multiple Y-axis metric options - **Runtime Configuration Tracking**: View server configurations and deployment parameters +### Omni Dashboard + +- **Speech, ASR, and text views**: Filter one consolidated CSV by modality, task type, load generator, model, runtime, accelerator, and concurrency +- **Speech-out metrics**: Audio TTFP, RTF, underrun, audio throughput, and streaming continuity +- **ASR metrics**: WER, RTFx, transcription throughput, and input-audio duration +- **Text metrics**: TTFT, TPOT, ITL, E2EL, and token throughput +- **Extensible schema**: One row per benchmark point; modality-inapplicable fields may be blank, and future metrics live in `extra_json` + ### MLPerf Dashboard - **Multi-Version Support**: Compare MLPerf v5.0 and v5.1 submissions @@ -270,6 +278,26 @@ When you have code changes: 2. **Consolidate data**: Merge new results with existing CSV file +## Omni Data Management + +The Omni dashboard reads `datasets/omni/consolidated_dashboard_omni.csv` locally, or the `S3_KEY_OMNI` object when `S3_BUCKET` is set. A sanitized sample and header-only template are included: + +- `datasets/omni/consolidated_dashboard_omni_template.csv` +- `datasets/omni/consolidated_dashboard_omni_sample.csv` +- `datasets/omni/consolidated_dashboard_omni_metadata.example.json` + +Convert vLLM-Omni bench JSON, optional ASR CSV/JSON, and an optional legacy benchmark CSV: + +```bash +python manual_runs/scripts/build_consolidated_omni_csv.py \ + --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ + --omni-json path/to/omni-json/ \ + --asr-csv path/to/asr-results.csv \ + --output datasets/omni/consolidated_dashboard_omni.csv +``` + +See `docs/omni-dashboard.md` for the schema, units, and the extension rule: add new metrics to `extra_json` first and promote them to first-class columns only when a dashboard panel needs them. + ## MLPerf Data Management ### MLPerf CSV Files @@ -374,6 +402,7 @@ The dashboard can load CSV data directly from an AWS S3 bucket instead of local | `S3_BUCKET` | S3 bucket name (enables S3 mode when set) | _(none)_ | | `S3_KEY` | Path to RHAIIS CSV in bucket | `consolidated_dashboard.csv` | | `S3_KEY_LLMD` | Path to LLM-D CSV in bucket | `llmd-dashboard.csv` | +| `S3_KEY_OMNI` | Path to Omni CSV in bucket | `consolidated_dashboard_omni.csv` | | `S3_REGION` | AWS region | `us-east-1` | | `AWS_ACCESS_KEY_ID` | AWS access key (for private buckets) | _(none)_ | | `AWS_SECRET_ACCESS_KEY` | AWS secret key (for private buckets) | _(none)_ | @@ -393,6 +422,7 @@ export AWS_SECRET_ACCESS_KEY='your-secret' export S3_BUCKET='your-s3-bucket' export S3_KEY='location of the consolidated-dashboard.csv file in the bucket' export S3_KEY_LLMD='location of the llmd-dashboard.csv file in the bucket' +export S3_KEY_OMNI='location of the consolidated_dashboard_omni.csv file in the bucket' export S3_REGION='us-east-1' # Run the dashboard diff --git a/dashboard.py b/dashboard.py index f62443d..1048182 100644 --- a/dashboard.py +++ b/dashboard.py @@ -160,6 +160,15 @@ def _render_methodology_note(versions): CPU_AVAILABLE = False print("Warning: cpu_dashboard module not found. vLLM CPU view will be disabled.") +# Import Omni dashboard +try: + from omni_dashboard import render_omni_dashboard + + OMNI_AVAILABLE = True +except ImportError: + OMNI_AVAILABLE = False + print("Warning: omni_dashboard module not found. Omni view will be disabled.") + # Configure logging to stdout for container logs logging.basicConfig( level=logging.INFO, @@ -173,6 +182,7 @@ def _render_methodology_note(versions): S3_KEY = os.environ.get("S3_KEY", "consolidated_dashboard.csv") S3_KEY_LLMD = os.environ.get("S3_KEY_LLMD", "llmd-dashboard.csv") S3_KEY_CPU = os.environ.get("S3_KEY_CPU", "cpu_dashboard.csv") +S3_KEY_OMNI = os.environ.get("S3_KEY_OMNI", "consolidated_dashboard_omni.csv") S3_REGION = os.environ.get("S3_REGION", "us-east-1") AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") @@ -12404,6 +12414,8 @@ def render_sidebar_header(): view_options.append("LLM-D Dashboard") if CPU_AVAILABLE: view_options.append("vLLM CPU Dashboard") + if OMNI_AVAILABLE: + view_options.append("Omni Dashboard") if len(view_options) > 1: # Pre-populate the widget key so we never need the `index` @@ -12466,6 +12478,7 @@ def render_confidentiality_notice(): "MLPerf Dashboard", "LLM-D Dashboard", "vLLM CPU Dashboard", + "Omni Dashboard", ]: st.session_state.selected_view = view_from_url st.session_state.dashboard_view_selector = view_from_url @@ -12609,6 +12622,11 @@ def render_confidentiality_notice(): render_cpu_dashboard("cpu_dashboard.csv") st.stop() # Stop execution here, don't load RHAIIS data +# If Omni view is selected, render Omni dashboard and exit +if OMNI_AVAILABLE and selected_view == "Omni Dashboard": + render_omni_dashboard("datasets/omni/consolidated_dashboard_omni_sample.csv") + st.stop() # Stop execution here, don't load RHAIIS data + # Otherwise, continue with RHAIIS dashboard DATA_FILE = "consolidated_dashboard.csv" diff --git a/datasets/omni/consolidated_dashboard_omni_metadata.example.json b/datasets/omni/consolidated_dashboard_omni_metadata.example.json new file mode 100644 index 0000000..012eb02 --- /dev/null +++ b/datasets/omni/consolidated_dashboard_omni_metadata.example.json @@ -0,0 +1,28 @@ +{ + "defaults": { + "schema_version": "1.0", + "source_format": "vllm-omni-bench-json", + "runtime": "vllm-omni", + "runtime_version": "vllm-omni-0.30.0", + "vllm_version": "0.30.0", + "vllm_omni_version": "0.30.0", + "benchmark_tool": "vllm-omni-bench-serve", + "load_generator": "vllm-omni-bench-serve", + "image_tag": "example/vllm-omni:0.30.0", + "cluster": "demo", + "namespace": "demo", + "modality": "audio", + "input_modality": "text", + "output_modality": "audio", + "task_type": "voice_clone", + "dataset": "seed-tts", + "dataset_path": "/data/datasets/seed-tts", + "locale": "en", + "num_warmups": 0, + "prefix_caching": false, + "audio_sample_rate_hz": 24000, + "gpu_model": "H200", + "gpu_count": 1, + "tp": 1 + } +} diff --git a/datasets/omni/consolidated_dashboard_omni_sample.csv b/datasets/omni/consolidated_dashboard_omni_sample.csv new file mode 100644 index 0000000..6dc532f --- /dev/null +++ b/datasets/omni/consolidated_dashboard_omni_sample.csv @@ -0,0 +1,4 @@ +schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_model,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file +1.0,demo,2026-01-01T00:00:00Z,demo-tts-c1,demo-tts-c1,1,,,,demo,demo,,,,example/tts-1b,main,vllm-omni,vllm-omni-0.30.0,0.30.0,0.30.0,example/vllm-omni:0.30.0,,H200,H200,1,1,1,1,audio,text,audio,voice_clone,vllm-omni-bench-serve,0.30.0,vllm-omni-bench-serve,seed-tts,/data/datasets/seed-tts,en,en,100,,inf,1,1.0,,,,,false,,,"{""task_type"":""Base""}",vllm-omni serve --omni,,,,42.3,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2.36,,,115.2,110.0,,,,,,158.8,,0.103,0.100,,,,,,0.123,,,,,,,0.068,,,0.074,,9.84,,,24000,1.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +1.0,demo,2026-01-01T00:00:00Z,demo-asr,demo-asr,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,example,hf-open-asr-leaderboard,librispeech,,test.clean,,,2620,,,,,,,,false,,,,vllm-omni serve --omni,,,,,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.051,0.049,0.053,412.0,5.1,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.051,,, +1.0,demo,2026-01-01T00:00:00Z,demo-text-c8,demo-text-c8,1,,,,demo,demo,,,,example/llm-8b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,text,text,text,text_to_text,guidellm,0.6.0,guidellm,sharegpt,,,,100,,inf,8,8.0,,,,,false,,,,vllm-omni serve --omni,,,,20.0,100,0,,,,,,,,,,,130.0,120.0,,,,,,180.0,200.0,10.5,10.0,,,12.0,13.0,9.5,9.0,,,11.0,12.0,950.0,900.0,,,,,,1200.0,1300.0,,,5.0,500.0,800.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, diff --git a/datasets/omni/consolidated_dashboard_omni_template.csv b/datasets/omni/consolidated_dashboard_omni_template.csv new file mode 100644 index 0000000..8068407 --- /dev/null +++ b/datasets/omni/consolidated_dashboard_omni_template.csv @@ -0,0 +1 @@ +schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_model,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md new file mode 100644 index 0000000..2b3d376 --- /dev/null +++ b/docs/omni-dashboard.md @@ -0,0 +1,127 @@ +# Omni Dashboard + +The Omni dashboard is a separate view in the performance dashboard for benchmarks whose input and/or output is audio. It covers: + +- **Speech-out (TTS)**: audio TTFP, RTF, underrun, audio throughput, continuity +- **Speech-in (ASR)**: WER, RTFx, transcription throughput +- **Text**: TTFT, TPOT, ITL, E2EL, token throughput +- **Future modalities**: image/video/omni rows can be added without changing the dashboard + +The dashboard is a *view* over the same metrics pipeline. It does not change collection or any other dashboard. + +## Data sources + +| Mode | Location | +|---|---| +| Local | `datasets/omni/consolidated_dashboard_omni.csv` | +| S3 | `s3://$S3_BUCKET/$S3_KEY_OMNI` (default key: `consolidated_dashboard_omni.csv`) | + +Included in the repo: + +| File | Purpose | +|---|---| +| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 166-column template | +| `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR, and text example rows | +| `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | + +The sample uses only `example/...` models and `demo` metadata. Do not commit production hostnames, deployment IDs, MLflow IDs, private image digests, or credentials. + +## Row granularity + +One row per benchmark point: + +``` +model + runtime/version + task + dataset + concurrency/request_rate + repetition +``` + +Blanks are allowed for fields that do not apply to a modality. The dashboard filters on `modality`, `task_type`, and `load_generator`; never compare rows across task types without checking the metric semantics. + +## Required columns + +Every row must have: + +- `model` +- `task_type` +- `benchmark_tool` +- `load_generator` + +Online TTS/text rows must also have `concurrency`. Offline ASR rows may leave `concurrency` blank because the leaderboard-style evaluation has no concurrency axis. + +`benchmark_tool` is the exact CLI/tool; `load_generator` is the dashboard-facing family: + +| `load_generator` | Typical `benchmark_tool` | +|---|---| +| `guidellm` | `guidellm` | +| `vllm-omni-bench-serve` | `vllm-omni bench serve` | +| `hf-open-asr-leaderboard` | HF ASR harness | + +## Column groups + +### Core + +`schema_version`, `source_format`, `timestamp_utc`, `run_name`, `benchmark_run_id`, `repetition`, `mlflow_run_id`, `mlflow_parent_run_id`, `mlflow_experiment_id`, `cluster`, `namespace`, `deployment_uuid`, `deployment_pod_name`, `grafana_dashboard_uid`, `model`, `model_revision`, `runtime`, `runtime_version`, `vllm_version`, `vllm_omni_version`, `image_tag`, `image_digest`, `accelerator`, `gpu_model`, `gpu_count`, `tp`, `pp`, `dp`, `modality`, `input_modality`, `output_modality`, `task_type`, `benchmark_tool`, `benchmark_tool_version`, `load_generator`, `dataset`, `dataset_path`, `dataset_split`, `locale`, `num_prompts`, `num_utterances`, `request_rate`, `concurrency`, `measured_concurrency`, `num_warmups`, `turns`, `prefix_tokens`, `prefix_count`, `prefix_caching`, `spec_decoding`, `request_type`, `extra_body_json`, `runtime_args`, `env_vars_json`, `max_num_seqs`, `max_num_batched_tokens`, `duration_s`, `successful_requests`, `errored_requests`, `benchmark_start_ms`, `benchmark_end_ms` + +### Text + +Prompt/output token means and P99, `ttft_ms_*`, `tpot_ms_*`, `itl_ms_*`, `e2el_ms_*`, `request_throughput_rps`, `output_token_throughput`, `total_token_throughput`. + +### Speech out + +`audio_ttfp_ms_*`, `audio_rtf_*`, `audio_duration_s_*`, `audio_underrun_s_*`, `audio_throughput_x`, `audio_output_duration_s_total`, `audio_frames_total`, `audio_sample_rate_hz`, `audio_continuity_ok_rate`. + +### ASR + +`wer`, `wer_ci_lower`, `wer_ci_upper`, `rtfx`, `transcription_throughput_utterances_s`, `audio_input_duration_s_total`, `normalization`, `language`. + +### Stage / system + +`stage_0_ttft_ms_*`, `stage_1_ttft_ms_*`, `stage_0_gen_time_ms_*`, `stage_1_gen_time_ms_*`, `transfer_tx_ms_*`, `stage_metrics_json`, optional `gpu_util_*`, `gpu_mem_used_mean_mb`, `gpu_power_mean_w`, `gpu_temp_max_c`. + +### Extensibility + +`quality_metric`, `quality_value`, `extra_json`, `notes`, `source_file`. + +**Rule:** add new metrics to `extra_json` first. Promote a field to a first-class column only when a dashboard panel needs to filter or chart it. This keeps the schema stable and avoids one-off columns. + +## Build the CSV + +```bash +python manual_runs/scripts/build_consolidated_omni_csv.py \ + --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ + --omni-json path/to/omni-json/ \ + --asr-csv path/to/asr-results.csv \ + --output datasets/omni/consolidated_dashboard_omni.csv +``` + +Inputs: + +- `--omni-json` — vLLM-Omni `bench serve --save-result` JSON file/dir/glob (repeatable) +- `--asr-csv` / `--asr-json` — optional ASR results (repeatable) +- `--legacy-csv` — optional legacy benchmark CSV +- `--metadata-json` — optional defaults/pattern overrides +- `--template` — optional path to write the header-only template + +The converter prints a JSON summary with row counts, modality/task breakdown, and required-field blanks. + +## Dashboard filters + +The Omni view exposes: + +- Modality +- Task type +- Load generator +- Model +- Runtime version +- Accelerator +- Concurrency + +Tabs: Overview, Throughput, Speech Out, Text Latency, ASR Quality, Data (with CSV download). + +## Metric notes + +- TTS RTF: lower is better; `<1.0` is faster than real time. `audio_rtf_p95 > 1.0` is the first sign the tail is no longer real-time. +- Audio TTFP: first audio packet latency, not text TTFT. +- Audio underrun: simulated playback gap; `>0` indicates silent gaps. Common SLO: `<100 ms`. +- ASR RTFx: audio-seconds processed per wall-second; higher is better. +- ASR WER: lower is better; report the normalization and dataset split. +- Per-token metrics (TTFT/TPOT/ITL) are text-output metrics. Pure TTS rows have no text output tokens, so those fields are blank; use audio TTFP for first-output latency. diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/build_consolidated_omni_csv.py new file mode 100644 index 0000000..7b315f2 --- /dev/null +++ b/manual_runs/scripts/build_consolidated_omni_csv.py @@ -0,0 +1,632 @@ +#!/usr/bin/env python3 +"""Build the consolidated Omni benchmark dashboard CSV. + +One row per benchmark point (model + runtime + task + dataset + concurrency/ +request-rate + repetition). Blanks are allowed for modality-inapplicable +fields; the dashboard should filter on modality/task_type. + +Usage: + python3 build_consolidated_omni_csv.py \ + --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ + --omni-json path/to/omni-json/ \ + --legacy-csv path/to/legacy-benchmark_results.csv \ + --output datasets/omni/consolidated_dashboard_omni.csv + +Future metrics go in `extra_json` until promoted to a first-class column. +""" +import argparse +import csv +import datetime as dt +import fnmatch +import glob +import json +import os +import re +from collections import Counter + +SCHEMA_VERSION = "1.0" + +CORE_COLUMNS = [ + "schema_version", "source_format", "timestamp_utc", "run_name", + "benchmark_run_id", "repetition", "mlflow_run_id", "mlflow_parent_run_id", "mlflow_experiment_id", + "cluster", "namespace", "deployment_uuid", "deployment_pod_name", + "grafana_dashboard_uid", + "model", "model_revision", "runtime", "runtime_version", + "vllm_version", "vllm_omni_version", "image_tag", "image_digest", + "accelerator", "gpu_model", "gpu_count", "tp", "pp", "dp", + "modality", "input_modality", "output_modality", "task_type", + "benchmark_tool", "benchmark_tool_version", "load_generator", + "dataset", "dataset_path", "dataset_split", "locale", + "num_prompts", "num_utterances", "request_rate", "concurrency", + "measured_concurrency", "num_warmups", "turns", "prefix_tokens", + "prefix_count", "prefix_caching", "spec_decoding", "request_type", + "extra_body_json", "runtime_args", "env_vars_json", + "max_num_seqs", "max_num_batched_tokens", + "duration_s", "successful_requests", "errored_requests", + "benchmark_start_ms", "benchmark_end_ms", +] + +TEXT_COLUMNS = [ + "prompt_tokens_requested", "output_tokens_requested", + "prompt_tokens_total", "output_tokens_total", + "prompt_tokens_mean", "prompt_tokens_p99", + "output_tokens_mean", "output_tokens_p99", + "ttft_ms_mean", "ttft_ms_median", "ttft_ms_std", "ttft_ms_p25", + "ttft_ms_p50", "ttft_ms_p75", "ttft_ms_p90", "ttft_ms_p95", "ttft_ms_p99", + "tpot_ms_mean", "tpot_ms_median", "tpot_ms_std", "tpot_ms_p50", + "tpot_ms_p95", "tpot_ms_p99", + "itl_ms_mean", "itl_ms_median", "itl_ms_std", "itl_ms_p50", + "itl_ms_p95", "itl_ms_p99", + "e2el_ms_mean", "e2el_ms_median", "e2el_ms_std", "e2el_ms_p25", + "e2el_ms_p50", "e2el_ms_p75", "e2el_ms_p90", "e2el_ms_p95", + "e2el_ms_p99", "e2el_ms_min", "e2el_ms_max", + "request_throughput_rps", "output_token_throughput", + "total_token_throughput", +] + +SPEECH_COLUMNS = [ + "audio_ttfp_ms_mean", "audio_ttfp_ms_median", "audio_ttfp_ms_std", + "audio_ttfp_ms_p25", "audio_ttfp_ms_p50", "audio_ttfp_ms_p75", + "audio_ttfp_ms_p90", "audio_ttfp_ms_p95", "audio_ttfp_ms_p99", + "audio_rtf_mean", "audio_rtf_median", "audio_rtf_std", "audio_rtf_p25", + "audio_rtf_p50", "audio_rtf_p75", "audio_rtf_p90", "audio_rtf_p95", + "audio_rtf_p99", + "audio_duration_s_mean", "audio_duration_s_median", "audio_duration_s_p50", + "audio_duration_s_p95", "audio_duration_s_p99", + "audio_underrun_s_mean", "audio_underrun_s_median", + "audio_underrun_s_p50", "audio_underrun_s_p95", "audio_underrun_s_p99", + "audio_throughput_x", "audio_output_duration_s_total", + "audio_frames_total", "audio_sample_rate_hz", + "audio_continuity_ok_rate", +] + +ASR_COLUMNS = [ + "wer", "wer_ci_lower", "wer_ci_upper", "rtfx", + "transcription_throughput_utterances_s", + "audio_input_duration_s_total", "normalization", "language", +] + +STAGE_COLUMNS = [ + "stage_0_ttft_ms_p50", "stage_0_ttft_ms_p95", + "stage_1_ttft_ms_p50", "stage_1_ttft_ms_p95", + "stage_0_gen_time_ms_p50", "stage_0_gen_time_ms_p95", + "stage_1_gen_time_ms_p50", "stage_1_gen_time_ms_p95", + "transfer_tx_ms_p50", "transfer_tx_ms_p95", "stage_metrics_json", + "gpu_util_mean", "gpu_util_p95", "gpu_mem_used_mean_mb", + "gpu_power_mean_w", "gpu_temp_max_c", +] + +EXTRA_COLUMNS = ["quality_metric", "quality_value", "extra_json", "notes", "source_file"] + +CANONICAL_COLUMNS = ( + CORE_COLUMNS + TEXT_COLUMNS + SPEECH_COLUMNS + ASR_COLUMNS + + STAGE_COLUMNS + EXTRA_COLUMNS +) + +RAW_LIST_KEYS = { + "ttfts", "tpots", "itls", "e2els", "generated_texts", "errors", + "audio_ttfps", "audio_durations", "audio_frames", "stage_gen_times_ms", + "postprocess_times_ms", "serving_time_to_first_outputs_ms", + "time_per_output_units_ms", "inter_output_latencies_ms", +} + +STATS = ("mean", "median", "std", "p25", "p50", "p75", "p90", "p95", "p99", "min", "max") +PERCENTILE_SETS = { + "audio_ttfp_ms": "audio_ttfp_ms", + "audio_rtf": "audio_rtf", + "audio_duration_s": "audio_duration_s", + "audio_underrun_s": "audio_underrun_s", + "e2el_ms": "e2el_ms", + "ttft_ms": "ttft_ms", + "tpot_ms": "tpot_ms", + "itl_ms": "itl_ms", +} + + +def sget(d, *keys, default=""): + for k in keys: + v = d.get(k) + if v is not None and v != "": + return v + return default + + +def fnum(v): + if v is None or v == "": + return "" + if isinstance(v, bool): + return "true" if v else "false" + if isinstance(v, float) and v != v: # NaN + return "" + return str(v) + + +def jdump(v): + if v is None or v == "" or v == {} or v == []: + return "" + return json.dumps(v, sort_keys=True, separators=(",", ":"), default=str) + + +def parse_timestamp(value, fallback_path): + if value: + value = str(value) + for fmt in ("%Y%m%d-%H%M%S", "%Y-%m-%dT%H:%M:%SZ", + "%Y-%m-%dT%H:%M:%S", "%Y-%m-%d %H:%M:%S"): + try: + parsed = dt.datetime.strptime(value, fmt) + return parsed.replace(tzinfo=dt.timezone.utc).isoformat() + except ValueError: + pass + return value + try: + mtime = os.path.getmtime(fallback_path) + return dt.datetime.fromtimestamp(mtime, tz=dt.timezone.utc).isoformat() + except OSError: + return "" + + +def relpath(path): + return os.path.relpath(os.path.abspath(path), os.getcwd()).replace(os.sep, "/") + + +def load_metadata(path): + if not path: + return {} + with open(path) as f: + return json.load(f) + + +def match_meta(metadata, rel): + meta = dict(metadata.get("defaults", {})) + pattern_meta = {} + for pattern in metadata.get("patterns", []): + glob_pat = pattern.get("glob", "") + if glob_pat and fnmatch.fnmatch(rel, glob_pat): + pattern_meta = dict(pattern) + break + for k, v in pattern_meta.items(): + if k not in ("glob", "run_name_template", "mlflow_run_id_by_concurrency", + "bench_log_dir"): + meta[k] = v + meta["run_name_template"] = pattern_meta.get("run_name_template", "") + meta["mlflow_run_id_by_concurrency"] = pattern_meta.get("mlflow_run_id_by_concurrency", {}) + meta["bench_log_dir"] = pattern_meta.get("bench_log_dir", "") + meta["_pattern"] = pattern_meta + return meta + + +def apply_meta(row, meta, source, concurrency, stem): + for k, v in meta.items(): + if k.startswith("_") or k in ( + "run_name_template", "mlflow_run_id_by_concurrency", "bench_log_dir"): + continue + if k in row and row[k] == "": + row[k] = v + template = meta.get("run_name_template") + if template: + row["run_name"] = template.format( + concurrency=concurrency, stem=stem, + model=sget(source, "model_id", "model", default=row.get("model", "")), + task_type=row.get("task_type", ""), + ) + elif not row.get("run_name"): + row["run_name"] = stem + if concurrency != "": + by_conc = meta.get("mlflow_run_id_by_concurrency", {}) + if str(concurrency) in by_conc: + row["mlflow_run_id"] = by_conc[str(concurrency)] + row["benchmark_run_id"] = row.get("benchmark_run_id") or row["run_name"] + + +def map_stats(row, prefix, source, src_prefix): + for stat in STATS: + v = source.get(f"{stat}_{src_prefix}") + col = f"{prefix}_{stat}" + if v is not None and col in row: + row[col] = fnum(v) + + +def continuity_rate(meta, stem): + log_dir = meta.get("bench_log_dir", "") + if not log_dir: + return "" + path = os.path.join(log_dir, stem + ".log") + if not os.path.isfile(path): + return "" + try: + text = open(path, errors="replace").read() + except OSError: + return "" + matches = re.findall(r"Streaming continuity OK rate:\s*([0-9.]+)%", text) + if not matches: + return "" + return fnum(float(matches[-1]) / 100.0) + + +def build_omni_row(path, metadata): + stem = os.path.splitext(os.path.basename(path))[0] + rel = relpath(path) + meta = match_meta(metadata, rel) + with open(path) as f: + d = json.load(f) + + model = sget(d, "model_id", "model", default=meta.get("model", "")) + conc = sget(d, "max_concurrency", "concurrency", default="") + try: + conc_int = int(float(conc)) if conc != "" else "" + except (TypeError, ValueError): + conc_int = "" + if not model or conc_int == "": + raise ValueError(f"{rel}: missing model_id or max_concurrency") + + row = {c: "" for c in CANONICAL_COLUMNS} + row["schema_version"] = meta.get("schema_version", SCHEMA_VERSION) + row["source_format"] = meta.get("source_format", "vllm-omni-bench-json") + row["source_file"] = rel + row["model"] = model + row["concurrency"] = conc_int + row["repetition"] = meta.get("repetition", "1") + row["num_prompts"] = fnum(d.get("num_prompts", "")) + row["request_rate"] = fnum(d.get("request_rate", "")) + row["duration_s"] = fnum(d.get("duration", "")) + row["successful_requests"] = fnum(sget(d, "completed", "successful_requests", default="")) + row["errored_requests"] = fnum(sget(d, "failed", "errored_requests", default="")) + row["request_throughput_rps"] = fnum(d.get("request_throughput", "")) + row["output_token_throughput"] = fnum(d.get("output_throughput", "")) + row["total_token_throughput"] = fnum(d.get("total_token_throughput", "")) + row["prompt_tokens_total"] = fnum(d.get("total_input_tokens", "")) + row["output_tokens_total"] = fnum(d.get("total_output_tokens", "")) + row["audio_throughput_x"] = fnum(d.get("audio_throughput", "")) + row["audio_output_duration_s_total"] = fnum(d.get("total_audio_duration_s", "")) + row["audio_frames_total"] = fnum(d.get("total_audio_frames", "")) + row["audio_sample_rate_hz"] = fnum(meta.get("audio_sample_rate_hz", "")) + + map_stats(row, "audio_ttfp_ms", d, "audio_ttfp_ms") + map_stats(row, "audio_rtf", d, "audio_rtf") + map_stats(row, "audio_duration_s", d, "audio_duration_s") + map_stats(row, "audio_underrun_s", d, "audio_underrun_s") + map_stats(row, "e2el_ms", d, "e2el_ms") + map_stats(row, "ttft_ms", d, "ttft_ms") + map_stats(row, "tpot_ms", d, "tpot_ms") + map_stats(row, "itl_ms", d, "itl_ms") + + stage = { + "mean": d.get("stage_durations_mean"), + "p50": d.get("stage_durations_p50"), + "p99": d.get("stage_durations_p99"), + } + if any(stage.values()): + row["stage_metrics_json"] = jdump(stage) + + continuity = continuity_rate(meta, stem) + if continuity != "": + row["audio_continuity_ok_rate"] = continuity + + apply_meta(row, meta, d, conc_int, stem) + row["load_generator"] = row.get("load_generator") or meta.get("load_generator") or row.get("benchmark_tool") or "vllm-omni-bench-serve" + row["timestamp_utc"] = row.get("timestamp_utc") or parse_timestamp(d.get("date"), path) + row["audio_sample_rate_hz"] = row.get("audio_sample_rate_hz") or fnum(meta.get("audio_sample_rate_hz", "")) + + consumed = { + "model_id", "model", "max_concurrency", "concurrency", "num_prompts", + "request_rate", "duration", "completed", "failed", "successful_requests", + "errored_requests", "request_throughput", "output_throughput", + "total_token_throughput", "total_input_tokens", "total_output_tokens", + "audio_throughput", "total_audio_duration_s", "total_audio_frames", + "stage_durations_mean", "stage_durations_p50", "stage_durations_p99", + } + for src_prefix in PERCENTILE_SETS: + for stat in STATS: + consumed.add(f"{stat}_{src_prefix}") + extra = {k: v for k, v in d.items() if k not in consumed and k not in RAW_LIST_KEYS} + row["extra_json"] = jdump(extra) + row["notes"] = meta.get("notes", "") + return row + + +def normalize_task(task): + task = (task or "").strip().lower() + return {"custom_voice": "default_voice"}.get(task, task) + + +def build_legacy_row(r, path, metadata): + defaults = metadata.get("legacy_defaults", {}) + row = {c: "" for c in CANONICAL_COLUMNS} + row.update({k: v for k, v in defaults.items() if k in row}) + row["schema_version"] = defaults.get("schema_version", SCHEMA_VERSION) + row["source_format"] = "legacy-3.5-csv" + row["source_file"] = relpath(path) + row["timestamp_utc"] = r.get("timestamp", "") + row["repetition"] = "1" + row["model"] = r.get("model", "") + row["runtime_version"] = r.get("version", "") + row["tp"] = fnum(r.get("tp", "")) + row["accelerator"] = r.get("accelerator", "") + row["gpu_model"] = r.get("accelerator", "") + row["image_tag"] = r.get("image_tag", "") + row["modality"] = "audio" + row["input_modality"] = "text" + row["output_modality"] = "audio" + legacy_task = r.get("task_type", "") + row["task_type"] = normalize_task(legacy_task) + row["benchmark_tool"] = defaults.get("benchmark_tool", "vllm-omni-bench-serve") + row["load_generator"] = defaults.get("load_generator", row["benchmark_tool"]) + row["runtime_args"] = r.get("runtime_args", "") + row["concurrency"] = fnum(r.get("concurrency", "")) + row["num_prompts"] = fnum(r.get("num_prompts", "")) + row["request_rate"] = fnum(r.get("request_rate", "")) + row["duration_s"] = fnum(r.get("total_duration_s", "")) + row["successful_requests"] = fnum(r.get("successful_requests", "")) + row["errored_requests"] = fnum(r.get("errored_requests", "")) + row["request_throughput_rps"] = fnum(r.get("request_throughput", "")) + row["audio_throughput_x"] = fnum(r.get("audio_throughput", "")) + row["audio_output_duration_s_total"] = fnum(r.get("audio_duration_total", "")) + row["audio_sample_rate_hz"] = fnum(defaults.get("audio_sample_rate_hz", "")) + + for stat in ("mean", "median", "std", "p25", "p50", "p75", "p90", "p95", "p99"): + row[f"audio_rtf_{stat}"] = fnum(r.get(f"audio_rtf_{stat}", "")) + row[f"audio_ttfp_ms_{stat}"] = fnum(r.get(f"audio_ttfp_{stat}", "")) + row[f"e2el_ms_{stat}"] = fnum(r.get(f"e2el_{stat}", "")) + row[f"ttft_ms_{stat}"] = fnum(r.get(f"ttft_{stat}", "")) + row["e2el_ms_min"] = fnum(r.get("e2el_min", "")) + row["e2el_ms_max"] = fnum(r.get("e2el_max", "")) + for stat in ("mean", "median", "p50", "p95", "p99"): + row[f"audio_duration_s_{stat}"] = fnum(r.get(f"audio_duration_{stat}", "")) + row[f"audio_underrun_s_{stat}"] = fnum(r.get(f"audio_underrun_{stat}", "")) + row["audio_duration_s_mean"] = fnum(r.get("audio_duration_mean", row["audio_duration_s_mean"])) + row["audio_duration_s_median"] = fnum(r.get("audio_duration_median", row["audio_duration_s_median"])) + row["audio_duration_s_p99"] = fnum(r.get("audio_duration_p99", row["audio_duration_s_p99"])) + row["audio_underrun_s_mean"] = fnum(r.get("audio_underrun_mean", row["audio_underrun_s_mean"])) + row["audio_underrun_s_median"] = fnum(r.get("audio_underrun_median", row["audio_underrun_s_median"])) + row["audio_underrun_s_p99"] = fnum(r.get("audio_underrun_p99", row["audio_underrun_s_p99"])) + + if legacy_task == "voice_clone": + row["extra_body_json"] = '{"task_type":"Base"}' + elif legacy_task == "custom_voice": + row["extra_body_json"] = '{"task_type":"CustomVoice"}' + elif legacy_task == "voice_design": + row["extra_body_json"] = '{"task_type":"VoiceDesign"}' + row["prefix_caching"] = defaults.get("prefix_caching", "false") + row["run_name"] = f"legacy-3.5-{row['model']}-{row['task_type']}-{row['runtime_version']}-c{row['concurrency']}" + row["benchmark_run_id"] = r.get("json_file", "") or row["run_name"] + row["notes"] = defaults.get("notes", "Imported from legacy benchmark CSV") + row["extra_json"] = jdump({ + "legacy_task_type": legacy_task, + "legacy_modality": r.get("modality", ""), + "legacy_version": r.get("version", ""), + "json_file": r.get("json_file", ""), + "legacy_benchmark_tool": r.get("benchmark_tool", ""), + }) + return row + + +ASR_ALIASES = { + "model": ("model", "model_id", "model_name"), + "runtime": ("runtime", "engine"), + "runtime_version": ("runtime_version", "version", "image_version"), + "image_tag": ("image_tag", "image"), + "accelerator": ("accelerator", "gpu_model", "gpu"), + "tp": ("tp", "tensor_parallel_size"), + "dataset": ("dataset", "dataset_name"), + "dataset_split": ("dataset_split", "split"), + "language": ("language", "lang"), + "num_utterances": ("num_utterances", "num_prompts", "num_requests", "count"), + "wer": ("wer", "WER", "word_error_rate"), + "wer_ci_lower": ("wer_ci_lower", "wer_ci_low", "wer_ci_lower_95"), + "wer_ci_upper": ("wer_ci_upper", "wer_ci_high", "wer_ci_upper_95"), + "rtfx": ("rtfx", "RTFx", "RTFX", "rtf_x"), + "transcription_throughput_utterances_s": ( + "transcription_throughput_utterances_s", "utterances_per_s", + "throughput_utterances_s", "transcription_throughput"), + "audio_input_duration_s_total": ( + "audio_input_duration_s_total", "audio_duration_total_s", + "total_audio_duration_s", "audio_seconds"), + "normalization": ("normalization", "normalizer", "text_normalization"), + "timestamp_utc": ("timestamp_utc", "timestamp", "date"), + "cluster": ("cluster", "cluster_name"), + "namespace": ("namespace",), + "deployment_uuid": ("deployment_uuid", "uuid"), + "mlflow_run_id": ("mlflow_run_id", "run_id"), + "mlflow_experiment_id": ("mlflow_experiment_id", "experiment_id"), + "benchmark_tool": ("benchmark_tool", "tool"), + "benchmark_tool_version": ("benchmark_tool_version", "tool_version"), + "load_generator": ("load_generator", "generator", "load_tool"), + "duration_s": ("duration_s", "total_duration_s", "duration"), +} + + +def pick(row, aliases): + for key in aliases: + if key in row and row[key] not in (None, ""): + return row[key] + return "" + + +def build_asr_row(r, path, metadata): + defaults = metadata.get("asr_defaults", {}) + model = pick(r, ASR_ALIASES["model"]) + wer = pick(r, ASR_ALIASES["wer"]) + if not model or wer == "": + raise ValueError(f"{relpath(path)}: ASR row missing model or wer") + row = {c: "" for c in CANONICAL_COLUMNS} + row.update({k: v for k, v in defaults.items() if k in row}) + row["schema_version"] = defaults.get("schema_version", SCHEMA_VERSION) + row["source_format"] = "asr-csv" + row["source_file"] = relpath(path) + row["timestamp_utc"] = pick(r, ASR_ALIASES["timestamp_utc"]) + row["repetition"] = "1" + row["model"] = model + row["runtime"] = pick(r, ASR_ALIASES["runtime"]) or defaults.get("runtime", "vllm") + row["runtime_version"] = pick(r, ASR_ALIASES["runtime_version"]) + row["image_tag"] = pick(r, ASR_ALIASES["image_tag"]) + row["accelerator"] = pick(r, ASR_ALIASES["accelerator"]) + row["gpu_model"] = row["accelerator"] + row["tp"] = fnum(pick(r, ASR_ALIASES["tp"])) + row["modality"] = "audio" + row["input_modality"] = "audio" + row["output_modality"] = "text" + row["task_type"] = "asr_transcription" + row["benchmark_tool"] = pick(r, ASR_ALIASES["benchmark_tool"]) or defaults.get("benchmark_tool", "") + row["benchmark_tool_version"] = pick(r, ASR_ALIASES["benchmark_tool_version"]) + row["load_generator"] = pick(r, ASR_ALIASES["load_generator"]) or row["benchmark_tool"] or defaults.get("load_generator", "") + row["dataset"] = pick(r, ASR_ALIASES["dataset"]) + row["dataset_split"] = pick(r, ASR_ALIASES["dataset_split"]) + row["language"] = pick(r, ASR_ALIASES["language"]) + row["num_utterances"] = fnum(pick(r, ASR_ALIASES["num_utterances"])) + row["wer"] = fnum(wer) + row["wer_ci_lower"] = fnum(pick(r, ASR_ALIASES["wer_ci_lower"])) + row["wer_ci_upper"] = fnum(pick(r, ASR_ALIASES["wer_ci_upper"])) + row["rtfx"] = fnum(pick(r, ASR_ALIASES["rtfx"])) + row["transcription_throughput_utterances_s"] = fnum( + pick(r, ASR_ALIASES["transcription_throughput_utterances_s"])) + row["audio_input_duration_s_total"] = fnum( + pick(r, ASR_ALIASES["audio_input_duration_s_total"])) + row["normalization"] = pick(r, ASR_ALIASES["normalization"]) + row["duration_s"] = fnum(pick(r, ASR_ALIASES["duration_s"])) + row["successful_requests"] = row["num_utterances"] + row["cluster"] = pick(r, ASR_ALIASES["cluster"]) + row["namespace"] = pick(r, ASR_ALIASES["namespace"]) + row["deployment_uuid"] = pick(r, ASR_ALIASES["deployment_uuid"]) + row["mlflow_run_id"] = pick(r, ASR_ALIASES["mlflow_run_id"]) + row["mlflow_experiment_id"] = pick(r, ASR_ALIASES["mlflow_experiment_id"]) + row["quality_metric"] = "wer" + row["quality_value"] = fnum(wer) + row["run_name"] = f"asr-{model}-{row['dataset']}-{row['language']}" + row["benchmark_run_id"] = row["run_name"] + row["notes"] = defaults.get("notes", "Imported from ASR results") + row["extra_json"] = jdump({k: v for k, v in r.items() if k not in CANONICAL_COLUMNS}) + return row + + +def expand_inputs(paths, include_calibration): + files = [] + for path in paths: + if os.path.isdir(path): + files.extend(sorted(glob.glob(os.path.join(path, "*.json")))) + elif any(ch in path for ch in "*?["): + files.extend(sorted(glob.glob(path))) + else: + files.append(path) + if not include_calibration: + files = [f for f in files if "calibration" not in os.path.basename(f).lower()] + return files + + +def csv_value(v): + if isinstance(v, bool): + return "true" if v else "false" + return "" if v is None else v + + +def main(): + ap = argparse.ArgumentParser(description=__doc__) + ap.add_argument("--omni-json", action="append", default=[], metavar="PATH", + help="vLLM-Omni bench JSON file/dir/glob (repeatable)") + ap.add_argument("--legacy-csv", default="", help="Existing legacy benchmark_results.csv") + ap.add_argument("--asr-csv", action="append", default=[], help="ASR results CSV (repeatable)") + ap.add_argument("--asr-json", action="append", default=[], help="ASR results JSON (repeatable)") + ap.add_argument("--metadata-json", default="", help="Metadata defaults/pattern overrides") + ap.add_argument("--output", default="datasets/omni/consolidated_dashboard_omni.csv") + ap.add_argument("--template", default="datasets/omni/consolidated_dashboard_omni_template.csv") + ap.add_argument("--include-calibration", action="store_true") + ap.add_argument("--strict", action="store_true", help="Exit nonzero if required fields are blank") + args = ap.parse_args() + + metadata = load_metadata(args.metadata_json) + rows, errors = [], [] + + for path in expand_inputs(args.omni_json, args.include_calibration): + try: + rows.append(build_omni_row(path, metadata)) + except Exception as exc: + errors.append(str(exc)) + + if args.legacy_csv: + with open(args.legacy_csv, newline="") as f: + for r in csv.DictReader(f): + try: + rows.append(build_legacy_row(r, args.legacy_csv, metadata)) + except Exception as exc: + errors.append(str(exc)) + + asr_paths = list(args.asr_csv) + for path in args.asr_json: + if os.path.isdir(path): + asr_paths.extend(sorted(glob.glob(os.path.join(path, "*.json")))) + else: + asr_paths.append(path) + for path in asr_paths: + try: + if path.lower().endswith(".csv"): + with open(path, newline="") as f: + for r in csv.DictReader(f): + rows.append(build_asr_row(r, path, metadata)) + else: + with open(path) as f: + data = json.load(f) + records = data if isinstance(data, list) else [data] + for r in records: + rows.append(build_asr_row(r, path, metadata)) + except Exception as exc: + errors.append(f"{path}: {exc}") + + deduped, seen = [], {} + for row in rows: + key = ( + row.get("model", ""), row.get("task_type", ""), + row.get("runtime_version", ""), row.get("dataset", ""), + row.get("concurrency", ""), row.get("request_rate", ""), + row.get("run_name", ""), row.get("repetition", ""), + ) + if key in seen: + errors.append(f"duplicate row kept last: {key}") + seen[key] = row + deduped = list(seen.values()) + + def sort_key(row): + try: + conc = int(float(row.get("concurrency") or 0)) + except ValueError: + conc = 0 + return (row.get("timestamp_utc", ""), row.get("model", ""), + row.get("task_type", ""), conc) + + deduped.sort(key=sort_key) + + for path in (args.output, args.template): + parent = os.path.dirname(path) + if parent: + os.makedirs(parent, exist_ok=True) + with open(args.output, "w", newline="") as f: + writer = csv.DictWriter(f, fieldnames=CANONICAL_COLUMNS, extrasaction="ignore", lineterminator="\n") + writer.writeheader() + for row in deduped: + writer.writerow({k: csv_value(row.get(k, "")) for k in CANONICAL_COLUMNS}) + with open(args.template, "w", newline="") as f: + csv.DictWriter(f, fieldnames=CANONICAL_COLUMNS, lineterminator="\n").writeheader() + + required_blank = Counter() + for row in deduped: + required = ["model", "task_type", "benchmark_tool", "load_generator"] + if row.get("task_type") != "asr_transcription": + required.append("concurrency") + for col in required: + if not row.get(col): + required_blank[col] += 1 + summary = { + "rows": len(deduped), + "by_modality": dict(Counter(r.get("modality", "") for r in deduped)), + "by_task": dict(Counter(r.get("task_type", "") for r in deduped)), + "by_source_format": dict(Counter(r.get("source_format", "") for r in deduped)), + "required_blank": dict(required_blank), + "errors": errors[:20], + "output": args.output, + "template": args.template, + } + print(json.dumps(summary, indent=2)) + if args.strict and required_blank: + raise SystemExit(2) + + +if __name__ == "__main__": + main() diff --git a/omni_dashboard.py b/omni_dashboard.py new file mode 100644 index 0000000..c42ff74 --- /dev/null +++ b/omni_dashboard.py @@ -0,0 +1,380 @@ +"""vLLM-Omni Performance Dashboard Module. + +Loads the consolidated Omni benchmark CSV (text, speech-out, and ASR) and +renders modality-aware performance and quality views. The module follows the +same S3/local-CSV loading pattern as ``llmd_dashboard.py``. +""" + +import logging +import os +import sys +from typing import Optional + +import numpy as np +import pandas as pd +import plotly.express as px +import streamlit as st + +# Configure logging +logging.basicConfig( + level=logging.INFO, + format="%(asctime)s - %(levelname)s - %(message)s", + handlers=[logging.StreamHandler(sys.stdout)], +) +logger = logging.getLogger(__name__) + +# S3 configuration (same env convention as the main dashboard) +S3_BUCKET = os.environ.get("S3_BUCKET") +S3_KEY_OMNI = os.environ.get("S3_KEY_OMNI", "consolidated_dashboard_omni.csv") +S3_REGION = os.environ.get("S3_REGION", "us-east-1") +AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID") +AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") + +NUMERIC_COLUMNS = [ + "concurrency", + "measured_concurrency", + "num_prompts", + "num_utterances", + "tp", + "pp", + "dp", + "gpu_count", + "request_throughput_rps", + "output_token_throughput", + "total_token_throughput", + "audio_throughput_x", + "audio_rtf_mean", + "audio_rtf_median", + "audio_rtf_p95", + "audio_rtf_p99", + "audio_ttfp_ms_mean", + "audio_ttfp_ms_median", + "audio_ttfp_ms_p95", + "audio_ttfp_ms_p99", + "audio_underrun_s_mean", + "audio_underrun_s_median", + "audio_underrun_s_p95", + "audio_underrun_s_p99", + "audio_continuity_ok_rate", + "ttft_ms_mean", + "ttft_ms_median", + "ttft_ms_p95", + "ttft_ms_p99", + "tpot_ms_mean", + "tpot_ms_median", + "tpot_ms_p95", + "tpot_ms_p99", + "itl_ms_mean", + "itl_ms_median", + "itl_ms_p95", + "itl_ms_p99", + "e2el_ms_mean", + "e2el_ms_median", + "e2el_ms_p95", + "e2el_ms_p99", + "wer", + "rtfx", + "transcription_throughput_utterances_s", + "audio_input_duration_s_total", + "audio_output_duration_s_total", +] + +FILTER_COLUMNS = [ + "modality", + "task_type", + "load_generator", + "model", + "runtime_version", + "accelerator", + "concurrency_label", +] + + +def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.DataFrame: + """Read a CSV from S3, using explicit credentials or anonymous access.""" + import boto3 + from botocore import UNSIGNED + from botocore.config import Config + + if AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: + client = boto3.client( + "s3", + region_name=region, + aws_access_key_id=AWS_ACCESS_KEY_ID, + aws_secret_access_key=AWS_SECRET_ACCESS_KEY, + ) + else: + client = boto3.client( + "s3", + region_name=region, + config=Config(signature_version=UNSIGNED), + ) + obj = client.get_object(Bucket=bucket, Key=key) + return pd.read_csv(obj["Body"], low_memory=False) + + +def _normalise(df: pd.DataFrame) -> pd.DataFrame: + """Normalise string columns, numeric metrics, and blank optional fields.""" + df = df.copy() + for col in df.select_dtypes(include=["object"]).columns: + df[col] = df[col].astype(str).str.strip() + df.loc[df[col].isin(["", "nan", "None", "NaN"]), col] = np.nan + + for col in NUMERIC_COLUMNS: + if col not in df.columns: + df[col] = np.nan + df[col] = pd.to_numeric(df[col], errors="coerce") + + if "load_generator" not in df.columns: + df["load_generator"] = np.nan + if "benchmark_tool" not in df.columns: + df["benchmark_tool"] = np.nan + df["load_generator"] = df["load_generator"].fillna(df["benchmark_tool"]) + + for col in ("modality", "task_type", "model", "runtime_version", "accelerator"): + if col not in df.columns: + df[col] = "unknown" + df[col] = df[col].fillna("unknown") + + def _conc_label(value): + if pd.isna(value): + return "n/a" + value = float(value) + return str(int(value)) if value.is_integer() else str(value) + + df["concurrency_label"] = df["concurrency"].apply(_conc_label) + df["series"] = ( + df["model"].astype(str) + + " | " + + df["runtime_version"].astype(str) + + " | " + + df["load_generator"].astype(str) + ) + return df + + +@st.cache_data(ttl=300) +def load_omni_data(file_path: str) -> Optional[pd.DataFrame]: + """Load Omni data from S3 when configured, otherwise from a local CSV.""" + try: + if S3_BUCKET: + try: + df = _read_csv_from_s3(S3_BUCKET, S3_KEY_OMNI, S3_REGION) + logger.info("Loaded Omni data from s3://%s/%s", S3_BUCKET, S3_KEY_OMNI) + except Exception as s3_error: + logger.warning("S3 load failed (%s); falling back to %s", s3_error, file_path) + df = pd.read_csv(file_path, low_memory=False) + else: + df = pd.read_csv(file_path, low_memory=False) + return _normalise(df) + except FileNotFoundError: + st.error(f"Omni data file not found: {file_path}") + return None + except Exception as exc: + st.error(f"Error loading Omni data from {file_path}: {exc}") + return None + + +def _sidebar_filters(df: pd.DataFrame) -> pd.DataFrame: + """Render Omni-specific sidebar filters and return the filtered frame.""" + st.sidebar.markdown("### Omni filters") + filtered = df.copy() + + def _multiselect(label, column): + values = sorted(v for v in df[column].dropna().unique() if str(v) != "unknown") + if not values: + return None + selected = st.sidebar.multiselect(label, values, default=values, key=f"omni_{column}") + return selected + + modality = _multiselect("Modality", "modality") + if modality is not None: + filtered = filtered[filtered["modality"].isin(modality)] + + task = _multiselect("Task type", "task_type") + if task is not None: + filtered = filtered[filtered["task_type"].isin(task)] + + generator = _multiselect("Load generator", "load_generator") + if generator is not None: + filtered = filtered[filtered["load_generator"].isin(generator)] + + for column, label in ( + ("model", "Model"), + ("runtime_version", "Runtime version"), + ("accelerator", "Accelerator"), + ): + values = sorted(v for v in df[column].dropna().unique() if str(v) != "unknown") + if values: + choice = st.sidebar.selectbox(label, ["All"] + values, key=f"omni_{column}") + if choice != "All": + filtered = filtered[filtered[column] == choice] + + conc_options = sorted( + df["concurrency_label"].dropna().unique(), + key=lambda v: (v == "n/a", float(v) if v != "n/a" else 0), + ) + if conc_options: + selected = st.sidebar.multiselect( + "Concurrency", conc_options, default=conc_options, key="omni_concurrency" + ) + filtered = filtered[filtered["concurrency_label"].isin(selected)] + + return filtered + + +def _line(df: pd.DataFrame, y: str, title: str, y_label: str, color: str = "series"): + """Render a concurrency line chart if the metric has data.""" + sub = df.dropna(subset=["concurrency", y]) + if sub.empty: + st.info(f"No {y_label} data for the current filters.") + return + fig = px.line( + sub.sort_values(["concurrency", color]), + x="concurrency", + y=y, + color=color, + markers=True, + title=title, + labels={"concurrency": "Concurrency", y: y_label, color: "Model | version | generator"}, + ) + fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) + st.plotly_chart(fig, use_container_width=True) + + +def _bar(df: pd.DataFrame, y: str, title: str, y_label: str, color: str = "model"): + """Render a bar chart for offline/ASR metrics.""" + sub = df.dropna(subset=[y]) + if sub.empty: + st.info(f"No {y_label} data for the current filters.") + return + fig = px.bar( + sub, + x=color, + y=y, + color=color, + title=title, + labels={y: y_label, color: color.replace("_", " ").title()}, + ) + fig.update_layout(showlegend=False, margin=dict(l=10, r=10, t=50, b=10)) + st.plotly_chart(fig, use_container_width=True) + + +def _overview(df: pd.DataFrame): + rows, models = len(df), df["model"].nunique() + col1, col2, col3, col4 = st.columns(4) + col1.metric("Benchmark rows", rows) + col2.metric("Models", models) + best_rps = df["request_throughput_rps"].max() + col3.metric("Best request throughput", f"{best_rps:.2f} req/s" if pd.notna(best_rps) else "n/a") + best_audio = df["audio_throughput_x"].max() + col4.metric("Best audio throughput", f"{best_audio:.2f}x" if pd.notna(best_audio) else "n/a") + + st.subheader("Coverage") + coverage = ( + df.groupby(["modality", "task_type", "load_generator"], dropna=False) + .agg(rows=("model", "size"), models=("model", "nunique")) + .reset_index() + .sort_values(["modality", "task_type"]) + ) + st.dataframe(coverage, use_container_width=True, hide_index=True) + + +def _throughput_tab(df: pd.DataFrame): + _line(df, "request_throughput_rps", "Request throughput", "Requests / second") + _line(df, "audio_throughput_x", "Audio throughput", "Audio-seconds / wall-second") + _line(df, "output_token_throughput", "Output token throughput", "Tokens / second") + _line(df, "total_token_throughput", "Total token throughput", "Tokens / second") + + +def _speech_tab(df: pd.DataFrame): + speech = df[df["output_modality"].eq("audio")] + if speech.empty: + st.info("No speech-output rows for the current filters.") + return + _line(speech, "audio_rtf_mean", "Mean audio RTF", "RTF (lower is better)") + _line(speech, "audio_rtf_p95", "P95 audio RTF", "RTF (lower is better)") + _line(speech, "audio_ttfp_ms_mean", "Mean audio TTFP", "Milliseconds") + _line(speech, "audio_underrun_s_mean", "Mean audio underrun", "Seconds") + sub = speech.dropna(subset=["concurrency", "audio_rtf_p95"]) + if not sub.empty: + fig = px.line( + sub.sort_values(["concurrency", "series"]), + x="concurrency", + y="audio_rtf_p95", + color="series", + markers=True, + title="P95 audio RTF with real-time boundary", + labels={"concurrency": "Concurrency", "audio_rtf_p95": "P95 RTF"}, + ) + fig.add_hline(y=1.0, line_dash="dash", annotation_text="real-time boundary") + fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) + st.plotly_chart(fig, use_container_width=True) + + +def _text_tab(df: pd.DataFrame): + text = df[ + df["output_modality"].eq("text") + & df["ttft_ms_median"].notna() + ] + if text.empty: + st.info("No text-latency rows for the current filters.") + return + _line(text, "ttft_ms_median", "Median TTFT", "Milliseconds") + _line(text, "tpot_ms_median", "Median TPOT", "Milliseconds") + _line(text, "itl_ms_median", "Median ITL", "Milliseconds") + _line(text, "e2el_ms_median", "Median end-to-end latency", "Milliseconds") + + +def _asr_tab(df: pd.DataFrame): + asr = df[df["task_type"].eq("asr_transcription") | df["wer"].notna()] + if asr.empty: + st.info("No ASR rows for the current filters.") + return + _bar(asr, "wer", "Word error rate", "WER (lower is better)") + _bar(asr, "rtfx", "RTFx", "Audio-seconds / wall-second") + _bar( + asr, + "transcription_throughput_utterances_s", + "Transcription throughput", + "Utterances / second", + ) + + +def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv"): + """Render the vLLM-Omni performance dashboard.""" + st.header("vLLM-Omni Performance") + st.caption( + "Speech-in, speech-out, and text benchmarks. Rows are filtered by modality, " + "task, load generator, model, runtime, and concurrency." + ) + df = load_omni_data(csv_path) + if df is None or df.empty: + st.warning("No Omni benchmark data is available.") + return + + filtered = _sidebar_filters(df) + if filtered.empty: + st.warning("No rows match the current filters.") + return + + tabs = st.tabs(["Overview", "Throughput", "Speech Out", "Text Latency", "ASR Quality", "Data"]) + with tabs[0]: + _overview(filtered) + with tabs[1]: + _throughput_tab(filtered) + with tabs[2]: + _speech_tab(filtered) + with tabs[3]: + _text_tab(filtered) + with tabs[4]: + _asr_tab(filtered) + with tabs[5]: + st.subheader("Filtered data") + st.dataframe(filtered, use_container_width=True, hide_index=True) + st.download_button( + "Download filtered CSV", + data=filtered.to_csv(index=False).encode("utf-8"), + file_name="consolidated_dashboard_omni_filtered.csv", + mime="text/csv", + ) diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py new file mode 100644 index 0000000..5df0379 --- /dev/null +++ b/tests/test_omni_csv.py @@ -0,0 +1,116 @@ +"""Tests for the consolidated Omni dashboard CSV schema and converter.""" + +import csv +import json +import subprocess +import sys +from pathlib import Path + +import pytest + +ROOT = Path(__file__).resolve().parents[1] +OMNI_DIR = ROOT / "datasets" / "omni" +TEMPLATE = OMNI_DIR / "consolidated_dashboard_omni_template.csv" +SAMPLE = OMNI_DIR / "consolidated_dashboard_omni_sample.csv" +METADATA = OMNI_DIR / "consolidated_dashboard_omni_metadata.example.json" +CONVERTER = ROOT / "manual_runs" / "scripts" / "build_consolidated_omni_csv.py" + +REQUIRED = {"model", "task_type", "benchmark_tool", "load_generator"} + + +def _read_csv(path): + with path.open(newline="") as handle: + return list(csv.DictReader(handle)) + + +def _header(path): + with path.open(newline="") as handle: + return next(csv.reader(handle)) + + +def test_template_and_sample_schema(): + header = _header(TEMPLATE) + assert len(header) == 166 + assert len(set(header)) == 166 + assert REQUIRED.issubset(header) + assert "extra_json" in header + assert "stage_metrics_json" in header + + rows = _read_csv(SAMPLE) + assert len(rows) == 3 + assert list(rows[0]) == header + assert {row["task_type"] for row in rows} == {"voice_clone", "asr_transcription", "text_to_text"} + assert {row["load_generator"] for row in rows} == { + "vllm-omni-bench-serve", + "hf-open-asr-leaderboard", + "guidellm", + } + for row in rows: + assert row["model"] + assert row["task_type"] + assert row["benchmark_tool"] + assert row["load_generator"] + if row["task_type"] != "asr_transcription": + assert row["concurrency"] + + +def test_sample_uses_placeholder_metadata(): + rows = _read_csv(SAMPLE) + assert {row["cluster"] for row in rows} == {"demo"} + assert {row["namespace"] for row in rows} == {"demo"} + assert all(not row["deployment_uuid"] for row in rows) + assert all(not row["mlflow_run_id"] for row in rows) + assert all(row["image_tag"].startswith("example/") for row in rows) + + +def test_converter_smoke(tmp_path): + result = { + "model_id": "example/tts-1b", + "max_concurrency": 1, + "num_prompts": 2, + "request_throughput": 1.0, + "completed": 2, + "failed": 0, + "mean_audio_rtf": 0.1, + "mean_audio_ttfp_ms": 100.0, + "audio_throughput": 10.0, + "total_audio_duration_s": 4.0, + "total_audio_frames": 96000, + } + json_path = tmp_path / "result.json" + json_path.write_text(json.dumps(result)) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--omni-json", + str(json_path), + "--metadata-json", + str(METADATA), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 1 + row = rows[0] + assert row["model"] == "example/tts-1b" + assert row["load_generator"] == "vllm-omni-bench-serve" + assert row["task_type"] == "voice_clone" + assert row["concurrency"] == "1" + assert row["model"] and row["benchmark_tool"] + assert len(_header(template)) == 166 + + +if __name__ == "__main__": + pytest.main([__file__]) From 871f783ae9bfc605f49bf9bd23fa6a90cf6870f3 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 12:51:20 -0500 Subject: [PATCH 02/74] Add GuideLLM audio-to-text sample row - Adds a sanitized ASR row using GuideLLM as both benchmark tool and load generator - Uses audio input, text output, RTFx and transcription throughput; WER intentionally blank - Updates the sample test and Omni dashboard docs --- datasets/omni/consolidated_dashboard_omni_sample.csv | 1 + docs/omni-dashboard.md | 2 +- tests/test_omni_csv.py | 12 +++++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/datasets/omni/consolidated_dashboard_omni_sample.csv b/datasets/omni/consolidated_dashboard_omni_sample.csv index 6dc532f..0a16dd0 100644 --- a/datasets/omni/consolidated_dashboard_omni_sample.csv +++ b/datasets/omni/consolidated_dashboard_omni_sample.csv @@ -2,3 +2,4 @@ schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition, 1.0,demo,2026-01-01T00:00:00Z,demo-tts-c1,demo-tts-c1,1,,,,demo,demo,,,,example/tts-1b,main,vllm-omni,vllm-omni-0.30.0,0.30.0,0.30.0,example/vllm-omni:0.30.0,,H200,H200,1,1,1,1,audio,text,audio,voice_clone,vllm-omni-bench-serve,0.30.0,vllm-omni-bench-serve,seed-tts,/data/datasets/seed-tts,en,en,100,,inf,1,1.0,,,,,false,,,"{""task_type"":""Base""}",vllm-omni serve --omni,,,,42.3,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2.36,,,115.2,110.0,,,,,,158.8,,0.103,0.100,,,,,,0.123,,,,,,,0.068,,,0.074,,9.84,,,24000,1.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1.0,demo,2026-01-01T00:00:00Z,demo-asr,demo-asr,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,example,hf-open-asr-leaderboard,librispeech,,test.clean,,,2620,,,,,,,,false,,,,vllm-omni serve --omni,,,,,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.051,0.049,0.053,412.0,5.1,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.051,,, 1.0,demo,2026-01-01T00:00:00Z,demo-text-c8,demo-text-c8,1,,,,demo,demo,,,,example/llm-8b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,text,text,text,text_to_text,guidellm,0.6.0,guidellm,sharegpt,,,,100,,inf,8,8.0,,,,,false,,,,vllm-omni serve --omni,,,,20.0,100,0,,,,,,,,,,,130.0,120.0,,,,,,180.0,200.0,10.5,10.0,,,12.0,13.0,9.5,9.0,,,11.0,12.0,950.0,900.0,,,,,,1200.0,1300.0,,,5.0,500.0,800.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +1.0,demo,2026-01-01T00:00:00Z,demo-asr-guidellm-c8,demo-asr-guidellm-c8,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,0.6.0,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8.0,,,,,false,,audio_transcription,,vllm serve --port 8080,,,,29.7,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,320.0,300.0,,,,,,450.0,520.0,,,3.37,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,25.0,3.37,742.5,,en,,,,,,,,,,,,,,,,,,,"{""backend"":""openai_http"",""endpoint"":""/v1/audio/transcriptions"",""note"":""GuideLLM audio-to-text; WER not computed""}",GuideLLM audio-to-text sample; WER not computed by GuideLLM, diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 2b3d376..7d73e54 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -21,7 +21,7 @@ Included in the repo: | File | Purpose | |---|---| | `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 166-column template | -| `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR, and text example rows | +| `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR (HF harness), audio-to-text (GuideLLM), and text example rows | | `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | The sample uses only `example/...` models and `demo` metadata. Do not commit production hostnames, deployment IDs, MLflow IDs, private image digests, or credentials. diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 5df0379..930822a 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -37,7 +37,7 @@ def test_template_and_sample_schema(): assert "stage_metrics_json" in header rows = _read_csv(SAMPLE) - assert len(rows) == 3 + assert len(rows) == 4 assert list(rows[0]) == header assert {row["task_type"] for row in rows} == {"voice_clone", "asr_transcription", "text_to_text"} assert {row["load_generator"] for row in rows} == { @@ -45,6 +45,16 @@ def test_template_and_sample_schema(): "hf-open-asr-leaderboard", "guidellm", } + audio_guidellm = [ + row + for row in rows + if row["task_type"] == "asr_transcription" and row["load_generator"] == "guidellm" + ] + assert len(audio_guidellm) == 1 + assert audio_guidellm[0]["input_modality"] == "audio" + assert audio_guidellm[0]["output_modality"] == "text" + assert audio_guidellm[0]["rtfx"] + assert not audio_guidellm[0]["wer"] for row in rows: assert row["model"] assert row["task_type"] From b92801a11b2dc3eaee68a921d576690c35f057cd Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 13:10:47 -0500 Subject: [PATCH 03/74] Refine Omni CSV schema and sample rows - Drop redundant gpu_model column; accelerator is the only hardware key - Keep exact GPU SKU optional in extra_json.gpu_sku - Use plain vllm serve for ASR and text examples; vllm-omni only for TTS - Leave load_generator blank for offline HF ASR accuracy rows - Add TTS output duration/frame totals and request types --- ...olidated_dashboard_omni_metadata.example.json | 1 - .../omni/consolidated_dashboard_omni_sample.csv | 10 +++++----- .../consolidated_dashboard_omni_template.csv | 2 +- docs/omni-dashboard.md | 6 +++++- .../scripts/build_consolidated_omni_csv.py | 4 +--- tests/test_omni_csv.py | 16 +++++++++++----- 6 files changed, 23 insertions(+), 16 deletions(-) diff --git a/datasets/omni/consolidated_dashboard_omni_metadata.example.json b/datasets/omni/consolidated_dashboard_omni_metadata.example.json index 012eb02..20b6afa 100644 --- a/datasets/omni/consolidated_dashboard_omni_metadata.example.json +++ b/datasets/omni/consolidated_dashboard_omni_metadata.example.json @@ -21,7 +21,6 @@ "num_warmups": 0, "prefix_caching": false, "audio_sample_rate_hz": 24000, - "gpu_model": "H200", "gpu_count": 1, "tp": 1 } diff --git a/datasets/omni/consolidated_dashboard_omni_sample.csv b/datasets/omni/consolidated_dashboard_omni_sample.csv index 0a16dd0..a3d4fc2 100644 --- a/datasets/omni/consolidated_dashboard_omni_sample.csv +++ b/datasets/omni/consolidated_dashboard_omni_sample.csv @@ -1,5 +1,5 @@ -schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_model,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file -1.0,demo,2026-01-01T00:00:00Z,demo-tts-c1,demo-tts-c1,1,,,,demo,demo,,,,example/tts-1b,main,vllm-omni,vllm-omni-0.30.0,0.30.0,0.30.0,example/vllm-omni:0.30.0,,H200,H200,1,1,1,1,audio,text,audio,voice_clone,vllm-omni-bench-serve,0.30.0,vllm-omni-bench-serve,seed-tts,/data/datasets/seed-tts,en,en,100,,inf,1,1.0,,,,,false,,,"{""task_type"":""Base""}",vllm-omni serve --omni,,,,42.3,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2.36,,,115.2,110.0,,,,,,158.8,,0.103,0.100,,,,,,0.123,,,,,,,0.068,,,0.074,,9.84,,,24000,1.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -1.0,demo,2026-01-01T00:00:00Z,demo-asr,demo-asr,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,example,hf-open-asr-leaderboard,librispeech,,test.clean,,,2620,,,,,,,,false,,,,vllm-omni serve --omni,,,,,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.051,0.049,0.053,412.0,5.1,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.051,,, -1.0,demo,2026-01-01T00:00:00Z,demo-text-c8,demo-text-c8,1,,,,demo,demo,,,,example/llm-8b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,text,text,text,text_to_text,guidellm,0.6.0,guidellm,sharegpt,,,,100,,inf,8,8.0,,,,,false,,,,vllm-omni serve --omni,,,,20.0,100,0,,,,,,,,,,,130.0,120.0,,,,,,180.0,200.0,10.5,10.0,,,12.0,13.0,9.5,9.0,,,11.0,12.0,950.0,900.0,,,,,,1200.0,1300.0,,,5.0,500.0,800.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -1.0,demo,2026-01-01T00:00:00Z,demo-asr-guidellm-c8,demo-asr-guidellm-c8,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,0.6.0,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8.0,,,,,false,,audio_transcription,,vllm serve --port 8080,,,,29.7,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,320.0,300.0,,,,,,450.0,520.0,,,3.37,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,25.0,3.37,742.5,,en,,,,,,,,,,,,,,,,,,,"{""backend"":""openai_http"",""endpoint"":""/v1/audio/transcriptions"",""note"":""GuideLLM audio-to-text; WER not computed""}",GuideLLM audio-to-text sample; WER not computed by GuideLLM, +schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file +1.0,demo,2026-01-01T00:00:00Z,demo-tts-c1,demo-tts-c1,1,,,,demo,demo,,,,example/tts-1b,main,vllm-omni,vllm-omni-0.30.0,0.30.0,0.30.0,example/vllm-omni:0.30.0,,H200,1,1,1,1,audio,text,audio,voice_clone,vllm-omni-bench-serve,0.30.0,vllm-omni-bench-serve,seed-tts,/data/datasets/seed-tts,en,en,100,,inf,1,1.0,0,,,,false,,audio_speech,"{""task_type"":""Base""}",vllm-omni serve --omni,,,,42.3,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2.36,,,115.2,110.0,,,,,,158.8,,0.103,0.100,,,,,,0.123,,,,,,,0.068,,,0.074,,9.84,416.2,9988800,24000,1.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +1.0,demo,2026-01-01T00:00:00Z,demo-asr,demo-asr,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,example,,librispeech,example/librispeech_asr,test.clean,,,2620,,,,,,,,false,,offline_eval,,vllm serve --port 8080,,,,47.2,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.051,0.049,0.053,412.0,55.5,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.051,,, +1.0,demo,2026-01-01T00:00:00Z,demo-text-c8,demo-text-c8,1,,,,demo,demo,,,,example/llm-8b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,text,text,text,text_to_text,guidellm,0.6.0,guidellm,sharegpt,example/sharegpt,,,100,,inf,8,8.0,0,,,,false,,chat_completions,,vllm serve --port 8080,,,,20.0,100,0,,,,,,,,,,,130.0,120.0,,,,,,180.0,200.0,10.5,10.0,,,12.0,13.0,9.5,9.0,,,11.0,12.0,950.0,900.0,,,,,,1200.0,1300.0,,,5.0,500.0,800.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +1.0,demo,2026-01-01T00:00:00Z,demo-asr-guidellm-c8,demo-asr-guidellm-c8,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,0.6.0,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8.0,0,,,,false,,audio_transcription,,vllm serve --port 8080,,,,29.7,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,320.0,300.0,,,,,,450.0,520.0,,,3.37,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,25.0,3.37,742.5,,en,,,,,,,,,,,,,,,,,,,"{""backend"":""openai_http"",""endpoint"":""/v1/audio/transcriptions"",""note"":""GuideLLM audio-to-text; WER not computed""}",GuideLLM audio-to-text sample; WER not computed by GuideLLM, diff --git a/datasets/omni/consolidated_dashboard_omni_template.csv b/datasets/omni/consolidated_dashboard_omni_template.csv index 8068407..74f1891 100644 --- a/datasets/omni/consolidated_dashboard_omni_template.csv +++ b/datasets/omni/consolidated_dashboard_omni_template.csv @@ -1 +1 @@ -schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_model,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file +schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 7d73e54..19d1e8a 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -59,7 +59,11 @@ Online TTS/text rows must also have `concurrency`. Offline ASR rows may leave `c ### Core -`schema_version`, `source_format`, `timestamp_utc`, `run_name`, `benchmark_run_id`, `repetition`, `mlflow_run_id`, `mlflow_parent_run_id`, `mlflow_experiment_id`, `cluster`, `namespace`, `deployment_uuid`, `deployment_pod_name`, `grafana_dashboard_uid`, `model`, `model_revision`, `runtime`, `runtime_version`, `vllm_version`, `vllm_omni_version`, `image_tag`, `image_digest`, `accelerator`, `gpu_model`, `gpu_count`, `tp`, `pp`, `dp`, `modality`, `input_modality`, `output_modality`, `task_type`, `benchmark_tool`, `benchmark_tool_version`, `load_generator`, `dataset`, `dataset_path`, `dataset_split`, `locale`, `num_prompts`, `num_utterances`, `request_rate`, `concurrency`, `measured_concurrency`, `num_warmups`, `turns`, `prefix_tokens`, `prefix_count`, `prefix_caching`, `spec_decoding`, `request_type`, `extra_body_json`, `runtime_args`, `env_vars_json`, `max_num_seqs`, `max_num_batched_tokens`, `duration_s`, `successful_requests`, `errored_requests`, `benchmark_start_ms`, `benchmark_end_ms` +`schema_version`, `source_format`, `timestamp_utc`, `run_name`, `benchmark_run_id`, `repetition`, `mlflow_run_id`, `mlflow_parent_run_id`, `mlflow_experiment_id`, `cluster`, `namespace`, `deployment_uuid`, `deployment_pod_name`, `grafana_dashboard_uid`, `model`, `model_revision`, `runtime`, `runtime_version`, `vllm_version`, `vllm_omni_version`, `image_tag`, `image_digest`, `accelerator`, `gpu_count`, `tp`, `pp`, `dp`, `modality`, `input_modality`, `output_modality`, `task_type`, `benchmark_tool`, `benchmark_tool_version`, `load_generator`, `dataset`, `dataset_path`, `dataset_split`, `locale`, `num_prompts`, `num_utterances`, `request_rate`, `concurrency`, `measured_concurrency`, `num_warmups`, `turns`, `prefix_tokens`, `prefix_count`, `prefix_caching`, `spec_decoding`, `request_type`, `extra_body_json`, `runtime_args`, `env_vars_json`, `max_num_seqs`, `max_num_batched_tokens`, `duration_s`, `successful_requests`, `errored_requests`, `benchmark_start_ms`, `benchmark_end_ms` + +`accelerator` is the only hardware column. Put an exact GPU SKU in `extra_json.gpu_sku` if it ever matters; do not add a second hardware column. + +`load_generator` may be blank for offline accuracy-only rows (for example, the HF ASR leaderboard); `benchmark_tool` still identifies the scorer. ### Text diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/build_consolidated_omni_csv.py index 7b315f2..6d70ff4 100644 --- a/manual_runs/scripts/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/build_consolidated_omni_csv.py @@ -33,7 +33,7 @@ "grafana_dashboard_uid", "model", "model_revision", "runtime", "runtime_version", "vllm_version", "vllm_omni_version", "image_tag", "image_digest", - "accelerator", "gpu_model", "gpu_count", "tp", "pp", "dp", + "accelerator", "gpu_count", "tp", "pp", "dp", "modality", "input_modality", "output_modality", "task_type", "benchmark_tool", "benchmark_tool_version", "load_generator", "dataset", "dataset_path", "dataset_split", "locale", @@ -342,7 +342,6 @@ def build_legacy_row(r, path, metadata): row["runtime_version"] = r.get("version", "") row["tp"] = fnum(r.get("tp", "")) row["accelerator"] = r.get("accelerator", "") - row["gpu_model"] = r.get("accelerator", "") row["image_tag"] = r.get("image_tag", "") row["modality"] = "audio" row["input_modality"] = "text" @@ -460,7 +459,6 @@ def build_asr_row(r, path, metadata): row["runtime_version"] = pick(r, ASR_ALIASES["runtime_version"]) row["image_tag"] = pick(r, ASR_ALIASES["image_tag"]) row["accelerator"] = pick(r, ASR_ALIASES["accelerator"]) - row["gpu_model"] = row["accelerator"] row["tp"] = fnum(pick(r, ASR_ALIASES["tp"])) row["modality"] = "audio" row["input_modality"] = "audio" diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 930822a..299841d 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -30,8 +30,9 @@ def _header(path): def test_template_and_sample_schema(): header = _header(TEMPLATE) - assert len(header) == 166 - assert len(set(header)) == 166 + assert len(header) == 165 + assert len(set(header)) == 165 + assert "gpu_model" not in header assert REQUIRED.issubset(header) assert "extra_json" in header assert "stage_metrics_json" in header @@ -42,9 +43,13 @@ def test_template_and_sample_schema(): assert {row["task_type"] for row in rows} == {"voice_clone", "asr_transcription", "text_to_text"} assert {row["load_generator"] for row in rows} == { "vllm-omni-bench-serve", - "hf-open-asr-leaderboard", + "", "guidellm", } + hf_asr = [row for row in rows if row["benchmark_tool"] == "hf-open-asr-leaderboard"] + assert len(hf_asr) == 1 + assert hf_asr[0]["load_generator"] == "" + assert hf_asr[0]["runtime_args"].startswith("vllm serve") audio_guidellm = [ row for row in rows @@ -59,7 +64,8 @@ def test_template_and_sample_schema(): assert row["model"] assert row["task_type"] assert row["benchmark_tool"] - assert row["load_generator"] + if row["benchmark_tool"] != "hf-open-asr-leaderboard": + assert row["load_generator"] if row["task_type"] != "asr_transcription": assert row["concurrency"] @@ -119,7 +125,7 @@ def test_converter_smoke(tmp_path): assert row["task_type"] == "voice_clone" assert row["concurrency"] == "1" assert row["model"] and row["benchmark_tool"] - assert len(_header(template)) == 166 + assert len(_header(template)) == 165 if __name__ == "__main__": From 7215d6721346096485f288ec423c2fbf7f94af05 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 16:08:16 -0500 Subject: [PATCH 04/74] Fix load_generator fallback for offline ASR rows - Do not treat benchmark_tool as a load generator when load_generator is blank - Display offline accuracy rows as `offline` - Keep explicit load generators unchanged --- docs/omni-dashboard.md | 2 +- omni_dashboard.py | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 19d1e8a..a635389 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -63,7 +63,7 @@ Online TTS/text rows must also have `concurrency`. Offline ASR rows may leave `c `accelerator` is the only hardware column. Put an exact GPU SKU in `extra_json.gpu_sku` if it ever matters; do not add a second hardware column. -`load_generator` may be blank for offline accuracy-only rows (for example, the HF ASR leaderboard); `benchmark_tool` still identifies the scorer. +`load_generator` may be blank for offline accuracy-only rows (for example, the HF ASR leaderboard); `benchmark_tool` still identifies the scorer. The dashboard displays those rows as `offline` rather than treating the scorer as a load generator. ### Text diff --git a/omni_dashboard.py b/omni_dashboard.py index c42ff74..55eb1cc 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -89,6 +89,14 @@ "concurrency_label", ] +LOAD_GENERATORS = { + "guidellm", + "vllm-omni-bench-serve", + "vllm-bench-serve", + "locust", + "k6", +} + def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.DataFrame: """Read a CSV from S3, using explicit credentials or anonymous access.""" @@ -129,7 +137,10 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df["load_generator"] = np.nan if "benchmark_tool" not in df.columns: df["benchmark_tool"] = np.nan - df["load_generator"] = df["load_generator"].fillna(df["benchmark_tool"]) + df["load_generator"] = df["load_generator"].fillna("").astype(str) + tool = df["benchmark_tool"].fillna("").astype(str).str.lower() + fallback = tool.where(tool.isin(LOAD_GENERATORS), "offline") + df["load_generator"] = df["load_generator"].where(df["load_generator"] != "", fallback) for col in ("modality", "task_type", "model", "runtime_version", "accelerator"): if col not in df.columns: From eaf251b9d6d130910add2ceb625ab84bc85000bc Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 16:22:30 -0500 Subject: [PATCH 05/74] Document Omni vs RHAIIS dashboard UX comparison - Capture RHAIIS navigation, numbered filters, and plot selection behavior - Capture current Omni filters/tabs and the left-panel mismatch - List features left out, Omni additions, TTS/ASR journeys - Record WebBridge test results and open questions --- docs/omni-vs-rhaiis-dashboard.md | 159 +++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 docs/omni-vs-rhaiis-dashboard.md diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md new file mode 100644 index 0000000..916d381 --- /dev/null +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -0,0 +1,159 @@ +# Omni vs RHAIIS dashboard — UX comparison and open questions + +Status: **draft checkpoint** — no final UX decisions below are implemented except where marked closed. + +## What was compared + +- RHAIIS view: left-panel navigation; Performance Plots filters and chart interactions. +- Omni view: left-panel filter block; Overview/Throughput/Speech Out/Text Latency/ASR Quality/Data tabs. +- Both tested locally through WebBridge against the same running Streamlit app. + +## RHAIIS experience (current) + +**Left panel is navigation, not filters:** + +- DASHBOARD: Overview, Competitive Analysis +- PERFORMANCE ANALYSIS: Performance Plots, Compare Versions +- INSIGHTS: Performance Trends, Cost Analysis, Model Performance Comparison, Energy Computation +- TOOLS: IntelliConfig, Pareto Tradeoff Analysis, Runtime Server Configs, View Logs, Filtered Data + +**Performance Plots filters are in the main content, as numbered steps:** + +1. Select Accelerator(s) +2. Select Input/Output Sequence Length (ISL/OSL) +3. Select Version(s) +4. Optional label filter / group by +5. Select Model(s) +6. Select TP Size(s) +7. X-axis, Y-axis, concurrency ceiling, plot lines + +**Chart interaction:** clicking points, box-selecting, or lassoing adds plot lines to a comparison. A **Filtered Data for Plot Lines** section below the chart shows the source rows for the selected lines. There is also a separate **Filtered Data** page with a download. + +## Omni experience (current) + +**Left panel is the filter block:** + +- Modality +- Task type +- Load generator +- Model +- Runtime version +- Accelerator +- Concurrency + +**Main content:** Overview, Throughput, Speech Out, Text Latency, ASR Quality, Data. + +Charts are display-only today; there is no click-to-select/filtered-data behavior. The Data tab shows the filtered table and download. + +## What is left out when cloning RHAIIS for Omni + +| RHAIIS feature | Why it is left out / status | +|---|---| +| Left-panel navigation sections | Omni currently uses the left panel for filters; needs a decision (Q1). | +| ISL/OSL profile filter | TTS/ASR rows do not carry prompt/output token lengths; text rows could. | +| TP filter | Schema has `tp`, but the current Omni sample only has TP=1. | +| Release-pair / upstream-parity overview | Omni has no release-pair model yet. | +| Competitive analysis / regression heatmap / release health | Text/LLM-specific. | +| Cost analysis / energy computation | Could map later; no cost model for audio/ASR yet. | +| IntelliConfig / Pareto / runtime server configs | RHAIIS deployment-config tooling; not part of the first Omni pass. | +| View Logs | Omni logs are currently in MLflow, not exposed by the dashboard. | +| Token-only metrics as primary axes | TTS uses audio TTFP/RTF/underrun; ASR uses WER/RTFx. | + +## What is added on the Omni side + +| Omni feature | Why | +|---|---| +| Modality / input→output filter | TTS is text→audio; ASR is audio→text; text is text→text. | +| Task type filter | `voice_clone`, `default_voice`, `voice_design`, `asr_transcription`, `text_to_text`. | +| Load-generator filter | GuideLLM, `vllm-omni-bench-serve`, offline accuracy runs. | +| Speech-out metrics | audio TTFP, RTF, duration, underrun, audio throughput, continuity. | +| ASR metrics | WER, WER CI, RTFx, transcription throughput, input audio duration, normalization. | +| Sparse metric handling | Text, speech-out, and ASR columns are intentionally blank when not applicable. | + +## Proposed Option 2: RHAIIS-like filter order + auto-fill + +Proposed sidebar/main filter order: + +1. Select Accelerator(s) — multiselect +2. Select Version(s) — multiselect (`runtime_version`) +3. Select Input / Output — `text → audio`, `audio → text`, `text → text` +4. Select Task Type(s) +5. Select Load Generator(s) +6. Select Model(s) — **auto-populated from 3/4/5** +7. Select TP Size(s) — if more than one TP exists +8. Concurrency + +Auto-fill rule: + +- Selecting an input/output pair filters the task, load-generator, and model option sets to rows that have data. +- The model filter **auto-selects all available models** for that pair/task, rather than showing models with no data. +- Changing the pair clears stale model selections and repopulates. + +## User journeys + +### TTS (text → audio) + +1. Open Omni Dashboard. +2. Choose `text → audio`. +3. Models auto-fill to TTS models with data. +4. Choose model/version/accelerator and concurrency. +5. Review Throughput and Speech Out. +6. Check audio TTFP, RTF (lower is better), underrun, and audio throughput. +7. Click chart points/select lines; inspect the filtered rows; download CSV if needed. + +### ASR (audio → text) + +1. Open Omni Dashboard. +2. Choose `audio → text`. +3. Models auto-fill to ASR models with data. +4. Choose the dataset/normalization row if multiple are present. +5. Review ASR Quality for WER, RTFx, and transcription throughput. +6. Offline accuracy rows show `load_generator=offline` and no concurrency; GuideLLM rows show online latency/throughput. + +## Test log + +| Test | Result | +|---|---| +| WebBridge: switch RHAIIS → Omni | Both views render; view selector shows five dashboards. | +| WebBridge: RHAIIS Performance Plots | Numbered filters found; chart and Filtered Data for Plot Lines section present. | +| WebBridge: Omni sidebar | Found Modality, Task type, Load generator, Model, Runtime version, Accelerator, Concurrency. | +| WebBridge: Omni tabs | Six tabs present; 16 Plotly charts across tabs. | +| Omni offline row display | HF ASR row now shows `offline`, not the HF scorer as a load generator. | +| Auto-fill model filter | **Not implemented yet.** | +| Omni graph click → filtered data | **Not implemented yet.** | +| RHAIIS graph click behavior | Code path uses point/box/lasso selection and a plot-line comparison table. | + +## Open questions + +1. **Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar? The current mismatch is because RHAIIS uses the left panel for navigation. +2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? +3. **Filter order:** is the proposed order (Accelerator → Version → Input/Output → Task → Load gen → Model → TP → Concurrency) correct, or should Input/Output come first for TTS/ASR users? +4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? +5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? +6. **TP:** include TP in the Omni UI? Current data is all TP=1. +7. **Version label:** show product `runtime_version` (`3.6 GA`, `3.6-fast2`) or component versions (`vllm`, `vllm-omni`) in the main filter? +8. **Graph selection:** should clicking add plot lines like RHAIIS, filter the whole dashboard, or just open a filtered table? +9. **Filtered data:** one global section or per-chart “Filtered Data for Plot Lines” sections? +10. **Offline ASR:** should offline rows appear in concurrency/throughput charts with `n/a`, or only in the ASR quality tab? +11. **Locale:** drop `locale` and use `language` for TTS/ASR, or keep both? +12. **Navigation tabs:** keep the six Omni tabs, or rename them to RHAIIS-style sections? + +## Closed decisions + +- Sparse columns are allowed; modality-inapplicable fields stay blank. +- `benchmark_tool` and `load_generator` are separate concepts. +- Offline accuracy rows use `load_generator=offline` in the UI and blank in the CSV. +- `gpu_model` is dropped; `accelerator` is the only hardware column. +- `vllm_version` and `vllm_omni_version` are separate component versions; `runtime_version` is the product/build label. +- `dataset` + `language` are first-class; config/split/revision belong in `extra_json.dataset_variant` until the dashboard filters on them. + +## Implementation checklist + +- [ ] Decide Q1/Q2 (navigation/page scope). +- [ ] Reorder filters and add Input/Output. +- [ ] Implement cascading task/load-generator/model options. +- [ ] Auto-select models for selected modality/task. +- [ ] Add graph point/box/lasso selection and filtered-data sections. +- [ ] Keep the global Filtered Data download. +- [ ] Test TTS and ASR journeys through WebBridge. +- [ ] Update this document with closed questions and screenshots. From 20c2b7ea3c4250f0dd98ac3f30f13410c1afb019 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 16:36:35 -0500 Subject: [PATCH 06/74] Add RHAIIS-style Omni filters, auto-fill, and plot selection - Reorder filters to Accelerator, Version, Input/Output, Task, Load Generator, Model, TP, Concurrency - Cascade task/load-generator/model options from the selected input/output pair - Auto-select all available models for the selected slice - Add point/box/lasso plot selection and per-chart filtered-data tables - Record the tested TTS, ASR, and text journeys in the UX comparison doc --- docs/omni-vs-rhaiis-dashboard.md | 25 +++ omni_dashboard.py | 257 +++++++++++++++++++++++-------- 2 files changed, 214 insertions(+), 68 deletions(-) diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 916d381..c0cbec1 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -157,3 +157,28 @@ Auto-fill rule: - [ ] Keep the global Filtered Data download. - [ ] Test TTS and ASR journeys through WebBridge. - [ ] Update this document with closed questions and screenshots. + +## Checkpoint 2 — implemented and tested + +Implemented in `omni_dashboard.py`: + +- RHAIIS-style numbered filter order: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP → Concurrency. +- Cascading option sets: selecting an input/output pair narrows task, load generator, and model options. +- Model auto-fill: all models with data for the selected pair/task/load generator are selected by default. +- Point/box/lasso selection on line charts and point selection on ASR bars. +- Per-chart **Filtered Data for Selected Points** section with the source rows. + +WebBridge/Playwright test results: + +| Test | Result | +|---|---| +| TTS `text → audio` auto-fill | Passed — task `voice_clone`, load generator `vllm-omni-bench-serve`, model `example/tts-1b` only. | +| TTS point click | Passed — selected c=1 point and rendered the filtered-data table. | +| ASR `audio → text` auto-fill | Passed — task `asr_transcription`, load generators `guidellm`/`offline`, model `example/asr-2b` only. | +| ASR bar click | Passed — bar selection rendered the filtered-data section. | +| Text `text → text` auto-fill | Passed — model `example/llm-8b` only. | +| Text point click | Passed — selected a TTFT point and rendered the filtered-data section. | +| RHAIIS Performance Plots comparison | Passed — numbered filters and plot-line filtered-data behavior confirmed. | +| Left-panel navigation parity | Open — RHAIIS uses the left panel for navigation; Omni still uses it for filters. | + +Still open: Q1/Q2 (left-panel navigation and page scope), graph-selection semantics for multi-line comparison, TP/version labeling, offline ASR chart treatment, and `locale` vs `language`. diff --git a/omni_dashboard.py b/omni_dashboard.py index 55eb1cc..5af8017 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -79,16 +79,6 @@ "audio_output_duration_s_total", ] -FILTER_COLUMNS = [ - "modality", - "task_type", - "load_generator", - "model", - "runtime_version", - "accelerator", - "concurrency_label", -] - LOAD_GENERATORS = { "guidellm", "vllm-omni-bench-serve", @@ -97,6 +87,13 @@ "k6", } +PLOT_CUSTOM_DATA = [ + "model", + "runtime_version", + "load_generator", + "concurrency_label", +] + def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.DataFrame: """Read a CSV from S3, using explicit credentials or anonymous access.""" @@ -142,11 +139,21 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: fallback = tool.where(tool.isin(LOAD_GENERATORS), "offline") df["load_generator"] = df["load_generator"].where(df["load_generator"] != "", fallback) - for col in ("modality", "task_type", "model", "runtime_version", "accelerator"): + for col in ( + "modality", + "input_modality", + "output_modality", + "task_type", + "model", + "runtime_version", + "accelerator", + ): if col not in df.columns: df[col] = "unknown" df[col] = df[col].fillna("unknown") + df["io_pair"] = df["input_modality"].astype(str) + " → " + df["output_modality"].astype(str) + def _conc_label(value): if pd.isna(value): return "n/a" @@ -186,56 +193,147 @@ def load_omni_data(file_path: str) -> Optional[pd.DataFrame]: return None +def _values(frame: pd.DataFrame, column: str) -> list: + """Return non-empty values for a filter column.""" + if column not in frame.columns: + return [] + return sorted( + value + for value in frame[column].dropna().unique() + if str(value).strip() not in ("", "unknown", "nan", "None") + ) + + +def _multiselect(label: str, options: list, key: str) -> list: + """Render a multiselect with all options selected by default.""" + if not options: + return [] + return st.sidebar.multiselect(label, options, default=options, key=key) + + +def _selection_key(prefix: str, *groups) -> str: + """Build a stable widget key from the upstream filter selections.""" + signature = "|".join(",".join(str(value) for value in sorted(group)) for group in groups) + return f"{prefix}_{signature}" + + def _sidebar_filters(df: pd.DataFrame) -> pd.DataFrame: - """Render Omni-specific sidebar filters and return the filtered frame.""" + """Render RHAIIS-ordered filter steps with cascading model auto-fill.""" st.sidebar.markdown("### Omni filters") + st.sidebar.caption( + "Filters follow the RHAIIS order. Model options auto-fill from the " + "selected input/output and task." + ) filtered = df.copy() - def _multiselect(label, column): - values = sorted(v for v in df[column].dropna().unique() if str(v) != "unknown") - if not values: - return None - selected = st.sidebar.multiselect(label, values, default=values, key=f"omni_{column}") - return selected - - modality = _multiselect("Modality", "modality") - if modality is not None: - filtered = filtered[filtered["modality"].isin(modality)] - - task = _multiselect("Task type", "task_type") - if task is not None: - filtered = filtered[filtered["task_type"].isin(task)] - - generator = _multiselect("Load generator", "load_generator") - if generator is not None: - filtered = filtered[filtered["load_generator"].isin(generator)] - - for column, label in ( - ("model", "Model"), - ("runtime_version", "Runtime version"), - ("accelerator", "Accelerator"), - ): - values = sorted(v for v in df[column].dropna().unique() if str(v) != "unknown") - if values: - choice = st.sidebar.selectbox(label, ["All"] + values, key=f"omni_{column}") - if choice != "All": - filtered = filtered[filtered[column] == choice] + accelerators = _multiselect( + "1️⃣ Select Accelerator(s)", _values(df, "accelerator"), "omni_accelerator" + ) + if accelerators: + filtered = filtered[filtered["accelerator"].isin(accelerators)] + + versions = _multiselect( + "2️⃣ Select Version(s)", _values(df, "runtime_version"), "omni_version" + ) + if versions: + filtered = filtered[filtered["runtime_version"].isin(versions)] + + io_pairs = _multiselect("3️⃣ Select Input / Output", _values(df, "io_pair"), "omni_io") + if io_pairs: + filtered = filtered[filtered["io_pair"].isin(io_pairs)] + + tasks = _multiselect( + "4️⃣ Select Task Type(s)", + _values(filtered, "task_type"), + _selection_key("omni_task", io_pairs), + ) + if tasks: + filtered = filtered[filtered["task_type"].isin(tasks)] + + generators = _multiselect( + "5️⃣ Select Load Generator(s)", + _values(filtered, "load_generator"), + _selection_key("omni_generator", io_pairs, tasks), + ) + if generators: + filtered = filtered[filtered["load_generator"].isin(generators)] + + models = _multiselect( + "6️⃣ Select Model(s)", + _values(filtered, "model"), + _selection_key("omni_model", io_pairs, tasks, generators), + ) + if models: + filtered = filtered[filtered["model"].isin(models)] + + tps = _multiselect( + "7️⃣ Select TP Size(s)", + _values(filtered, "tp"), + _selection_key("omni_tp", io_pairs, tasks, generators, models), + ) + if tps: + filtered = filtered[filtered["tp"].isin(tps)] conc_options = sorted( df["concurrency_label"].dropna().unique(), - key=lambda v: (v == "n/a", float(v) if v != "n/a" else 0), + key=lambda value: (value == "n/a", float(value) if value != "n/a" else 0), ) if conc_options: selected = st.sidebar.multiselect( - "Concurrency", conc_options, default=conc_options, key="omni_concurrency" + "8️⃣ Select Concurrency", + conc_options, + default=conc_options, + key="omni_concurrency", ) filtered = filtered[filtered["concurrency_label"].isin(selected)] return filtered -def _line(df: pd.DataFrame, y: str, title: str, y_label: str, color: str = "series"): - """Render a concurrency line chart if the metric has data.""" +def _selected_rows(sub: pd.DataFrame, event) -> Optional[pd.DataFrame]: + """Return rows corresponding to the selected plot points.""" + selection = getattr(event, "selection", None) + if selection is None: + return None + points = selection.get("points", []) if isinstance(selection, dict) else getattr(selection, "points", []) + selected = set() + for point in points or []: + custom = point.get("customdata") if isinstance(point, dict) else getattr(point, "customdata", None) + if custom and len(custom) >= len(PLOT_CUSTOM_DATA): + selected.add(tuple(str(value) for value in custom[: len(PLOT_CUSTOM_DATA)])) + if not selected: + return None + + def _matches(row): + key = ( + str(row["model"]), + str(row["runtime_version"]), + str(row["load_generator"]), + str(row["concurrency_label"]), + ) + return key in selected + + return sub[sub.apply(_matches, axis=1)] + + +def _show_selected_rows(sub: pd.DataFrame, event): + selected = _selected_rows(sub, event) + if selected is None or selected.empty: + return + with st.expander("📄 Filtered Data for Selected Points", expanded=True): + st.caption("Rows for the points or lines you selected on the chart.") + st.dataframe(selected, use_container_width=True, hide_index=True) + + +def _line( + df: pd.DataFrame, + y: str, + title: str, + y_label: str, + key: str, + color: str = "series", +): + """Render a selectable concurrency line chart if the metric has data.""" sub = df.dropna(subset=["concurrency", y]) if sub.empty: st.info(f"No {y_label} data for the current filters.") @@ -248,13 +346,22 @@ def _line(df: pd.DataFrame, y: str, title: str, y_label: str, color: str = "seri markers=True, title=title, labels={"concurrency": "Concurrency", y: y_label, color: "Model | version | generator"}, + custom_data=PLOT_CUSTOM_DATA, ) fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) - st.plotly_chart(fig, use_container_width=True) + event = st.plotly_chart( + fig, + use_container_width=True, + key=key, + on_select="rerun", + selection_mode=("points", "box", "lasso"), + ) + st.caption("Click points, or box/lasso-select an area, to inspect the source rows.") + _show_selected_rows(sub, event) -def _bar(df: pd.DataFrame, y: str, title: str, y_label: str, color: str = "model"): - """Render a bar chart for offline/ASR metrics.""" +def _bar(df: pd.DataFrame, y: str, title: str, y_label: str, key: str, color: str = "model"): + """Render a selectable bar chart for offline/ASR metrics.""" sub = df.dropna(subset=[y]) if sub.empty: st.info(f"No {y_label} data for the current filters.") @@ -266,9 +373,17 @@ def _bar(df: pd.DataFrame, y: str, title: str, y_label: str, color: str = "model color=color, title=title, labels={y: y_label, color: color.replace("_", " ").title()}, + custom_data=PLOT_CUSTOM_DATA, ) fig.update_layout(showlegend=False, margin=dict(l=10, r=10, t=50, b=10)) - st.plotly_chart(fig, use_container_width=True) + event = st.plotly_chart( + fig, + use_container_width=True, + key=key, + on_select="rerun", + selection_mode=("points", "box", "lasso"), + ) + _show_selected_rows(sub, event) def _overview(df: pd.DataFrame): @@ -292,10 +407,10 @@ def _overview(df: pd.DataFrame): def _throughput_tab(df: pd.DataFrame): - _line(df, "request_throughput_rps", "Request throughput", "Requests / second") - _line(df, "audio_throughput_x", "Audio throughput", "Audio-seconds / wall-second") - _line(df, "output_token_throughput", "Output token throughput", "Tokens / second") - _line(df, "total_token_throughput", "Total token throughput", "Tokens / second") + _line(df, "request_throughput_rps", "Request throughput", "Requests / second", "omni_req_tput") + _line(df, "audio_throughput_x", "Audio throughput", "Audio-seconds / wall-second", "omni_audio_tput") + _line(df, "output_token_throughput", "Output token throughput", "Tokens / second", "omni_out_tok_tput") + _line(df, "total_token_throughput", "Total token throughput", "Tokens / second", "omni_total_tok_tput") def _speech_tab(df: pd.DataFrame): @@ -303,10 +418,10 @@ def _speech_tab(df: pd.DataFrame): if speech.empty: st.info("No speech-output rows for the current filters.") return - _line(speech, "audio_rtf_mean", "Mean audio RTF", "RTF (lower is better)") - _line(speech, "audio_rtf_p95", "P95 audio RTF", "RTF (lower is better)") - _line(speech, "audio_ttfp_ms_mean", "Mean audio TTFP", "Milliseconds") - _line(speech, "audio_underrun_s_mean", "Mean audio underrun", "Seconds") + _line(speech, "audio_rtf_mean", "Mean audio RTF", "RTF (lower is better)", "omni_audio_rtf_mean") + _line(speech, "audio_rtf_p95", "P95 audio RTF", "RTF (lower is better)", "omni_audio_rtf_p95") + _line(speech, "audio_ttfp_ms_mean", "Mean audio TTFP", "Milliseconds", "omni_audio_ttfp") + _line(speech, "audio_underrun_s_mean", "Mean audio underrun", "Seconds", "omni_audio_underrun") sub = speech.dropna(subset=["concurrency", "audio_rtf_p95"]) if not sub.empty: fig = px.line( @@ -317,24 +432,29 @@ def _speech_tab(df: pd.DataFrame): markers=True, title="P95 audio RTF with real-time boundary", labels={"concurrency": "Concurrency", "audio_rtf_p95": "P95 RTF"}, + custom_data=PLOT_CUSTOM_DATA, ) fig.add_hline(y=1.0, line_dash="dash", annotation_text="real-time boundary") fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) - st.plotly_chart(fig, use_container_width=True) + event = st.plotly_chart( + fig, + use_container_width=True, + key="omni_audio_rtf_boundary", + on_select="rerun", + selection_mode=("points", "box", "lasso"), + ) + _show_selected_rows(sub, event) def _text_tab(df: pd.DataFrame): - text = df[ - df["output_modality"].eq("text") - & df["ttft_ms_median"].notna() - ] + text = df[df["output_modality"].eq("text") & df["ttft_ms_median"].notna()] if text.empty: st.info("No text-latency rows for the current filters.") return - _line(text, "ttft_ms_median", "Median TTFT", "Milliseconds") - _line(text, "tpot_ms_median", "Median TPOT", "Milliseconds") - _line(text, "itl_ms_median", "Median ITL", "Milliseconds") - _line(text, "e2el_ms_median", "Median end-to-end latency", "Milliseconds") + _line(text, "ttft_ms_median", "Median TTFT", "Milliseconds", "omni_ttft") + _line(text, "tpot_ms_median", "Median TPOT", "Milliseconds", "omni_tpot") + _line(text, "itl_ms_median", "Median ITL", "Milliseconds", "omni_itl") + _line(text, "e2el_ms_median", "Median end-to-end latency", "Milliseconds", "omni_e2el") def _asr_tab(df: pd.DataFrame): @@ -342,13 +462,14 @@ def _asr_tab(df: pd.DataFrame): if asr.empty: st.info("No ASR rows for the current filters.") return - _bar(asr, "wer", "Word error rate", "WER (lower is better)") - _bar(asr, "rtfx", "RTFx", "Audio-seconds / wall-second") + _bar(asr, "wer", "Word error rate", "WER (lower is better)", "omni_wer") + _bar(asr, "rtfx", "RTFx", "Audio-seconds / wall-second", "omni_rtfx") _bar( asr, "transcription_throughput_utterances_s", "Transcription throughput", "Utterances / second", + "omni_transcription_tput", ) From c84c5e34a38f26bd661050c2dffff907c8b6331f Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 16:37:49 -0500 Subject: [PATCH 07/74] Clarify dataset identity as an open question --- docs/omni-vs-rhaiis-dashboard.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index c0cbec1..30e60f5 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -136,7 +136,8 @@ Auto-fill rule: 9. **Filtered data:** one global section or per-chart “Filtered Data for Plot Lines” sections? 10. **Offline ASR:** should offline rows appear in concurrency/throughput charts with `n/a`, or only in the ASR quality tab? 11. **Locale:** drop `locale` and use `language` for TTS/ASR, or keep both? -12. **Navigation tabs:** keep the six Omni tabs, or rename them to RHAIIS-style sections? +12. **Dataset identity:** keep `dataset_split`/`locale`, or simplify to `dataset` + `language` with config/split/revision in `extra_json.dataset_variant`? +13. **Navigation tabs:** keep the six Omni tabs, or rename them to RHAIIS-style sections? ## Closed decisions @@ -145,7 +146,6 @@ Auto-fill rule: - Offline accuracy rows use `load_generator=offline` in the UI and blank in the CSV. - `gpu_model` is dropped; `accelerator` is the only hardware column. - `vllm_version` and `vllm_omni_version` are separate component versions; `runtime_version` is the product/build label. -- `dataset` + `language` are first-class; config/split/revision belong in `extra_json.dataset_variant` until the dashboard filters on them. ## Implementation checklist From 5a68e3a735d9f4829cbb8e404548730ba543900b Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 21:20:05 -0500 Subject: [PATCH 08/74] Restore RHAIIS navigation and move Omni filters to main content - Keep the RHAIIS grouped sidebar navigation for the Omni view - Move the Omni filter steps into a main-content Filter Your Data section - Keep unimplemented RHAIIS pages visible with a clear placeholder - Retest TTS auto-fill and ASR chart selection with the restored layout --- docs/omni-vs-rhaiis-dashboard.md | 19 +- omni_dashboard.py | 425 +++++++++++++++---------------- 2 files changed, 217 insertions(+), 227 deletions(-) diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 30e60f5..1420a29 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -119,13 +119,13 @@ Auto-fill rule: | WebBridge: Omni sidebar | Found Modality, Task type, Load generator, Model, Runtime version, Accelerator, Concurrency. | | WebBridge: Omni tabs | Six tabs present; 16 Plotly charts across tabs. | | Omni offline row display | HF ASR row now shows `offline`, not the HF scorer as a load generator. | -| Auto-fill model filter | **Not implemented yet.** | -| Omni graph click → filtered data | **Not implemented yet.** | +| Auto-fill model filter | **Implemented** — TTS/ASR/text paths tested. | +| Omni graph click → filtered data | **Implemented** — point/box/lasso line selection and ASR bar selection tested. | | RHAIIS graph click behavior | Code path uses point/box/lasso selection and a plot-line comparison table. | ## Open questions -1. **Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar? The current mismatch is because RHAIIS uses the left panel for navigation. +1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** 2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? 3. **Filter order:** is the proposed order (Accelerator → Version → Input/Output → Task → Load gen → Model → TP → Concurrency) correct, or should Input/Output come first for TTS/ASR users? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? @@ -146,6 +146,8 @@ Auto-fill rule: - Offline accuracy rows use `load_generator=offline` in the UI and blank in the CSV. - `gpu_model` is dropped; `accelerator` is the only hardware column. - `vllm_version` and `vllm_omni_version` are separate component versions; `runtime_version` is the product/build label. +- Keep the RHAIIS sidebar navigation shell for Omni; Omni filters live in main content as numbered steps. +- Unimplemented RHAIIS sections remain visible and show a clear placeholder instead of disappearing. ## Implementation checklist @@ -179,6 +181,13 @@ WebBridge/Playwright test results: | Text `text → text` auto-fill | Passed — model `example/llm-8b` only. | | Text point click | Passed — selected a TTFT point and rendered the filtered-data section. | | RHAIIS Performance Plots comparison | Passed — numbered filters and plot-line filtered-data behavior confirmed. | -| Left-panel navigation parity | Open — RHAIIS uses the left panel for navigation; Omni still uses it for filters. | +| Left-panel navigation parity | **Fixed** — RHAIIS navigation restored; Omni filters moved to main content. | -Still open: Q1/Q2 (left-panel navigation and page scope), graph-selection semantics for multi-line comparison, TP/version labeling, offline ASR chart treatment, and `locale` vs `language`. +Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labeling, offline ASR chart treatment, and `locale` vs `language`. + +## Checkpoint 3 — RHAIIS navigation restored + +- Restored the full RHAIIS grouped sidebar navigation for the Omni view: Dashboard, Performance Analysis, Insights, Tools. +- Moved the Omni filters into the main content as a RHAIIS-style numbered “Filter Your Data” section. +- Kept unimplemented RHAIIS pages visible with a clear placeholder. +- Tested: nav groups render; Performance Plots opens the Throughput/Speech Out/Text Latency/ASR Quality tabs; Filtered Data opens the table/download; Cost Analysis shows the placeholder; TTS auto-fill still narrows to the TTS model; ASR bar selection opens the filtered-data table. diff --git a/omni_dashboard.py b/omni_dashboard.py index 5af8017..b546a67 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -2,7 +2,8 @@ Loads the consolidated Omni benchmark CSV (text, speech-out, and ASR) and renders modality-aware performance and quality views. The module follows the -same S3/local-CSV loading pattern as ``llmd_dashboard.py``. +same S3/local-CSV loading pattern as ``llmd_dashboard.py`` and keeps the +RHAIIS sidebar navigation shell. """ import logging @@ -31,52 +32,19 @@ AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") NUMERIC_COLUMNS = [ - "concurrency", - "measured_concurrency", - "num_prompts", - "num_utterances", - "tp", - "pp", - "dp", - "gpu_count", - "request_throughput_rps", - "output_token_throughput", - "total_token_throughput", - "audio_throughput_x", - "audio_rtf_mean", - "audio_rtf_median", - "audio_rtf_p95", - "audio_rtf_p99", - "audio_ttfp_ms_mean", - "audio_ttfp_ms_median", - "audio_ttfp_ms_p95", - "audio_ttfp_ms_p99", - "audio_underrun_s_mean", - "audio_underrun_s_median", - "audio_underrun_s_p95", - "audio_underrun_s_p99", - "audio_continuity_ok_rate", - "ttft_ms_mean", - "ttft_ms_median", - "ttft_ms_p95", - "ttft_ms_p99", - "tpot_ms_mean", - "tpot_ms_median", - "tpot_ms_p95", - "tpot_ms_p99", - "itl_ms_mean", - "itl_ms_median", - "itl_ms_p95", - "itl_ms_p99", - "e2el_ms_mean", - "e2el_ms_median", - "e2el_ms_p95", - "e2el_ms_p99", - "wer", - "rtfx", - "transcription_throughput_utterances_s", - "audio_input_duration_s_total", - "audio_output_duration_s_total", + "concurrency", "measured_concurrency", "num_prompts", "num_utterances", + "tp", "pp", "dp", "gpu_count", "request_throughput_rps", + "output_token_throughput", "total_token_throughput", "audio_throughput_x", + "audio_rtf_mean", "audio_rtf_median", "audio_rtf_p95", "audio_rtf_p99", + "audio_ttfp_ms_mean", "audio_ttfp_ms_median", "audio_ttfp_ms_p95", + "audio_ttfp_ms_p99", "audio_underrun_s_mean", "audio_underrun_s_median", + "audio_underrun_s_p95", "audio_underrun_s_p99", "audio_continuity_ok_rate", + "ttft_ms_mean", "ttft_ms_median", "ttft_ms_p95", "ttft_ms_p99", + "tpot_ms_mean", "tpot_ms_median", "tpot_ms_p95", "tpot_ms_p99", + "itl_ms_mean", "itl_ms_median", "itl_ms_p95", "itl_ms_p99", + "e2el_ms_mean", "e2el_ms_median", "e2el_ms_p95", "e2el_ms_p99", + "wer", "rtfx", "transcription_throughput_utterances_s", + "audio_input_duration_s_total", "audio_output_duration_s_total", ] LOAD_GENERATORS = { @@ -94,32 +62,53 @@ "concurrency_label", ] +# Same navigation groups/labels as the RHAIIS shell. Pages that are not yet +# implemented for Omni render a clear placeholder rather than disappearing. +OMNI_NAV_GROUPS = [ + ("Dashboard", ["🏠 Overview", "🔍 Competitive Analysis"]), + ("Performance Analysis", ["📊 Performance Plots", "⚖️ Compare Versions"]), + ( + "Insights", + [ + "📈 Performance Trends", + "💰 Cost Analysis", + "🏆 Model Performance Comparison", + "🌱 Energy Computation", + ], + ), + ( + "Tools", + [ + "💡 IntelliConfig", + "🔄 Pareto Tradeoff Analysis", + "⚙️ Runtime Server Configs", + "📋 View Logs", + "📄 Filtered Data", + ], + ), +] + def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.DataFrame: - """Read a CSV from S3, using explicit credentials or anonymous access.""" import boto3 from botocore import UNSIGNED from botocore.config import Config if AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: client = boto3.client( - "s3", - region_name=region, + "s3", region_name=region, aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY, ) else: client = boto3.client( - "s3", - region_name=region, - config=Config(signature_version=UNSIGNED), + "s3", region_name=region, config=Config(signature_version=UNSIGNED) ) obj = client.get_object(Bucket=bucket, Key=key) return pd.read_csv(obj["Body"], low_memory=False) def _normalise(df: pd.DataFrame) -> pd.DataFrame: - """Normalise string columns, numeric metrics, and blank optional fields.""" df = df.copy() for col in df.select_dtypes(include=["object"]).columns: df[col] = df[col].astype(str).str.strip() @@ -140,13 +129,8 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df["load_generator"] = df["load_generator"].where(df["load_generator"] != "", fallback) for col in ( - "modality", - "input_modality", - "output_modality", - "task_type", - "model", - "runtime_version", - "accelerator", + "modality", "input_modality", "output_modality", "task_type", + "model", "runtime_version", "accelerator", ): if col not in df.columns: df[col] = "unknown" @@ -162,18 +146,14 @@ def _conc_label(value): df["concurrency_label"] = df["concurrency"].apply(_conc_label) df["series"] = ( - df["model"].astype(str) - + " | " - + df["runtime_version"].astype(str) - + " | " - + df["load_generator"].astype(str) + df["model"].astype(str) + " | " + df["runtime_version"].astype(str) + + " | " + df["load_generator"].astype(str) ) return df @st.cache_data(ttl=300) def load_omni_data(file_path: str) -> Optional[pd.DataFrame]: - """Load Omni data from S3 when configured, otherwise from a local CSV.""" try: if S3_BUCKET: try: @@ -194,104 +174,122 @@ def load_omni_data(file_path: str) -> Optional[pd.DataFrame]: def _values(frame: pd.DataFrame, column: str) -> list: - """Return non-empty values for a filter column.""" if column not in frame.columns: return [] return sorted( - value - for value in frame[column].dropna().unique() + value for value in frame[column].dropna().unique() if str(value).strip() not in ("", "unknown", "nan", "None") ) def _multiselect(label: str, options: list, key: str) -> list: - """Render a multiselect with all options selected by default.""" if not options: return [] - return st.sidebar.multiselect(label, options, default=options, key=key) + return st.multiselect(label, options, default=options, key=key) def _selection_key(prefix: str, *groups) -> str: - """Build a stable widget key from the upstream filter selections.""" signature = "|".join(",".join(str(value) for value in sorted(group)) for group in groups) return f"{prefix}_{signature}" -def _sidebar_filters(df: pd.DataFrame) -> pd.DataFrame: - """Render RHAIIS-ordered filter steps with cascading model auto-fill.""" - st.sidebar.markdown("### Omni filters") - st.sidebar.caption( - "Filters follow the RHAIIS order. Model options auto-fill from the " - "selected input/output and task." - ) +def _main_filters(df: pd.DataFrame) -> pd.DataFrame: + """RHAIIS-style numbered filter steps in the main content.""" filtered = df.copy() - - accelerators = _multiselect( - "1️⃣ Select Accelerator(s)", _values(df, "accelerator"), "omni_accelerator" - ) - if accelerators: - filtered = filtered[filtered["accelerator"].isin(accelerators)] - - versions = _multiselect( - "2️⃣ Select Version(s)", _values(df, "runtime_version"), "omni_version" - ) - if versions: - filtered = filtered[filtered["runtime_version"].isin(versions)] - - io_pairs = _multiselect("3️⃣ Select Input / Output", _values(df, "io_pair"), "omni_io") - if io_pairs: - filtered = filtered[filtered["io_pair"].isin(io_pairs)] - - tasks = _multiselect( - "4️⃣ Select Task Type(s)", - _values(filtered, "task_type"), - _selection_key("omni_task", io_pairs), - ) - if tasks: - filtered = filtered[filtered["task_type"].isin(tasks)] - - generators = _multiselect( - "5️⃣ Select Load Generator(s)", - _values(filtered, "load_generator"), - _selection_key("omni_generator", io_pairs, tasks), - ) - if generators: - filtered = filtered[filtered["load_generator"].isin(generators)] - - models = _multiselect( - "6️⃣ Select Model(s)", - _values(filtered, "model"), - _selection_key("omni_model", io_pairs, tasks, generators), - ) - if models: - filtered = filtered[filtered["model"].isin(models)] - - tps = _multiselect( - "7️⃣ Select TP Size(s)", - _values(filtered, "tp"), - _selection_key("omni_tp", io_pairs, tasks, generators, models), - ) - if tps: - filtered = filtered[filtered["tp"].isin(tps)] - - conc_options = sorted( - df["concurrency_label"].dropna().unique(), - key=lambda value: (value == "n/a", float(value) if value != "n/a" else 0), - ) - if conc_options: - selected = st.sidebar.multiselect( - "8️⃣ Select Concurrency", - conc_options, - default=conc_options, - key="omni_concurrency", + with st.expander("Filter Your Data", expanded=True): + st.caption( + "Same step order as RHAIIS. Model options auto-fill from the selected " + "input/output and task." ) - filtered = filtered[filtered["concurrency_label"].isin(selected)] + col1, col2 = st.columns(2) + with col1: + accelerators = _multiselect( + "1️⃣ Select Accelerator(s)", _values(df, "accelerator"), "omni_accelerator" + ) + with col2: + versions = _multiselect( + "2️⃣ Select Version(s)", _values(df, "runtime_version"), "omni_version" + ) + if accelerators: + filtered = filtered[filtered["accelerator"].isin(accelerators)] + if versions: + filtered = filtered[filtered["runtime_version"].isin(versions)] + + col3, col4 = st.columns(2) + with col3: + io_pairs = _multiselect( + "3️⃣ Select Input / Output", _values(df, "io_pair"), "omni_io" + ) + if io_pairs: + filtered = filtered[filtered["io_pair"].isin(io_pairs)] + with col4: + tasks = _multiselect( + "4️⃣ Select Task Type(s)", _values(filtered, "task_type"), + _selection_key("omni_task", io_pairs), + ) + if tasks: + filtered = filtered[filtered["task_type"].isin(tasks)] + + col5, col6 = st.columns(2) + with col5: + generators = _multiselect( + "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), + _selection_key("omni_generator", io_pairs, tasks), + ) + if generators: + filtered = filtered[filtered["load_generator"].isin(generators)] + with col6: + models = _multiselect( + "6️⃣ Select Model(s)", _values(filtered, "model"), + _selection_key("omni_model", io_pairs, tasks, generators), + ) + if models: + filtered = filtered[filtered["model"].isin(models)] + + col7, col8 = st.columns(2) + with col7: + tps = _multiselect( + "7️⃣ Select TP Size(s)", _values(filtered, "tp"), + _selection_key("omni_tp", io_pairs, tasks, generators, models), + ) + if tps: + filtered = filtered[filtered["tp"].isin(tps)] + with col8: + conc_options = sorted( + df["concurrency_label"].dropna().unique(), + key=lambda value: (value == "n/a", float(value) if value != "n/a" else 0), + ) + if conc_options: + selected = st.multiselect( + "8️⃣ Select Concurrency", conc_options, + default=conc_options, key="omni_concurrency", + ) + filtered = filtered[filtered["concurrency_label"].isin(selected)] return filtered +def _render_sidebar_nav() -> str: + """Render the same grouped navigation shell used by RHAIIS.""" + if "omni_active_section" not in st.session_state: + st.session_state.omni_active_section = "🏠 Overview" + with st.sidebar: + for group_name, sections in OMNI_NAV_GROUPS: + st.markdown(f'', unsafe_allow_html=True) + for section in sections: + active = section == st.session_state.omni_active_section + if st.button( + section, + key=f"omni_nav_{section}", + use_container_width=True, + type="primary" if active else "secondary", + ): + st.session_state.omni_active_section = section + st.rerun() + return st.session_state.omni_active_section + + def _selected_rows(sub: pd.DataFrame, event) -> Optional[pd.DataFrame]: - """Return rows corresponding to the selected plot points.""" selection = getattr(event, "selection", None) if selection is None: return None @@ -305,13 +303,10 @@ def _selected_rows(sub: pd.DataFrame, event) -> Optional[pd.DataFrame]: return None def _matches(row): - key = ( - str(row["model"]), - str(row["runtime_version"]), - str(row["load_generator"]), - str(row["concurrency_label"]), - ) - return key in selected + return ( + str(row["model"]), str(row["runtime_version"]), + str(row["load_generator"]), str(row["concurrency_label"]), + ) in selected return sub[sub.apply(_matches, axis=1)] @@ -325,35 +320,20 @@ def _show_selected_rows(sub: pd.DataFrame, event): st.dataframe(selected, use_container_width=True, hide_index=True) -def _line( - df: pd.DataFrame, - y: str, - title: str, - y_label: str, - key: str, - color: str = "series", -): - """Render a selectable concurrency line chart if the metric has data.""" +def _line(df: pd.DataFrame, y: str, title: str, y_label: str, key: str, color: str = "series"): sub = df.dropna(subset=["concurrency", y]) if sub.empty: st.info(f"No {y_label} data for the current filters.") return fig = px.line( - sub.sort_values(["concurrency", color]), - x="concurrency", - y=y, - color=color, - markers=True, - title=title, + sub.sort_values(["concurrency", color]), x="concurrency", y=y, color=color, + markers=True, title=title, labels={"concurrency": "Concurrency", y: y_label, color: "Model | version | generator"}, custom_data=PLOT_CUSTOM_DATA, ) fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) event = st.plotly_chart( - fig, - use_container_width=True, - key=key, - on_select="rerun", + fig, use_container_width=True, key=key, on_select="rerun", selection_mode=("points", "box", "lasso"), ) st.caption("Click points, or box/lasso-select an area, to inspect the source rows.") @@ -361,26 +341,18 @@ def _line( def _bar(df: pd.DataFrame, y: str, title: str, y_label: str, key: str, color: str = "model"): - """Render a selectable bar chart for offline/ASR metrics.""" sub = df.dropna(subset=[y]) if sub.empty: st.info(f"No {y_label} data for the current filters.") return fig = px.bar( - sub, - x=color, - y=y, - color=color, - title=title, + sub, x=color, y=y, color=color, title=title, labels={y: y_label, color: color.replace("_", " ").title()}, custom_data=PLOT_CUSTOM_DATA, ) fig.update_layout(showlegend=False, margin=dict(l=10, r=10, t=50, b=10)) event = st.plotly_chart( - fig, - use_container_width=True, - key=key, - on_select="rerun", + fig, use_container_width=True, key=key, on_select="rerun", selection_mode=("points", "box", "lasso"), ) _show_selected_rows(sub, event) @@ -395,13 +367,11 @@ def _overview(df: pd.DataFrame): col3.metric("Best request throughput", f"{best_rps:.2f} req/s" if pd.notna(best_rps) else "n/a") best_audio = df["audio_throughput_x"].max() col4.metric("Best audio throughput", f"{best_audio:.2f}x" if pd.notna(best_audio) else "n/a") - st.subheader("Coverage") coverage = ( df.groupby(["modality", "task_type", "load_generator"], dropna=False) .agg(rows=("model", "size"), models=("model", "nunique")) - .reset_index() - .sort_values(["modality", "task_type"]) + .reset_index().sort_values(["modality", "task_type"]) ) st.dataframe(coverage, use_container_width=True, hide_index=True) @@ -425,23 +395,16 @@ def _speech_tab(df: pd.DataFrame): sub = speech.dropna(subset=["concurrency", "audio_rtf_p95"]) if not sub.empty: fig = px.line( - sub.sort_values(["concurrency", "series"]), - x="concurrency", - y="audio_rtf_p95", - color="series", - markers=True, - title="P95 audio RTF with real-time boundary", + sub.sort_values(["concurrency", "series"]), x="concurrency", y="audio_rtf_p95", + color="series", markers=True, title="P95 audio RTF with real-time boundary", labels={"concurrency": "Concurrency", "audio_rtf_p95": "P95 RTF"}, custom_data=PLOT_CUSTOM_DATA, ) fig.add_hline(y=1.0, line_dash="dash", annotation_text="real-time boundary") fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) event = st.plotly_chart( - fig, - use_container_width=True, - key="omni_audio_rtf_boundary", - on_select="rerun", - selection_mode=("points", "box", "lasso"), + fig, use_container_width=True, key="omni_audio_rtf_boundary", + on_select="rerun", selection_mode=("points", "box", "lasso"), ) _show_selected_rows(sub, event) @@ -465,48 +428,66 @@ def _asr_tab(df: pd.DataFrame): _bar(asr, "wer", "Word error rate", "WER (lower is better)", "omni_wer") _bar(asr, "rtfx", "RTFx", "Audio-seconds / wall-second", "omni_rtfx") _bar( - asr, - "transcription_throughput_utterances_s", - "Transcription throughput", - "Utterances / second", - "omni_transcription_tput", + asr, "transcription_throughput_utterances_s", "Transcription throughput", + "Utterances / second", "omni_transcription_tput", ) +def _performance_plots(df: pd.DataFrame): + tabs = st.tabs(["Throughput", "Speech Out", "Text Latency", "ASR Quality"]) + with tabs[0]: + _throughput_tab(df) + with tabs[1]: + _speech_tab(df) + with tabs[2]: + _text_tab(df) + with tabs[3]: + _asr_tab(df) + + +def _filtered_data(df: pd.DataFrame): + st.subheader("📄 Filtered Data") + st.dataframe(df, use_container_width=True, hide_index=True) + st.download_button( + "Download filtered CSV", + data=df.to_csv(index=False).encode("utf-8"), + file_name="consolidated_dashboard_omni_filtered.csv", + mime="text/csv", + ) + + +def _placeholder(section: str): + st.subheader(section) + st.info( + "This RHAIIS section is not implemented for Omni yet. " + "See docs/omni-vs-rhaiis-dashboard.md and PSAP-3204 for the open scope." + ) + + +def _render_section(section: str, df: pd.DataFrame): + if section == "🏠 Overview": + _overview(df) + elif section == "📊 Performance Plots": + _performance_plots(df) + elif section == "📄 Filtered Data": + _filtered_data(df) + else: + _placeholder(section) + + def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv"): - """Render the vLLM-Omni performance dashboard.""" st.header("vLLM-Omni Performance") st.caption( - "Speech-in, speech-out, and text benchmarks. Rows are filtered by modality, " - "task, load generator, model, runtime, and concurrency." + "Speech-in, speech-out, and text benchmarks. Filters follow the RHAIIS " + "layout; the sidebar keeps the RHAIIS navigation." ) + section = _render_sidebar_nav() df = load_omni_data(csv_path) if df is None or df.empty: st.warning("No Omni benchmark data is available.") return - - filtered = _sidebar_filters(df) + filtered = _main_filters(df) if filtered.empty: st.warning("No rows match the current filters.") return - - tabs = st.tabs(["Overview", "Throughput", "Speech Out", "Text Latency", "ASR Quality", "Data"]) - with tabs[0]: - _overview(filtered) - with tabs[1]: - _throughput_tab(filtered) - with tabs[2]: - _speech_tab(filtered) - with tabs[3]: - _text_tab(filtered) - with tabs[4]: - _asr_tab(filtered) - with tabs[5]: - st.subheader("Filtered data") - st.dataframe(filtered, use_container_width=True, hide_index=True) - st.download_button( - "Download filtered CSV", - data=filtered.to_csv(index=False).encode("utf-8"), - file_name="consolidated_dashboard_omni_filtered.csv", - mime="text/csv", - ) + _render_section(section, filtered) From 1ec57660e07d868de3eef543c6504c890bf61832 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 21:32:35 -0500 Subject: [PATCH 09/74] Match Omni Performance Plots to the RHAIIS layout Overview is now the clean default with no filter panel. Performance Plots uses the RHAIIS numbered filters, X/Y selectors, max-concurrency control, plotly_white_light chart styling, and click/box/lasso plot-line selection with a Filtered Data for Plot Lines table. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 24 +-- docs/omni-vs-rhaiis-dashboard.md | 65 ++++--- omni_dashboard.py | 298 +++++++++++++++++-------------- 3 files changed, 218 insertions(+), 169 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index a635389..2843d4c 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -20,7 +20,7 @@ Included in the repo: | File | Purpose | |---|---| -| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 166-column template | +| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column template | | `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR (HF harness), audio-to-text (GuideLLM), and text example rows | | `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | @@ -107,19 +107,21 @@ Inputs: The converter prints a JSON summary with row counts, modality/task breakdown, and required-field blanks. -## Dashboard filters +## Dashboard layout -The Omni view exposes: +The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. -- Modality -- Task type -- Load generator -- Model -- Runtime version -- Accelerator -- Concurrency +**Performance Plots**: -Tabs: Overview, Throughput, Speech Out, Text Latency, ASR Quality, Data (with CSV download). +- RHAIIS-style numbered filters in the main content: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP → Concurrency. +- `Select X-Axis`: `Concurrency` or `Model`. +- `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. +- `Show concurrency up to` ceiling. +- One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, height 560, and RHAIIS margins. +- Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. +- A **Filtered Data for Plot Lines** section shows the source rows for the selected lines, with a **Clear comparison** button. + +**Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. ## Metric notes diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 1420a29..4eab97f 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -5,7 +5,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc ## What was compared - RHAIIS view: left-panel navigation; Performance Plots filters and chart interactions. -- Omni view: left-panel filter block; Overview/Throughput/Speech Out/Text Latency/ASR Quality/Data tabs. +- Omni view at comparison time: left-panel filter block and tabs (replaced in Checkpoint 4). - Both tested locally through WebBridge against the same running Streamlit app. ## RHAIIS experience (current) @@ -31,19 +31,18 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc ## Omni experience (current) -**Left panel is the filter block:** +**Left panel is the RHAIIS navigation shell** (Dashboard, Performance Analysis, Insights, Tools). -- Modality -- Task type -- Load generator -- Model -- Runtime version -- Accelerator -- Concurrency +**Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. -**Main content:** Overview, Throughput, Speech Out, Text Latency, ASR Quality, Data. +**Performance Plots**: +- RHAIIS-style numbered filters in the main content. +- X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. +- One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. +- Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. +- A **Filtered Data for Plot Lines** section below the chart shows the source rows. -Charts are display-only today; there is no click-to-select/filtered-data behavior. The Data tab shows the filtered table and download. +**Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder. ## What is left out when cloning RHAIIS for Omni @@ -117,7 +116,7 @@ Auto-fill rule: | WebBridge: switch RHAIIS → Omni | Both views render; view selector shows five dashboards. | | WebBridge: RHAIIS Performance Plots | Numbered filters found; chart and Filtered Data for Plot Lines section present. | | WebBridge: Omni sidebar | Found Modality, Task type, Load generator, Model, Runtime version, Accelerator, Concurrency. | -| WebBridge: Omni tabs | Six tabs present; 16 Plotly charts across tabs. | +| WebBridge: Omni tabs (pre-Checkpoint 4) | Six tabs present; 16 Plotly charts across tabs. | | Omni offline row display | HF ASR row now shows `offline`, not the HF scorer as a load generator. | | Auto-fill model filter | **Implemented** — TTS/ASR/text paths tested. | | Omni graph click → filtered data | **Implemented** — point/box/lasso line selection and ASR bar selection tested. | @@ -126,18 +125,18 @@ Auto-fill rule: ## Open questions 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** -2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? +2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Filtered Data.* 3. **Filter order:** is the proposed order (Accelerator → Version → Input/Output → Task → Load gen → Model → TP → Concurrency) correct, or should Input/Output come first for TTS/ASR users? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? 6. **TP:** include TP in the Omni UI? Current data is all TP=1. 7. **Version label:** show product `runtime_version` (`3.6 GA`, `3.6-fast2`) or component versions (`vllm`, `vllm-omni`) in the main filter? -8. **Graph selection:** should clicking add plot lines like RHAIIS, filter the whole dashboard, or just open a filtered table? -9. **Filtered data:** one global section or per-chart “Filtered Data for Plot Lines” sections? +8. **Graph selection:** should clicking add plot lines like RHAIIS, filter the whole dashboard, or just open a filtered table? *Currently matches RHAIIS: click/box/lasso adds plot lines.* +9. ~~**Filtered data:** one global section or per-chart “Filtered Data for Plot Lines” sections?~~ **Closed — per-chart section on Performance Plots plus the global Filtered Data page.** 10. **Offline ASR:** should offline rows appear in concurrency/throughput charts with `n/a`, or only in the ASR quality tab? 11. **Locale:** drop `locale` and use `language` for TTS/ASR, or keep both? 12. **Dataset identity:** keep `dataset_split`/`locale`, or simplify to `dataset` + `language` with config/split/revision in `extra_json.dataset_variant`? -13. **Navigation tabs:** keep the six Omni tabs, or rename them to RHAIIS-style sections? +13. ~~**Navigation tabs:** keep the six Omni tabs, or rename them to RHAIIS-style sections?~~ **Closed — tabs removed; Omni uses the RHAIIS nav sections and a single RHAIIS-style chart per metric pair.** ## Closed decisions @@ -151,13 +150,13 @@ Auto-fill rule: ## Implementation checklist -- [ ] Decide Q1/Q2 (navigation/page scope). -- [ ] Reorder filters and add Input/Output. -- [ ] Implement cascading task/load-generator/model options. -- [ ] Auto-select models for selected modality/task. -- [ ] Add graph point/box/lasso selection and filtered-data sections. -- [ ] Keep the global Filtered Data download. -- [ ] Test TTS and ASR journeys through WebBridge. +- [x] Decide Q1/Q2 (navigation/page scope). +- [x] Reorder filters and add Input/Output. +- [x] Implement cascading task/load-generator/model options. +- [x] Auto-select models for selected modality/task. +- [x] Add graph point/box/lasso selection and filtered-data sections. +- [x] Keep the global Filtered Data download. +- [x] Test TTS and ASR journeys through WebBridge. - [ ] Update this document with closed questions and screenshots. ## Checkpoint 2 — implemented and tested @@ -191,3 +190,23 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Moved the Omni filters into the main content as a RHAIIS-style numbered “Filter Your Data” section. - Kept unimplemented RHAIIS pages visible with a clear placeholder. - Tested: nav groups render; Performance Plots opens the Throughput/Speech Out/Text Latency/ASR Quality tabs; Filtered Data opens the table/download; Cost Analysis shows the placeholder; TTS auto-fill still narrows to the TTS model; ASR bar selection opens the filtered-data table. + +## Checkpoint 4 — Overview default + RHAIIS-style Performance Plots + +- **Overview is the clean default**: headline metrics and coverage table, no filter panel. +- **Performance Plots rebuilt as one RHAIIS-style chart**: + - numbered filters remain in main content; + - `Select X-Axis` (`Concurrency` / `Model`), `Select Y-Axis` (throughput, audio RTF/TTFP/underrun, text latency, WER/RTFx), and `Show concurrency up to`; + - `px.line(..., template="plotly_white_light", markers=True, custom_data=...)`; + - RHAIIS trace styling (line width 2, marker size 10, white marker outline) and layout (height 560, margins 80/250/110/60); + - point click and box/lasso selection add plot lines; + - `Filtered Data for Plot Lines` table and `Clear comparison`. +- **Filtered Data page** keeps the numbered filters, table, and CSV download. +- Removed the old Throughput / Speech Out / Text Latency / ASR Quality tabs and their unused chart helpers. +- WebBridge tests: + - Overview loads with no filters and shows the coverage table; + - Performance Plots renders one Plotly chart with the RHAIIS template and legend; + - clicking a TTS point adds its line and shows the filtered table; + - switching Y-axis to `Audio RTF P95` re-renders the chart and prunes concurrency options; + - `Clear comparison` resets the selection; + - `WER` with `Concurrency` X-axis shows a clear no-data message; switching X-axis to `Model` renders the offline ASR point. diff --git a/omni_dashboard.py b/omni_dashboard.py index b546a67..414e857 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -14,8 +14,13 @@ import numpy as np import pandas as pd import plotly.express as px +import plotly.io as pio import streamlit as st +if "plotly_white_light" not in pio.templates: + pio.templates["plotly_white_light"] = pio.templates["plotly_white"] +pio.templates.default = "plotly_white_light" + # Configure logging logging.basicConfig( level=logging.INFO, @@ -62,6 +67,31 @@ "concurrency_label", ] +OMNI_METRICS = { + "Request throughput (req/s)": "request_throughput_rps", + "Audio throughput (audio-s/s)": "audio_throughput_x", + "Output token throughput (tok/s)": "output_token_throughput", + "Total token throughput (tok/s)": "total_token_throughput", + "Audio RTF mean": "audio_rtf_mean", + "Audio RTF P95": "audio_rtf_p95", + "Audio TTFP mean (ms)": "audio_ttfp_ms_mean", + "Audio TTFP P95 (ms)": "audio_ttfp_ms_p95", + "Audio underrun mean (s)": "audio_underrun_s_mean", + "Audio underrun P95 (s)": "audio_underrun_s_p95", + "TTFT median (ms)": "ttft_ms_median", + "TPOT median (ms)": "tpot_ms_median", + "ITL median (ms)": "itl_ms_median", + "End-to-end median (ms)": "e2el_ms_median", + "WER": "wer", + "RTFx": "rtfx", + "Transcription throughput (utt/s)": "transcription_throughput_utterances_s", +} + +OMNI_X_AXES = { + "Concurrency": "concurrency", + "Model": "model", +} + # Same navigation groups/labels as the RHAIIS shell. Pages that are not yet # implemented for Omni render a clear placeholder rather than disappearing. OMNI_NAV_GROUPS = [ @@ -289,75 +319,6 @@ def _render_sidebar_nav() -> str: return st.session_state.omni_active_section -def _selected_rows(sub: pd.DataFrame, event) -> Optional[pd.DataFrame]: - selection = getattr(event, "selection", None) - if selection is None: - return None - points = selection.get("points", []) if isinstance(selection, dict) else getattr(selection, "points", []) - selected = set() - for point in points or []: - custom = point.get("customdata") if isinstance(point, dict) else getattr(point, "customdata", None) - if custom and len(custom) >= len(PLOT_CUSTOM_DATA): - selected.add(tuple(str(value) for value in custom[: len(PLOT_CUSTOM_DATA)])) - if not selected: - return None - - def _matches(row): - return ( - str(row["model"]), str(row["runtime_version"]), - str(row["load_generator"]), str(row["concurrency_label"]), - ) in selected - - return sub[sub.apply(_matches, axis=1)] - - -def _show_selected_rows(sub: pd.DataFrame, event): - selected = _selected_rows(sub, event) - if selected is None or selected.empty: - return - with st.expander("📄 Filtered Data for Selected Points", expanded=True): - st.caption("Rows for the points or lines you selected on the chart.") - st.dataframe(selected, use_container_width=True, hide_index=True) - - -def _line(df: pd.DataFrame, y: str, title: str, y_label: str, key: str, color: str = "series"): - sub = df.dropna(subset=["concurrency", y]) - if sub.empty: - st.info(f"No {y_label} data for the current filters.") - return - fig = px.line( - sub.sort_values(["concurrency", color]), x="concurrency", y=y, color=color, - markers=True, title=title, - labels={"concurrency": "Concurrency", y: y_label, color: "Model | version | generator"}, - custom_data=PLOT_CUSTOM_DATA, - ) - fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) - event = st.plotly_chart( - fig, use_container_width=True, key=key, on_select="rerun", - selection_mode=("points", "box", "lasso"), - ) - st.caption("Click points, or box/lasso-select an area, to inspect the source rows.") - _show_selected_rows(sub, event) - - -def _bar(df: pd.DataFrame, y: str, title: str, y_label: str, key: str, color: str = "model"): - sub = df.dropna(subset=[y]) - if sub.empty: - st.info(f"No {y_label} data for the current filters.") - return - fig = px.bar( - sub, x=color, y=y, color=color, title=title, - labels={y: y_label, color: color.replace("_", " ").title()}, - custom_data=PLOT_CUSTOM_DATA, - ) - fig.update_layout(showlegend=False, margin=dict(l=10, r=10, t=50, b=10)) - event = st.plotly_chart( - fig, use_container_width=True, key=key, on_select="rerun", - selection_mode=("points", "box", "lasso"), - ) - _show_selected_rows(sub, event) - - def _overview(df: pd.DataFrame): rows, models = len(df), df["model"].nunique() col1, col2, col3, col4 = st.columns(4) @@ -376,73 +337,136 @@ def _overview(df: pd.DataFrame): st.dataframe(coverage, use_container_width=True, hide_index=True) -def _throughput_tab(df: pd.DataFrame): - _line(df, "request_throughput_rps", "Request throughput", "Requests / second", "omni_req_tput") - _line(df, "audio_throughput_x", "Audio throughput", "Audio-seconds / wall-second", "omni_audio_tput") - _line(df, "output_token_throughput", "Output token throughput", "Tokens / second", "omni_out_tok_tput") - _line(df, "total_token_throughput", "Total token throughput", "Tokens / second", "omni_total_tok_tput") - +def _performance_plots(df: pd.DataFrame): + st.subheader("📊 Performance Plots") + st.markdown( + "💡 **Tip:** Click on the full screen view (⛶) of the graph to get a detailed view." + ) -def _speech_tab(df: pd.DataFrame): - speech = df[df["output_modality"].eq("audio")] - if speech.empty: - st.info("No speech-output rows for the current filters.") - return - _line(speech, "audio_rtf_mean", "Mean audio RTF", "RTF (lower is better)", "omni_audio_rtf_mean") - _line(speech, "audio_rtf_p95", "P95 audio RTF", "RTF (lower is better)", "omni_audio_rtf_p95") - _line(speech, "audio_ttfp_ms_mean", "Mean audio TTFP", "Milliseconds", "omni_audio_ttfp") - _line(speech, "audio_underrun_s_mean", "Mean audio underrun", "Seconds", "omni_audio_underrun") - sub = speech.dropna(subset=["concurrency", "audio_rtf_p95"]) - if not sub.empty: - fig = px.line( - sub.sort_values(["concurrency", "series"]), x="concurrency", y="audio_rtf_p95", - color="series", markers=True, title="P95 audio RTF with real-time boundary", - labels={"concurrency": "Concurrency", "audio_rtf_p95": "P95 RTF"}, - custom_data=PLOT_CUSTOM_DATA, + col1, col2, col3 = st.columns(3) + with col1: + x_label = st.selectbox( + "Select X-Axis", list(OMNI_X_AXES), key="omni_perf_x_axis" ) - fig.add_hline(y=1.0, line_dash="dash", annotation_text="real-time boundary") - fig.update_layout(legend_title_text="", margin=dict(l=10, r=10, t=50, b=10)) - event = st.plotly_chart( - fig, use_container_width=True, key="omni_audio_rtf_boundary", - on_select="rerun", selection_mode=("points", "box", "lasso"), + with col2: + y_label = st.selectbox( + "Select Y-Axis", list(OMNI_METRICS), key="omni_perf_y_axis" ) - _show_selected_rows(sub, event) - + x_axis = OMNI_X_AXES[x_label] + y_axis = OMNI_METRICS[y_label] + + sub = df.dropna(subset=[x_axis, y_axis]).copy() + if x_axis == "concurrency": + sub["concurrency"] = pd.to_numeric(sub["concurrency"], errors="coerce") + sub = sub.dropna(subset=["concurrency"]) + concurrency_values = sorted( + {float(value) for value in sub["concurrency"].dropna()} + ) + if concurrency_values: + with col3: + if ( + "omni_perf_max_concurrency" in st.session_state + and st.session_state["omni_perf_max_concurrency"] + not in concurrency_values + ): + st.session_state.pop("omni_perf_max_concurrency") + max_conc = st.selectbox( + "Show concurrency up to", + concurrency_values, + index=len(concurrency_values) - 1, + key="omni_perf_max_concurrency", + format_func=lambda value: ( + str(int(value)) if float(value).is_integer() else str(value) + ), + ) + sub = sub[sub["concurrency"] <= max_conc] + else: + with col3: + st.caption("Model axis is useful for offline ASR metrics (WER, RTFx).") -def _text_tab(df: pd.DataFrame): - text = df[df["output_modality"].eq("text") & df["ttft_ms_median"].notna()] - if text.empty: - st.info("No text-latency rows for the current filters.") + if sub.empty: + st.info(f"No data available for '{y_label}' with these filters.") return - _line(text, "ttft_ms_median", "Median TTFT", "Milliseconds", "omni_ttft") - _line(text, "tpot_ms_median", "Median TPOT", "Milliseconds", "omni_tpot") - _line(text, "itl_ms_median", "Median ITL", "Milliseconds", "omni_itl") - _line(text, "e2el_ms_median", "Median end-to-end latency", "Milliseconds", "omni_e2el") + fig = px.line( + sub.sort_values([x_axis, "series"]), + x=x_axis, + y=y_axis, + color="series", + markers=True, + title=f"{y_label} vs {x_label}", + labels={x_axis: x_label, y_axis: y_label, "series": "Run"}, + custom_data=PLOT_CUSTOM_DATA, + template="plotly_white_light", + ) + for trace in fig.data: + trace.line.width = 2 + trace.marker.size = 10 + trace.marker.line = {"width": 1, "color": "white"} + trace.hovertemplate = ( + f"{x_label}: %{{x}}
" + f"{y_label}: %{{y}}
" + "Model: %{customdata[0]}
" + "Version: %{customdata[1]}
" + "Load generator: %{customdata[2]}
" + "Concurrency: %{customdata[3]}" + ) + fig.update_layout( + hovermode="closest", + legend_title_text="Run Details (Model | Version | Load generator)", + height=560, + margin={"l": 80, "r": 250, "t": 110, "b": 60}, + title={"font": {"size": 18}, "x": 0.02, "xanchor": "left", "y": 0.94, "yanchor": "top"}, + ) -def _asr_tab(df: pd.DataFrame): - asr = df[df["task_type"].eq("asr_transcription") | df["wer"].notna()] - if asr.empty: - st.info("No ASR rows for the current filters.") - return - _bar(asr, "wer", "Word error rate", "WER (lower is better)", "omni_wer") - _bar(asr, "rtfx", "RTFx", "Audio-seconds / wall-second", "omni_rtfx") - _bar( - asr, "transcription_throughput_utterances_s", "Transcription throughput", - "Utterances / second", "omni_transcription_tput", + series_options = sorted(sub["series"].unique()) + if "omni_perf_lines" in st.session_state: + st.session_state["omni_perf_lines"] = [ + line for line in st.session_state["omni_perf_lines"] if line in series_options + ] + selected_lines = st.multiselect( + "Plot lines to compare", series_options, key="omni_perf_lines" ) + def _merge_plot_selection(): + points = st.session_state["omni_perf_chart"]["selection"]["points"] + merged = set(st.session_state.get("omni_perf_lines", [])) + for point in points or []: + custom = point.get("customdata") if isinstance(point, dict) else [] + if custom and len(custom) >= 3: + merged.add(f"{custom[0]} | {custom[1]} | {custom[2]}") + st.session_state["omni_perf_lines"] = sorted(merged) + + def _clear_comparison(): + st.session_state["omni_perf_lines"] = [] + + st.plotly_chart( + fig, + use_container_width=True, + theme=None, + key="omni_perf_chart", + on_select=_merge_plot_selection, + selection_mode=("points", "box", "lasso"), + ) + st.caption( + "Click points, or box/lasso-select an area, to add lines to the comparison. " + "You can also choose lines below." + ) -def _performance_plots(df: pd.DataFrame): - tabs = st.tabs(["Throughput", "Speech Out", "Text Latency", "ASR Quality"]) - with tabs[0]: - _throughput_tab(df) - with tabs[1]: - _speech_tab(df) - with tabs[2]: - _text_tab(df) - with tabs[3]: - _asr_tab(df) + st.subheader("📄 Filtered Data for Plot Lines") + st.caption("The table shows the source rows for the selected plot lines.") + if selected_lines: + st.dataframe( + sub[sub["series"].isin(selected_lines)], + use_container_width=True, + hide_index=True, + ) + if st.button( + "Clear comparison", key="omni_perf_clear", on_click=_clear_comparison + ): + pass + else: + st.caption("No plot lines selected.") def _filtered_data(df: pd.DataFrame): @@ -468,9 +492,17 @@ def _render_section(section: str, df: pd.DataFrame): if section == "🏠 Overview": _overview(df) elif section == "📊 Performance Plots": - _performance_plots(df) + filtered = _main_filters(df) + if filtered.empty: + st.warning("No rows match the current filters.") + return + _performance_plots(filtered) elif section == "📄 Filtered Data": - _filtered_data(df) + filtered = _main_filters(df) + if filtered.empty: + st.warning("No rows match the current filters.") + return + _filtered_data(filtered) else: _placeholder(section) @@ -478,16 +510,12 @@ def _render_section(section: str, df: pd.DataFrame): def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv"): st.header("vLLM-Omni Performance") st.caption( - "Speech-in, speech-out, and text benchmarks. Filters follow the RHAIIS " - "layout; the sidebar keeps the RHAIIS navigation." + "Speech-in, speech-out, and text benchmarks. Overview is the default page; " + "Performance Plots uses the RHAIIS filter and chart layout." ) section = _render_sidebar_nav() df = load_omni_data(csv_path) if df is None or df.empty: st.warning("No Omni benchmark data is available.") return - filtered = _main_filters(df) - if filtered.empty: - st.warning("No rows match the current filters.") - return - _render_section(section, filtered) + _render_section(section, df) From 1e78d119cb3c7f98c11b8ee19d34680e95709f92 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 21:45:20 -0500 Subject: [PATCH 10/74] Show all concurrency values in Omni plots Remove the concurrency multiselect from the shared filter block so every available concurrency value reaches Performance Plots. The chart-level "Show concurrency up to" control remains for limiting the visible range. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 15 +++++++++++---- omni_dashboard.py | 21 ++++----------------- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 2843d4c..a80d7ec 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -113,7 +113,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- RHAIIS-style numbered filters in the main content: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP → Concurrency. +- RHAIIS-style numbered filters in the main content: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 4eab97f..570a2aa 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -80,7 +80,8 @@ Proposed sidebar/main filter order: 5. Select Load Generator(s) 6. Select Model(s) — **auto-populated from 3/4/5** 7. Select TP Size(s) — if more than one TP exists -8. Concurrency + +Concurrency is **not** a filter. Performance Plots shows every available concurrency value for the selected data and offers a chart-level `Show concurrency up to` ceiling instead. Auto-fill rule: @@ -95,7 +96,7 @@ Auto-fill rule: 1. Open Omni Dashboard. 2. Choose `text → audio`. 3. Models auto-fill to TTS models with data. -4. Choose model/version/accelerator and concurrency. +4. Choose model/version/accelerator; the chart shows every available concurrency value. 5. Review Throughput and Speech Out. 6. Check audio TTFP, RTF (lower is better), underrun, and audio throughput. 7. Click chart points/select lines; inspect the filtered rows; download CSV if needed. @@ -126,7 +127,7 @@ Auto-fill rule: 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** 2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Filtered Data.* -3. **Filter order:** is the proposed order (Accelerator → Version → Input/Output → Task → Load gen → Model → TP → Concurrency) correct, or should Input/Output come first for TTS/ASR users? +3. **Filter order:** is the proposed order (Accelerator → Version → Input/Output → Task → Load gen → Model → TP) correct, or should Input/Output come first for TTS/ASR users? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? 6. **TP:** include TP in the Omni UI? Current data is all TP=1. @@ -163,7 +164,7 @@ Auto-fill rule: Implemented in `omni_dashboard.py`: -- RHAIIS-style numbered filter order: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP → Concurrency. +- RHAIIS-style numbered filter order: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP. (The concurrency filter added here was removed in Checkpoint 5.) - Cascading option sets: selecting an input/output pair narrows task, load generator, and model options. - Model auto-fill: all models with data for the selected pair/task/load generator are selected by default. - Point/box/lasso selection on line charts and point selection on ASR bars. @@ -210,3 +211,9 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - switching Y-axis to `Audio RTF P95` re-renders the chart and prunes concurrency options; - `Clear comparison` resets the selection; - `WER` with `Concurrency` X-axis shows a clear no-data message; switching X-axis to `Model` renders the offline ASR point. + +## Checkpoint 5 — concurrency filter removed + +- Removed `8️⃣ Select Concurrency` from the main filter block. All concurrency values for the selected data now flow into Performance Plots. +- The chart-level `Show concurrency up to` selector remains for limiting the visible range. +- Filter steps are now Accelerator → Version → Input/Output → Task → Load Generator → Model → TP. diff --git a/omni_dashboard.py b/omni_dashboard.py index 414e857..f00b947 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -276,25 +276,12 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: if models: filtered = filtered[filtered["model"].isin(models)] - col7, col8 = st.columns(2) - with col7: - tps = _multiselect( - "7️⃣ Select TP Size(s)", _values(filtered, "tp"), - _selection_key("omni_tp", io_pairs, tasks, generators, models), - ) + tps = _multiselect( + "7️⃣ Select TP Size(s)", _values(filtered, "tp"), + _selection_key("omni_tp", io_pairs, tasks, generators, models), + ) if tps: filtered = filtered[filtered["tp"].isin(tps)] - with col8: - conc_options = sorted( - df["concurrency_label"].dropna().unique(), - key=lambda value: (value == "n/a", float(value) if value != "n/a" else 0), - ) - if conc_options: - selected = st.multiselect( - "8️⃣ Select Concurrency", conc_options, - default=conc_options, key="omni_concurrency", - ) - filtered = filtered[filtered["concurrency_label"].isin(selected)] return filtered From fd4fca0de56e799801e4b526e021c9e563e6fd47 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 21:52:38 -0500 Subject: [PATCH 11/74] Match Omni filter band to the RHAIIS layout Replace the expander and two-column grid with the RHAIIS horizontal filter band: a Filter Your Data subheader and five columns (1.5, 1.3, 1.5, 2.7, 1) holding Accelerator, Input/Output, Version + Task, Load Generator + Model, and TP. Version options now cascade from Accelerator + Input/Output. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 15 ++++-- omni_dashboard.py | 88 +++++++++++++++++--------------- 3 files changed, 58 insertions(+), 47 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index a80d7ec..e4e5eec 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -113,7 +113,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- RHAIIS-style numbered filters in the main content: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header, using RHAIIS column widths: Accelerator → Input/Output → Version + Task → Load Generator + Model → TP. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 570a2aa..c04dffa 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -35,8 +35,8 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. -**Performance Plots**: -- RHAIIS-style numbered filters in the main content. +- **Performance Plots**: +- Horizontal RHAIIS-style filter band in the main content with RHAIIS column widths (`1.5, 1.3, 1.5, 2.7, 1`). - X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. - One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. @@ -127,7 +127,7 @@ Auto-fill rule: 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** 2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Filtered Data.* -3. **Filter order:** is the proposed order (Accelerator → Version → Input/Output → Task → Load gen → Model → TP) correct, or should Input/Output come first for TTS/ASR users? +3. **Filter order:** is the proposed order (Accelerator → Input/Output → Version → Task → Load gen → Model → TP) correct? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? 6. **TP:** include TP in the Omni UI? Current data is all TP=1. @@ -216,4 +216,11 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Removed `8️⃣ Select Concurrency` from the main filter block. All concurrency values for the selected data now flow into Performance Plots. - The chart-level `Show concurrency up to` selector remains for limiting the visible range. -- Filter steps are now Accelerator → Version → Input/Output → Task → Load Generator → Model → TP. +- Filter steps were Accelerator → Version → Input/Output → Task → Load Generator → Model → TP (reordered in Checkpoint 6). + +## Checkpoint 6 — horizontal RHAIIS filter band + +- Replaced the `st.expander` filter block and 2-column grid with `st.subheader("Filter Your Data")` and one horizontal row using RHAIIS column widths `[1.5, 1.3, 1.5, 2.7, 1]`. +- Layout mirrors the RHAIIS screenshot: Accelerator in column 1, Input/Output in column 2, Version + Task in column 3, Load Generator + Model in column 4, TP in column 5. +- Removed the extra caption so the section starts directly with the RHAIIS-style filter band. +- Version options now cascade from Accelerator + Input/Output; Task, Load Generator, Model, and TP continue to cascade. diff --git a/omni_dashboard.py b/omni_dashboard.py index f00b947..052af3e 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -224,61 +224,65 @@ def _selection_key(prefix: str, *groups) -> str: def _main_filters(df: pd.DataFrame) -> pd.DataFrame: - """RHAIIS-style numbered filter steps in the main content.""" - filtered = df.copy() - with st.expander("Filter Your Data", expanded=True): - st.caption( - "Same step order as RHAIIS. Model options auto-fill from the selected " - "input/output and task." + """RHAIIS-style filter band in the main content.""" + st.subheader("Filter Your Data") + + filter_col1, filter_col2, filter_col3, filter_col4, filter_col5 = st.columns( + [1.5, 1.3, 1.5, 2.7, 1] + ) + + with filter_col1: + accelerators = _multiselect( + "1️⃣ Select Accelerator(s)", _values(df, "accelerator"), "omni_accelerator" + ) + filtered = df + if accelerators: + filtered = filtered[filtered["accelerator"].isin(accelerators)] + + with filter_col2: + io_pairs = _multiselect( + "2️⃣ Select Input / Output", _values(filtered, "io_pair"), + _selection_key("omni_io", accelerators), + ) + if io_pairs: + filtered = filtered[filtered["io_pair"].isin(io_pairs)] + + with filter_col3: + versions = _multiselect( + "3️⃣ Select Version(s)", _values(filtered, "runtime_version"), + _selection_key("omni_version", accelerators, io_pairs), ) - col1, col2 = st.columns(2) - with col1: - accelerators = _multiselect( - "1️⃣ Select Accelerator(s)", _values(df, "accelerator"), "omni_accelerator" - ) - with col2: - versions = _multiselect( - "2️⃣ Select Version(s)", _values(df, "runtime_version"), "omni_version" - ) - if accelerators: - filtered = filtered[filtered["accelerator"].isin(accelerators)] if versions: filtered = filtered[filtered["runtime_version"].isin(versions)] - - col3, col4 = st.columns(2) - with col3: - io_pairs = _multiselect( - "3️⃣ Select Input / Output", _values(df, "io_pair"), "omni_io" - ) - if io_pairs: - filtered = filtered[filtered["io_pair"].isin(io_pairs)] - with col4: - tasks = _multiselect( - "4️⃣ Select Task Type(s)", _values(filtered, "task_type"), - _selection_key("omni_task", io_pairs), - ) + tasks = _multiselect( + "4️⃣ Select Task Type(s)", _values(filtered, "task_type"), + _selection_key("omni_task", accelerators, io_pairs, versions), + ) if tasks: filtered = filtered[filtered["task_type"].isin(tasks)] - col5, col6 = st.columns(2) - with col5: - generators = _multiselect( - "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), - _selection_key("omni_generator", io_pairs, tasks), - ) + with filter_col4: + generators = _multiselect( + "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), + _selection_key("omni_generator", accelerators, io_pairs, versions, tasks), + ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] - with col6: - models = _multiselect( - "6️⃣ Select Model(s)", _values(filtered, "model"), - _selection_key("omni_model", io_pairs, tasks, generators), - ) + models = _multiselect( + "6️⃣ Select Model(s)", _values(filtered, "model"), + _selection_key( + "omni_model", accelerators, io_pairs, versions, tasks, generators + ), + ) if models: filtered = filtered[filtered["model"].isin(models)] + with filter_col5: tps = _multiselect( "7️⃣ Select TP Size(s)", _values(filtered, "tp"), - _selection_key("omni_tp", io_pairs, tasks, generators, models), + _selection_key( + "omni_tp", accelerators, io_pairs, versions, tasks, generators, models + ), ) if tps: filtered = filtered[filtered["tp"].isin(tps)] From 7def23517f30d20ec7f4250b0fc6f36013e98084 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 21:58:33 -0500 Subject: [PATCH 12/74] Simplify Omni placeholder message Co-Authored-By: Claude Code --- omni_dashboard.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index 052af3e..2db9add 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -473,10 +473,7 @@ def _filtered_data(df: pd.DataFrame): def _placeholder(section: str): st.subheader(section) - st.info( - "This RHAIIS section is not implemented for Omni yet. " - "See docs/omni-vs-rhaiis-dashboard.md and PSAP-3204 for the open scope." - ) + st.info("This section is not implemented for Omni yet.") def _render_section(section: str, df: pd.DataFrame): From f233d3095fe616ce9e6f539267bf50a3b2de623c Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:16:58 -0500 Subject: [PATCH 13/74] Add reusable MLflow run extractor Move the run/artifact extractor into manual_runs/scripts, with tracking server, workspace, and credentials supplied through the environment. It supports run IDs, name regexes, status filters, artifact globs, dry runs, and a per-file size cap. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 27 ++ manual_runs/scripts/extract_mlflow_runs.py | 364 +++++++++++++++++++++ 2 files changed, 391 insertions(+) create mode 100644 manual_runs/scripts/extract_mlflow_runs.py diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index e4e5eec..497fdba 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -107,6 +107,33 @@ Inputs: The converter prints a JSON summary with row counts, modality/task breakdown, and required-field blanks. +## Extract runs from MLflow + +`manual_runs/scripts/extract_mlflow_runs.py` pulls run metadata and selected artifacts into a local folder. Credentials and the tracking server come from the environment; nothing is hardcoded. + +```bash +export MLFLOW_TRACKING_URI=https://mlflow.example.com +export MLFLOW_WORKSPACE=my-workspace +export MLFLOW_TRACKING_USERNAME=... +export MLFLOW_TRACKING_PASSWORD=... + +python manual_runs/scripts/extract_mlflow_runs.py \ + --experiment-id 392 \ + --name-regex '^my-benchmark-run_.*_c[0-9]+$' \ + --artifact-pattern 'results/*.json' \ + --artifact-pattern 'logs/*.log' \ + --output-dir ~/Downloads/mlflow-runs +``` + +Outputs: + +- `runs.json` — full run records +- `runs_summary.csv` — flattened `param.*`, `metric.*`, and `tag.*` columns +- `manifest.json` — selection, downloaded files, skipped files, errors +- `artifacts//` — downloaded files, artifact paths preserved + +Use `--dry-run` to preview the selection, `--run-id` for specific runs, `--skip-artifacts` for metadata only, and `--max-artifact-mb` to guard against large logs. + ## Dashboard layout The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. diff --git a/manual_runs/scripts/extract_mlflow_runs.py b/manual_runs/scripts/extract_mlflow_runs.py new file mode 100644 index 0000000..d71cc3c --- /dev/null +++ b/manual_runs/scripts/extract_mlflow_runs.py @@ -0,0 +1,364 @@ +#!/usr/bin/env python3 +"""Extract MLflow runs and selected artifacts into a local folder. + +Examples: + export MLFLOW_TRACKING_URI=https://mlflow.example.com + export MLFLOW_WORKSPACE=my-workspace + export MLFLOW_TRACKING_USERNAME=... + export MLFLOW_TRACKING_PASSWORD=... + + python manual_runs/scripts/extract_mlflow_runs.py \ + --experiment-id 392 \ + --name-regex '^my-benchmark-run_.*_c[0-9]+$' \ + --artifact-pattern 'results/*.json' \ + --artifact-pattern 'logs/*.log' \ + --output-dir ~/Downloads/mlflow-runs + +Outputs: + /runs.json Full MLflow run records + /runs_summary.csv Flattened params, metrics, and tags + /manifest.json Selection, downloads, and errors + /artifacts// Downloaded artifacts, paths preserved +""" + +from __future__ import annotations + +import argparse +import csv +import fnmatch +import json +import os +import re +import shutil +import sys +import tempfile +import urllib3 +from datetime import datetime, timezone +from pathlib import Path + +DEFAULT_TRACKING_URI = os.environ.get("MLFLOW_TRACKING_URI", "") +DEFAULT_WORKSPACE = os.environ.get("MLFLOW_WORKSPACE", "") +DEFAULT_ARTIFACT_PATTERNS = ["results/*"] + + +def utc_now() -> str: + return datetime.now(timezone.utc).isoformat(timespec="seconds") + + +def ms_to_utc(value: int | None) -> str: + if not value: + return "" + return datetime.fromtimestamp(value / 1000, tz=timezone.utc).isoformat(timespec="seconds") + + +def safe_dirname(run_name: str, run_id: str) -> str: + name = re.sub(r"[^A-Za-z0-9._-]+", "_", run_name or "run").strip("._") + return f"{name[:120] or 'run'}__{run_id[:8]}" + + +def matches_any(path: str, patterns: list[str]) -> bool: + return any(fnmatch.fnmatch(path, pattern) for pattern in patterns) + + +def flatten_run(run) -> dict: + row = { + "run_id": run.info.run_id, + "run_name": run.info.run_name or "", + "status": run.info.status, + "experiment_id": run.info.experiment_id, + "start_time_utc": ms_to_utc(run.info.start_time), + "end_time_utc": ms_to_utc(run.info.end_time), + "artifact_uri": run.info.artifact_uri, + } + for key, value in (run.data.params or {}).items(): + row[f"param.{key}"] = value + for key, value in (run.data.metrics or {}).items(): + row[f"metric.{key}"] = value + for key, value in (run.data.tags or {}).items(): + row[f"tag.{key}"] = value + return row + + +def walk_artifacts(client, run_id: str, path: str = ""): + for item in client.list_artifacts(run_id, path): + if item.is_dir: + yield from walk_artifacts(client, run_id, item.path) + else: + yield item + + +def select_runs(client, args): + if args.run_id: + runs = [client.get_run(run_id) for run_id in args.run_id] + else: + filter_parts = [] + if args.status: + filter_parts.append(f"attributes.status = '{args.status}'") + runs = client.search_runs( + [args.experiment_id], + filter_string=" and ".join(filter_parts), + max_results=args.max_results, + order_by=[args.order_by], + ) + + if args.name_regex: + pattern = re.compile(args.name_regex) + runs = [run for run in runs if pattern.search(run.info.run_name or "")] + + if args.limit: + runs = runs[: args.limit] + + return runs + + +def print_summary(runs) -> None: + if not runs: + return + print(f"{'run_name':<64} {'status':<10} {'c':>4} {'req/s':>9} {'p95 RTF':>9}") + print("-" * 100) + for run in runs: + params = run.data.params or {} + metrics = run.data.metrics or {} + c = params.get("max_concurrency", "") + rps = metrics.get("request_throughput") + rtf = metrics.get("p95_audio_rtf") + rps_text = f"{rps:.3f}" if isinstance(rps, (int, float)) else "" + rtf_text = f"{rtf:.4f}" if isinstance(rtf, (int, float)) else "" + print( + f"{(run.info.run_name or '')[:64]:<64} {run.info.status:<10} " + f"{str(c):>4} {rps_text:>9} {rtf_text:>9}" + ) + + +def main() -> int: + parser = argparse.ArgumentParser( + description="Extract MLflow runs, metrics, and selected artifacts." + ) + parser.add_argument("--experiment-id", default=None) + parser.add_argument("--tracking-uri", default=DEFAULT_TRACKING_URI) + parser.add_argument("--workspace", default=DEFAULT_WORKSPACE) + parser.add_argument("--run-id", action="append", help="Extract specific run ID(s).") + parser.add_argument("--name-regex", help="Only runs whose name matches this regex.") + parser.add_argument( + "--status", choices=["RUNNING", "SCHEDULED", "FINISHED", "FAILED", "KILLED"] + ) + parser.add_argument( + "--order-by", default="attributes.start_time DESC", help="MLflow order_by clause." + ) + parser.add_argument("--max-results", type=int, default=500) + parser.add_argument("--limit", type=int, help="Cap the number of selected runs.") + parser.add_argument( + "--artifact-pattern", + action="append", + dest="artifact_patterns", + help=f"Glob for artifact paths. Default: {DEFAULT_ARTIFACT_PATTERNS}. Repeatable.", + ) + parser.add_argument( + "--max-artifact-mb", + type=float, + default=25.0, + help="Skip individual artifacts larger than this size (default: 25).", + ) + parser.add_argument( + "--skip-artifacts", action="store_true", help="Write run metadata only." + ) + parser.add_argument( + "--dry-run", action="store_true", help="Select and list artifacts without writing." + ) + parser.add_argument( + "--insecure", + action="store_true", + default=os.environ.get("MLFLOW_TRACKING_INSECURE_TLS", "").lower() + in ("1", "true", "yes"), + help="Disable TLS verification.", + ) + parser.add_argument( + "--output-dir", + default=None, + help="Destination (default: mlflow_extracts/_).", + ) + args = parser.parse_args() + + if not args.tracking_uri: + parser.error("Set --tracking-uri or MLFLOW_TRACKING_URI.") + if not args.run_id and not args.experiment_id: + parser.error("Set --experiment-id when not using --run-id.") + + os.environ["MLFLOW_TRACKING_URI"] = args.tracking_uri + if args.workspace: + os.environ["MLFLOW_WORKSPACE"] = args.workspace + if args.insecure: + os.environ["MLFLOW_TRACKING_INSECURE_TLS"] = "true" + urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + os.environ.setdefault("MLFLOW_ENABLE_ARTIFACTS_PROGRESS_BAR", "false") + + try: + from mlflow.tracking import MlflowClient + except ImportError: + print("mlflow is not installed. Install it with: pip install mlflow", file=sys.stderr) + return 2 + + username = os.environ.get("MLFLOW_TRACKING_USERNAME") + password = os.environ.get("MLFLOW_TRACKING_PASSWORD") + if bool(username) != bool(password): + print( + "Set both MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD, or neither.", + file=sys.stderr, + ) + return 2 + + client = MlflowClient(tracking_uri=args.tracking_uri) + try: + runs = select_runs(client, args) + except Exception as exc: + message = str(exc) + hint = "" + if "401" in message or "403" in message or "Unauthorized" in message: + hint = ( + " Check MLFLOW_TRACKING_USERNAME/PASSWORD and MLFLOW_WORKSPACE " + f"(current workspace: {args.workspace or 'unset'})." + ) + print(f"MLflow query failed: {message}.{hint}", file=sys.stderr) + return 1 + + if not runs: + print("No runs matched the selection.", file=sys.stderr) + return 1 + + if args.dry_run: + print_summary(runs) + patterns = args.artifact_patterns or DEFAULT_ARTIFACT_PATTERNS + for run in runs: + files = [ + item + for item in walk_artifacts(client, run.info.run_id) + if matches_any(item.path, patterns) + ] + print(f"\n{run.info.run_name} ({run.info.run_id})") + for item in files: + size = f"{item.file_size} B" if item.file_size is not None else "size unknown" + print(f" {item.path} ({size})") + return 0 + + stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ") + output_dir = Path( + args.output_dir or f"mlflow_extracts/{args.experiment_id}_{stamp}" + ).expanduser() + output_dir.mkdir(parents=True, exist_ok=True) + + runs_payload = [] + for run in runs: + payload = run.to_dictionary() if hasattr(run, "to_dictionary") else {} + runs_payload.append(payload) + (output_dir / "runs.json").write_text(json.dumps(runs_payload, indent=2)) + + rows = [flatten_run(run) for run in runs] + fieldnames = list(rows[0].keys()) + extra = sorted( + {key for row in rows for key in row if key not in fieldnames}, + key=lambda key: (not key.startswith("param."), key), + ) + fieldnames.extend(extra) + with (output_dir / "runs_summary.csv").open("w", newline="") as handle: + writer = csv.DictWriter(handle, fieldnames=fieldnames, lineterminator="\n") + writer.writeheader() + writer.writerows(rows) + + patterns = args.artifact_patterns or DEFAULT_ARTIFACT_PATTERNS + manifest = { + "generated_at_utc": utc_now(), + "tracking_uri": args.tracking_uri, + "workspace": args.workspace, + "experiment_id": args.experiment_id, + "selection": { + "run_ids": args.run_id, + "name_regex": args.name_regex, + "status": args.status, + "order_by": args.order_by, + "max_results": args.max_results, + "limit": args.limit, + "artifact_patterns": patterns, + }, + "run_count": len(runs), + "runs": [], + "errors": [], + } + + for run in runs: + run_dir = output_dir / "artifacts" / safe_dirname(run.info.run_name or "", run.info.run_id) + run_entry = { + "run_id": run.info.run_id, + "run_name": run.info.run_name or "", + "status": run.info.status, + "artifact_dir": str(run_dir.relative_to(output_dir)), + "downloaded": [], + "skipped": [], + "errors": [], + } + + if not args.skip_artifacts: + try: + files = [ + item + for item in walk_artifacts(client, run.info.run_id) + if matches_any(item.path, patterns) + ] + except Exception as exc: + run_entry["errors"].append(f"list artifacts: {exc}") + manifest["errors"].append(f"{run.info.run_id}: list artifacts: {exc}") + files = [] + + for item in files: + if ( + item.file_size is not None + and args.max_artifact_mb + and item.file_size > args.max_artifact_mb * 1024 * 1024 + ): + run_entry["skipped"].append( + { + "path": item.path, + "size_bytes": item.file_size, + "reason": f"larger than {args.max_artifact_mb} MB", + } + ) + continue + try: + with tempfile.TemporaryDirectory() as tmp: + local = Path( + client.download_artifacts(run.info.run_id, item.path, tmp) + ) + target = run_dir / item.path + target.parent.mkdir(parents=True, exist_ok=True) + shutil.move(str(local), str(target)) + run_entry["downloaded"].append( + { + "path": item.path, + "local_path": str(target.relative_to(output_dir)), + "size_bytes": target.stat().st_size, + } + ) + except Exception as exc: + message = f"{item.path}: {exc}" + run_entry["errors"].append(message) + manifest["errors"].append(f"{run.info.run_id}: {message}") + + manifest["runs"].append(run_entry) + + (output_dir / "manifest.json").write_text(json.dumps(manifest, indent=2)) + + print_summary(runs) + downloaded = sum(len(entry["downloaded"]) for entry in manifest["runs"]) + skipped = sum(len(entry["skipped"]) for entry in manifest["runs"]) + errors = len(manifest["errors"]) + print( + f"\nWrote {len(runs)} runs, {downloaded} artifacts, {skipped} skipped, " + f"{errors} errors to {output_dir}" + ) + if errors: + print("See manifest.json for error details.", file=sys.stderr) + return 1 + return 0 + + +if __name__ == "__main__": + sys.exit(main()) From dbdb92035c0e3ae75c9760304a61c372101a498c Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:21:52 -0500 Subject: [PATCH 14/74] Add Omni View Logs page Resolve a run's log from MLflow artifacts, a local log directory, or S3 by deployment UUID. Prefer the run's saturation log, then full/startup logs, and show startup-only output by default with full-log and download controls. Add a sanitized demo log for the public sample and allow OMNI_CSV_PATH to point the dashboard at a real dataset. Co-Authored-By: Claude Code --- .gitignore | 2 + datasets/omni/logs/demo-tts-c1.log | 24 +++ docs/omni-dashboard.md | 8 + docs/omni-vs-rhaiis-dashboard.md | 16 +- omni_dashboard.py | 312 +++++++++++++++++++++++++++++ tests/test_omni_csv.py | 8 + 6 files changed, 368 insertions(+), 2 deletions(-) create mode 100644 datasets/omni/logs/demo-tts-c1.log diff --git a/.gitignore b/.gitignore index c0343f1..7128a5b 100644 --- a/.gitignore +++ b/.gitignore @@ -216,6 +216,8 @@ gpt-oss-dynamo-llmd/ # Log files *.log logs/ +!datasets/omni/logs/ +!datasets/omni/logs/*.log # Cache directories .cache/ diff --git a/datasets/omni/logs/demo-tts-c1.log b/datasets/omni/logs/demo-tts-c1.log new file mode 100644 index 0000000..9f818bc --- /dev/null +++ b/datasets/omni/logs/demo-tts-c1.log @@ -0,0 +1,24 @@ +2026-01-01 00:00:00,000 INFO [demo] Starting vLLM-Omni server for example/tts-1b +2026-01-01 00:00:00,120 INFO [demo] Runtime: vllm-omni 0.30.0 | vLLM 0.30.0 +2026-01-01 00:00:00,240 INFO [demo] Loading tokenizer and model config +2026-01-01 00:00:00,480 INFO [demo] Initializing stage 0 (talker) on GPU 0 +2026-01-01 00:00:01,100 INFO [demo] Stage 0 max_num_seqs=64 gpu_memory_utilization=0.30 +2026-01-01 00:00:01,220 INFO [demo] Initializing stage 1 (codec) on GPU 0 +2026-01-01 00:00:01,760 INFO [demo] Stage 1 gpu_memory_utilization=0.30 +2026-01-01 00:00:02,040 INFO [demo] Warmup request completed in 132.4 ms +2026-01-01 00:00:02,080 INFO [demo] Application startup complete. +2026-01-01 00:00:05,000 INFO [demo] benchmark start: num_prompts=100 num_warmups=0 max_concurrency=1 request_rate=inf +2026-01-01 00:00:05,410 INFO [demo] request completed: audio_duration_s=4.17 audio_ttfp_ms=115.2 audio_rtf=0.103 +2026-01-01 00:00:05,850 INFO [demo] request completed: audio_duration_s=4.12 audio_ttfp_ms=118.7 audio_rtf=0.104 +2026-01-01 00:00:06,290 INFO [demo] request completed: audio_duration_s=4.20 audio_ttfp_ms=113.9 audio_rtf=0.101 +2026-01-01 00:00:06,730 INFO [demo] request completed: audio_duration_s=4.15 audio_ttfp_ms=121.4 audio_rtf=0.105 +2026-01-01 00:00:07,170 INFO [demo] request completed: audio_duration_s=4.18 audio_ttfp_ms=116.8 audio_rtf=0.102 +2026-01-01 00:00:07,610 INFO [demo] request completed: audio_duration_s=4.16 audio_ttfp_ms=119.2 audio_rtf=0.103 +2026-01-01 00:00:08,050 INFO [demo] request completed: audio_duration_s=4.14 audio_ttfp_ms=117.5 audio_rtf=0.104 +2026-01-01 00:00:08,490 INFO [demo] request completed: audio_duration_s=4.19 audio_ttfp_ms=114.6 audio_rtf=0.101 +2026-01-01 00:00:08,930 INFO [demo] request completed: audio_duration_s=4.17 audio_ttfp_ms=120.1 audio_rtf=0.103 +2026-01-01 00:00:09,370 INFO [demo] request completed: audio_duration_s=4.13 audio_ttfp_ms=118.3 audio_rtf=0.102 +2026-01-01 00:00:09,810 INFO [demo] benchmark complete: completed=10 failed=0 duration_s=4.81 +2026-01-01 00:00:09,820 INFO [demo] request_throughput=2.08 req/s audio_throughput=8.67x +2026-01-01 00:00:09,830 INFO [demo] mean_audio_rtf=0.103 p95_audio_rtf=0.123 mean_audio_ttfp_ms=117.6 +2026-01-01 00:00:09,840 INFO [demo] Demo log end. diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 497fdba..29c5842 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -150,6 +150,14 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. +**View Logs** selects a run and fetches its log. Source priority: + +1. **MLflow artifacts** — when `MLFLOW_TRACKING_URI` and the row's `mlflow_run_id` are available. The artifact prefix defaults to `logs` (`MLFLOW_LOG_ARTIFACT_PREFIX`). +2. **Local log directory** — `OMNI_LOG_DIR` (default `datasets/omni/logs`), matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. +3. **S3** — `S3_LOGS_BUCKET` + `S3_LOGS_PREFIX` (default `logs/`), keyed by `deployment_uuid`. + +When the log contains `Application startup complete.`, the view shows startup output first, with **Show Full Log** and **Download Full Log** controls. + ## Metric notes - TTS RTF: lower is better; `<1.0` is faster than real time. `audio_rtf_p95 > 1.0` is the first sign the tail is no longer real-time. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index c04dffa..b3825a8 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -42,7 +42,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. - A **Filtered Data for Plot Lines** section below the chart shows the source rows. -**Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder. +**Filtered Data** uses the same numbered filters and adds a CSV download. **View Logs** loads a run's log from MLflow artifacts, a local log directory, or S3. Other RHAIIS sections remain visible and show a placeholder. ## What is left out when cloning RHAIIS for Omni @@ -55,7 +55,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc | Competitive analysis / regression heatmap / release health | Text/LLM-specific. | | Cost analysis / energy computation | Could map later; no cost model for audio/ASR yet. | | IntelliConfig / Pareto / runtime server configs | RHAIIS deployment-config tooling; not part of the first Omni pass. | -| View Logs | Omni logs are currently in MLflow, not exposed by the dashboard. | +| View Logs | Implemented for Omni: MLflow artifacts, local log directory, or S3 by deployment UUID. | | Token-only metrics as primary axes | TTS uses audio TTFP/RTF/underrun; ASR uses WER/RTFx. | ## What is added on the Omni side @@ -224,3 +224,15 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Layout mirrors the RHAIIS screenshot: Accelerator in column 1, Input/Output in column 2, Version + Task in column 3, Load Generator + Model in column 4, TP in column 5. - Removed the extra caption so the section starts directly with the RHAIIS-style filter band. - Version options now cascade from Accelerator + Input/Output; Task, Load Generator, Model, and TP continue to cascade. + +## Checkpoint 7 — View Logs implemented + +- Added the Omni **View Logs** section under Tools. +- Selects a run from the filtered rows and resolves log candidates in this order: + 1. MLflow artifacts under `MLFLOW_LOG_ARTIFACT_PREFIX` (default `logs`) using `mlflow_run_id`. + 2. Local `.log` files under `OMNI_LOG_DIR` matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. + 3. S3 `S3_LOGS_PREFIX.log` when `S3_LOGS_BUCKET` is set. +- Multiple candidates show a log-file selector. The default ranking prefers the run's `saturation_cN.log`, then `*full.log`, then `*startup*.log`. +- Shows startup-only output when `Application startup complete.` is present, with **Show Full Log** and **Download Full Log**. +- Added a sanitized demo log at `datasets/omni/logs/demo-tts-c1.log` so the public sample row works without configuring a log backend. +- Tested locally with the demo log: View Logs loads `demo-tts-c1`, shows the startup section, expands to the full log, and downloads it. diff --git a/omni_dashboard.py b/omni_dashboard.py index 2db9add..3ab7344 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -8,7 +8,10 @@ import logging import os +import re import sys +import tempfile +from pathlib import Path from typing import Optional import numpy as np @@ -36,6 +39,12 @@ AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") +MLFLOW_TRACKING_URI = os.environ.get("MLFLOW_TRACKING_URI", "") +MLFLOW_LOG_ARTIFACT_PREFIX = os.environ.get("MLFLOW_LOG_ARTIFACT_PREFIX", "logs") +OMNI_LOG_DIR = os.environ.get("OMNI_LOG_DIR", "datasets/omni/logs") +S3_LOGS_BUCKET = os.environ.get("S3_LOGS_BUCKET", "") +S3_LOGS_PREFIX = os.environ.get("S3_LOGS_PREFIX", "logs/") + NUMERIC_COLUMNS = [ "concurrency", "measured_concurrency", "num_prompts", "num_utterances", "tp", "pp", "dp", "gpu_count", "request_throughput_rps", @@ -310,6 +319,302 @@ def _render_sidebar_nav() -> str: return st.session_state.omni_active_section +def _log_run_label(row: pd.Series) -> str: + parts = [ + str(row.get("run_name") or row.get("deployment_uuid") or "run"), + str(row.get("model") or ""), + str(row.get("runtime_version") or ""), + ] + concurrency = str(row.get("concurrency_label") or "") + if concurrency and concurrency not in ("nan", "n/a"): + parts.append(f"c={concurrency}") + return " | ".join(part for part in parts if part and part != "nan") + + +def _log_rank(path: str, concurrency: str) -> tuple: + name = Path(path).name.lower() + score = 0 + if concurrency not in ("", "nan", "n/a") and f"saturation_c{concurrency}.log" in name: + score += 100 + if "full" in name: + score += 60 + if "startup" in name: + score += 20 + if "saturation" in name: + score += 10 + return (-score, name) + + +@st.cache_data(ttl=300, show_spinner=False) +def _list_mlflow_logs(run_id: str, prefix: str, tracking_uri: str) -> list: + from mlflow.tracking import MlflowClient + + client = MlflowClient(tracking_uri=tracking_uri) + + def _walk(path: str): + for item in client.list_artifacts(run_id, path): + if item.is_dir: + yield from _walk(item.path) + elif item.path.endswith(".log"): + yield item.path + + return list(_walk(prefix)) + + +def _mlflow_log_candidates(row: pd.Series) -> tuple: + run_id = str(row.get("mlflow_run_id") or "").strip() + if not MLFLOW_TRACKING_URI or not run_id or run_id.lower() == "nan": + return [], [] + try: + paths = _list_mlflow_logs( + run_id, MLFLOW_LOG_ARTIFACT_PREFIX, MLFLOW_TRACKING_URI + ) + except Exception as exc: + return [], [f"MLflow: {exc}"] + return [ + { + "source": "mlflow", + "identifier": run_id, + "path": path, + "label": f"MLflow: {path}", + } + for path in paths + ], [] + + +def _local_log_candidates(row: pd.Series) -> tuple: + if not OMNI_LOG_DIR: + return [], [] + root = Path(OMNI_LOG_DIR).expanduser() + if not root.is_dir(): + return [], [] + tokens = [] + for key in ("run_name", "mlflow_run_id", "deployment_uuid"): + value = str(row.get(key) or "").strip() + if not value or value.lower() == "nan": + continue + tokens.append(value) + if key == "mlflow_run_id" and len(value) >= 8: + tokens.append(value[:8]) + tokens = sorted(set(tokens)) + if not tokens: + return [], [] + try: + matches = [ + path + for path in root.rglob("*.log") + if any(token in str(path) for token in tokens) + ] + except Exception as exc: + return [], [f"Local logs: {exc}"] + return [ + { + "source": "local", + "identifier": str(path), + "path": str(path), + "label": f"Local: {path.relative_to(root)}", + } + for path in matches + ], [] + + +def _s3_log_candidates(row: pd.Series) -> tuple: + uuid = str(row.get("deployment_uuid") or "").strip() + if not S3_LOGS_BUCKET or not uuid or uuid.lower() == "nan": + return [], [] + key = f"{S3_LOGS_PREFIX}{uuid}.log" + return [ + { + "source": "s3", + "identifier": uuid, + "path": key, + "label": f"S3: {key}", + } + ], [] + + +def _log_candidates(row: pd.Series) -> tuple: + candidates = [] + errors = [] + for finder in (_mlflow_log_candidates, _local_log_candidates, _s3_log_candidates): + found, failure = finder(row) + candidates.extend(found) + errors.extend(failure) + concurrency = str(row.get("concurrency_label") or "") + candidates.sort(key=lambda item: _log_rank(item["path"], concurrency)) + return candidates, errors + + +@st.cache_data(ttl=300, show_spinner=False) +def _fetch_log( + source: str, + identifier: str, + path: str, + tracking_uri: str = "", + s3_bucket: str = "", + s3_region: str = "us-east-1", +) -> str: + if source == "mlflow": + from mlflow.tracking import MlflowClient + + client = MlflowClient(tracking_uri=tracking_uri) + with tempfile.TemporaryDirectory() as tmp: + local = Path(client.download_artifacts(identifier, path, tmp)) + return local.read_text(encoding="utf-8", errors="replace") + + if source == "local": + return Path(path).read_text(encoding="utf-8", errors="replace") + + if source == "s3": + import boto3 + from botocore import UNSIGNED + from botocore.config import Config + + if AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: + client = boto3.client( + "s3", + region_name=s3_region, + aws_access_key_id=AWS_ACCESS_KEY_ID, + aws_secret_access_key=AWS_SECRET_ACCESS_KEY, + ) + else: + client = boto3.client( + "s3", region_name=s3_region, config=Config(signature_version=UNSIGNED) + ) + response = client.get_object(Bucket=s3_bucket, Key=path) + return response["Body"].read().decode("utf-8", errors="replace") + + raise ValueError(f"Unknown log source: {source}") + + +def _view_logs(df: pd.DataFrame): + st.subheader("📋 View Logs") + + if "run_name" not in df.columns: + st.info("No run_name column is available in the data.") + return + + logs_df = df.dropna(subset=["run_name"]).drop_duplicates(subset=["run_name"]).copy() + if logs_df.empty: + st.info("No runs with a run name are available in the current filters.") + return + + selected_run = st.selectbox( + "Select a run to view its log:", + logs_df["run_name"].tolist(), + format_func=lambda name: _log_run_label( + logs_df.loc[logs_df["run_name"] == name].iloc[0] + ), + key="omni_log_run", + ) + row = logs_df.loc[logs_df["run_name"] == selected_run].iloc[0] + run_key = re.sub(r"[^A-Za-z0-9_.-]+", "_", str(selected_run))[:80] + + candidates, errors = _log_candidates(row) + if errors: + with st.expander("Log source warnings", expanded=False): + for error in errors: + st.caption(error) + + if not candidates: + st.info( + "No log source is configured for this run. Set MLFLOW_TRACKING_URI " + "(and credentials), OMNI_LOG_DIR, or S3_LOGS_BUCKET." + ) + return + + candidate_labels = [candidate["label"] for candidate in candidates] + if len(candidates) > 1: + selected_label = st.selectbox( + "Log file", candidate_labels, key=f"omni_log_file_{run_key}" + ) + else: + selected_label = candidate_labels[0] + selected = next( + candidate for candidate in candidates if candidate["label"] == selected_label + ) + + if st.button( + "🔍 Fetch Log", type="primary", key=f"omni_fetch_log_{run_key}" + ): + st.session_state["omni_log_result"] = { + "run": selected_run, + "label": selected_label, + "content": None, + "error": None, + } + try: + content = _fetch_log( + selected["source"], + selected["identifier"], + selected["path"], + MLFLOW_TRACKING_URI, + S3_LOGS_BUCKET, + S3_REGION, + ) + st.session_state["omni_log_result"]["content"] = content + except Exception as exc: + st.session_state["omni_log_result"]["error"] = str(exc) + st.session_state["omni_show_full_log"] = False + + cached = st.session_state.get("omni_log_result") + if ( + not cached + or cached.get("run") != selected_run + or cached.get("label") != selected_label + ): + st.caption(f"Source: {selected['label']}") + return + + if cached.get("error"): + st.warning(f"Could not load log: {cached['error']}") + return + + content = cached.get("content") or "" + startup_marker = "Application startup complete." + startup_pos = content.find(startup_marker) + show_full = st.session_state.get("omni_show_full_log", False) + + if startup_pos != -1 and not show_full: + st.success(f"Log loaded for `{selected_run}` (startup only)") + st.text_area( + "Log output (startup)", + value=content[: startup_pos + len(startup_marker)], + height=300, + disabled=True, + key=f"omni_log_startup_{run_key}", + ) + col_show, col_download = st.columns(2) + with col_show: + if st.button("📄 Show Full Log", key=f"omni_show_full_{run_key}"): + st.session_state["omni_show_full_log"] = True + st.rerun() + with col_download: + st.download_button( + "⬇️ Download Full Log", + data=content, + file_name=f"{run_key}.log", + mime="text/plain", + key=f"omni_download_log_{run_key}", + ) + else: + st.success(f"Log loaded for `{selected_run}`") + st.text_area( + "Log output", + value=content, + height=500, + disabled=True, + key=f"omni_log_full_{run_key}", + ) + st.download_button( + "⬇️ Download Full Log", + data=content, + file_name=f"{run_key}.log", + mime="text/plain", + key=f"omni_download_full_{run_key}", + ) + + def _overview(df: pd.DataFrame): rows, models = len(df), df["model"].nunique() col1, col2, col3, col4 = st.columns(4) @@ -491,11 +796,18 @@ def _render_section(section: str, df: pd.DataFrame): st.warning("No rows match the current filters.") return _filtered_data(filtered) + elif section == "📋 View Logs": + filtered = _main_filters(df) + if filtered.empty: + st.warning("No rows match the current filters.") + return + _view_logs(filtered) else: _placeholder(section) def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv"): + csv_path = os.environ.get("OMNI_CSV_PATH", csv_path) st.header("vLLM-Omni Performance") st.caption( "Speech-in, speech-out, and text benchmarks. Overview is the default page; " diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 299841d..60f2e76 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -14,6 +14,7 @@ SAMPLE = OMNI_DIR / "consolidated_dashboard_omni_sample.csv" METADATA = OMNI_DIR / "consolidated_dashboard_omni_metadata.example.json" CONVERTER = ROOT / "manual_runs" / "scripts" / "build_consolidated_omni_csv.py" +DEMO_LOG = OMNI_DIR / "logs" / "demo-tts-c1.log" REQUIRED = {"model", "task_type", "benchmark_tool", "load_generator"} @@ -79,6 +80,13 @@ def test_sample_uses_placeholder_metadata(): assert all(row["image_tag"].startswith("example/") for row in rows) +def test_demo_log_matches_sample_run(): + rows = _read_csv(SAMPLE) + assert "demo-tts-c1" in {row["run_name"] for row in rows} + assert DEMO_LOG.exists() + assert "Application startup complete." in DEMO_LOG.read_text() + + def test_converter_smoke(tmp_path): result = { "model_id": "example/tts-1b", From de6792ea72a3e84ef26d9125831be5aaebfc40a0 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:23:40 -0500 Subject: [PATCH 15/74] Show full Omni logs by default The log view started in startup-only mode, which made the log look truncated. Show the full log first and keep startup-only as an explicit toggle when the startup marker is present. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 4 ++-- omni_dashboard.py | 41 ++++++++++++++------------------ 3 files changed, 21 insertions(+), 26 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 29c5842..c500feb 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -156,7 +156,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is 2. **Local log directory** — `OMNI_LOG_DIR` (default `datasets/omni/logs`), matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. 3. **S3** — `S3_LOGS_BUCKET` + `S3_LOGS_PREFIX` (default `logs/`), keyed by `deployment_uuid`. -When the log contains `Application startup complete.`, the view shows startup output first, with **Show Full Log** and **Download Full Log** controls. +The view shows the **full log by default**. When the log contains `Application startup complete.`, a **Startup only** toggle limits the view to startup output. **Download Full Log** always downloads the complete log. ## Metric notes diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index b3825a8..94d2574 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -233,6 +233,6 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin 2. Local `.log` files under `OMNI_LOG_DIR` matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. 3. S3 `S3_LOGS_PREFIX.log` when `S3_LOGS_BUCKET` is set. - Multiple candidates show a log-file selector. The default ranking prefers the run's `saturation_cN.log`, then `*full.log`, then `*startup*.log`. -- Shows startup-only output when `Application startup complete.` is present, with **Show Full Log** and **Download Full Log**. +- Shows the full log by default. When `Application startup complete.` is present, a **Startup only** toggle limits the view to startup output; **Download Full Log** always downloads the complete log. - Added a sanitized demo log at `datasets/omni/logs/demo-tts-c1.log` so the public sample row works without configuring a log backend. -- Tested locally with the demo log: View Logs loads `demo-tts-c1`, shows the startup section, expands to the full log, and downloads it. +- Tested locally with the demo log: View Logs loads `demo-tts-c1`, shows the full log by default, toggles to startup-only output, and downloads the full log. diff --git a/omni_dashboard.py b/omni_dashboard.py index 3ab7344..021f832 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -555,7 +555,6 @@ def _view_logs(df: pd.DataFrame): st.session_state["omni_log_result"]["content"] = content except Exception as exc: st.session_state["omni_log_result"]["error"] = str(exc) - st.session_state["omni_show_full_log"] = False cached = st.session_state.get("omni_log_result") if ( @@ -573,9 +572,17 @@ def _view_logs(df: pd.DataFrame): content = cached.get("content") or "" startup_marker = "Application startup complete." startup_pos = content.find(startup_marker) - show_full = st.session_state.get("omni_show_full_log", False) - if startup_pos != -1 and not show_full: + startup_only = False + if startup_pos != -1: + startup_only = st.toggle( + "Startup only", + value=False, + key=f"omni_startup_only_{run_key}", + help="Show only the lines up to the startup marker.", + ) + + if startup_only: st.success(f"Log loaded for `{selected_run}` (startup only)") st.text_area( "Log output (startup)", @@ -584,19 +591,6 @@ def _view_logs(df: pd.DataFrame): disabled=True, key=f"omni_log_startup_{run_key}", ) - col_show, col_download = st.columns(2) - with col_show: - if st.button("📄 Show Full Log", key=f"omni_show_full_{run_key}"): - st.session_state["omni_show_full_log"] = True - st.rerun() - with col_download: - st.download_button( - "⬇️ Download Full Log", - data=content, - file_name=f"{run_key}.log", - mime="text/plain", - key=f"omni_download_log_{run_key}", - ) else: st.success(f"Log loaded for `{selected_run}`") st.text_area( @@ -606,13 +600,14 @@ def _view_logs(df: pd.DataFrame): disabled=True, key=f"omni_log_full_{run_key}", ) - st.download_button( - "⬇️ Download Full Log", - data=content, - file_name=f"{run_key}.log", - mime="text/plain", - key=f"omni_download_full_{run_key}", - ) + + st.download_button( + "⬇️ Download Full Log", + data=content, + file_name=f"{run_key}.log", + mime="text/plain", + key=f"omni_download_log_{run_key}", + ) def _overview(df: pd.DataFrame): From c436c6754cc5cdefb61a65f6e2c4e2128e693211 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:27:42 -0500 Subject: [PATCH 16/74] Prefer the full vLLM server log in View Logs Default to the full server log artifact instead of the benchmark log, label candidates by log type, and remove the startup-only rendering path so the view always shows the complete selected log. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 4 +- omni_dashboard.py | 66 +++++++++++++------------------- 3 files changed, 30 insertions(+), 42 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index c500feb..1c62ac0 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -156,7 +156,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is 2. **Local log directory** — `OMNI_LOG_DIR` (default `datasets/omni/logs`), matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. 3. **S3** — `S3_LOGS_BUCKET` + `S3_LOGS_PREFIX` (default `logs/`), keyed by `deployment_uuid`. -The view shows the **full log by default**. When the log contains `Application startup complete.`, a **Startup only** toggle limits the view to startup output. **Download Full Log** always downloads the complete log. +The view always shows the full log. Candidates are labeled **Full server log**, **Startup log**, or **Benchmark log**, and the full server log is preferred by default. **Download Full Log** downloads the complete file. ## Metric notes diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 94d2574..ceba8aa 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -233,6 +233,6 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin 2. Local `.log` files under `OMNI_LOG_DIR` matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. 3. S3 `S3_LOGS_PREFIX.log` when `S3_LOGS_BUCKET` is set. - Multiple candidates show a log-file selector. The default ranking prefers the run's `saturation_cN.log`, then `*full.log`, then `*startup*.log`. -- Shows the full log by default. When `Application startup complete.` is present, a **Startup only** toggle limits the view to startup output; **Download Full Log** always downloads the complete log. +- Candidates are labeled **Full server log**, **Startup log**, or **Benchmark log**; the full server log is preferred by default. The view always shows the complete selected log, and **Download Full Log** downloads it. - Added a sanitized demo log at `datasets/omni/logs/demo-tts-c1.log` so the public sample row works without configuring a log backend. -- Tested locally with the demo log: View Logs loads `demo-tts-c1`, shows the full log by default, toggles to startup-only output, and downloads the full log. +- Tested locally with the demo log and with the real 3.6 GA c1 run: the full 6,086,641-character server log rendered end to end, and the demo log loaded completely. diff --git a/omni_dashboard.py b/omni_dashboard.py index 021f832..07a01b0 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -331,16 +331,27 @@ def _log_run_label(row: pd.Series) -> str: return " | ".join(part for part in parts if part and part != "nan") +def _log_kind(path: str) -> str: + name = Path(path).name.lower() + if "full" in name: + return "Full server log" + if "startup" in name: + return "Startup log" + if "saturation" in name: + return "Benchmark log" + return "Log" + + def _log_rank(path: str, concurrency: str) -> tuple: name = Path(path).name.lower() score = 0 - if concurrency not in ("", "nan", "n/a") and f"saturation_c{concurrency}.log" in name: - score += 100 if "full" in name: + score += 100 + elif "startup" in name: + score += 80 + elif "saturation" in name: score += 60 - if "startup" in name: - score += 20 - if "saturation" in name: + if concurrency not in ("", "nan", "n/a") and f"saturation_c{concurrency}.log" in name: score += 10 return (-score, name) @@ -376,7 +387,7 @@ def _mlflow_log_candidates(row: pd.Series) -> tuple: "source": "mlflow", "identifier": run_id, "path": path, - "label": f"MLflow: {path}", + "label": f"MLflow: {_log_kind(path)} ({path})", } for path in paths ], [] @@ -412,7 +423,7 @@ def _local_log_candidates(row: pd.Series) -> tuple: "source": "local", "identifier": str(path), "path": str(path), - "label": f"Local: {path.relative_to(root)}", + "label": f"Local: {_log_kind(path)} ({path.relative_to(root)})", } for path in matches ], [] @@ -428,7 +439,7 @@ def _s3_log_candidates(row: pd.Series) -> tuple: "source": "s3", "identifier": uuid, "path": key, - "label": f"S3: {key}", + "label": f"S3: {_log_kind(key)} ({key})", } ], [] @@ -570,37 +581,14 @@ def _view_logs(df: pd.DataFrame): return content = cached.get("content") or "" - startup_marker = "Application startup complete." - startup_pos = content.find(startup_marker) - - startup_only = False - if startup_pos != -1: - startup_only = st.toggle( - "Startup only", - value=False, - key=f"omni_startup_only_{run_key}", - help="Show only the lines up to the startup marker.", - ) - - if startup_only: - st.success(f"Log loaded for `{selected_run}` (startup only)") - st.text_area( - "Log output (startup)", - value=content[: startup_pos + len(startup_marker)], - height=300, - disabled=True, - key=f"omni_log_startup_{run_key}", - ) - else: - st.success(f"Log loaded for `{selected_run}`") - st.text_area( - "Log output", - value=content, - height=500, - disabled=True, - key=f"omni_log_full_{run_key}", - ) - + st.success(f"Log loaded for `{selected_run}`") + st.text_area( + "Log output", + value=content, + height=600, + disabled=True, + key=f"omni_log_full_{run_key}", + ) st.download_button( "⬇️ Download Full Log", data=content, From 03d2a0f2198bfe64c40b7d2132a94ff2cb830daf Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:33:29 -0500 Subject: [PATCH 17/74] Label CI benchmark logs as benchmark logs Recognize CI bench artifacts named _c.log in the log-type label and ranking, alongside saturation logs. Co-Authored-By: Claude Code --- omni_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index 07a01b0..03ae6e3 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -337,7 +337,7 @@ def _log_kind(path: str) -> str: return "Full server log" if "startup" in name: return "Startup log" - if "saturation" in name: + if "saturation" in name or "bench" in name or re.search(r"_c\d+(?:\D|$)", name): return "Benchmark log" return "Log" From 8b4bcb213629e5f0ea7510b822b6c1e31ae916a6 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:38:55 -0500 Subject: [PATCH 18/74] Simplify Omni View Logs to match RHAIIS Use one run selector and one Fetch Log button. Pick the best available log automatically (full server log, then startup, then benchmark) and drop the extra log-file selector and source caption. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 4 +- omni_dashboard.py | 81 +++++++++----------------------- 3 files changed, 24 insertions(+), 63 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 1c62ac0..76a524c 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -156,7 +156,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is 2. **Local log directory** — `OMNI_LOG_DIR` (default `datasets/omni/logs`), matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. 3. **S3** — `S3_LOGS_BUCKET` + `S3_LOGS_PREFIX` (default `logs/`), keyed by `deployment_uuid`. -The view always shows the full log. Candidates are labeled **Full server log**, **Startup log**, or **Benchmark log**, and the full server log is preferred by default. **Download Full Log** downloads the complete file. +Omni automatically picks the full server log, falling back to the startup log or benchmark log. The view always shows the complete log, and **Download Full Log** downloads it. ## Metric notes diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index ceba8aa..8d42414 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -232,7 +232,7 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin 1. MLflow artifacts under `MLFLOW_LOG_ARTIFACT_PREFIX` (default `logs`) using `mlflow_run_id`. 2. Local `.log` files under `OMNI_LOG_DIR` matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. 3. S3 `S3_LOGS_PREFIX.log` when `S3_LOGS_BUCKET` is set. -- Multiple candidates show a log-file selector. The default ranking prefers the run's `saturation_cN.log`, then `*full.log`, then `*startup*.log`. -- Candidates are labeled **Full server log**, **Startup log**, or **Benchmark log**; the full server log is preferred by default. The view always shows the complete selected log, and **Download Full Log** downloads it. +- Log resolution is automatic: one run selector and one **Fetch Log** button, with no extra log-file selector. Ranking prefers the full server log, then the startup log, then the benchmark log. +- The view always shows the complete log, and **Download Full Log** downloads it. - Added a sanitized demo log at `datasets/omni/logs/demo-tts-c1.log` so the public sample row works without configuring a log backend. - Tested locally with the demo log and with the real 3.6 GA c1 run: the full 6,086,641-character server log rendered end to end, and the demo log loaded completely. diff --git a/omni_dashboard.py b/omni_dashboard.py index 03ae6e3..67c4f60 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -331,17 +331,6 @@ def _log_run_label(row: pd.Series) -> str: return " | ".join(part for part in parts if part and part != "nan") -def _log_kind(path: str) -> str: - name = Path(path).name.lower() - if "full" in name: - return "Full server log" - if "startup" in name: - return "Startup log" - if "saturation" in name or "bench" in name or re.search(r"_c\d+(?:\D|$)", name): - return "Benchmark log" - return "Log" - - def _log_rank(path: str, concurrency: str) -> tuple: name = Path(path).name.lower() score = 0 @@ -349,7 +338,7 @@ def _log_rank(path: str, concurrency: str) -> tuple: score += 100 elif "startup" in name: score += 80 - elif "saturation" in name: + elif "saturation" in name or "bench" in name or re.search(r"_c\d+(?:\D|$)", name): score += 60 if concurrency not in ("", "nan", "n/a") and f"saturation_c{concurrency}.log" in name: score += 10 @@ -387,7 +376,6 @@ def _mlflow_log_candidates(row: pd.Series) -> tuple: "source": "mlflow", "identifier": run_id, "path": path, - "label": f"MLflow: {_log_kind(path)} ({path})", } for path in paths ], [] @@ -423,7 +411,6 @@ def _local_log_candidates(row: pd.Series) -> tuple: "source": "local", "identifier": str(path), "path": str(path), - "label": f"Local: {_log_kind(path)} ({path.relative_to(root)})", } for path in matches ], [] @@ -439,7 +426,6 @@ def _s3_log_candidates(row: pd.Series) -> tuple: "source": "s3", "identifier": uuid, "path": key, - "label": f"S3: {_log_kind(key)} ({key})", } ], [] @@ -522,62 +508,37 @@ def _view_logs(df: pd.DataFrame): run_key = re.sub(r"[^A-Za-z0-9_.-]+", "_", str(selected_run))[:80] candidates, errors = _log_candidates(row) - if errors: - with st.expander("Log source warnings", expanded=False): - for error in errors: - st.caption(error) - if not candidates: - st.info( - "No log source is configured for this run. Set MLFLOW_TRACKING_URI " - "(and credentials), OMNI_LOG_DIR, or S3_LOGS_BUCKET." - ) + st.warning("Log not available for this run.") + if errors: + st.caption(errors[0]) return - candidate_labels = [candidate["label"] for candidate in candidates] - if len(candidates) > 1: - selected_label = st.selectbox( - "Log file", candidate_labels, key=f"omni_log_file_{run_key}" - ) - else: - selected_label = candidate_labels[0] - selected = next( - candidate for candidate in candidates if candidate["label"] == selected_label - ) - if st.button( "🔍 Fetch Log", type="primary", key=f"omni_fetch_log_{run_key}" ): - st.session_state["omni_log_result"] = { - "run": selected_run, - "label": selected_label, - "content": None, - "error": None, - } - try: - content = _fetch_log( - selected["source"], - selected["identifier"], - selected["path"], - MLFLOW_TRACKING_URI, - S3_LOGS_BUCKET, - S3_REGION, - ) - st.session_state["omni_log_result"]["content"] = content - except Exception as exc: - st.session_state["omni_log_result"]["error"] = str(exc) + result = {"run": selected_run, "content": None, "error": None} + for candidate in candidates: + try: + result["content"] = _fetch_log( + candidate["source"], + candidate["identifier"], + candidate["path"], + MLFLOW_TRACKING_URI, + S3_LOGS_BUCKET, + S3_REGION, + ) + break + except Exception as exc: + result["error"] = str(exc) + st.session_state["omni_log_result"] = result cached = st.session_state.get("omni_log_result") - if ( - not cached - or cached.get("run") != selected_run - or cached.get("label") != selected_label - ): - st.caption(f"Source: {selected['label']}") + if not cached or cached.get("run") != selected_run: return if cached.get("error"): - st.warning(f"Could not load log: {cached['error']}") + st.warning(f"Log not available for this run: {cached['error']}") return content = cached.get("content") or "" From a345df60bb9109b0d9af7b82dcd14ae07e2b6c9c Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 25 Nov 2026 22:55:05 -0500 Subject: [PATCH 19/74] Add Omni Compare Versions page Compare baseline and comparison runtime versions across matching model, task, concurrency, load generator, TP, and accelerator rows. Show summary cards, a RHAIIS-style delta bar chart, an all-metric summary, a detailed table, and CSV download. Metric direction controls the Better/Worse/Flat verdict. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 7 + docs/omni-vs-rhaiis-dashboard.md | 11 +- omni_dashboard.py | 414 +++++++++++++++++++++++++++++++ 3 files changed, 431 insertions(+), 1 deletion(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 76a524c..29a402d 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -148,6 +148,13 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. - A **Filtered Data for Plot Lines** section shows the source rows for the selected lines, with a **Clear comparison** button. +**Compare Versions**: + +- Baseline and comparison version selectors with a swap button, plus a model filter and metric selector. +- Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. +- Aggregates repeated rows per key, computes percent delta, and classifies each comparison as **Better**, **Worse**, or **Flat** using the metric's direction. +- Shows summary cards, a delta bar chart, an all-metric summary table, a detailed table, and a CSV download. + **Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. **View Logs** selects a run and fetches its log. Source priority: diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 8d42414..2bb3920 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -126,7 +126,7 @@ Auto-fill rule: ## Open questions 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** -2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Filtered Data.* +2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Compare Versions, View Logs, Filtered Data.* 3. **Filter order:** is the proposed order (Accelerator → Input/Output → Version → Task → Load gen → Model → TP) correct? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? @@ -236,3 +236,12 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - The view always shows the complete log, and **Download Full Log** downloads it. - Added a sanitized demo log at `datasets/omni/logs/demo-tts-c1.log` so the public sample row works without configuring a log backend. - Tested locally with the demo log and with the real 3.6 GA c1 run: the full 6,086,641-character server log rendered end to end, and the demo log loaded completely. + +## Checkpoint 8 — Compare Versions implemented + +- Added baseline/comparison version selectors with a swap button, a model filter, and a metric selector. +- Version defaults prefer the most recent version as the comparison and the earlier version with the longest common prefix as the baseline (for example, `vllm-omni-3.5-ea2` → `vllm-omni-3.6.0-ga`). +- Rows are matched on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions provide it, so legacy rows without a dataset still match. +- Repeated rows per key are averaged before comparison. Delta is the raw percent change; verdicts account for higher-is-better vs lower-is-better metrics with a 1% flat threshold. +- Outputs: comparison cards, a `plotly_white_light` delta bar chart, an all-metric summary table, a detailed table, and CSV download. +- Tested with the real 1.7B Base data: `vllm-omni-3.5-ea2` vs `vllm-omni-3.6.0-ga` produced 4 comparisons across c1/c4/c8/c16, all Better for throughput and RTF. Swapping versions flipped the verdicts to Worse, and switching to a lower-is-better metric flipped the colors/signs correctly. diff --git a/omni_dashboard.py b/omni_dashboard.py index 67c4f60..7f6af45 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -101,6 +101,37 @@ "Model": "model", } +OMNI_COMPARE_DIRECTIONS = { + "request_throughput_rps": ("higher", ".2f"), + "audio_throughput_x": ("higher", ".2f"), + "output_token_throughput": ("higher", ".2f"), + "total_token_throughput": ("higher", ".2f"), + "audio_rtf_mean": ("lower", ".4f"), + "audio_rtf_p95": ("lower", ".4f"), + "audio_ttfp_ms_mean": ("lower", ".1f"), + "audio_ttfp_ms_p95": ("lower", ".1f"), + "audio_underrun_s_mean": ("lower", ".3f"), + "audio_underrun_s_p95": ("lower", ".3f"), + "ttft_ms_median": ("lower", ".1f"), + "tpot_ms_median": ("lower", ".2f"), + "itl_ms_median": ("lower", ".2f"), + "e2el_ms_median": ("lower", ".1f"), + "wer": ("lower", ".4f"), + "rtfx": ("higher", ".2f"), + "transcription_throughput_utterances_s": ("higher", ".2f"), +} + +COMPARE_KEYS = [ + "model", + "task_type", + "dataset", + "concurrency_label", + "load_generator", + "tp", + "accelerator", +] +COMPARE_FLAT_THRESHOLD_PCT = 1.0 + # Same navigation groups/labels as the RHAIIS shell. Pages that are not yet # implemented for Omni render a clear placeholder rather than disappearing. OMNI_NAV_GROUPS = [ @@ -709,6 +740,387 @@ def _clear_comparison(): st.caption("No plot lines selected.") +def _natural_key(value: str) -> list: + return [ + (0, int(part)) if part.isdigit() else (1, part.lower()) + for part in re.split(r"(\d+)", str(value)) + ] + + +def _version_order(df: pd.DataFrame) -> list: + versions = _values(df, "runtime_version") + if "timestamp_utc" in df.columns and versions: + timestamps = pd.to_datetime(df["timestamp_utc"], errors="coerce", utc=True) + if timestamps.notna().any(): + latest = ( + df.assign(_ts=timestamps) + .dropna(subset=["_ts"]) + .groupby("runtime_version")["_ts"] + .max() + .sort_values(kind="stable") + ) + ordered = [version for version in latest.index if version in versions] + ordered.extend(version for version in versions if version not in ordered) + return ordered + return sorted(versions, key=_natural_key) + + +def _common_prefix_length(left: str, right: str) -> int: + length = 0 + for left_char, right_char in zip(str(left), str(right)): + if left_char != right_char: + break + length += 1 + return length + + +def _compare_defaults(versions: list) -> tuple: + candidate = versions[-1] + baseline = max( + versions[:-1], + key=lambda version: ( + _common_prefix_length(version, candidate), + versions.index(version), + ), + ) + return baseline, candidate + + +def _comparison_keys( + base_df: pd.DataFrame, comparison_df: pd.DataFrame +) -> list: + keys = [] + for key in COMPARE_KEYS: + if key not in base_df.columns or key not in comparison_df.columns: + continue + + def _has_values(frame: pd.DataFrame) -> bool: + values = frame[key].dropna().astype(str).str.strip().str.lower() + return bool(values[~values.isin(["", "nan", "none", "n/a"])].any()) + + if _has_values(base_df) and _has_values(comparison_df): + keys.append(key) + return keys + + +def _comparison_table( + base_df: pd.DataFrame, + comparison_df: pd.DataFrame, + metric: str, + direction: str, +) -> pd.DataFrame: + keys = _comparison_keys(base_df, comparison_df) + base = base_df.dropna(subset=[metric]).copy() + comparison = comparison_df.dropna(subset=[metric]).copy() + if base.empty or comparison.empty: + return pd.DataFrame() + + def _prepare(frame: pd.DataFrame) -> pd.DataFrame: + prepared = frame[keys + [metric]].copy() + for key in keys: + prepared[key] = ( + prepared[key] + .astype(str) + .replace({"nan": "n/a", "None": "n/a", "": "n/a"}) + ) + prepared["_key"] = prepared[keys].agg(" | ".join, axis=1) + return prepared + + aggregations = {metric: "mean", **{key: "first" for key in keys}} + base_grouped = _prepare(base).groupby("_key", as_index=False).agg(aggregations) + comparison_grouped = ( + _prepare(comparison).groupby("_key", as_index=False).agg(aggregations) + ) + merged = base_grouped.merge( + comparison_grouped, on="_key", suffixes=("_baseline", "_comparison") + ) + merged["baseline"] = merged.pop(f"{metric}_baseline") + merged["comparison"] = merged.pop(f"{metric}_comparison") + for key in keys: + merged[key] = merged.pop(f"{key}_baseline") + merged = merged.dropna(subset=["baseline", "comparison"]) + + denominator = merged["baseline"].abs() + merged["delta_pct"] = np.where( + denominator > 0, + (merged["comparison"] - merged["baseline"]) / denominator * 100, + np.nan, + ) + + def _verdict(delta): + if pd.isna(delta): + return "n/a" + if abs(delta) < COMPARE_FLAT_THRESHOLD_PCT: + return "Flat" + if direction == "higher": + return "Better" if delta > 0 else "Worse" + return "Better" if delta < 0 else "Worse" + + merged["verdict"] = merged["delta_pct"].apply(_verdict) + merged["label"] = ( + merged["model"].astype(str).str.split("/").str[-1] + + " | " + + merged["task_type"].astype(str) + + " | c=" + + merged["concurrency_label"].astype(str) + ) + if merged["load_generator"].nunique() > 1: + merged["label"] += " | " + merged["load_generator"].astype(str) + merged["_concurrency_sort"] = pd.to_numeric( + merged["concurrency_label"], errors="coerce" + ).fillna(9999) + merged = merged.sort_values( + ["model", "task_type", "_concurrency_sort", "load_generator"] + ).drop(columns=["_concurrency_sort"]) + return merged + + +def _comparison_summary( + base_df: pd.DataFrame, comparison_df: pd.DataFrame +) -> pd.DataFrame: + rows = [] + for label, metric in OMNI_METRICS.items(): + direction, _ = OMNI_COMPARE_DIRECTIONS.get(metric, ("higher", ".2f")) + detail = _comparison_table(base_df, comparison_df, metric, direction) + if detail.empty: + continue + counts = detail["verdict"].value_counts() + mean_delta = detail["delta_pct"].mean() + rows.append( + { + "Metric": label, + "Direction": "Higher is better" if direction == "higher" else "Lower is better", + "Pairs": len(detail), + "Better": int(counts.get("Better", 0)), + "Worse": int(counts.get("Worse", 0)), + "Flat": int(counts.get("Flat", 0)), + "Mean delta %": round(float(mean_delta), 2) if pd.notna(mean_delta) else None, + } + ) + return pd.DataFrame(rows) + + +def _default_compare_metric(frame: pd.DataFrame) -> str: + tasks = set(frame["task_type"].dropna().astype(str)) + if tasks and tasks <= {"asr_transcription"}: + return "WER" + if tasks & {"voice_clone", "default_voice", "voice_design"}: + return "Audio RTF P95" + return "Request throughput (req/s)" + + +def _compare_versions(df: pd.DataFrame): + st.subheader("⚖️ Compare Versions") + st.markdown( + "💡 **Compare the same model, task, dataset, and concurrency across two runtime versions.**" + ) + + versions = _version_order(df) + if len(versions) < 2: + st.warning("Need at least two runtime versions in the data to compare.") + return + + default_baseline, default_candidate = _compare_defaults(versions) + for key in ("omni_compare_baseline", "omni_compare_candidate"): + if st.session_state.get(key) not in versions: + st.session_state.pop(key, None) + st.session_state.setdefault("omni_compare_baseline", default_baseline) + st.session_state.setdefault("omni_compare_candidate", default_candidate) + + col1, swap_col, col2 = st.columns([4, 0.5, 4]) + with col1: + baseline = st.selectbox( + "Select Version 1 (Baseline)", + versions, + key="omni_compare_baseline", + ) + + def _swap_versions(): + baseline_value = st.session_state.get("omni_compare_baseline") + candidate_value = st.session_state.get("omni_compare_candidate") + st.session_state["omni_compare_baseline"] = candidate_value + st.session_state["omni_compare_candidate"] = baseline_value + + with swap_col: + st.markdown("
", unsafe_allow_html=True) + st.button( + "⇄", + key="omni_compare_swap", + help="Swap versions", + on_click=_swap_versions, + ) + with col2: + candidate = st.selectbox( + "Select Version 2 (Comparison)", + versions, + key="omni_compare_candidate", + ) + + if baseline == candidate: + st.warning("Select two different versions to compare.") + return + + base_all = df[df["runtime_version"] == baseline].copy() + comparison_all = df[df["runtime_version"] == candidate].copy() + common_models = sorted( + set(base_all["model"].dropna()) & set(comparison_all["model"].dropna()) + ) + if not common_models: + st.warning( + f"No common models found between {baseline} and {candidate}." + ) + return + + model_key = _selection_key("omni_compare_models", baseline, candidate) + if model_key in st.session_state: + st.session_state[model_key] = [ + model for model in st.session_state[model_key] if model in common_models + ] + + col3, col4 = st.columns([3, 2]) + with col3: + models = st.multiselect( + "Models", + common_models, + default=common_models, + key=model_key, + ) + if not models: + st.info("Select at least one model.") + return + + base = base_all[base_all["model"].isin(models)] + comparison = comparison_all[comparison_all["model"].isin(models)] + metric_options = [ + label + for label, column in OMNI_METRICS.items() + if base[column].notna().any() and comparison[column].notna().any() + ] + if not metric_options: + st.warning( + f"No comparable metrics found between {baseline} and {candidate} " + "for the selected models." + ) + return + + preferred_metric = _default_compare_metric(base) + metric_index = ( + metric_options.index(preferred_metric) + if preferred_metric in metric_options + else 0 + ) + metric_key = _selection_key( + "omni_compare_metric", baseline, candidate, models + ) + with col4: + metric_label = st.selectbox( + "Metric", + metric_options, + index=metric_index, + key=metric_key, + ) + + metric = OMNI_METRICS[metric_label] + direction, _ = OMNI_COMPARE_DIRECTIONS.get(metric, ("higher", ".2f")) + detail = _comparison_table(base, comparison, metric, direction) + if detail.empty: + st.warning( + "No matching model/task/dataset/concurrency rows found for both versions." + ) + return + + better = int((detail["verdict"] == "Better").sum()) + worse = int((detail["verdict"] == "Worse").sum()) + flat = int((detail["verdict"] == "Flat").sum()) + mean_delta = detail["delta_pct"].mean() + + metric_col1, metric_col2, metric_col3, metric_col4 = st.columns(4) + metric_col1.metric("Comparisons", len(detail)) + metric_col2.metric("Better", better) + metric_col3.metric("Worse", worse) + metric_col4.metric( + "Mean delta", + f"{mean_delta:+.1f}%" if pd.notna(mean_delta) else "n/a", + ) + st.caption( + f"Flat: {flat}. Delta is the raw percent change; verdict accounts for " + "metric direction, so a negative delta is better for lower-is-better metrics." + ) + + fig = px.bar( + detail.sort_values("label"), + x="label", + y="delta_pct", + color="verdict", + color_discrete_map={ + "Better": "#2e7d32", + "Worse": "#c62828", + "Flat": "#9e9e9e", + "n/a": "#bdbdbd", + }, + custom_data=[ + "model", + "task_type", + "concurrency_label", + "baseline", + "comparison", + ], + title=f"{metric_label}: {candidate} vs {baseline}", + template="plotly_white_light", + ) + fig.add_hline(y=0, line_dash="dash", line_color="#6b7280") + fig.update_traces(marker_line_color="white", marker_line_width=1) + for trace in fig.data: + trace.hovertemplate = ( + "Model: %{customdata[0]}
" + "Task: %{customdata[1]}
" + "Concurrency: %{customdata[2]}
" + "Baseline: %{customdata[3]}
" + "Comparison: %{customdata[4]}
" + "Delta: %{y:.1f}%" + ) + fig.update_layout( + height=560, + margin={"l": 80, "r": 250, "t": 110, "b": 150}, + xaxis_tickangle=-35, + xaxis_title="", + yaxis_title="Delta vs baseline (%)", + legend_title_text="Result", + ) + st.plotly_chart(fig, use_container_width=True, theme=None, key="omni_compare_chart") + + summary = _comparison_summary(base, comparison) + if not summary.empty: + st.subheader("All metric summary") + st.dataframe(summary, use_container_width=True, hide_index=True) + + st.subheader(f"{metric_label} details") + detail_columns = ["model", "task_type", "concurrency_label"] + for key in ("dataset", "load_generator", "tp", "accelerator"): + if key in detail.columns and detail[key].nunique() > 1: + detail_columns.append(key) + detail_columns.extend(["baseline", "comparison", "delta_pct", "verdict"]) + display = detail[detail_columns].copy() + display["baseline"] = display["baseline"].round(4) + display["comparison"] = display["comparison"].round(4) + display["delta_pct"] = display["delta_pct"].round(2) + display = display.rename( + columns={ + "baseline": f"Baseline ({baseline})", + "comparison": f"Comparison ({candidate})", + "delta_pct": "Delta %", + "verdict": "Result", + } + ) + st.dataframe(display, use_container_width=True, hide_index=True) + st.download_button( + "Download comparison CSV", + data=detail[detail_columns].to_csv(index=False).encode("utf-8"), + file_name="omni_version_comparison.csv", + mime="text/csv", + ) + + def _filtered_data(df: pd.DataFrame): st.subheader("📄 Filtered Data") st.dataframe(df, use_container_width=True, hide_index=True) @@ -734,6 +1146,8 @@ def _render_section(section: str, df: pd.DataFrame): st.warning("No rows match the current filters.") return _performance_plots(filtered) + elif section == "⚖️ Compare Versions": + _compare_versions(df) elif section == "📄 Filtered Data": filtered = _main_filters(df) if filtered.empty: From 306c79380afa9dc6a0df1e232cc02e3acd6dfb8c Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 12:04:38 -0500 Subject: [PATCH 20/74] Align Omni Compare Versions with the RHAIIS layout Add the RHAIIS-style context title, Comparing line, methodology popover, and model-level summary table with geometric-mean emoji verdicts. Add a concurrency selector, label the selected-metric section, and make the summary card use the same geometric mean as the table. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 7 +- docs/omni-vs-rhaiis-dashboard.md | 14 +- omni_dashboard.py | 214 +++++++++++++++++++++++++++---- 3 files changed, 202 insertions(+), 33 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 29a402d..621e139 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -150,10 +150,11 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Compare Versions**: -- Baseline and comparison version selectors with a swap button, plus a model filter and metric selector. +- Baseline and comparison version selectors with a swap button, plus model, metric, and concurrency selectors. +- A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. - Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. -- Aggregates repeated rows per key, computes percent delta, and classifies each comparison as **Better**, **Worse**, or **Flat** using the metric's direction. -- Shows summary cards, a delta bar chart, an all-metric summary table, a detailed table, and a CSV download. +- A model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas. +- Summary cards, a `plotly_white_light` delta bar chart, a detailed table, and a CSV download for the selected metric. **Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 2bb3920..a73eb67 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -239,9 +239,17 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin ## Checkpoint 8 — Compare Versions implemented -- Added baseline/comparison version selectors with a swap button, a model filter, and a metric selector. +- Added baseline/comparison version selectors with a swap button, plus model, metric, and concurrency selectors. +- Added the RHAIIS-style context title (`GPU / Task / Dataset`), **Comparing:** line, and “How are these calculated?” popover. +- Added a model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas; the table is the primary output, like RHAIIS. - Version defaults prefer the most recent version as the comparison and the earlier version with the longest common prefix as the baseline (for example, `vllm-omni-3.5-ea2` → `vllm-omni-3.6.0-ga`). - Rows are matched on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions provide it, so legacy rows without a dataset still match. - Repeated rows per key are averaged before comparison. Delta is the raw percent change; verdicts account for higher-is-better vs lower-is-better metrics with a 1% flat threshold. -- Outputs: comparison cards, a `plotly_white_light` delta bar chart, an all-metric summary table, a detailed table, and CSV download. -- Tested with the real 1.7B Base data: `vllm-omni-3.5-ea2` vs `vllm-omni-3.6.0-ga` produced 4 comparisons across c1/c4/c8/c16, all Better for throughput and RTF. Swapping versions flipped the verdicts to Worse, and switching to a lower-is-better metric flipped the colors/signs correctly. +- Outputs: model-level summary table, comparison cards, a `plotly_white_light` delta bar chart, a detailed table, and CSV download for the selected metric. +- Tested with the real data: + - `vllm-omni-3.5-ea2` vs `vllm-omni-3.6.0-ga`: 4 comparisons across c1/c4/c8/c16, all Better for throughput and RTF. + - Swap: all verdicts flipped to Worse. + - Lower-is-better metric: signs and colors flipped correctly. + - `vllm-omni-3.5-ea2` vs `vllm-omni-v0.24.0`: 5 models and 25 comparisons rendered in the summary table. + - Concurrency subset: removing c1 and c25 reduced the comparison count to 15. + - Same-version and one-version datasets show clear warnings. diff --git a/omni_dashboard.py b/omni_dashboard.py index 7f6af45..7c301c7 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -132,6 +132,19 @@ ] COMPARE_FLAT_THRESHOLD_PCT = 1.0 +OMNI_COMPARE_SUMMARY_METRICS = { + "Req/s": "Request throughput (req/s)", + "Audio tput": "Audio throughput (audio-s/s)", + "RTF mean": "Audio RTF mean", + "RTF P95": "Audio RTF P95", + "TTFP mean": "Audio TTFP mean (ms)", + "Underrun": "Audio underrun mean (s)", + "TTFT median": "TTFT median (ms)", + "TPOT median": "TPOT median (ms)", + "WER": "WER", + "RTFx": "RTFx", +} + # Same navigation groups/labels as the RHAIIS shell. Pages that are not yet # implemented for Omni render a clear placeholder rather than disappearing. OMNI_NAV_GROUPS = [ @@ -740,6 +753,13 @@ def _clear_comparison(): st.caption("No plot lines selected.") +def _concurrency_sort(value: str) -> tuple: + try: + return (0, float(value)) + except (TypeError, ValueError): + return (1, str(value)) + + def _natural_key(value: str) -> list: return [ (0, int(part)) if part.isdigit() else (1, part.lower()) @@ -875,29 +895,84 @@ def _verdict(delta): return merged -def _comparison_summary( +def _aggregate_delta(detail: pd.DataFrame) -> float: + deltas = detail["delta_pct"].dropna() / 100.0 + if deltas.empty: + return np.nan + factors = 1 + deltas + if (factors > 0).all(): + return (float(np.prod(factors)) ** (1 / len(factors)) - 1) * 100 + return float(deltas.mean() * 100) + + +def _model_comparison_summary( base_df: pd.DataFrame, comparison_df: pd.DataFrame ) -> pd.DataFrame: - rows = [] - for label, metric in OMNI_METRICS.items(): + summary_keys = [ + key + for key in _comparison_keys(base_df, comparison_df) + if key != "concurrency_label" + ] + metric_labels = [ + (short, label) + for short, label in OMNI_COMPARE_SUMMARY_METRICS.items() + if base_df[OMNI_METRICS[label]].notna().any() + and comparison_df[OMNI_METRICS[label]].notna().any() + ] + if not metric_labels: + return pd.DataFrame() + + groups = {} + cells = {} + for short, label in metric_labels: + metric = OMNI_METRICS[label] direction, _ = OMNI_COMPARE_DIRECTIONS.get(metric, ("higher", ".2f")) detail = _comparison_table(base_df, comparison_df, metric, direction) if detail.empty: continue - counts = detail["verdict"].value_counts() - mean_delta = detail["delta_pct"].mean() - rows.append( - { - "Metric": label, - "Direction": "Higher is better" if direction == "higher" else "Lower is better", - "Pairs": len(detail), - "Better": int(counts.get("Better", 0)), - "Worse": int(counts.get("Worse", 0)), - "Flat": int(counts.get("Flat", 0)), - "Mean delta %": round(float(mean_delta), 2) if pd.notna(mean_delta) else None, - } + detail["_group"] = ( + detail[summary_keys].agg(" | ".join, axis=1) + if summary_keys + else "all" ) - return pd.DataFrame(rows) + for group, subset in detail.groupby("_group", sort=False): + if group not in groups: + meta = subset.iloc[0] + groups[group] = {key: meta[key] for key in summary_keys} + delta = _aggregate_delta(subset) + if pd.isna(delta): + cells[(group, short)] = "⚪ N/A" + elif abs(delta) < COMPARE_FLAT_THRESHOLD_PCT: + cells[(group, short)] = f"🟡 {delta:+.1f}%" + elif (direction == "higher" and delta > 0) or ( + direction == "lower" and delta < 0 + ): + cells[(group, short)] = f"🟢 {delta:+.1f}%" + else: + cells[(group, short)] = f"🔴 {delta:+.1f}%" + + rows = [] + for group, meta in groups.items(): + model = str(meta.get("model", "")).split("/")[-1] + tp = str(meta.get("tp", "")).strip() + if tp and tp != "n/a": + model += f" (TP={tp})" + row = {"Model": model} + if "task_type" in meta: + row["Task"] = meta["task_type"] + if "load_generator" in meta: + row["Load generator"] = meta["load_generator"] + if "accelerator" in meta: + row["GPU"] = meta["accelerator"] + for short, _ in metric_labels: + row[short] = cells.get((group, short), "⚪ N/A") + rows.append(row) + + summary = pd.DataFrame(rows) + for column in ("Load generator", "GPU"): + if column in summary.columns and summary[column].nunique(dropna=False) <= 1: + summary = summary.drop(columns=[column]) + return summary def _default_compare_metric(frame: pd.DataFrame) -> str: @@ -1020,6 +1095,83 @@ def _swap_versions(): key=metric_key, ) + base_concurrency = set(base["concurrency_label"].dropna().astype(str)) + comparison_concurrency = set( + comparison["concurrency_label"].dropna().astype(str) + ) + common_concurrency = sorted( + base_concurrency & comparison_concurrency, key=_concurrency_sort + ) + if not common_concurrency: + st.warning("No common concurrency levels found for both versions.") + return + concurrency_key = _selection_key( + "omni_compare_concurrency", baseline, candidate, models + ) + if concurrency_key in st.session_state: + st.session_state[concurrency_key] = [ + value + for value in st.session_state[concurrency_key] + if value in common_concurrency + ] + selected_concurrency = st.multiselect( + "Concurrency levels", + common_concurrency, + default=common_concurrency, + key=concurrency_key, + help="Concurrency levels included in the summary, chart, and details.", + ) + if not selected_concurrency: + st.warning("Select at least one concurrency level.") + return + base = base[base["concurrency_label"].astype(str).isin(selected_concurrency)] + comparison = comparison[ + comparison["concurrency_label"].astype(str).isin(selected_concurrency) + ] + + context_parts = [] + for key, label in ( + ("accelerator", "GPU"), + ("task_type", "Task"), + ("dataset", "Dataset"), + ): + if key in base.columns and key in comparison.columns: + values = sorted( + set(base[key].dropna().astype(str)) + & set(comparison[key].dropna().astype(str)) + ) + values = [ + value + for value in values + if value.lower() not in ("", "nan", "none", "n/a") + ] + if len(values) == 1: + context_parts.append(f"{label}: {values[0]}") + + title_col, popover_col = st.columns([5, 1]) + with title_col: + st.markdown( + "### " + + (" | ".join(context_parts) if context_parts else "Version comparison") + ) + with popover_col: + with st.popover("ℹ️ How are these calculated?"): + st.markdown( + "**Matching:** rows are matched on model, task, concurrency, load " + "generator, TP, accelerator, and dataset when both versions provide it.\n\n" + "**Delta:** percent change of the comparison version relative to the " + "baseline.\n\n" + "**Summary:** each cell is the geometric mean of the per-concurrency " + "deltas for that model/configuration.\n\n" + "**Verdicts:** 🟢 Better, 🟡 Flat (±1%), 🔴 Worse. Verdicts account for " + "metric direction: for lower-is-better metrics, a negative delta is better." + ) + st.markdown(f"**Comparing:** {baseline} vs {candidate}") + st.caption( + "Each version/model/configuration is matched on common concurrency levels. " + "Summary cells use the geometric mean of per-concurrency deltas." + ) + metric = OMNI_METRICS[metric_label] direction, _ = OMNI_COMPARE_DIRECTIONS.get(metric, ("higher", ".2f")) detail = _comparison_table(base, comparison, metric, direction) @@ -1029,22 +1181,35 @@ def _swap_versions(): ) return + summary = _model_comparison_summary(base, comparison) + st.subheader("Version comparison summary") + if summary.empty: + st.info( + "No metric pairs are available for these versions and concurrency levels." + ) + else: + st.dataframe(summary, use_container_width=True, hide_index=True) + st.caption("🟢 Better · 🟡 Flat (±1%) · 🔴 Worse") + better = int((detail["verdict"] == "Better").sum()) worse = int((detail["verdict"] == "Worse").sum()) flat = int((detail["verdict"] == "Flat").sum()) - mean_delta = detail["delta_pct"].mean() + summary_delta = _aggregate_delta(detail) + st.subheader(f"Selected metric: {metric_label}") metric_col1, metric_col2, metric_col3, metric_col4 = st.columns(4) metric_col1.metric("Comparisons", len(detail)) metric_col2.metric("Better", better) metric_col3.metric("Worse", worse) metric_col4.metric( - "Mean delta", - f"{mean_delta:+.1f}%" if pd.notna(mean_delta) else "n/a", + "Summary delta", + f"{summary_delta:+.1f}%" if pd.notna(summary_delta) else "n/a", ) st.caption( - f"Flat: {flat}. Delta is the raw percent change; verdict accounts for " - "metric direction, so a negative delta is better for lower-is-better metrics." + f"Flat: {flat}. The card and summary table use the geometric mean of " + "per-concurrency deltas. The chart below shows each concurrency level; " + "verdicts account for metric direction, so a negative delta is better " + "for lower-is-better metrics." ) fig = px.bar( @@ -1089,12 +1254,7 @@ def _swap_versions(): ) st.plotly_chart(fig, use_container_width=True, theme=None, key="omni_compare_chart") - summary = _comparison_summary(base, comparison) - if not summary.empty: - st.subheader("All metric summary") - st.dataframe(summary, use_container_width=True, hide_index=True) - - st.subheader(f"{metric_label} details") + st.subheader("Per-concurrency details") detail_columns = ["model", "task_type", "concurrency_label"] for key in ("dataset", "load_generator", "tp", "accelerator"): if key in detail.columns and detail[key].nunique() > 1: From 66f7a0a660fe01eb3615aadf2d32eed0cbf9089e Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 12:07:11 -0500 Subject: [PATCH 21/74] Use readable TTS, ASR, and Text modality labels Map the Input/Output filter values from raw modality arrows to TTS (text -> audio), ASR (audio -> text), and Text (text -> text). Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 2 +- omni_dashboard.py | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 621e139..2a10800 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -140,7 +140,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header, using RHAIIS column widths: Accelerator → Input/Output → Version + Task → Load Generator + Model → TP. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header, using RHAIIS column widths: Accelerator → Input/Output → Version + Task → Load Generator + Model → TP. Input/Output options are labeled `TTS (text → audio)`, `ASR (audio → text)`, and `Text (text → text)`. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index a73eb67..19492f2 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -36,7 +36,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. - **Performance Plots**: -- Horizontal RHAIIS-style filter band in the main content with RHAIIS column widths (`1.5, 1.3, 1.5, 2.7, 1`). +- Horizontal RHAIIS-style filter band in the main content with RHAIIS column widths (`1.5, 1.3, 1.5, 2.7, 1`). Input/Output values are displayed as `TTS (text → audio)`, `ASR (audio → text)`, and `Text (text → text)`. - X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. - One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. diff --git a/omni_dashboard.py b/omni_dashboard.py index 7c301c7..35fc55e 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -69,6 +69,12 @@ "k6", } +IO_PAIR_LABELS = { + ("text", "audio"): "TTS (text → audio)", + ("audio", "text"): "ASR (audio → text)", + ("text", "text"): "Text (text → text)", +} + PLOT_CUSTOM_DATA = [ "model", "runtime_version", @@ -219,7 +225,15 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df[col] = "unknown" df[col] = df[col].fillna("unknown") - df["io_pair"] = df["input_modality"].astype(str) + " → " + df["output_modality"].astype(str) + df["io_pair"] = [ + IO_PAIR_LABELS.get( + (str(input_modality), str(output_modality)), + f"{input_modality} → {output_modality}", + ) + for input_modality, output_modality in zip( + df["input_modality"], df["output_modality"] + ) + ] def _conc_label(value): if pd.isna(value): From 155a8b6f98e0fb53b1a94e8f3c6fad215c1d3392 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 12:08:22 -0500 Subject: [PATCH 22/74] Label audio-to-text as ASR / STT Include the speech-to-text alias in the Input/Output filter label. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 2 +- omni_dashboard.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 2a10800..a3c5121 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -140,7 +140,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header, using RHAIIS column widths: Accelerator → Input/Output → Version + Task → Load Generator + Model → TP. Input/Output options are labeled `TTS (text → audio)`, `ASR (audio → text)`, and `Text (text → text)`. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header, using RHAIIS column widths: Accelerator → Input/Output → Version + Task → Load Generator + Model → TP. Input/Output options are labeled `TTS (text → audio)`, `ASR / STT (audio → text)`, and `Text (text → text)`. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 19492f2..703440c 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -36,7 +36,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. - **Performance Plots**: -- Horizontal RHAIIS-style filter band in the main content with RHAIIS column widths (`1.5, 1.3, 1.5, 2.7, 1`). Input/Output values are displayed as `TTS (text → audio)`, `ASR (audio → text)`, and `Text (text → text)`. +- Horizontal RHAIIS-style filter band in the main content with RHAIIS column widths (`1.5, 1.3, 1.5, 2.7, 1`). Input/Output values are displayed as `TTS (text → audio)`, `ASR / STT (audio → text)`, and `Text (text → text)`. - X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. - One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. diff --git a/omni_dashboard.py b/omni_dashboard.py index 35fc55e..b6d571e 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -71,7 +71,7 @@ IO_PAIR_LABELS = { ("text", "audio"): "TTS (text → audio)", - ("audio", "text"): "ASR (audio → text)", + ("audio", "text"): "ASR / STT (audio → text)", ("text", "text"): "Text (text → text)", } From fcaa46c70868558a4a46e9beaebff1298560ed8d Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 12:19:26 -0500 Subject: [PATCH 23/74] Add task selector and dummy STT test data Add a task-type selector to Compare Versions that cascades into model and metric options, and select comparison keys per task so datasets present on only one task do not break matching elsewhere. Add a sanitized two-version STT fixture with online and offline rows plus matching logs. Co-Authored-By: Claude Code --- .../consolidated_dashboard_omni_dummy_stt.csv | 9 + datasets/omni/logs/dummy-stt-35ga-c8.log | 19 +++ datasets/omni/logs/dummy-stt-36ga-c8.log | 21 +++ docs/omni-dashboard.md | 24 ++- docs/omni-vs-rhaiis-dashboard.md | 19 ++- omni_dashboard.py | 158 ++++++++++++++---- tests/test_omni_csv.py | 20 +++ 7 files changed, 238 insertions(+), 32 deletions(-) create mode 100644 datasets/omni/consolidated_dashboard_omni_dummy_stt.csv create mode 100644 datasets/omni/logs/dummy-stt-35ga-c8.log create mode 100644 datasets/omni/logs/dummy-stt-36ga-c8.log diff --git a/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv b/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv new file mode 100644 index 0000000..a24659f --- /dev/null +++ b/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv @@ -0,0 +1,9 @@ +schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c1,dummy-dummy-stt-35ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,37.50,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,380.0,,,,,,450.0,,,,2.67,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,20.00,2.67,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c8,dummy-dummy-stt-35ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,13.64,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,950.0,,,,,,1100.0,,,,7.33,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,55.00,7.33,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c32,dummy-dummy-stt-35ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,10.00,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2400.0,,,,,,2800.0,,,,10.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,75.00,10.00,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-wer,dummy-dummy-stt-35ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,48.63,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0610,0.0590,0.0630,400.00,53.88,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0610,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c1,dummy-dummy-stt-36ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,32.61,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,330.4,,,,,,391.3,,,,3.07,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,23.00,3.07,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c8,dummy-dummy-stt-36ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,11.86,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,826.1,,,,,,956.5,,,,8.43,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,63.25,8.43,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c32,dummy-dummy-stt-36ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,8.70,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2087.0,,,,,,2434.8,,,,11.50,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,86.25,11.50,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-wer,dummy-dummy-stt-36ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,42.29,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0540,0.0520,0.0560,460.00,61.96,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0540,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy diff --git a/datasets/omni/logs/dummy-stt-35ga-c8.log b/datasets/omni/logs/dummy-stt-35ga-c8.log new file mode 100644 index 0000000..8400725 --- /dev/null +++ b/datasets/omni/logs/dummy-stt-35ga-c8.log @@ -0,0 +1,19 @@ +2026-07-08 03:00:00,000 INFO [dummy-stt] Starting vLLM server for example/asr-2b +2026-07-08 03:00:00,120 INFO [dummy-stt] Runtime: vLLM 0.30.0 +2026-07-08 03:00:00,240 INFO [dummy-stt] Loading tokenizer and audio feature extractor +2026-07-08 03:00:00,480 INFO [dummy-stt] Initializing model on GPU 0 +2026-07-08 03:00:01,100 INFO [dummy-stt] max_num_seqs=64 gpu_memory_utilization=0.90 +2026-07-08 03:00:01,760 INFO [dummy-stt] Warmup transcription completed in 91.5 ms +2026-07-08 03:00:02,080 INFO [dummy-stt] Application startup complete. +2026-07-08 03:00:05,000 INFO [dummy-stt] benchmark start: num_utterances=100 max_concurrency=8 request_rate=inf +2026-07-08 03:00:05,410 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=950.0 rtfx=55.00 +2026-07-08 03:00:05,850 INFO [dummy-stt] transcription completed: audio_duration_s=7.48 latency_ms=961.2 rtfx=54.36 +2026-07-08 03:00:06,290 INFO [dummy-stt] transcription completed: audio_duration_s=7.52 latency_ms=941.7 rtfx=55.51 +2026-07-08 03:00:06,730 INFO [dummy-stt] transcription completed: audio_duration_s=7.49 latency_ms=956.4 rtfx=54.65 +2026-07-08 03:00:07,170 INFO [dummy-stt] transcription completed: audio_duration_s=7.51 latency_ms=947.8 rtfx=55.15 +2026-07-08 03:00:07,610 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=952.3 rtfx=54.87 +2026-07-08 03:00:08,050 INFO [dummy-stt] transcription completed: audio_duration_s=7.47 latency_ms=966.1 rtfx=54.10 +2026-07-08 03:00:08,490 INFO [dummy-stt] transcription completed: audio_duration_s=7.53 latency_ms=938.9 rtfx=55.63 +2026-07-08 03:00:08,930 INFO [dummy-stt] benchmark complete: completed=100 failed=0 duration_s=13.64 +2026-07-08 03:00:09,820 INFO [dummy-stt] request_throughput=7.33 req/s rtfx=55.00 +2026-07-08 03:00:09,830 INFO [dummy-stt] Dummy STT log end. diff --git a/datasets/omni/logs/dummy-stt-36ga-c8.log b/datasets/omni/logs/dummy-stt-36ga-c8.log new file mode 100644 index 0000000..a01a1c2 --- /dev/null +++ b/datasets/omni/logs/dummy-stt-36ga-c8.log @@ -0,0 +1,21 @@ +2026-11-23 21:00:00,000 INFO [dummy-stt] Starting vLLM server for example/asr-2b +2026-11-23 21:00:00,120 INFO [dummy-stt] Runtime: vLLM 0.30.0 +2026-11-23 21:00:00,240 INFO [dummy-stt] Loading tokenizer and audio feature extractor +2026-11-23 21:00:00,480 INFO [dummy-stt] Initializing model on GPU 0 +2026-11-23 21:00:01,100 INFO [dummy-stt] max_num_seqs=64 gpu_memory_utilization=0.90 +2026-11-23 21:00:01,760 INFO [dummy-stt] Warmup transcription completed in 84.2 ms +2026-11-23 21:00:02,080 INFO [dummy-stt] Application startup complete. +2026-11-23 21:00:05,000 INFO [dummy-stt] benchmark start: num_utterances=100 max_concurrency=8 request_rate=inf +2026-11-23 21:00:05,410 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=780.0 rtfx=63.25 +2026-11-23 21:00:05,850 INFO [dummy-stt] transcription completed: audio_duration_s=7.48 latency_ms=792.1 rtfx=62.91 +2026-11-23 21:00:06,290 INFO [dummy-stt] transcription completed: audio_duration_s=7.52 latency_ms=771.4 rtfx=64.02 +2026-11-23 21:00:06,730 INFO [dummy-stt] transcription completed: audio_duration_s=7.49 latency_ms=788.6 rtfx=63.10 +2026-11-23 21:00:07,170 INFO [dummy-stt] transcription completed: audio_duration_s=7.51 latency_ms=775.3 rtfx=63.71 +2026-11-23 21:00:07,610 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=783.9 rtfx=63.37 +2026-11-23 21:00:08,050 INFO [dummy-stt] transcription completed: audio_duration_s=7.47 latency_ms=795.2 rtfx=62.77 +2026-11-23 21:00:08,490 INFO [dummy-stt] transcription completed: audio_duration_s=7.53 latency_ms=769.8 rtfx=64.11 +2026-11-23 21:00:08,930 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=781.5 rtfx=63.45 +2026-11-23 21:00:09,370 INFO [dummy-stt] transcription completed: audio_duration_s=7.49 latency_ms=786.7 rtfx=63.19 +2026-11-23 21:00:09,810 INFO [dummy-stt] benchmark complete: completed=100 failed=0 duration_s=10.71 +2026-11-23 21:00:09,820 INFO [dummy-stt] request_throughput=9.33 req/s rtfx=63.25 +2026-11-23 21:00:09,830 INFO [dummy-stt] Dummy STT log end. diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index a3c5121..140b05e 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -22,10 +22,31 @@ Included in the repo: |---|---| | `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column template | | `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR (HF harness), audio-to-text (GuideLLM), and text example rows | +| `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` | 8 sanitized ASR/STT test rows across two versions (GuideLLM c1/c8/c32 plus offline WER) | +| `datasets/omni/logs/dummy-stt-*.log` | Matching sanitized STT server logs for View Logs | | `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | The sample uses only `example/...` models and `demo` metadata. Do not commit production hostnames, deployment IDs, MLflow IDs, private image digests, or credentials. +## Dummy STT test data + +`datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` exercises the ASR/STT path without a real run: + +- Model `example/asr-2b`, versions `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. +- GuideLLM online rows at concurrency 1, 8, and 32 with RTFx and transcription throughput. +- Offline WER rows for both versions using the HF ASR leaderboard harness. +- Matching logs under `datasets/omni/logs/` for View Logs. + +Run the dashboard against it with: + +```bash +OMNI_CSV_PATH=datasets/omni/consolidated_dashboard_omni_dummy_stt.csv \ +OMNI_LOG_DIR=datasets/omni/logs \ +streamlit run dashboard.py +``` + +To test STT alongside TTS data, concatenate the dummy rows with another consolidated CSV that has the same 165-column header. + ## Row granularity One row per benchmark point: @@ -150,7 +171,8 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Compare Versions**: -- Baseline and comparison version selectors with a swap button, plus model, metric, and concurrency selectors. +- Baseline and comparison version selectors with a swap button, plus task-type, model, metric, and concurrency selectors. +- The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. - A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. - Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. - A model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 703440c..9723dd3 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -239,7 +239,8 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin ## Checkpoint 8 — Compare Versions implemented -- Added baseline/comparison version selectors with a swap button, plus model, metric, and concurrency selectors. +- Added baseline/comparison version selectors with a swap button, plus task-type, model, metric, and concurrency selectors. +- The task-type selector cascades into model and metric options. Rows are always matched on `task_type`, so TTS and ASR/STT tasks are compared separately and never mixed. - Added the RHAIIS-style context title (`GPU / Task / Dataset`), **Comparing:** line, and “How are these calculated?” popover. - Added a model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas; the table is the primary output, like RHAIIS. - Version defaults prefer the most recent version as the comparison and the earlier version with the longest common prefix as the baseline (for example, `vllm-omni-3.5-ea2` → `vllm-omni-3.6.0-ga`). @@ -253,3 +254,19 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - `vllm-omni-3.5-ea2` vs `vllm-omni-v0.24.0`: 5 models and 25 comparisons rendered in the summary table. - Concurrency subset: removing c1 and c25 reduced the comparison count to 15. - Same-version and one-version datasets show clear warnings. + +## Checkpoint 9 — task selector and dummy STT data + +- Added a **Task types** multiselect to Compare Versions. It cascades into model and metric options, so TTS and ASR/STT comparisons are isolated. +- Task labels are human-readable: Voice Clone, Default Voice, Voice Design, ASR / STT, Text. +- Fixed comparison key selection to run **per task**, so a dataset present on only one side no longer breaks matching for another task. TTS and ASR rows now coexist correctly in one comparison. +- Added `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv`: + - `example/asr-2b` across `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. + - GuideLLM online rows at c1/c8/c32 with RTFx and transcription throughput. + - Offline WER rows for both versions. + - Matching `dummy-stt-*.log` files under `datasets/omni/logs/`. +- Tested: + - All tasks selected: summary shows TTS and ASR rows separately. + - ASR/STT only: model auto-narrows to `example/asr-2b`, metric defaults to WER, title shows `Task: ASR / STT | Dataset: librispeech`. + - Dummy STT log loads end to end in View Logs. + - Fixture test validates 8 rows, two versions, online/offline load generators, and log files. diff --git a/omni_dashboard.py b/omni_dashboard.py index b6d571e..2b43970 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -75,6 +75,18 @@ ("text", "text"): "Text (text → text)", } +TASK_TYPE_LABELS = { + "voice_clone": "Voice Clone", + "default_voice": "Default Voice", + "voice_design": "Voice Design", + "asr_transcription": "ASR / STT", + "text_to_text": "Text", +} + + +def _task_label(value: str) -> str: + return TASK_TYPE_LABELS.get(str(value), str(value)) + PLOT_CUSTOM_DATA = [ "model", "runtime_version", @@ -149,6 +161,7 @@ "TPOT median": "TPOT median (ms)", "WER": "WER", "RTFx": "RTFx", + "STT utt/s": "Transcription throughput (utt/s)", } # Same navigation groups/labels as the RHAIIS shell. Pages that are not yet @@ -843,7 +856,49 @@ def _comparison_table( metric: str, direction: str, ) -> pd.DataFrame: - keys = _comparison_keys(base_df, comparison_df) + if ( + "task_type" not in base_df.columns + or "task_type" not in comparison_df.columns + ): + return _comparison_table_for_task( + base_df, + comparison_df, + metric, + direction, + _comparison_keys(base_df, comparison_df), + ) + + tasks = sorted( + set(base_df["task_type"].dropna()) + | set(comparison_df["task_type"].dropna()) + ) + frames = [] + for task in tasks: + task_base = base_df[base_df["task_type"] == task] + task_comparison = comparison_df[comparison_df["task_type"] == task] + if task_base.empty or task_comparison.empty: + continue + detail = _comparison_table_for_task( + task_base, + task_comparison, + metric, + direction, + _comparison_keys(task_base, task_comparison), + ) + if not detail.empty: + frames.append(detail) + if not frames: + return pd.DataFrame() + return pd.concat(frames, ignore_index=True) + + +def _comparison_table_for_task( + base_df: pd.DataFrame, + comparison_df: pd.DataFrame, + metric: str, + direction: str, + keys: list, +) -> pd.DataFrame: base = base_df.dropna(subset=[metric]).copy() comparison = comparison_df.dropna(subset=[metric]).copy() if base.empty or comparison.empty: @@ -872,6 +927,9 @@ def _prepare(frame: pd.DataFrame) -> pd.DataFrame: merged["comparison"] = merged.pop(f"{metric}_comparison") for key in keys: merged[key] = merged.pop(f"{key}_baseline") + comparison_column = f"{key}_comparison" + if comparison_column in merged.columns: + merged.pop(comparison_column) merged = merged.dropna(subset=["baseline", "comparison"]) denominator = merged["baseline"].abs() @@ -922,10 +980,12 @@ def _aggregate_delta(detail: pd.DataFrame) -> float: def _model_comparison_summary( base_df: pd.DataFrame, comparison_df: pd.DataFrame ) -> pd.DataFrame: - summary_keys = [ - key - for key in _comparison_keys(base_df, comparison_df) - if key != "concurrency_label" + core_group_keys = [ + "model", + "task_type", + "load_generator", + "tp", + "accelerator", ] metric_labels = [ (short, label) @@ -944,15 +1004,16 @@ def _model_comparison_summary( detail = _comparison_table(base_df, comparison_df, metric, direction) if detail.empty: continue + group_keys = [key for key in core_group_keys if key in detail.columns] detail["_group"] = ( - detail[summary_keys].agg(" | ".join, axis=1) - if summary_keys + detail[group_keys].agg(" | ".join, axis=1) + if group_keys else "all" ) for group, subset in detail.groupby("_group", sort=False): if group not in groups: meta = subset.iloc[0] - groups[group] = {key: meta[key] for key in summary_keys} + groups[group] = {key: meta[key] for key in group_keys} delta = _aggregate_delta(subset) if pd.isna(delta): cells[(group, short)] = "⚪ N/A" @@ -973,7 +1034,7 @@ def _model_comparison_summary( model += f" (TP={tp})" row = {"Model": model} if "task_type" in meta: - row["Task"] = meta["task_type"] + row["Task"] = _task_label(meta["task_type"]) if "load_generator" in meta: row["Load generator"] = meta["load_generator"] if "accelerator" in meta: @@ -1051,23 +1112,62 @@ def _swap_versions(): base_all = df[df["runtime_version"] == baseline].copy() comparison_all = df[df["runtime_version"] == candidate].copy() + + common_tasks = sorted( + set(base_all["task_type"].dropna()) + & set(comparison_all["task_type"].dropna()) + ) + if not common_tasks: + st.warning( + f"No common tasks found between {baseline} and {candidate}." + ) + return + task_options = [(task, _task_label(task)) for task in common_tasks] + task_labels = [label for _, label in task_options] + task_key = _selection_key("omni_compare_tasks", baseline, candidate) + if task_key in st.session_state: + st.session_state[task_key] = [ + label for label in st.session_state[task_key] if label in task_labels + ] + + col_task, col_models, col_metric = st.columns([2, 2, 2]) + with col_task: + selected_task_labels = st.multiselect( + "Task types", + task_labels, + default=task_labels, + key=task_key, + ) + if not selected_task_labels: + st.info("Select at least one task type.") + return + selected_tasks = [ + task for task, label in task_options if label in selected_task_labels + ] + + base_tasks = base_all[base_all["task_type"].isin(selected_tasks)] + comparison_tasks = comparison_all[ + comparison_all["task_type"].isin(selected_tasks) + ] common_models = sorted( - set(base_all["model"].dropna()) & set(comparison_all["model"].dropna()) + set(base_tasks["model"].dropna()) & set(comparison_tasks["model"].dropna()) ) if not common_models: st.warning( - f"No common models found between {baseline} and {candidate}." + f"No common models found between {baseline} and {candidate} " + "for the selected tasks." ) return - model_key = _selection_key("omni_compare_models", baseline, candidate) + model_key = _selection_key( + "omni_compare_models", baseline, candidate, selected_tasks + ) if model_key in st.session_state: st.session_state[model_key] = [ model for model in st.session_state[model_key] if model in common_models ] - col3, col4 = st.columns([3, 2]) - with col3: + with col_models: models = st.multiselect( "Models", common_models, @@ -1078,8 +1178,8 @@ def _swap_versions(): st.info("Select at least one model.") return - base = base_all[base_all["model"].isin(models)] - comparison = comparison_all[comparison_all["model"].isin(models)] + base = base_tasks[base_tasks["model"].isin(models)] + comparison = comparison_tasks[comparison_tasks["model"].isin(models)] metric_options = [ label for label, column in OMNI_METRICS.items() @@ -1088,7 +1188,7 @@ def _swap_versions(): if not metric_options: st.warning( f"No comparable metrics found between {baseline} and {candidate} " - "for the selected models." + "for the selected tasks and models." ) return @@ -1099,9 +1199,9 @@ def _swap_versions(): else 0 ) metric_key = _selection_key( - "omni_compare_metric", baseline, candidate, models + "omni_compare_metric", baseline, candidate, selected_tasks, models ) - with col4: + with col_metric: metric_label = st.selectbox( "Metric", metric_options, @@ -1150,17 +1250,15 @@ def _swap_versions(): ("dataset", "Dataset"), ): if key in base.columns and key in comparison.columns: - values = sorted( - set(base[key].dropna().astype(str)) - & set(comparison[key].dropna().astype(str)) - ) - values = [ - value - for value in values - if value.lower() not in ("", "nan", "none", "n/a") - ] - if len(values) == 1: - context_parts.append(f"{label}: {values[0]}") + raw_values = pd.concat([base[key], comparison[key]]).astype(str).str.strip() + normalized = raw_values.str.lower() + if normalized.isin(["", "nan", "none", "n/a"]).any(): + continue + if raw_values.nunique() == 1: + value = raw_values.iloc[0] + context_parts.append( + f"{label}: {_task_label(value) if key == 'task_type' else value}" + ) title_col, popover_col = st.columns([5, 1]) with title_col: diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 60f2e76..f8759a8 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -15,6 +15,7 @@ METADATA = OMNI_DIR / "consolidated_dashboard_omni_metadata.example.json" CONVERTER = ROOT / "manual_runs" / "scripts" / "build_consolidated_omni_csv.py" DEMO_LOG = OMNI_DIR / "logs" / "demo-tts-c1.log" +DUMMY_STT = OMNI_DIR / "consolidated_dashboard_omni_dummy_stt.csv" REQUIRED = {"model", "task_type", "benchmark_tool", "load_generator"} @@ -87,6 +88,25 @@ def test_demo_log_matches_sample_run(): assert "Application startup complete." in DEMO_LOG.read_text() +def test_dummy_stt_fixture(): + rows = _read_csv(DUMMY_STT) + assert len(rows) == 8 + assert list(rows[0]) == _header(TEMPLATE) + assert {row["task_type"] for row in rows} == {"asr_transcription"} + assert {row["input_modality"] for row in rows} == {"audio"} + assert {row["output_modality"] for row in rows} == {"text"} + assert {row["runtime_version"] for row in rows} == { + "vllm-omni-3.5-ea2", + "vllm-omni-3.6.0-ga", + } + assert {row["load_generator"] for row in rows} == {"guidellm", "offline"} + offline = [row for row in rows if row["load_generator"] == "offline"] + assert len(offline) == 2 + assert all(row["wer"] for row in offline) + assert (OMNI_DIR / "logs" / "dummy-stt-35ga-c8.log").exists() + assert (OMNI_DIR / "logs" / "dummy-stt-36ga-c8.log").exists() + + def test_converter_smoke(tmp_path): result = { "model_id": "example/tts-1b", From 0ac190ac975b02272115ef485a326acf52771784 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 12:36:08 -0500 Subject: [PATCH 24/74] Clarify Compare Versions task labels Prefix task labels with their modality and list TTS tasks first: TTS - Voice Clone/Default Voice/Voice Design, ASR / STT - Transcription, Text - Text generation. Rename the control to Tasks. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 4 ++-- omni_dashboard.py | 32 +++++++++++++++++++++++++------- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 140b05e..f7a73a4 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -172,7 +172,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Compare Versions**: - Baseline and comparison version selectors with a swap button, plus task-type, model, metric, and concurrency selectors. -- The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. +- The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. Labels are modality-explicit: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. - A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. - Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. - A model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 9723dd3..c75e99b 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -257,8 +257,8 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin ## Checkpoint 9 — task selector and dummy STT data -- Added a **Task types** multiselect to Compare Versions. It cascades into model and metric options, so TTS and ASR/STT comparisons are isolated. -- Task labels are human-readable: Voice Clone, Default Voice, Voice Design, ASR / STT, Text. +- Added a **Tasks** multiselect to Compare Versions. It cascades into model and metric options, so TTS and ASR/STT comparisons are isolated. +- Task labels are modality-explicit and ordered: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. ASR/STT has a single transcription task. - Fixed comparison key selection to run **per task**, so a dataset present on only one side no longer breaks matching for another task. TTS and ASR rows now coexist correctly in one comparison. - Added `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv`: - `example/asr-2b` across `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. diff --git a/omni_dashboard.py b/omni_dashboard.py index 2b43970..ade161e 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -76,13 +76,21 @@ } TASK_TYPE_LABELS = { - "voice_clone": "Voice Clone", - "default_voice": "Default Voice", - "voice_design": "Voice Design", - "asr_transcription": "ASR / STT", - "text_to_text": "Text", + "voice_clone": "TTS - Voice Clone", + "default_voice": "TTS - Default Voice", + "voice_design": "TTS - Voice Design", + "asr_transcription": "ASR / STT - Transcription", + "text_to_text": "Text - Text generation", } +TASK_TYPE_ORDER = [ + "voice_clone", + "default_voice", + "voice_design", + "asr_transcription", + "text_to_text", +] + def _task_label(value: str) -> str: return TASK_TYPE_LABELS.get(str(value), str(value)) @@ -1115,7 +1123,13 @@ def _swap_versions(): common_tasks = sorted( set(base_all["task_type"].dropna()) - & set(comparison_all["task_type"].dropna()) + & set(comparison_all["task_type"].dropna()), + key=lambda task: ( + TASK_TYPE_ORDER.index(task) + if task in TASK_TYPE_ORDER + else len(TASK_TYPE_ORDER), + str(task), + ), ) if not common_tasks: st.warning( @@ -1133,10 +1147,14 @@ def _swap_versions(): col_task, col_models, col_metric = st.columns([2, 2, 2]) with col_task: selected_task_labels = st.multiselect( - "Task types", + "Tasks", task_labels, default=task_labels, key=task_key, + help=( + "TTS has voice clone, default voice, and voice design tasks. " + "ASR / STT has a single transcription task." + ), ) if not selected_task_labels: st.info("Select at least one task type.") From c9ebff81683051d9fc082149d47ed6977348fec9 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 13:30:55 -0500 Subject: [PATCH 25/74] Compare one load generator at a time Add a single-select Load generator to Compare Versions and filter rows before matching, so GuideLLM, vLLM-Omni bench serve, and offline results are never mixed. Prefer vLLM-Omni bench serve for TTS and GuideLLM for ASR; offline remains available for WER comparisons. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 3 +- docs/omni-vs-rhaiis-dashboard.md | 8 +++ omni_dashboard.py | 87 +++++++++++++++++++++++++++----- 3 files changed, 85 insertions(+), 13 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index f7a73a4..5952dba 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -171,7 +171,8 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Compare Versions**: -- Baseline and comparison version selectors with a swap button, plus task-type, model, metric, and concurrency selectors. +- Baseline and comparison version selectors with a swap button, plus task-type, load-generator, model, metric, and concurrency selectors. +- Only one load generator is compared at a time. GuideLLM, vLLM-Omni bench serve, and offline rows are never mixed. - The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. Labels are modality-explicit: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. - A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. - Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index c75e99b..cdd550a 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -270,3 +270,11 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - ASR/STT only: model auto-narrows to `example/asr-2b`, metric defaults to WER, title shows `Task: ASR / STT | Dataset: librispeech`. - Dummy STT log loads end to end in View Logs. - Fixture test validates 8 rows, two versions, online/offline load generators, and log files. + +## Checkpoint 10 — single load generator per comparison + +- Added a **Load generator** selector to Compare Versions. +- Options cascade from the selected tasks and are limited to load generators present in both versions. +- Comparisons are filtered to the selected load generator before matching, so GuideLLM, vLLM-Omni bench serve, and offline results are never mixed. +- Default preference: vLLM-Omni bench serve for TTS tasks, GuideLLM otherwise, offline only when it is the sole option. +- Tested: ASR selection defaults to GuideLLM and shows only GuideLLM rows; switching to offline exposes WER and shows only offline rows. diff --git a/omni_dashboard.py b/omni_dashboard.py index ade161e..71c7ffd 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1061,9 +1061,13 @@ def _model_comparison_summary( def _default_compare_metric(frame: pd.DataFrame) -> str: tasks = set(frame["task_type"].dropna().astype(str)) if tasks and tasks <= {"asr_transcription"}: - return "WER" + if frame["wer"].notna().any(): + return "WER" + return "RTFx" if tasks & {"voice_clone", "default_voice", "voice_design"}: - return "Audio RTF P95" + if frame["audio_rtf_p95"].notna().any(): + return "Audio RTF P95" + return "Request throughput (req/s)" return "Request throughput (req/s)" @@ -1144,7 +1148,7 @@ def _swap_versions(): label for label in st.session_state[task_key] if label in task_labels ] - col_task, col_models, col_metric = st.columns([2, 2, 2]) + col_task, col_loadgen, col_models, col_metric = st.columns([2, 2, 2, 2]) with col_task: selected_task_labels = st.multiselect( "Tasks", @@ -1167,18 +1171,64 @@ def _swap_versions(): comparison_tasks = comparison_all[ comparison_all["task_type"].isin(selected_tasks) ] + + def _load_generators(frame: pd.DataFrame) -> set: + values = frame["load_generator"].dropna().astype(str).str.strip() + return set( + values[~values.str.lower().isin(["", "nan", "none", "unknown"])] + ) + + load_generators = sorted( + _load_generators(base_tasks) & _load_generators(comparison_tasks), + key=lambda value: (value == "offline", str(value)), + ) + if not load_generators: + st.warning("No common load generators found for the selected tasks.") + return + tts_tasks = {"voice_clone", "default_voice", "voice_design"} + if "vllm-omni-bench-serve" in load_generators and tts_tasks & set(selected_tasks): + preferred_load_generator = "vllm-omni-bench-serve" + elif "guidellm" in load_generators: + preferred_load_generator = "guidellm" + else: + preferred_load_generator = load_generators[0] + loadgen_key = _selection_key( + "omni_compare_loadgen", baseline, candidate, selected_tasks + ) + if st.session_state.get(loadgen_key) not in load_generators: + st.session_state.pop(loadgen_key, None) + with col_loadgen: + load_generator = st.selectbox( + "Load generator", + load_generators, + index=load_generators.index(preferred_load_generator), + key=loadgen_key, + help=( + "Only one load generator is compared at a time. GuideLLM, " + "vLLM-Omni bench serve, and offline results are never mixed." + ), + ) + + base_load = base_tasks[base_tasks["load_generator"] == load_generator] + comparison_load = comparison_tasks[ + comparison_tasks["load_generator"] == load_generator + ] common_models = sorted( - set(base_tasks["model"].dropna()) & set(comparison_tasks["model"].dropna()) + set(base_load["model"].dropna()) & set(comparison_load["model"].dropna()) ) if not common_models: st.warning( - f"No common models found between {baseline} and {candidate} " - "for the selected tasks." + f"No common models found between {baseline} and {candidate} for " + f"the selected tasks and {load_generator}." ) return model_key = _selection_key( - "omni_compare_models", baseline, candidate, selected_tasks + "omni_compare_models", + baseline, + candidate, + selected_tasks, + [load_generator], ) if model_key in st.session_state: st.session_state[model_key] = [ @@ -1196,8 +1246,8 @@ def _swap_versions(): st.info("Select at least one model.") return - base = base_tasks[base_tasks["model"].isin(models)] - comparison = comparison_tasks[comparison_tasks["model"].isin(models)] + base = base_load[base_load["model"].isin(models)] + comparison = comparison_load[comparison_load["model"].isin(models)] metric_options = [ label for label, column in OMNI_METRICS.items() @@ -1217,7 +1267,12 @@ def _swap_versions(): else 0 ) metric_key = _selection_key( - "omni_compare_metric", baseline, candidate, selected_tasks, models + "omni_compare_metric", + baseline, + candidate, + selected_tasks, + models, + [load_generator], ) with col_metric: metric_label = st.selectbox( @@ -1238,7 +1293,12 @@ def _swap_versions(): st.warning("No common concurrency levels found for both versions.") return concurrency_key = _selection_key( - "omni_compare_concurrency", baseline, candidate, models + "omni_compare_concurrency", + baseline, + candidate, + selected_tasks, + models, + [load_generator], ) if concurrency_key in st.session_state: st.session_state[concurrency_key] = [ @@ -1266,6 +1326,7 @@ def _swap_versions(): ("accelerator", "GPU"), ("task_type", "Task"), ("dataset", "Dataset"), + ("load_generator", "Load gen"), ): if key in base.columns and key in comparison.columns: raw_values = pd.concat([base[key], comparison[key]]).astype(str).str.strip() @@ -1299,7 +1360,9 @@ def _swap_versions(): st.markdown(f"**Comparing:** {baseline} vs {candidate}") st.caption( "Each version/model/configuration is matched on common concurrency levels. " - "Summary cells use the geometric mean of per-concurrency deltas." + "Summary cells use the geometric mean of per-concurrency deltas. Only the " + "selected load generator is used; results from different load generators " + "are never mixed." ) metric = OMNI_METRICS[metric_label] From 01feea1c41ef7de9e0d5826b5f4dc0191eca8c5a Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 15:39:06 -0500 Subject: [PATCH 26/74] Add statistic selector to Compare Versions Choose Mean, Median, P95, or P99 where available. Summary headers include the statistic used by each metric family, and single-value metrics remain unlabeled. Remove the concurrency multiselect and use all common concurrency levels automatically. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 11 +- omni_dashboard.py | 423 ++++++++++++++++++++++++------- 3 files changed, 338 insertions(+), 98 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 5952dba..ad37918 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -171,7 +171,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Compare Versions**: -- Baseline and comparison version selectors with a swap button, plus task-type, load-generator, model, metric, and concurrency selectors. +- Baseline and comparison version selectors with a swap button, plus task-type, load-generator, model, and metric selectors. All common concurrency levels are used automatically. - Only one load generator is compared at a time. GuideLLM, vLLM-Omni bench serve, and offline rows are never mixed. - The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. Labels are modality-explicit: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. - A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index cdd550a..b4c5afc 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -239,7 +239,7 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin ## Checkpoint 8 — Compare Versions implemented -- Added baseline/comparison version selectors with a swap button, plus task-type, model, metric, and concurrency selectors. +- Added baseline/comparison version selectors with a swap button, plus task-type, model, and metric selectors. All common concurrency levels are used automatically. - The task-type selector cascades into model and metric options. Rows are always matched on `task_type`, so TTS and ASR/STT tasks are compared separately and never mixed. - Added the RHAIIS-style context title (`GPU / Task / Dataset`), **Comparing:** line, and “How are these calculated?” popover. - Added a model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas; the table is the primary output, like RHAIIS. @@ -252,7 +252,7 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Swap: all verdicts flipped to Worse. - Lower-is-better metric: signs and colors flipped correctly. - `vllm-omni-3.5-ea2` vs `vllm-omni-v0.24.0`: 5 models and 25 comparisons rendered in the summary table. - - Concurrency subset: removing c1 and c25 reduced the comparison count to 15. + - All common concurrency levels are used automatically (c1/c4/c8/c16 for the 3.5 → 3.6 comparison). - Same-version and one-version datasets show clear warnings. ## Checkpoint 9 — task selector and dummy STT data @@ -278,3 +278,10 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Comparisons are filtered to the selected load generator before matching, so GuideLLM, vLLM-Omni bench serve, and offline results are never mixed. - Default preference: vLLM-Omni bench serve for TTS tasks, GuideLLM otherwise, offline only when it is the sole option. - Tested: ASR selection defaults to GuideLLM and shows only GuideLLM rows; switching to offline exposes WER and shows only offline rows. + +## Checkpoint 11 — all common concurrency levels + +- Removed the concurrency multiselect from Compare Versions. +- The page now uses every common concurrency level for the selected versions, tasks, load generator, and models. +- A caption lists the concurrency levels in use. +- This keeps the page simpler and matches the “compare everything common” behavior. diff --git a/omni_dashboard.py b/omni_dashboard.py index 71c7ffd..a1a8ad2 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -127,26 +127,121 @@ def _task_label(value: str) -> str: "Model": "model", } -OMNI_COMPARE_DIRECTIONS = { - "request_throughput_rps": ("higher", ".2f"), - "audio_throughput_x": ("higher", ".2f"), - "output_token_throughput": ("higher", ".2f"), - "total_token_throughput": ("higher", ".2f"), - "audio_rtf_mean": ("lower", ".4f"), - "audio_rtf_p95": ("lower", ".4f"), - "audio_ttfp_ms_mean": ("lower", ".1f"), - "audio_ttfp_ms_p95": ("lower", ".1f"), - "audio_underrun_s_mean": ("lower", ".3f"), - "audio_underrun_s_p95": ("lower", ".3f"), - "ttft_ms_median": ("lower", ".1f"), - "tpot_ms_median": ("lower", ".2f"), - "itl_ms_median": ("lower", ".2f"), - "e2el_ms_median": ("lower", ".1f"), - "wer": ("lower", ".4f"), - "rtfx": ("higher", ".2f"), - "transcription_throughput_utterances_s": ("higher", ".2f"), +COMPARE_STATISTICS = ["Mean", "Median", "P95", "P99"] + +COMPARE_METRIC_FAMILIES = { + "Request throughput": { + "short": "Req/s", + "direction": "higher", + "column": "request_throughput_rps", + }, + "Audio throughput": { + "short": "Audio tput", + "direction": "higher", + "column": "audio_throughput_x", + }, + "Output token throughput": { + "short": "Out tok/s", + "direction": "higher", + "column": "output_token_throughput", + }, + "Total token throughput": { + "short": "Total tok/s", + "direction": "higher", + "column": "total_token_throughput", + }, + "Audio RTF": { + "short": "RTF", + "direction": "lower", + "columns": { + "Mean": "audio_rtf_mean", + "Median": "audio_rtf_median", + "P95": "audio_rtf_p95", + "P99": "audio_rtf_p99", + }, + }, + "Audio TTFP": { + "short": "TTFP", + "direction": "lower", + "columns": { + "Mean": "audio_ttfp_ms_mean", + "Median": "audio_ttfp_ms_median", + "P95": "audio_ttfp_ms_p95", + "P99": "audio_ttfp_ms_p99", + }, + }, + "Audio underrun": { + "short": "Underrun", + "direction": "lower", + "columns": { + "Mean": "audio_underrun_s_mean", + "Median": "audio_underrun_s_median", + "P95": "audio_underrun_s_p95", + "P99": "audio_underrun_s_p99", + }, + }, + "TTFT": { + "short": "TTFT", + "direction": "lower", + "columns": { + "Mean": "ttft_ms_mean", + "Median": "ttft_ms_median", + "P95": "ttft_ms_p95", + "P99": "ttft_ms_p99", + }, + }, + "TPOT": { + "short": "TPOT", + "direction": "lower", + "columns": { + "Mean": "tpot_ms_mean", + "Median": "tpot_ms_median", + "P95": "tpot_ms_p95", + "P99": "tpot_ms_p99", + }, + }, + "ITL": { + "short": "ITL", + "direction": "lower", + "columns": { + "Mean": "itl_ms_mean", + "Median": "itl_ms_median", + "P95": "itl_ms_p95", + "P99": "itl_ms_p99", + }, + }, + "End-to-end latency": { + "short": "E2EL", + "direction": "lower", + "columns": { + "Mean": "e2el_ms_mean", + "Median": "e2el_ms_median", + "P95": "e2el_ms_p95", + "P99": "e2el_ms_p99", + }, + }, + "WER": {"short": "WER", "direction": "lower", "column": "wer"}, + "RTFx": {"short": "RTFx", "direction": "higher", "column": "rtfx"}, + "Transcription throughput": { + "short": "STT utt/s", + "direction": "higher", + "column": "transcription_throughput_utterances_s", + }, } +COMPARE_SUMMARY_FAMILIES = [ + "Request throughput", + "Audio throughput", + "Audio RTF", + "Audio TTFP", + "Audio underrun", + "TTFT", + "TPOT", + "WER", + "RTFx", + "Transcription throughput", +] + COMPARE_KEYS = [ "model", "task_type", @@ -158,20 +253,6 @@ def _task_label(value: str) -> str: ] COMPARE_FLAT_THRESHOLD_PCT = 1.0 -OMNI_COMPARE_SUMMARY_METRICS = { - "Req/s": "Request throughput (req/s)", - "Audio tput": "Audio throughput (audio-s/s)", - "RTF mean": "Audio RTF mean", - "RTF P95": "Audio RTF P95", - "TTFP mean": "Audio TTFP mean (ms)", - "Underrun": "Audio underrun mean (s)", - "TTFT median": "TTFT median (ms)", - "TPOT median": "TPOT median (ms)", - "WER": "WER", - "RTFx": "RTFx", - "STT utt/s": "Transcription throughput (utt/s)", -} - # Same navigation groups/labels as the RHAIIS shell. Pages that are not yet # implemented for Omni render a clear placeholder rather than disappearing. OMNI_NAV_GROUPS = [ @@ -975,6 +1056,113 @@ def _verdict(delta): return merged +def _family_statistics( + family: str, base_df: pd.DataFrame, comparison_df: pd.DataFrame +) -> list: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" not in config: + return [] + return [ + statistic + for statistic in COMPARE_STATISTICS + if ( + config["columns"].get(statistic) + and base_df[config["columns"][statistic]].notna().any() + and comparison_df[config["columns"][statistic]].notna().any() + ) + ] + + +def _family_available( + family: str, base_df: pd.DataFrame, comparison_df: pd.DataFrame +) -> bool: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" in config: + return bool(_family_statistics(family, base_df, comparison_df)) + column = config["column"] + return base_df[column].notna().any() and comparison_df[column].notna().any() + + +def _family_available_for_statistic( + family: str, + base_df: pd.DataFrame, + comparison_df: pd.DataFrame, + statistic: str | None, +) -> bool: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" not in config: + return _family_available(family, base_df, comparison_df) + column = config["columns"].get(statistic) + return bool( + column + and base_df[column].notna().any() + and comparison_df[column].notna().any() + ) + + +def _summary_statistics( + base_df: pd.DataFrame, comparison_df: pd.DataFrame +) -> list: + statistics = [] + for statistic in COMPARE_STATISTICS: + for family in COMPARE_SUMMARY_FAMILIES: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" not in config: + continue + column = config["columns"].get(statistic) + if ( + column + and base_df[column].notna().any() + and comparison_df[column].notna().any() + ): + statistics.append(statistic) + break + return statistics + + +def _default_compare_statistic( + base_df: pd.DataFrame, + comparison_df: pd.DataFrame, + statistics: list, +) -> str | None: + if not statistics: + return None + tasks = set(base_df["task_type"].dropna().astype(str)) + if tasks & {"voice_clone", "default_voice", "voice_design"}: + family = "Audio RTF" + elif tasks and tasks <= {"text_to_text"}: + family = "TTFT" + else: + family = None + if family: + available = _family_statistics(family, base_df, comparison_df) + if "P95" in available: + return "P95" + if "Mean" in available: + return "Mean" + if available: + return available[0] + if "P95" in statistics: + return "P95" + if "Mean" in statistics: + return "Mean" + return statistics[0] + + +def _family_column(family: str, statistic: str | None) -> str | None: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" in config: + return config["columns"].get(statistic) + return config["column"] + + +def _family_label(family: str, statistic: str | None) -> str: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" in config and statistic: + return f"{family} ({statistic})" + return family + + def _aggregate_delta(detail: pd.DataFrame) -> float: deltas = detail["delta_pct"].dropna() / 100.0 if deltas.empty: @@ -986,7 +1174,9 @@ def _aggregate_delta(detail: pd.DataFrame) -> float: def _model_comparison_summary( - base_df: pd.DataFrame, comparison_df: pd.DataFrame + base_df: pd.DataFrame, + comparison_df: pd.DataFrame, + statistic: str | None, ) -> pd.DataFrame: core_group_keys = [ "model", @@ -995,21 +1185,34 @@ def _model_comparison_summary( "tp", "accelerator", ] - metric_labels = [ - (short, label) - for short, label in OMNI_COMPARE_SUMMARY_METRICS.items() - if base_df[OMNI_METRICS[label]].notna().any() - and comparison_df[OMNI_METRICS[label]].notna().any() - ] - if not metric_labels: + metric_columns = [] + for family in COMPARE_SUMMARY_FAMILIES: + config = COMPARE_METRIC_FAMILIES[family] + if "columns" in config: + column = config["columns"].get(statistic) + if ( + not column + or not base_df[column].notna().any() + or not comparison_df[column].notna().any() + ): + continue + header = f"{config['short']} {statistic}" + else: + column = config["column"] + if ( + not base_df[column].notna().any() + or not comparison_df[column].notna().any() + ): + continue + header = config["short"] + metric_columns.append((header, column, config["direction"])) + if not metric_columns: return pd.DataFrame() groups = {} cells = {} - for short, label in metric_labels: - metric = OMNI_METRICS[label] - direction, _ = OMNI_COMPARE_DIRECTIONS.get(metric, ("higher", ".2f")) - detail = _comparison_table(base_df, comparison_df, metric, direction) + for header, column, direction in metric_columns: + detail = _comparison_table(base_df, comparison_df, column, direction) if detail.empty: continue group_keys = [key for key in core_group_keys if key in detail.columns] @@ -1024,15 +1227,15 @@ def _model_comparison_summary( groups[group] = {key: meta[key] for key in group_keys} delta = _aggregate_delta(subset) if pd.isna(delta): - cells[(group, short)] = "⚪ N/A" + cells[(group, header)] = "⚪ N/A" elif abs(delta) < COMPARE_FLAT_THRESHOLD_PCT: - cells[(group, short)] = f"🟡 {delta:+.1f}%" + cells[(group, header)] = f"🟡 {delta:+.1f}%" elif (direction == "higher" and delta > 0) or ( direction == "lower" and delta < 0 ): - cells[(group, short)] = f"🟢 {delta:+.1f}%" + cells[(group, header)] = f"🟢 {delta:+.1f}%" else: - cells[(group, short)] = f"🔴 {delta:+.1f}%" + cells[(group, header)] = f"🔴 {delta:+.1f}%" rows = [] for group, meta in groups.items(): @@ -1047,8 +1250,8 @@ def _model_comparison_summary( row["Load generator"] = meta["load_generator"] if "accelerator" in meta: row["GPU"] = meta["accelerator"] - for short, _ in metric_labels: - row[short] = cells.get((group, short), "⚪ N/A") + for header, _, _ in metric_columns: + row[header] = cells.get((group, header), "⚪ N/A") rows.append(row) summary = pd.DataFrame(rows) @@ -1058,17 +1261,19 @@ def _model_comparison_summary( return summary -def _default_compare_metric(frame: pd.DataFrame) -> str: +def _default_compare_family(frame: pd.DataFrame, options: list) -> str: tasks = set(frame["task_type"].dropna().astype(str)) if tasks and tasks <= {"asr_transcription"}: - if frame["wer"].notna().any(): + if "WER" in options and frame["wer"].notna().any(): return "WER" - return "RTFx" + if "RTFx" in options: + return "RTFx" if tasks & {"voice_clone", "default_voice", "voice_design"}: - if frame["audio_rtf_p95"].notna().any(): - return "Audio RTF P95" - return "Request throughput (req/s)" - return "Request throughput (req/s)" + if "Audio RTF" in options: + return "Audio RTF" + if "Request throughput" in options: + return "Request throughput" + return options[0] if options else "" def _compare_versions(df: pd.DataFrame): @@ -1148,7 +1353,9 @@ def _swap_versions(): label for label in st.session_state[task_key] if label in task_labels ] - col_task, col_loadgen, col_models, col_metric = st.columns([2, 2, 2, 2]) + col_task, col_loadgen, col_models, col_stat, col_metric = st.columns( + [2, 2, 2, 1.3, 1.7] + ) with col_task: selected_task_labels = st.multiselect( "Tasks", @@ -1248,22 +1455,54 @@ def _load_generators(frame: pd.DataFrame) -> set: base = base_load[base_load["model"].isin(models)] comparison = comparison_load[comparison_load["model"].isin(models)] + + summary_statistics = _summary_statistics(base, comparison) + statistic = None + if summary_statistics: + preferred_statistic = _default_compare_statistic( + base, comparison, summary_statistics + ) + stat_key = _selection_key( + "omni_compare_stat", + baseline, + candidate, + selected_tasks, + models, + [load_generator], + ) + if st.session_state.get(stat_key) not in summary_statistics: + st.session_state.pop(stat_key, None) + with col_stat: + statistic = st.selectbox( + "Statistic", + summary_statistics, + index=summary_statistics.index(preferred_statistic), + key=stat_key, + help=( + "Mean, Median, P95, or P99 where available. Throughput, " + "WER, RTFx, and transcription throughput are single values." + ), + ) + else: + with col_stat: + st.caption("Statistic: single value") + metric_options = [ - label - for label, column in OMNI_METRICS.items() - if base[column].notna().any() and comparison[column].notna().any() + family + for family in COMPARE_METRIC_FAMILIES + if _family_available_for_statistic(family, base, comparison, statistic) ] if not metric_options: st.warning( f"No comparable metrics found between {baseline} and {candidate} " - "for the selected tasks and models." + "for the selected tasks, load generator, models, and statistic." ) return - preferred_metric = _default_compare_metric(base) + preferred_family = _default_compare_family(base, metric_options) metric_index = ( - metric_options.index(preferred_metric) - if preferred_metric in metric_options + metric_options.index(preferred_family) + if preferred_family in metric_options else 0 ) metric_key = _selection_key( @@ -1273,15 +1512,25 @@ def _load_generators(frame: pd.DataFrame) -> set: selected_tasks, models, [load_generator], + [statistic or "single"], ) + if st.session_state.get(metric_key) not in metric_options: + st.session_state.pop(metric_key, None) with col_metric: - metric_label = st.selectbox( + metric_family = st.selectbox( "Metric", metric_options, index=metric_index, key=metric_key, ) + metric = _family_column(metric_family, statistic) + if not metric: + st.warning("The selected metric does not have the chosen statistic.") + return + metric_label = _family_label(metric_family, statistic) + direction = COMPARE_METRIC_FAMILIES[metric_family]["direction"] + base_concurrency = set(base["concurrency_label"].dropna().astype(str)) comparison_concurrency = set( comparison["concurrency_label"].dropna().astype(str) @@ -1292,33 +1541,12 @@ def _load_generators(frame: pd.DataFrame) -> set: if not common_concurrency: st.warning("No common concurrency levels found for both versions.") return - concurrency_key = _selection_key( - "omni_compare_concurrency", - baseline, - candidate, - selected_tasks, - models, - [load_generator], - ) - if concurrency_key in st.session_state: - st.session_state[concurrency_key] = [ - value - for value in st.session_state[concurrency_key] - if value in common_concurrency - ] - selected_concurrency = st.multiselect( - "Concurrency levels", - common_concurrency, - default=common_concurrency, - key=concurrency_key, - help="Concurrency levels included in the summary, chart, and details.", + st.caption( + "Using all common concurrency levels: " + ", ".join(common_concurrency) ) - if not selected_concurrency: - st.warning("Select at least one concurrency level.") - return - base = base[base["concurrency_label"].astype(str).isin(selected_concurrency)] + base = base[base["concurrency_label"].astype(str).isin(common_concurrency)] comparison = comparison[ - comparison["concurrency_label"].astype(str).isin(selected_concurrency) + comparison["concurrency_label"].astype(str).isin(common_concurrency) ] context_parts = [] @@ -1354,6 +1582,8 @@ def _load_generators(frame: pd.DataFrame) -> set: "baseline.\n\n" "**Summary:** each cell is the geometric mean of the per-concurrency " "deltas for that model/configuration.\n\n" + "**Statistic:** Mean, Median, P95, or P99 where available. Throughput, " + "WER, RTFx, and transcription throughput are single values.\n\n" "**Verdicts:** 🟢 Better, 🟡 Flat (±1%), 🔴 Worse. Verdicts account for " "metric direction: for lower-is-better metrics, a negative delta is better." ) @@ -1362,11 +1592,14 @@ def _load_generators(frame: pd.DataFrame) -> set: "Each version/model/configuration is matched on common concurrency levels. " "Summary cells use the geometric mean of per-concurrency deltas. Only the " "selected load generator is used; results from different load generators " - "are never mixed." + "are never mixed. " + + ( + f"Statistic: {statistic} where available." + if statistic + else "Statistic: single values only." + ) ) - metric = OMNI_METRICS[metric_label] - direction, _ = OMNI_COMPARE_DIRECTIONS.get(metric, ("higher", ".2f")) detail = _comparison_table(base, comparison, metric, direction) if detail.empty: st.warning( @@ -1374,7 +1607,7 @@ def _load_generators(frame: pd.DataFrame) -> set: ) return - summary = _model_comparison_summary(base, comparison) + summary = _model_comparison_summary(base, comparison, statistic) st.subheader("Version comparison summary") if summary.empty: st.info( From 5860206c05b1a56abf831a4cfd31c7577d5d518b Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:05:25 -0500 Subject: [PATCH 27/74] Make Compare Versions table-only Remove the per-metric selector, selected-metric cards, delta chart, and per-concurrency details table. The summary table already covers all metrics, so keep that as the single output with the Statistic selector and a CSV download. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 3 +- docs/omni-vs-rhaiis-dashboard.md | 9 +- omni_dashboard.py | 204 ++----------------------------- 3 files changed, 18 insertions(+), 198 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index ad37918..03e1578 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -177,7 +177,8 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is - A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. - Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. - A model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas. -- Summary cards, a `plotly_white_light` delta bar chart, a detailed table, and a CSV download for the selected metric. +- A Statistic selector (Mean / Median / P95 / P99 where available) applies to the table columns. Throughput, WER, RTFx, and transcription throughput remain single values. +- One summary table plus a CSV download; no separate metric selector or chart. **Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index b4c5afc..aec8b0c 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -246,7 +246,7 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Version defaults prefer the most recent version as the comparison and the earlier version with the longest common prefix as the baseline (for example, `vllm-omni-3.5-ea2` → `vllm-omni-3.6.0-ga`). - Rows are matched on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions provide it, so legacy rows without a dataset still match. - Repeated rows per key are averaged before comparison. Delta is the raw percent change; verdicts account for higher-is-better vs lower-is-better metrics with a 1% flat threshold. -- Outputs: model-level summary table, comparison cards, a `plotly_white_light` delta bar chart, a detailed table, and CSV download for the selected metric. +- Output: one model-level, all-metric summary table plus a CSV download. There is no separate metric selector or chart. - Tested with the real data: - `vllm-omni-3.5-ea2` vs `vllm-omni-3.6.0-ga`: 4 comparisons across c1/c4/c8/c16, all Better for throughput and RTF. - Swap: all verdicts flipped to Worse. @@ -285,3 +285,10 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - The page now uses every common concurrency level for the selected versions, tasks, load generator, and models. - A caption lists the concurrency levels in use. - This keeps the page simpler and matches the “compare everything common” behavior. + +## Checkpoint 12 — table-only Compare Versions + +- Removed the Metric selector from the top controls. +- Removed the selected-metric cards, delta bar chart, and per-concurrency details table. +- Compare Versions is now a single all-metric summary table plus CSV download, matching the RHAIIS table-first pattern. +- The Statistic selector still controls Mean / Median / P95 / P99 for the stats-based columns. diff --git a/omni_dashboard.py b/omni_dashboard.py index a1a8ad2..a2ae5c1 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1073,33 +1073,6 @@ def _family_statistics( ] -def _family_available( - family: str, base_df: pd.DataFrame, comparison_df: pd.DataFrame -) -> bool: - config = COMPARE_METRIC_FAMILIES[family] - if "columns" in config: - return bool(_family_statistics(family, base_df, comparison_df)) - column = config["column"] - return base_df[column].notna().any() and comparison_df[column].notna().any() - - -def _family_available_for_statistic( - family: str, - base_df: pd.DataFrame, - comparison_df: pd.DataFrame, - statistic: str | None, -) -> bool: - config = COMPARE_METRIC_FAMILIES[family] - if "columns" not in config: - return _family_available(family, base_df, comparison_df) - column = config["columns"].get(statistic) - return bool( - column - and base_df[column].notna().any() - and comparison_df[column].notna().any() - ) - - def _summary_statistics( base_df: pd.DataFrame, comparison_df: pd.DataFrame ) -> list: @@ -1149,20 +1122,6 @@ def _default_compare_statistic( return statistics[0] -def _family_column(family: str, statistic: str | None) -> str | None: - config = COMPARE_METRIC_FAMILIES[family] - if "columns" in config: - return config["columns"].get(statistic) - return config["column"] - - -def _family_label(family: str, statistic: str | None) -> str: - config = COMPARE_METRIC_FAMILIES[family] - if "columns" in config and statistic: - return f"{family} ({statistic})" - return family - - def _aggregate_delta(detail: pd.DataFrame) -> float: deltas = detail["delta_pct"].dropna() / 100.0 if deltas.empty: @@ -1261,21 +1220,6 @@ def _model_comparison_summary( return summary -def _default_compare_family(frame: pd.DataFrame, options: list) -> str: - tasks = set(frame["task_type"].dropna().astype(str)) - if tasks and tasks <= {"asr_transcription"}: - if "WER" in options and frame["wer"].notna().any(): - return "WER" - if "RTFx" in options: - return "RTFx" - if tasks & {"voice_clone", "default_voice", "voice_design"}: - if "Audio RTF" in options: - return "Audio RTF" - if "Request throughput" in options: - return "Request throughput" - return options[0] if options else "" - - def _compare_versions(df: pd.DataFrame): st.subheader("⚖️ Compare Versions") st.markdown( @@ -1353,9 +1297,7 @@ def _swap_versions(): label for label in st.session_state[task_key] if label in task_labels ] - col_task, col_loadgen, col_models, col_stat, col_metric = st.columns( - [2, 2, 2, 1.3, 1.7] - ) + col_task, col_loadgen, col_models, col_stat = st.columns([2, 2, 2, 1.3]) with col_task: selected_task_labels = st.multiselect( "Tasks", @@ -1487,50 +1429,6 @@ def _load_generators(frame: pd.DataFrame) -> set: with col_stat: st.caption("Statistic: single value") - metric_options = [ - family - for family in COMPARE_METRIC_FAMILIES - if _family_available_for_statistic(family, base, comparison, statistic) - ] - if not metric_options: - st.warning( - f"No comparable metrics found between {baseline} and {candidate} " - "for the selected tasks, load generator, models, and statistic." - ) - return - - preferred_family = _default_compare_family(base, metric_options) - metric_index = ( - metric_options.index(preferred_family) - if preferred_family in metric_options - else 0 - ) - metric_key = _selection_key( - "omni_compare_metric", - baseline, - candidate, - selected_tasks, - models, - [load_generator], - [statistic or "single"], - ) - if st.session_state.get(metric_key) not in metric_options: - st.session_state.pop(metric_key, None) - with col_metric: - metric_family = st.selectbox( - "Metric", - metric_options, - index=metric_index, - key=metric_key, - ) - - metric = _family_column(metric_family, statistic) - if not metric: - st.warning("The selected metric does not have the chosen statistic.") - return - metric_label = _family_label(metric_family, statistic) - direction = COMPARE_METRIC_FAMILIES[metric_family]["direction"] - base_concurrency = set(base["concurrency_label"].dropna().astype(str)) comparison_concurrency = set( comparison["concurrency_label"].dropna().astype(str) @@ -1600,108 +1498,22 @@ def _load_generators(frame: pd.DataFrame) -> set: ) ) - detail = _comparison_table(base, comparison, metric, direction) - if detail.empty: - st.warning( - "No matching model/task/dataset/concurrency rows found for both versions." - ) - return - summary = _model_comparison_summary(base, comparison, statistic) st.subheader("Version comparison summary") if summary.empty: st.info( "No metric pairs are available for these versions and concurrency levels." ) - else: - st.dataframe(summary, use_container_width=True, hide_index=True) - st.caption("🟢 Better · 🟡 Flat (±1%) · 🔴 Worse") - - better = int((detail["verdict"] == "Better").sum()) - worse = int((detail["verdict"] == "Worse").sum()) - flat = int((detail["verdict"] == "Flat").sum()) - summary_delta = _aggregate_delta(detail) - - st.subheader(f"Selected metric: {metric_label}") - metric_col1, metric_col2, metric_col3, metric_col4 = st.columns(4) - metric_col1.metric("Comparisons", len(detail)) - metric_col2.metric("Better", better) - metric_col3.metric("Worse", worse) - metric_col4.metric( - "Summary delta", - f"{summary_delta:+.1f}%" if pd.notna(summary_delta) else "n/a", - ) + return + st.dataframe(summary, use_container_width=True, hide_index=True) st.caption( - f"Flat: {flat}. The card and summary table use the geometric mean of " - "per-concurrency deltas. The chart below shows each concurrency level; " - "verdicts account for metric direction, so a negative delta is better " - "for lower-is-better metrics." - ) - - fig = px.bar( - detail.sort_values("label"), - x="label", - y="delta_pct", - color="verdict", - color_discrete_map={ - "Better": "#2e7d32", - "Worse": "#c62828", - "Flat": "#9e9e9e", - "n/a": "#bdbdbd", - }, - custom_data=[ - "model", - "task_type", - "concurrency_label", - "baseline", - "comparison", - ], - title=f"{metric_label}: {candidate} vs {baseline}", - template="plotly_white_light", - ) - fig.add_hline(y=0, line_dash="dash", line_color="#6b7280") - fig.update_traces(marker_line_color="white", marker_line_width=1) - for trace in fig.data: - trace.hovertemplate = ( - "Model: %{customdata[0]}
" - "Task: %{customdata[1]}
" - "Concurrency: %{customdata[2]}
" - "Baseline: %{customdata[3]}
" - "Comparison: %{customdata[4]}
" - "Delta: %{y:.1f}%" - ) - fig.update_layout( - height=560, - margin={"l": 80, "r": 250, "t": 110, "b": 150}, - xaxis_tickangle=-35, - xaxis_title="", - yaxis_title="Delta vs baseline (%)", - legend_title_text="Result", - ) - st.plotly_chart(fig, use_container_width=True, theme=None, key="omni_compare_chart") - - st.subheader("Per-concurrency details") - detail_columns = ["model", "task_type", "concurrency_label"] - for key in ("dataset", "load_generator", "tp", "accelerator"): - if key in detail.columns and detail[key].nunique() > 1: - detail_columns.append(key) - detail_columns.extend(["baseline", "comparison", "delta_pct", "verdict"]) - display = detail[detail_columns].copy() - display["baseline"] = display["baseline"].round(4) - display["comparison"] = display["comparison"].round(4) - display["delta_pct"] = display["delta_pct"].round(2) - display = display.rename( - columns={ - "baseline": f"Baseline ({baseline})", - "comparison": f"Comparison ({candidate})", - "delta_pct": "Delta %", - "verdict": "Result", - } + "🟢 Better · 🟡 Flat (±1%) · 🔴 Worse. Cells use the geometric mean of " + "per-concurrency deltas for the selected statistic. Verdicts account for " + "metric direction, so a negative delta is better for lower-is-better metrics." ) - st.dataframe(display, use_container_width=True, hide_index=True) st.download_button( - "Download comparison CSV", - data=detail[detail_columns].to_csv(index=False).encode("utf-8"), + "Download comparison summary CSV", + data=summary.to_csv(index=False).encode("utf-8"), file_name="omni_version_comparison.csv", mime="text/csv", ) From 9fa0aa11b110adad8a5b1c66ace45f7672291c4b Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:23:06 -0500 Subject: [PATCH 28/74] Show STT statistic differences in Compare Versions Add End-to-End Latency to the summary and populate dummy STT rows with E2EL Mean/Median/P95/P99 values that improve by different amounts, so the Statistic selector visibly changes the STT table. Fix offline rows without a concurrency label. Co-Authored-By: Claude Code --- .../consolidated_dashboard_omni_dummy_stt.csv | 14 ++++----- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 11 ++++++- omni_dashboard.py | 30 +++++++++++++------ tests/test_omni_csv.py | 10 +++++++ 5 files changed, 49 insertions(+), 18 deletions(-) diff --git a/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv b/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv index a24659f..0d83f20 100644 --- a/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv +++ b/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv @@ -1,9 +1,9 @@ schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c1,dummy-dummy-stt-35ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,37.50,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,380.0,,,,,,450.0,,,,2.67,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,20.00,2.67,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c8,dummy-dummy-stt-35ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,13.64,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,950.0,,,,,,1100.0,,,,7.33,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,55.00,7.33,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c32,dummy-dummy-stt-35ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,10.00,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2400.0,,,,,,2800.0,,,,10.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,75.00,10.00,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c1,dummy-dummy-stt-35ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,37.50,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,399.0,380.0,,,,,,450.0,495.0,,,2.67,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,20.00,2.67,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c8,dummy-dummy-stt-35ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,13.64,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,997.5,950.0,,,,,,1100.0,1210.0,,,7.33,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,55.00,7.33,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c32,dummy-dummy-stt-35ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,10.00,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2520.0,2400.0,,,,,,2800.0,3080.0,,,10.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,75.00,10.00,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy 1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-wer,dummy-dummy-stt-35ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,48.63,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0610,0.0590,0.0630,400.00,53.88,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0610,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c1,dummy-dummy-stt-36ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,32.61,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,330.4,,,,,,391.3,,,,3.07,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,23.00,3.07,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c8,dummy-dummy-stt-36ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,11.86,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,826.1,,,,,,956.5,,,,8.43,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,63.25,8.43,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c32,dummy-dummy-stt-36ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,8.70,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2087.0,,,,,,2434.8,,,,11.50,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,86.25,11.50,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-wer,dummy-dummy-stt-36ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,42.29,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0540,0.0520,0.0560,460.00,61.96,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0540,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c1,dummy-dummy-stt-36ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,33.48,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,335.2,311.6,,,,,,396.0,445.5,,,2.99,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,22.40,2.99,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c8,dummy-dummy-stt-36ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,12.18,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,837.9,779.0,,,,,,968.0,1089.0,,,8.21,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,61.60,8.21,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c32,dummy-dummy-stt-36ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,8.93,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2116.8,1968.0,,,,,,2464.0,2772.0,,,11.20,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,84.00,11.20,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy +1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-wer,dummy-dummy-stt-36ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,43.42,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0540,0.0520,0.0560,448.00,60.35,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0540,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 03e1578..a4fe47a 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -33,7 +33,7 @@ The sample uses only `example/...` models and `demo` metadata. Do not commit pro `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` exercises the ASR/STT path without a real run: - Model `example/asr-2b`, versions `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. -- GuideLLM online rows at concurrency 1, 8, and 32 with RTFx and transcription throughput. +- GuideLLM online rows at concurrency 1, 8, and 32 with RTFx, transcription throughput, and E2EL Mean/Median/P95/P99. - Offline WER rows for both versions using the HF ASR leaderboard harness. - Matching logs under `datasets/omni/logs/` for View Logs. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index aec8b0c..0e0e02c 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -291,4 +291,13 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Removed the Metric selector from the top controls. - Removed the selected-metric cards, delta bar chart, and per-concurrency details table. - Compare Versions is now a single all-metric summary table plus CSV download, matching the RHAIIS table-first pattern. -- The Statistic selector still controls Mean / Median / P95 / P99 for the stats-based columns. +- The Statistic selector still controls Mean / Median / P95 / P99 for the stats-based columns. Single-value metrics (throughput, WER, RTFx, transcription throughput) do not change when the statistic changes. +- Dummy STT rows include E2EL Mean/Median/P95/P99 with distinct version deltas so the statistic selector is testable for ASR/STT. + +## Checkpoint 13 — statistic-aware STT summary + +- Added End-to-End Latency to the Compare Versions summary columns. +- Expanded the dummy STT fixture with E2EL Mean/Median/P95/P99 values. The version deltas differ by statistic (−16% Mean, −18% Median, −12% P95, −10% P99). +- Single-value metrics (throughput, WER, RTFx, transcription throughput) intentionally stay the same when the statistic changes; the page caption explains this. +- Fixed the offline/`n/a` concurrency path so offline WER rows render in the summary. +- Verified in the UI: ASR-only + GuideLLM shows an `E2EL P95` column at P95 and `E2EL Mean` at Mean, with different values. diff --git a/omni_dashboard.py b/omni_dashboard.py index a2ae5c1..9069c20 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -237,6 +237,7 @@ def _task_label(value: str) -> str: "Audio underrun", "TTFT", "TPOT", + "End-to-end latency", "WER", "RTFx", "Transcription throughput", @@ -1038,21 +1039,30 @@ def _verdict(delta): return "Better" if delta < 0 else "Worse" merged["verdict"] = merged["delta_pct"].apply(_verdict) + concurrency_label = ( + merged["concurrency_label"].astype(str) + if "concurrency_label" in merged.columns + else pd.Series("n/a", index=merged.index) + ) merged["label"] = ( merged["model"].astype(str).str.split("/").str[-1] + " | " + merged["task_type"].astype(str) + " | c=" - + merged["concurrency_label"].astype(str) + + concurrency_label ) - if merged["load_generator"].nunique() > 1: + if "load_generator" in merged.columns and merged["load_generator"].nunique() > 1: merged["label"] += " | " + merged["load_generator"].astype(str) - merged["_concurrency_sort"] = pd.to_numeric( - merged["concurrency_label"], errors="coerce" - ).fillna(9999) - merged = merged.sort_values( - ["model", "task_type", "_concurrency_sort", "load_generator"] - ).drop(columns=["_concurrency_sort"]) + if "concurrency_label" in merged.columns: + merged["_concurrency_sort"] = pd.to_numeric( + merged["concurrency_label"], errors="coerce" + ).fillna(9999) + else: + merged["_concurrency_sort"] = 9999 + sort_columns = ["model", "task_type", "_concurrency_sort"] + if "load_generator" in merged.columns: + sort_columns.append("load_generator") + merged = merged.sort_values(sort_columns).drop(columns=["_concurrency_sort"]) return merged @@ -1508,7 +1518,9 @@ def _load_generators(frame: pd.DataFrame) -> set: st.dataframe(summary, use_container_width=True, hide_index=True) st.caption( "🟢 Better · 🟡 Flat (±1%) · 🔴 Worse. Cells use the geometric mean of " - "per-concurrency deltas for the selected statistic. Verdicts account for " + "per-concurrency deltas for the selected statistic. Statistic changes apply " + "to RTF, TTFP, underrun, TTFT, TPOT, and end-to-end latency; throughput, WER, " + "RTFx, and transcription throughput are single values. Verdicts account for " "metric direction, so a negative delta is better for lower-is-better metrics." ) st.download_button( diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index f8759a8..24a7589 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -103,6 +103,16 @@ def test_dummy_stt_fixture(): offline = [row for row in rows if row["load_generator"] == "offline"] assert len(offline) == 2 assert all(row["wer"] for row in offline) + online = [row for row in rows if row["load_generator"] == "guidellm"] + assert len(online) == 6 + for row in online: + for column in ( + "e2el_ms_mean", + "e2el_ms_median", + "e2el_ms_p95", + "e2el_ms_p99", + ): + assert row[column] assert (OMNI_DIR / "logs" / "dummy-stt-35ga-c8.log").exists() assert (OMNI_DIR / "logs" / "dummy-stt-36ga-c8.log").exists() From 067e5c7d0b946f7866d228873f737e0a951c5eec Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:31:43 -0500 Subject: [PATCH 29/74] Persist Omni section and Compare Versions selections in URL Write the active section and Compare Versions filters, models, and statistic to query params and restore them on first load, so copied links reopen the same view. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 1 + docs/omni-vs-rhaiis-dashboard.md | 7 ++++ omni_dashboard.py | 64 +++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 1 deletion(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index a4fe47a..28b61ff 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -179,6 +179,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is - A model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas. - A Statistic selector (Mean / Median / P95 / P99 where available) applies to the table columns. Throughput, WER, RTFx, and transcription throughput remain single values. - One summary table plus a CSV download; no separate metric selector or chart. +- The active section and Compare Versions selections are stored in the URL (`section`, `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat`), so a copied link restores them. **Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 0e0e02c..54844d8 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -301,3 +301,10 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Single-value metrics (throughput, WER, RTFx, transcription throughput) intentionally stay the same when the statistic changes; the page caption explains this. - Fixed the offline/`n/a` concurrency path so offline WER rows render in the summary. - Verified in the UI: ASR-only + GuideLLM shows an `E2EL P95` column at P95 and `E2EL Mean` at Mean, with different values. + +## Checkpoint 14 — shareable URLs + +- Persist the active Omni section in the `section` query parameter. +- Persist Compare Versions selections in `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, and `cv_stat`. +- On first load, the page hydrates widget state from those parameters; subsequent widget changes update the URL. +- Verified by copying a Compare Versions URL with ASR-only, GuideLLM, `example/asr-2b`, and Mean selected, then opening it in a fresh tab: all selections and the section restored. diff --git a/omni_dashboard.py b/omni_dashboard.py index 9069c20..2896734 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -460,10 +460,23 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: return filtered +def _query_first(key: str) -> Optional[str]: + value = st.query_params.get(key) + if isinstance(value, list): + return value[0] if value else None + return value + + def _render_sidebar_nav() -> str: """Render the same grouped navigation shell used by RHAIIS.""" + valid_sections = [ + section for _, sections in OMNI_NAV_GROUPS for section in sections + ] if "omni_active_section" not in st.session_state: - st.session_state.omni_active_section = "🏠 Overview" + requested = _query_first("section") + st.session_state.omni_active_section = ( + requested if requested in valid_sections else "🏠 Overview" + ) with st.sidebar: for group_name, sections in OMNI_NAV_GROUPS: st.markdown(f'', unsafe_allow_html=True) @@ -476,7 +489,9 @@ def _render_sidebar_nav() -> str: type="primary" if active else "secondary", ): st.session_state.omni_active_section = section + st.query_params["section"] = section st.rerun() + st.query_params["section"] = st.session_state.omni_active_section return st.session_state.omni_active_section @@ -1242,6 +1257,21 @@ def _compare_versions(df: pd.DataFrame): return default_baseline, default_candidate = _compare_defaults(versions) + if not st.session_state.get("omni_compare_url_loaded"): + st.session_state.omni_compare_url_pending = { + "baseline": _query_first("cv_base"), + "candidate": _query_first("cv_comp"), + "tasks": _query_first("cv_tasks"), + "loadgen": _query_first("cv_loadgen"), + "models": _query_first("cv_models"), + "stat": _query_first("cv_stat"), + } + st.session_state.omni_compare_url_loaded = True + pending = st.session_state.get("omni_compare_url_pending", {}) + if pending.get("baseline") in versions: + st.session_state["omni_compare_baseline"] = pending["baseline"] + if pending.get("candidate") in versions: + st.session_state["omni_compare_candidate"] = pending["candidate"] for key in ("omni_compare_baseline", "omni_compare_candidate"): if st.session_state.get(key) not in versions: st.session_state.pop(key, None) @@ -1306,6 +1336,14 @@ def _swap_versions(): st.session_state[task_key] = [ label for label in st.session_state[task_key] if label in task_labels ] + pending_tasks = [ + task + for task in (pending.get("tasks") or "").split(",") + if task in common_tasks + ] + pending_task_labels = [_task_label(task) for task in pending_tasks] + if pending_task_labels and task_key not in st.session_state: + st.session_state[task_key] = pending_task_labels col_task, col_loadgen, col_models, col_stat = st.columns([2, 2, 2, 1.3]) with col_task: @@ -1356,6 +1394,11 @@ def _load_generators(frame: pd.DataFrame) -> set: ) if st.session_state.get(loadgen_key) not in load_generators: st.session_state.pop(loadgen_key, None) + if ( + pending.get("loadgen") in load_generators + and loadgen_key not in st.session_state + ): + st.session_state[loadgen_key] = pending["loadgen"] with col_loadgen: load_generator = st.selectbox( "Load generator", @@ -1393,6 +1436,13 @@ def _load_generators(frame: pd.DataFrame) -> set: st.session_state[model_key] = [ model for model in st.session_state[model_key] if model in common_models ] + pending_models = [ + model + for model in (pending.get("models") or "").split(",") + if model in common_models + ] + if pending_models and model_key not in st.session_state: + st.session_state[model_key] = pending_models with col_models: models = st.multiselect( @@ -1424,6 +1474,11 @@ def _load_generators(frame: pd.DataFrame) -> set: ) if st.session_state.get(stat_key) not in summary_statistics: st.session_state.pop(stat_key, None) + if ( + pending.get("stat") in summary_statistics + and stat_key not in st.session_state + ): + st.session_state[stat_key] = pending["stat"] with col_stat: statistic = st.selectbox( "Statistic", @@ -1438,6 +1493,7 @@ def _load_generators(frame: pd.DataFrame) -> set: else: with col_stat: st.caption("Statistic: single value") + st.session_state.pop("omni_compare_url_pending", None) base_concurrency = set(base["concurrency_label"].dropna().astype(str)) comparison_concurrency = set( @@ -1529,6 +1585,12 @@ def _load_generators(frame: pd.DataFrame) -> set: file_name="omni_version_comparison.csv", mime="text/csv", ) + st.query_params["cv_base"] = baseline + st.query_params["cv_comp"] = candidate + st.query_params["cv_tasks"] = ",".join(selected_tasks) + st.query_params["cv_loadgen"] = load_generator + st.query_params["cv_models"] = ",".join(models) + st.query_params["cv_stat"] = statistic or "" def _filtered_data(df: pd.DataFrame): From 309e663c4d6052b822532da81b9b351b8314bd03 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:34:22 -0500 Subject: [PATCH 30/74] Merge Input/Output and Task filters Replace the separate Input/Output and Task Type filters with one Task selector whose labels include the modality. Filter steps become Accelerator -> Task -> Version -> Load Generator -> Model -> TP, and the unused io_pair field is removed. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 12 ++++- omni_dashboard.py | 76 +++++++++++++++++--------------- 3 files changed, 52 insertions(+), 38 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 28b61ff..e879ebd 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -161,7 +161,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header, using RHAIIS column widths: Accelerator → Input/Output → Version + Task → Load Generator + Model → TP. Input/Output options are labeled `TTS (text → audio)`, `ASR / STT (audio → text)`, and `Text (text → text)`. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 54844d8..e36c80d 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -36,7 +36,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. - **Performance Plots**: -- Horizontal RHAIIS-style filter band in the main content with RHAIIS column widths (`1.5, 1.3, 1.5, 2.7, 1`). Input/Output values are displayed as `TTS (text → audio)`, `ASR / STT (audio → text)`, and `Text (text → text)`. +- Horizontal RHAIIS-style filter band in the main content: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), replacing the separate Input/Output filter. - X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. - One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. @@ -127,7 +127,7 @@ Auto-fill rule: 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** 2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Compare Versions, View Logs, Filtered Data.* -3. **Filter order:** is the proposed order (Accelerator → Input/Output → Version → Task → Load gen → Model → TP) correct? +3. **Filter order:** is the current order (Accelerator → Task → Version → Load gen → Model → TP) correct? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? 6. **TP:** include TP in the Omni UI? Current data is all TP=1. @@ -308,3 +308,11 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Persist Compare Versions selections in `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, and `cv_stat`. - On first load, the page hydrates widget state from those parameters; subsequent widget changes update the URL. - Verified by copying a Compare Versions URL with ASR-only, GuideLLM, `example/asr-2b`, and Mean selected, then opening it in a fresh tab: all selections and the section restored. + +## Checkpoint 15 — merged Input/Output and Task filter + +- Merged the separate Input/Output and Task Type filters into one **Task** selector. +- Task labels carry the modality: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. +- Filter steps are now Accelerator → Task → Version → Load Generator → Model → TP. +- Removed the unused `io_pair` field. +- Compare Versions already used combined task labels, so no change was needed there. diff --git a/omni_dashboard.py b/omni_dashboard.py index 2896734..095d398 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -69,12 +69,6 @@ "k6", } -IO_PAIR_LABELS = { - ("text", "audio"): "TTS (text → audio)", - ("audio", "text"): "ASR / STT (audio → text)", - ("text", "text"): "Text (text → text)", -} - TASK_TYPE_LABELS = { "voice_clone": "TTS - Voice Clone", "default_voice": "TTS - Default Voice", @@ -328,16 +322,6 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df[col] = "unknown" df[col] = df[col].fillna("unknown") - df["io_pair"] = [ - IO_PAIR_LABELS.get( - (str(input_modality), str(output_modality)), - f"{input_modality} → {output_modality}", - ) - for input_modality, output_modality in zip( - df["input_modality"], df["output_modality"] - ) - ] - def _conc_label(value): if pd.isna(value): return "n/a" @@ -398,7 +382,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: st.subheader("Filter Your Data") filter_col1, filter_col2, filter_col3, filter_col4, filter_col5 = st.columns( - [1.5, 1.3, 1.5, 2.7, 1] + [1.5, 1.8, 1.3, 2.7, 1] ) with filter_col1: @@ -409,39 +393,56 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: if accelerators: filtered = filtered[filtered["accelerator"].isin(accelerators)] + task_values = sorted( + _values(filtered, "task_type"), + key=lambda task: ( + TASK_TYPE_ORDER.index(task) + if task in TASK_TYPE_ORDER + else len(TASK_TYPE_ORDER), + str(task), + ), + ) + task_options = [(task, _task_label(task)) for task in task_values] + task_labels = [label for _, label in task_options] + task_key = _selection_key("omni_task", accelerators) + if task_key in st.session_state: + st.session_state[task_key] = [ + label for label in st.session_state[task_key] if label in task_labels + ] with filter_col2: - io_pairs = _multiselect( - "2️⃣ Select Input / Output", _values(filtered, "io_pair"), - _selection_key("omni_io", accelerators), + selected_task_labels = st.multiselect( + "2️⃣ Select Task(s)", + task_labels, + default=task_labels, + key=task_key, ) - if io_pairs: - filtered = filtered[filtered["io_pair"].isin(io_pairs)] + selected_tasks = [ + task for task, label in task_options if label in selected_task_labels + ] + if selected_tasks: + filtered = filtered[filtered["task_type"].isin(selected_tasks)] with filter_col3: versions = _multiselect( "3️⃣ Select Version(s)", _values(filtered, "runtime_version"), - _selection_key("omni_version", accelerators, io_pairs), + _selection_key("omni_version", accelerators, selected_tasks), ) if versions: filtered = filtered[filtered["runtime_version"].isin(versions)] - tasks = _multiselect( - "4️⃣ Select Task Type(s)", _values(filtered, "task_type"), - _selection_key("omni_task", accelerators, io_pairs, versions), - ) - if tasks: - filtered = filtered[filtered["task_type"].isin(tasks)] with filter_col4: generators = _multiselect( - "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), - _selection_key("omni_generator", accelerators, io_pairs, versions, tasks), + "4️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), + _selection_key( + "omni_generator", accelerators, selected_tasks, versions + ), ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] models = _multiselect( - "6️⃣ Select Model(s)", _values(filtered, "model"), + "5️⃣ Select Model(s)", _values(filtered, "model"), _selection_key( - "omni_model", accelerators, io_pairs, versions, tasks, generators + "omni_model", accelerators, selected_tasks, versions, generators ), ) if models: @@ -449,9 +450,14 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: with filter_col5: tps = _multiselect( - "7️⃣ Select TP Size(s)", _values(filtered, "tp"), + "6️⃣ Select TP Size(s)", _values(filtered, "tp"), _selection_key( - "omni_tp", accelerators, io_pairs, versions, tasks, generators, models + "omni_tp", + accelerators, + selected_tasks, + versions, + generators, + models, ), ) if tps: From 1bf18e15ec71f669681663b4c154b62bba4e2395 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:41:34 -0500 Subject: [PATCH 31/74] Add task explanation tooltips Show a help tooltip on the Task selectors that briefly explains Voice Clone, Default Voice, Voice Design, ASR/STT transcription, and text generation. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- omni_dashboard.py | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index e879ebd..739c42b 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -161,7 +161,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. A help tooltip explains each task. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/omni_dashboard.py b/omni_dashboard.py index 095d398..17060d8 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -85,6 +85,14 @@ "text_to_text", ] +TASK_HELP = ( + "TTS - Voice Clone: clone a reference voice from an audio sample. " + "TTS - Default Voice: synthesize with a preset voice. " + "TTS - Voice Design: synthesize from a voice description. " + "ASR / STT - Transcription: transcribe audio to text. " + "Text - Text generation: text-to-text generation." +) + def _task_label(value: str) -> str: return TASK_TYPE_LABELS.get(str(value), str(value)) @@ -415,6 +423,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: task_labels, default=task_labels, key=task_key, + help=TASK_HELP, ) selected_tasks = [ task for task, label in task_options if label in selected_task_labels @@ -1358,10 +1367,7 @@ def _swap_versions(): task_labels, default=task_labels, key=task_key, - help=( - "TTS has voice clone, default voice, and voice design tasks. " - "ASR / STT has a single transcription task." - ), + help=TASK_HELP, ) if not selected_task_labels: st.info("Select at least one task type.") From ef314a00cf935a7b1513f6d370d34ed8d1387649 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:44:27 -0500 Subject: [PATCH 32/74] Add Select All Models to Omni model selectors Mirror the RHAIIS checkbox under Performance Plots and Compare Versions. It reflects whether all models are selected, selects all when checked, and unchecks automatically when a model is removed. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 4 +-- docs/omni-vs-rhaiis-dashboard.md | 7 ++++++ omni_dashboard.py | 43 ++++++++++++++++++++++++++++---- 3 files changed, 47 insertions(+), 7 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 739c42b..e56fd30 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -161,7 +161,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. A help tooltip explains each task. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. A help tooltip explains each task. The model selector includes a **Select All Models** checkbox. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. @@ -171,7 +171,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Compare Versions**: -- Baseline and comparison version selectors with a swap button, plus task-type, load-generator, model, and metric selectors. All common concurrency levels are used automatically. +- Baseline and comparison version selectors with a swap button, plus task-type, load-generator, model, and statistic selectors. The model selector includes a **Select All Models** checkbox. All common concurrency levels are used automatically. - Only one load generator is compared at a time. GuideLLM, vLLM-Omni bench serve, and offline rows are never mixed. - The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. Labels are modality-explicit: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. - A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index e36c80d..aea9f85 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -316,3 +316,10 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Filter steps are now Accelerator → Task → Version → Load Generator → Model → TP. - Removed the unused `io_pair` field. - Compare Versions already used combined task labels, so no change was needed there. + +## Checkpoint 16 — Select All Models + +- Added a **Select All Models** checkbox under both model multiselects: Performance Plots and Compare Versions. +- The checkbox reflects whether all available models are selected. +- Checking it selects every model; removing a model unchecks it automatically. +- Verified in Performance Plots: removing `Voxtral-4B-TTS-2603` unchecked the box, and checking it restored all models. Verified the checkbox is present in Compare Versions. diff --git a/omni_dashboard.py b/omni_dashboard.py index 17060d8..6e1254b 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -380,6 +380,38 @@ def _multiselect(label: str, options: list, key: str) -> list: return st.multiselect(label, options, default=options, key=key) +def _select_all_models_multiselect(label: str, options: list, key: str) -> list: + if not options: + return [] + select_all_key = f"{key}_select_all" + if select_all_key not in st.session_state: + selected = st.session_state.get(key, options) + st.session_state[select_all_key] = set(selected) == set(options) + + def _sync_select_all(): + st.session_state[select_all_key] = ( + set(st.session_state.get(key, [])) == set(options) + ) + + def _apply_select_all(): + if st.session_state.get(select_all_key): + st.session_state[key] = options + + selected = st.multiselect( + label, + options, + default=options, + key=key, + on_change=_sync_select_all, + ) + st.checkbox( + "Select All Models", + key=select_all_key, + on_change=_apply_select_all, + ) + return selected + + def _selection_key(prefix: str, *groups) -> str: signature = "|".join(",".join(str(value) for value in sorted(group)) for group in groups) return f"{prefix}_{signature}" @@ -448,8 +480,10 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] - models = _multiselect( - "5️⃣ Select Model(s)", _values(filtered, "model"), + model_options = _values(filtered, "model") + models = _select_all_models_multiselect( + "5️⃣ Select Model(s)", + model_options, _selection_key( "omni_model", accelerators, selected_tasks, versions, generators ), @@ -1457,11 +1491,10 @@ def _load_generators(frame: pd.DataFrame) -> set: st.session_state[model_key] = pending_models with col_models: - models = st.multiselect( + models = _select_all_models_multiselect( "Models", common_models, - default=common_models, - key=model_key, + model_key, ) if not models: st.info("Select at least one model.") From 3c1190b4121c6ded9427dee4e9a9ff291eac44da Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 26 Nov 2026 16:53:50 -0500 Subject: [PATCH 33/74] Add Dataset filter and format task help Put each task on its own line in the help tooltip and add a Dataset filter after Task. Dataset options cascade from the selected tasks and default to all; legacy blank datasets appear as (unspecified). Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-vs-rhaiis-dashboard.md | 12 +++++- omni_dashboard.py | 74 ++++++++++++++++++++++++-------- 3 files changed, 68 insertions(+), 20 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index e56fd30..6c79ee1 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -161,7 +161,7 @@ The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is **Performance Plots**: -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. A help tooltip explains each task. The model selector includes a **Select All Models** checkbox. Concurrency is not filtered here; charts include every available concurrency value for the selected data. +- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Dataset → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. A help tooltip explains each task. The model selector includes a **Select All Models** checkbox. Dataset options cascade from the selected tasks and default to all, with legacy rows shown as `(unspecified)`. Concurrency is not filtered here; charts include every available concurrency value for the selected data. - `Select X-Axis`: `Concurrency` or `Model`. - `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. - `Show concurrency up to` ceiling. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index aea9f85..ae36ee6 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -36,7 +36,7 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. - **Performance Plots**: -- Horizontal RHAIIS-style filter band in the main content: Accelerator → Task → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), replacing the separate Input/Output filter. +- Horizontal RHAIIS-style filter band in the main content: Accelerator → Task → Dataset → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), replacing the separate Input/Output filter. Dataset defaults to all datasets available for the selected tasks. - X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. - One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. - Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. @@ -127,7 +127,7 @@ Auto-fill rule: 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** 2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Compare Versions, View Logs, Filtered Data.* -3. **Filter order:** is the current order (Accelerator → Task → Version → Load gen → Model → TP) correct? +3. **Filter order:** is the current order (Accelerator → Task → Dataset → Version → Load gen → Model → TP) correct? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? 6. **TP:** include TP in the Omni UI? Current data is all TP=1. @@ -323,3 +323,11 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - The checkbox reflects whether all available models are selected. - Checking it selects every model; removing a model unchecks it automatically. - Verified in Performance Plots: removing `Voxtral-4B-TTS-2603` unchecked the box, and checking it restored all models. Verified the checkbox is present in Compare Versions. + +## Checkpoint 17 — Dataset filter + +- Added a **Dataset** filter between Task and Version. +- Dataset options cascade from the selected tasks and default to all. +- TTS legacy rows with a blank dataset appear as `(unspecified)`, so selecting all datasets does not drop them. +- Compare Versions continues to use the raw dataset field for per-task matching. +- Task tooltip is now a bullet list, one task per line. diff --git a/omni_dashboard.py b/omni_dashboard.py index 6e1254b..709eb63 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -86,11 +86,11 @@ ] TASK_HELP = ( - "TTS - Voice Clone: clone a reference voice from an audio sample. " - "TTS - Default Voice: synthesize with a preset voice. " - "TTS - Voice Design: synthesize from a voice description. " - "ASR / STT - Transcription: transcribe audio to text. " - "Text - Text generation: text-to-text generation." + "- **TTS - Voice Clone**: clone a reference voice from an audio sample.\n" + "- **TTS - Default Voice**: synthesize with a preset voice.\n" + "- **TTS - Voice Design**: synthesize from a voice description.\n" + "- **ASR / STT - Transcription**: transcribe audio to text.\n" + "- **Text - Text generation**: text-to-text generation." ) @@ -330,6 +330,16 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df[col] = "unknown" df[col] = df[col].fillna("unknown") + if "dataset" not in df.columns: + df["dataset"] = np.nan + df["dataset_filter"] = ( + df["dataset"].fillna("(unspecified)").astype(str).str.strip() + ) + df.loc[ + df["dataset_filter"].isin(["", "nan", "None", "unknown"]), + "dataset_filter", + ] = "(unspecified)" + def _conc_label(value): if pd.isna(value): return "n/a" @@ -457,35 +467,64 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: key=task_key, help=TASK_HELP, ) - selected_tasks = [ - task for task, label in task_options if label in selected_task_labels - ] - if selected_tasks: - filtered = filtered[filtered["task_type"].isin(selected_tasks)] + selected_tasks = [ + task for task, label in task_options if label in selected_task_labels + ] + if selected_tasks: + filtered = filtered[filtered["task_type"].isin(selected_tasks)] + + dataset_key = _selection_key( + "omni_dataset", accelerators, selected_tasks + ) + dataset_options = _values(filtered, "dataset_filter") + if dataset_key in st.session_state: + st.session_state[dataset_key] = [ + dataset + for dataset in st.session_state[dataset_key] + if dataset in dataset_options + ] + datasets = _multiselect( + "3️⃣ Select Dataset(s)", + dataset_options, + dataset_key, + ) + if datasets: + filtered = filtered[filtered["dataset_filter"].isin(datasets)] with filter_col3: versions = _multiselect( - "3️⃣ Select Version(s)", _values(filtered, "runtime_version"), - _selection_key("omni_version", accelerators, selected_tasks), + "4️⃣ Select Version(s)", _values(filtered, "runtime_version"), + _selection_key( + "omni_version", accelerators, selected_tasks, datasets + ), ) if versions: filtered = filtered[filtered["runtime_version"].isin(versions)] with filter_col4: generators = _multiselect( - "4️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), + "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), _selection_key( - "omni_generator", accelerators, selected_tasks, versions + "omni_generator", + accelerators, + selected_tasks, + datasets, + versions, ), ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] model_options = _values(filtered, "model") models = _select_all_models_multiselect( - "5️⃣ Select Model(s)", + "6️⃣ Select Model(s)", model_options, _selection_key( - "omni_model", accelerators, selected_tasks, versions, generators + "omni_model", + accelerators, + selected_tasks, + datasets, + versions, + generators, ), ) if models: @@ -493,11 +532,12 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: with filter_col5: tps = _multiselect( - "6️⃣ Select TP Size(s)", _values(filtered, "tp"), + "7️⃣ Select TP Size(s)", _values(filtered, "tp"), _selection_key( "omni_tp", accelerators, selected_tasks, + datasets, versions, generators, models, From b9fd93e7e35969525b0fe47e2082168eb9f20bae Mon Sep 17 00:00:00 2001 From: aas008 Date: Mon, 30 Nov 2026 09:33:09 -0500 Subject: [PATCH 34/74] Preserve performance filter selections Use stable widget keys and prune only invalid values when upstream filters change. Selecting models and then changing versions no longer resets the model filter to all. Co-Authored-By: Claude Code --- docs/omni-vs-rhaiis-dashboard.md | 6 ++ omni_dashboard.py | 104 +++++++++++++++---------------- 2 files changed, 57 insertions(+), 53 deletions(-) diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index ae36ee6..f314705 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -331,3 +331,9 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - TTS legacy rows with a blank dataset appear as `(unspecified)`, so selecting all datasets does not drop them. - Compare Versions continues to use the raw dataset field for per-task matching. - Task tooltip is now a bullet list, one task per line. + +## Checkpoint 18 — persistent filter selections + +- Filter widgets now use stable keys instead of keys derived from upstream selections. +- Changing an upstream filter no longer resets downstream choices; valid selections are preserved and only invalid values are pruned. +- Verified: selecting two models produced 6 traces; removing v0.22 and v0.24 preserved the two models and reduced the chart to 4 traces. Select All Models then restored all models while keeping the two-version filter (8 traces). diff --git a/omni_dashboard.py b/omni_dashboard.py index 709eb63..df7f279 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -390,13 +390,38 @@ def _multiselect(label: str, options: list, key: str) -> list: return st.multiselect(label, options, default=options, key=key) +def _persistent_multiselect(label: str, options: list, key: str) -> list: + if not options: + return [] + if key not in st.session_state: + st.session_state[key] = options + else: + current = st.session_state.get(key, []) + valid = [value for value in current if value in options] + if current and not valid: + valid = options + st.session_state[key] = valid + return st.multiselect(label, options, key=key) + + def _select_all_models_multiselect(label: str, options: list, key: str) -> list: if not options: return [] select_all_key = f"{key}_select_all" + if key not in st.session_state: + st.session_state[key] = options + else: + current = st.session_state.get(key, []) + valid = [model for model in current if model in options] + if current and not valid: + valid = options + st.session_state[key] = valid if select_all_key not in st.session_state: - selected = st.session_state.get(key, options) - st.session_state[select_all_key] = set(selected) == set(options) + st.session_state[select_all_key] = ( + set(st.session_state[key]) == set(options) + ) + elif st.session_state.get(select_all_key): + st.session_state[key] = options def _sync_select_all(): st.session_state[select_all_key] = ( @@ -410,7 +435,6 @@ def _apply_select_all(): selected = st.multiselect( label, options, - default=options, key=key, on_change=_sync_select_all, ) @@ -454,16 +478,19 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) task_options = [(task, _task_label(task)) for task in task_values] task_labels = [label for _, label in task_options] - task_key = _selection_key("omni_task", accelerators) - if task_key in st.session_state: - st.session_state[task_key] = [ - label for label in st.session_state[task_key] if label in task_labels - ] + task_key = "omni_task" + if task_key not in st.session_state: + st.session_state[task_key] = task_labels + else: + current_tasks = st.session_state.get(task_key, []) + valid_tasks = [label for label in current_tasks if label in task_labels] + if current_tasks and not valid_tasks: + valid_tasks = task_labels + st.session_state[task_key] = valid_tasks with filter_col2: selected_task_labels = st.multiselect( "2️⃣ Select Task(s)", task_labels, - default=task_labels, key=task_key, help=TASK_HELP, ) @@ -473,44 +500,29 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: if selected_tasks: filtered = filtered[filtered["task_type"].isin(selected_tasks)] - dataset_key = _selection_key( - "omni_dataset", accelerators, selected_tasks - ) dataset_options = _values(filtered, "dataset_filter") - if dataset_key in st.session_state: - st.session_state[dataset_key] = [ - dataset - for dataset in st.session_state[dataset_key] - if dataset in dataset_options - ] - datasets = _multiselect( + datasets = _persistent_multiselect( "3️⃣ Select Dataset(s)", dataset_options, - dataset_key, + "omni_dataset", ) if datasets: filtered = filtered[filtered["dataset_filter"].isin(datasets)] with filter_col3: - versions = _multiselect( - "4️⃣ Select Version(s)", _values(filtered, "runtime_version"), - _selection_key( - "omni_version", accelerators, selected_tasks, datasets - ), + versions = _persistent_multiselect( + "4️⃣ Select Version(s)", + _values(filtered, "runtime_version"), + "omni_version", ) if versions: filtered = filtered[filtered["runtime_version"].isin(versions)] with filter_col4: - generators = _multiselect( - "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), - _selection_key( - "omni_generator", - accelerators, - selected_tasks, - datasets, - versions, - ), + generators = _persistent_multiselect( + "5️⃣ Select Load Generator(s)", + _values(filtered, "load_generator"), + "omni_load_generator", ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] @@ -518,30 +530,16 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: models = _select_all_models_multiselect( "6️⃣ Select Model(s)", model_options, - _selection_key( - "omni_model", - accelerators, - selected_tasks, - datasets, - versions, - generators, - ), + "omni_model", ) if models: filtered = filtered[filtered["model"].isin(models)] with filter_col5: - tps = _multiselect( - "7️⃣ Select TP Size(s)", _values(filtered, "tp"), - _selection_key( - "omni_tp", - accelerators, - selected_tasks, - datasets, - versions, - generators, - models, - ), + tps = _persistent_multiselect( + "7️⃣ Select TP Size(s)", + _values(filtered, "tp"), + "omni_tp", ) if tps: filtered = filtered[filtered["tp"].isin(tps)] From 8d0fb2d0ee8ee724aa1750beed1bda559cbb2055 Mon Sep 17 00:00:00 2001 From: aas008 Date: Mon, 30 Nov 2026 23:02:54 -0500 Subject: [PATCH 35/74] Test Omni filter selection persistence Cover the case where an upstream filter changes options: selections survive, only invalid values are pruned, and the list falls back to all when nothing selected is still available. Co-Authored-By: Claude Code --- tests/test_omni_filter_persistence.py | 70 +++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 tests/test_omni_filter_persistence.py diff --git a/tests/test_omni_filter_persistence.py b/tests/test_omni_filter_persistence.py new file mode 100644 index 0000000..fe21cc8 --- /dev/null +++ b/tests/test_omni_filter_persistence.py @@ -0,0 +1,70 @@ +"""Regression tests for Omni filter persistence. + +Guards the bug where changing an upstream filter (for example Version) +reset downstream selections such as Model back to "all", which looked +like the filter was being ignored. +""" +import sys +from pathlib import Path + +import pytest +from streamlit.testing.v1 import AppTest + +HARNESS = """ +import sys +sys.path.insert(0, {repo!r}) +import streamlit as st +from omni_dashboard import _persistent_multiselect, _select_all_models_multiselect + +MODE = st.radio("mode", ["wide", "narrow"], key="mode") +OPTIONS = {{ + "wide": ["m1", "m2", "m3", "m4"], + "narrow": ["m1", "m3"], +}}[MODE] +KIND = st.radio("kind", ["plain", "select_all"], key="kind") +if KIND == "plain": + sel = _persistent_multiselect("Model(s)", OPTIONS, "omni_model") +else: + sel = _select_all_models_multiselect("Model(s)", OPTIONS, "omni_model") +st.write("selected", list(sel)) +""" + + +def make_app(tmp_path: Path, kind: str) -> AppTest: + repo = Path(__file__).resolve().parents[1] + script = tmp_path / "harness.py" + script.write_text(HARNESS.format(repo=str(repo))) + at = AppTest.from_file(str(script), default_timeout=30) + at.run() + at.radio(key="kind").set_value(kind).run() + return at + + +@pytest.mark.parametrize("kind", ["plain", "select_all"]) +def test_selection_survives_upstream_change(tmp_path, kind): + at = make_app(tmp_path, kind) + at.multiselect[0].set_value(["m1", "m2"]).run() + assert at.multiselect[0].value == ["m1", "m2"] + + at.radio(key="mode").set_value("wide").run() + assert at.multiselect[0].value == ["m1", "m2"], ( + "changing an upstream filter must not reset downstream selections" + ) + + +@pytest.mark.parametrize("kind", ["plain", "select_all"]) +def test_only_invalid_values_are_pruned(tmp_path, kind): + at = make_app(tmp_path, kind) + at.multiselect[0].set_value(["m1", "m2"]).run() + + at.radio(key="mode").set_value("narrow").run() + assert at.multiselect[0].value == ["m1"] + + +@pytest.mark.parametrize("kind", ["plain", "select_all"]) +def test_falls_back_to_all_when_nothing_is_valid(tmp_path, kind): + at = make_app(tmp_path, kind) + at.multiselect[0].set_value(["m4"]).run() + + at.radio(key="mode").set_value("narrow").run() + assert at.multiselect[0].value == ["m1", "m3"] From 2be40c58ea2b7f81dcd1eb772ed53efe9d304119 Mon Sep 17 00:00:00 2001 From: aas008 Date: Tue, 1 Dec 2026 13:45:27 -0500 Subject: [PATCH 36/74] Add Omni dashboard methodology checkpoint Record the data flow, schema rules, Performance Plots and Compare Versions methodology, View Logs resolution, URL persistence, test coverage, and deferred items. Co-Authored-By: Claude Code --- docs/omni-dashboard-checkpoint.md | 102 ++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 docs/omni-dashboard-checkpoint.md diff --git a/docs/omni-dashboard-checkpoint.md b/docs/omni-dashboard-checkpoint.md new file mode 100644 index 0000000..dabd364 --- /dev/null +++ b/docs/omni-dashboard-checkpoint.md @@ -0,0 +1,102 @@ +# Omni Dashboard — Methodology Checkpoint + +Date: 2026-12-01 +Branch: `omni-dashboard-dev` (`8d0fb2d`) +Jira: https://redhat.atlassian.net/browse/PSAP-3204 +GitHub: https://github.com/openshift-psap/performance-dashboard/issues/148 + +This is the methodology recap for the Omni view of the performance dashboard. It records the current design decisions, not a new implementation plan. + +## Data flow + +``` +vLLM-Omni / GuideLLM / HF ASR benchmark + │ + ├── result JSON + server logs + ▼ +MLflow run (metrics, params, artifacts) + │ + ▼ +build_consolidated_omni_csv.py + │ + ▼ +165-column consolidated CSV + │ + ├── local path: OMNI_CSV_PATH + └── S3: s3://$S3_BUCKET/$S3_KEY_OMNI + │ + ▼ + Streamlit Omni dashboard +``` + +MLflow is the provenance layer. The CSV is the dashboard-facing, denormalized table. The dashboard never reads MLflow metrics directly; it reads the CSV and uses MLflow only for log retrieval. + +## Schema principles + +- One row per benchmark point: model + runtime/version + task + dataset + concurrency/request-rate + repetition. +- 165 columns, with sparse modality-specific fields. TTS, ASR, and text metrics are blank when not applicable. +- `accelerator` is the only hardware column; exact GPU SKU belongs in `extra_json.gpu_sku`. +- `benchmark_tool` is the exact CLI/tool; `load_generator` is the dashboard-facing family (`guidellm`, `vllm-omni-bench-serve`, `offline`). +- Add new metrics to `extra_json` first. Promote to a first-class column only when a dashboard panel must filter or chart it. +- Sanitized fixtures in the repo: + - `consolidated_dashboard_omni_template.csv` — header only. + - `consolidated_dashboard_omni_sample.csv` — TTS/ASR/text examples. + - `consolidated_dashboard_omni_dummy_stt.csv` — 8 ASR/STT rows across two versions, plus matching logs. +- Legacy TTS rows without a dataset are shown as `(unspecified)` by the dataset filter; the raw `dataset` field is left untouched for version matching. + +## Performance Plots + +- Filter band: **Accelerator → Task → Dataset → Version → Load Generator → Model → TP**. +- Task labels include modality: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. +- Task selector has a help tooltip with one bullet per task. +- Model selector has a **Select All Models** checkbox; removing a model unchecks it automatically. +- Dataset options cascade from the selected tasks and default to all. +- Filter selections use stable keys. Changing an upstream filter preserves valid downstream selections and prunes only invalid ones. +- Chart controls: X-axis (`Concurrency` or `Model`), Y-axis metric, `Show concurrency up to` ceiling. +- Concurrency is not a filter; all available concurrency values for the selected data are shown. +- Chart uses `plotly_white_light`, RHAIIS trace/layout styling, and point/box/lasso selection. +- Selecting points or areas adds plot lines; **Filtered Data for Plot Lines** shows their source rows and provides **Clear comparison**. + +## Compare Versions + +- Baseline/comparison selectors with a swap button. +- One **task type** and one **load generator** at a time. GuideLLM, vLLM-Omni bench serve, and offline rows are never mixed. +- Models selector with Select All Models. +- All common concurrency levels are used automatically. +- Rows are matched on model, task, concurrency, load generator, TP, and accelerator. Dataset is included per task when both versions provide it. +- Output is one model-level, all-metric summary table plus CSV download. No metric selector or chart. +- Cells are the geometric mean of per-concurrency deltas, classified as Better / Flat / Worse with a 1% flat threshold and metric direction. +- Statistic selector: Mean / Median / P95 / P99 where available. Throughput, WER, RTFx, and transcription throughput remain single values. +- Version defaults prefer the most recent version as comparison and the earlier version with the longest common prefix as baseline. + +## View Logs + +- One run selector and one **Fetch Log** button. +- Resolution order: + 1. MLflow artifacts under `MLFLOW_LOG_ARTIFACT_PREFIX` using `mlflow_run_id`. + 2. Local `.log` files under `OMNI_LOG_DIR`, matched by run name, run ID, run-ID prefix, or deployment UUID. + 3. S3 `S3_LOGS_PREFIX.log`. +- Prefers the full server log, then startup log, then benchmark log. +- Shows the complete selected log and provides Download Full Log. + +## URL persistence + +- Active section: `section` query parameter. +- Compare Versions: `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat`. +- Widget state is hydrated on first load; subsequent changes update the URL. +- Performance Plots filter selections are **not** in the URL yet. + +## Tests and fixtures + +- `tests/test_omni_csv.py` — 5 tests: schema/sample, placeholder metadata, demo log, dummy STT fixture, converter smoke. +- `tests/test_omni_filter_persistence.py` — 6 tests: selections survive upstream changes, invalid values are pruned, fallback to all when nothing remains. +- Full suite: **191 passed**. +- Dummy STT fixture has GuideLLM c1/c8/c32 rows plus offline WER rows for `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. + +## Deferred / open + +- Label filter: deferred. Omni has no `label` column; `run_name`, `notes`, and `extra_json` exist. +- Performance Plots filter URL persistence: not implemented yet. +- ISL/OSL profile, multi-turn, spec-decoding, prefix-caching, turns, and prefix-token filters: not applicable or not implemented for the current TTS/ASR focus. +- Some RHAIIS sections remain placeholders (Competitive Analysis, Trends, Cost, Energy, IntelliConfig, Pareto, Runtime Configs). +- Open questions: TP/version labeling, `locale` vs `language`, dataset identity, offline ASR chart treatment. From 4c9718fd989fff6852d9590b6fe400d47ce27a51 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 15:59:02 -0500 Subject: [PATCH 37/74] Add Omni schema size and endpoint coverage research memo Documents which metrics each TTS/ASR endpoint exposes, why the Omni CSV has 165 columns versus RHAIIS's 56, and a proposed split into runs, audio-output, text-output, and run-config files. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 118 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 6c79ee1..0e17835 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -9,6 +9,124 @@ The Omni dashboard is a separate view in the performance dashboard for benchmark The dashboard is a *view* over the same metrics pipeline. It does not change collection or any other dashboard. +## Schema size and endpoint coverage — research memo (2026-12-02) + +Status: **proposed, not final** — for engineering review. + +### Why this memo + +Two questions came up while merging the 3.5 and 3.6 Omni benchmark data: + +1. Does audio output need its own CSV, since TTS can be benchmarked through several endpoints (including chat completions)? +2. Why does the Omni consolidated CSV have 165 columns when the RHAIIS dashboard CSV has 56? + +Short answers: one table with an endpoint dimension is enough — a separate audio-output file is not required. The 165 count comes from five metric families stacked side by side, most of them carrying 5–11 percentile columns per metric. This memo records the endpoint coverage and the column math so we can decide how to split the schema. + +### Endpoint coverage + +The vLLM-Omni bench client registers several OpenAI-compatible backends. For the Seed-TTS datasets, the client explicitly accepts these backend families and rejects others: + +| Endpoint | Bench backend | Used for | Metrics populated | Metrics absent | +|---|---|---|---|---| +| `POST /v1/audio/speech` | `openai-audio-speech` | TTS | Audio TTFP, RTF, duration, underrun, frames, audio throughput, E2EL | TTFT/TPOT/ITL, output tokens (always 0) | +| `POST /v1/chat/completions` | `openai-chat-omni` | TTS / omni chat | Text TTFT, TPOT, ITL, output tokens, token throughput **and** audio TTFP, RTF, duration | — (both families populate) | +| `WS /v1/realtime` | `openai-realtime-duplex`, `openai-realtime-tts`, `openai-realtime-chat` | Streaming conversation / realtime TTS | Per-response duplex TTFT/TTFP, client TTFT/TTFP, client RTF, busy RTF, stall ratio, stream TTFP/RTF, session and turn counts | One-shot request latency in the same sense | +| `POST /v1/audio/transcriptions` | ASR harness | Speech-in / transcription | WER, WER CI, RTFx, transcription throughput, input audio duration | Audio-output metrics | +| `POST /v1/completions`, `POST /v1/chat/completions` (text only) | `openai`, `openai-chat` | Text → text | TTFT, TPOT, ITL, token throughput | Audio metrics. This is RHAIIS scope, not Omni scope. | + +The important consequence: **the endpoint does not decide the schema; the output modality does.** A chat-completions TTS run produces both text and audio metrics in the same result JSON. An audio-speech run produces only audio metrics. A separate CSV per endpoint would duplicate identity columns and make cross-endpoint comparison harder. + +### Evidence from the bench source + +- `vllm_omni/benchmarks/patch/patch.py` — Seed-TTS backend validation accepts `openai-audio-speech`, `openai-chat-omni`, `openai-realtime-duplex`, `openai-realtime-tts`, and `openai-realtime-chat`. +- `async_request_openai_chat_omni_completions` — sends `POST /v1/chat/completions` with `stream: true`, and sets `modalities: ["text", "audio"]` for Seed-TTS requests. +- `async_request_openai_audio_speech` — sends `POST /v1/audio/speech`; the response is audio only. +- `vllm_omni/metrics/definitions.py` — defines the audio metric names and their mean/median/std/percentile aggregations. +- `vllm_omni/benchmarks/metrics/metrics.py` — defines the text and audio result fields, including `num_ttft_samples`, `num_audio_ttfp_samples`, and the per-stage metric struct. +- `vllm_omni/benchmarks/duplex_session_metrics.py` — defines the realtime/duplex response and stream metrics. + +Observed in a real `openai-audio-speech` result JSON: + +- Audio keys: `mean_`, `median_`, `p50_`, `p95_`, `p99_` for `audio_ttfp_ms`, `audio_rtf`, `audio_duration_s`, `audio_underrun_s`, plus `audio_throughput`, `total_audio_duration_s`, `total_audio_frames`, `num_audio_ttfp_samples`, `num_audio_rtf_samples`. +- Text keys: `num_ttft_samples` is nonzero, but there is **no** `mean_ttft_ms`, `mean_tpot_ms`, or `mean_itl_ms`; `total_output_tokens` and `output_throughput` are 0. Audio-speech has no text output. +- A chat-completions audio run would additionally carry the text TTFT/TPOT/ITL keys. + +### Column count: RHAIIS vs Omni + +RHAIIS `consolidated_dashboard.csv` has **56 columns**: 27 identity/workload columns plus 29 text metrics. It is long and narrow: one row per GuideLLM point, one metric family. + +The Omni consolidated CSV has **165 columns**: + +| Group | Columns | Contents | +|---|---:|---| +| Core identity/config/workload | 60 | model, runtime, image, deployment UUID, MLflow IDs, dataset, concurrency, task, provenance | +| Text metrics | 43 | token counts, TTFT/TPOT/ITL/E2EL, token throughput | +| Speech-out metrics | 33 | audio TTFP/RTF/duration/underrun/throughput/continuity | +| ASR metrics | 8 | WER, WER CI, RTFx, transcription throughput | +| Stage/system | 16 | stage TTFT/gen-time, transfer, GPU | +| Extra | 5 | quality, extra_json, notes, source_file | + +Most of the width is percentile columns. Each metric stores 5–11 statistics: + +| Metric family | Statistic columns | +|---|---:| +| `ttft_ms_*` | 9 | +| `tpot_ms_*` | 6 | +| `itl_ms_*` | 6 | +| `e2el_ms_*` | 11 | +| `audio_ttfp_ms_*` | 9 | +| `audio_rtf_*` | 9 | +| `audio_duration_s_*` | 5 | +| `audio_underrun_s_*` | 5 | + +The table is sparse by design: a TTS row fills roughly 40 of 165 columns, a text row fills a different ~45, and an offline ASR row fills ~10. RHAIIS does not have this problem because it only carries text metrics. + +### Reduction proposal + +Four changes take the working table from 165 to roughly 46 + metric files: + +1. **Text → text is RHAIIS scope, not Omni.** Drop the 31 token-generation columns (`prompt_tokens_*`, `output_tokens_*`, `ttft_ms_*`, `tpot_ms_*`, `itl_ms_*`, token throughput). Keep `e2el_ms_*` and `request_throughput_rps`; TTS and ASR both need them. +2. **Keep four statistics per metric: mean, median, p95, p99.** `median` and `p50` are the same number; keeping both was redundant. Drop `std`, `p25`, `p50`, `p75`, `p90`. This takes speech-out from 28 statistic columns to 16. +3. **GPU metrics stay in Grafana.** Drop `gpu_util_*`, `gpu_mem_used_mean_mb`, `gpu_power_mean_w`, `gpu_temp_max_c` from the CSV. +4. **Config columns become one `runtime_args` column**, the way RHAIIS displays launch args. Drop `gpu_memory_utilization`, `max_num_seqs`, `max_num_batched_tokens`, and `resolved_config_json` as separate columns. + +Proposed file set: + +| File | Columns | Purpose | +|---|---:|---| +| `omni_runs.csv` | ~46 | One row per benchmark point: identity, model/runtime, protocol, workload, outcome, stage metrics. Used by filters, charts, and Filtered Data. | +| `omni_audio_output.csv` | ~23 core / ~30 with coverage fields | `run_key` + audio-output metrics (TTFP, RTF, duration, underrun, throughput, continuity). | +| `omni_text_output.csv` | ~34 | `run_key` + text-output metrics: token counts, TTFT/TPOT/ITL, token throughput, plus ASR WER/RTFx/transcription throughput. Offline ASR fills only the WER/RTFx block; online ASR and chat-completions TTS also fill the token/latency block. | +| `omni_run_config.csv` | ~20 | Provenance and resolved config (`runtime_args`, `extra_body_json`, tokenizer, MLflow parent/experiment IDs, image digest, warmups, turns). Loaded only by View Logs and Runtime Server Configs, not by Filtered Data. | + +`omni_runs.csv` would contain: + +- Identity: `run_key`, `run_name`, `timestamp_utc`, `repetition`, `cluster`, `deployment_uuid`, `mlflow_run_id` +- Model/runtime: `model`, `runtime_version`, `image_tag`, `accelerator`, `gpu_count`, `tp` +- Task/protocol: `task_type`, `profile`, `experiment_phase`, `output_modality`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` +- Workload: `dataset`, `locale`, `num_prompts`, `request_rate`, `concurrency`, `measured_concurrency`, `short_window` +- Outcome: `duration_s`, `successful_requests`, `errored_requests`, `e2el_ms_{mean,median,p95,p99}`, `request_throughput_rps` +- Stage: `stage_0_ttft_ms_{p50,p95}`, `stage_1_ttft_ms_{p50,p95}`, `transfer_tx_ms_{p50,p95}` +- Notes: `notes` + +Filtered Data should not show all 46 columns either. A task-aware preset of ~14 columns keeps the table readable: + +- TTS: model, runtime_version, profile, dataset, concurrency, audio TTFP p95, audio RTF p95, audio underrun p95, audio throughput, E2EL p95, duration, successful, errored, status. +- ASR: model, runtime_version, dataset, language, WER, RTFx, transcription throughput, input audio duration, duration, status. + +The full column set stays available behind a “show all columns” toggle and the CSV download. + +### Open questions for review + +1. Is text → text definitively out of scope for Omni? This memo assumes yes. +2. Star split (`runs` + metric files + join on `run_key`) versus one wide CSV with a curated Filtered Data view? The split keeps every file near 50 columns; the wide file keeps the current loader unchanged. +3. Keep p99 as the outlier diagnostic, or restrict to mean/median/p95? +4. Should chat-completions TTS text metrics be stored in `text_output`, or omitted because pure TTS comparison is audio-only? +5. Should stage metrics live in `omni_runs` (joined into every view), or be duplicated into each metric file? +6. Does Filtered Data need a per-task column preset and a “show all columns” toggle? + +--- + ## Data sources | Mode | Location | From d22c9f0653fede9d198a4e2b1ba8f9199879f86a Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 16:00:13 -0500 Subject: [PATCH 38/74] Add column counts and join diagram to Omni schema memo Number each column group so the 46/30/34/20 totals are verifiable, and add an ER diagram plus cardinality rules for the run_key join. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 147 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 131 insertions(+), 16 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 0e17835..d1b5340 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -94,22 +94,137 @@ Proposed file set: | File | Columns | Purpose | |---|---:|---| -| `omni_runs.csv` | ~46 | One row per benchmark point: identity, model/runtime, protocol, workload, outcome, stage metrics. Used by filters, charts, and Filtered Data. | -| `omni_audio_output.csv` | ~23 core / ~30 with coverage fields | `run_key` + audio-output metrics (TTFP, RTF, duration, underrun, throughput, continuity). | -| `omni_text_output.csv` | ~34 | `run_key` + text-output metrics: token counts, TTFT/TPOT/ITL, token throughput, plus ASR WER/RTFx/transcription throughput. Offline ASR fills only the WER/RTFx block; online ASR and chat-completions TTS also fill the token/latency block. | -| `omni_run_config.csv` | ~20 | Provenance and resolved config (`runtime_args`, `extra_body_json`, tokenizer, MLflow parent/experiment IDs, image digest, warmups, turns). Loaded only by View Logs and Runtime Server Configs, not by Filtered Data. | - -`omni_runs.csv` would contain: - -- Identity: `run_key`, `run_name`, `timestamp_utc`, `repetition`, `cluster`, `deployment_uuid`, `mlflow_run_id` -- Model/runtime: `model`, `runtime_version`, `image_tag`, `accelerator`, `gpu_count`, `tp` -- Task/protocol: `task_type`, `profile`, `experiment_phase`, `output_modality`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` -- Workload: `dataset`, `locale`, `num_prompts`, `request_rate`, `concurrency`, `measured_concurrency`, `short_window` -- Outcome: `duration_s`, `successful_requests`, `errored_requests`, `e2el_ms_{mean,median,p95,p99}`, `request_throughput_rps` -- Stage: `stage_0_ttft_ms_{p50,p95}`, `stage_1_ttft_ms_{p50,p95}`, `transfer_tx_ms_{p50,p95}` -- Notes: `notes` - -Filtered Data should not show all 46 columns either. A task-aware preset of ~14 columns keeps the table readable: +| `omni_runs.csv` | **46** | One row per benchmark point. Identity (7) + model/runtime (6) + protocol (11) + workload (7) + outcome (8) + stage (6) + notes (1). Used by filters, charts, and Filtered Data. | +| `omni_audio_output.csv` | **22 core / 30 with coverage** | `run_key` + audio-output metrics. 22 core, or 30 including the 8 coverage/format fields. | +| `omni_text_output.csv` | **34** | `run_key` + text-output metrics: sample counts (3), token counts (8), TTFT/TPOT/ITL (12), token throughput (2), ASR quality (8), join key (1). Offline ASR fills only the WER/RTFx block; online ASR and chat-completions TTS also fill the token/latency block. | +| `omni_run_config.csv` | **20** | 1 join key + 19 provenance/config fields. Loaded only by View Logs and Runtime Server Configs, not by Filtered Data. | + +Column math: 46 runs + 30 audio + 34 text + 20 config = **130 columns total**, but no single view loads all four. A TTS view loads 46 + 30 + 20 = 96; an ASR view loads 46 + 34 + 20 = 100; Filtered Data loads runs + one metric file only (76 or 80). + +### `omni_runs.csv` — 46 columns + +- **Identity (7):** `run_key`, `run_name`, `timestamp_utc`, `repetition`, `cluster`, `deployment_uuid`, `mlflow_run_id` +- **Model/runtime (6):** `model`, `runtime_version`, `image_tag`, `accelerator`, `gpu_count`, `tp` +- **Task/protocol (11):** `task_type`, `profile`, `experiment_phase`, `output_modality`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` +- **Workload (7):** `dataset`, `locale`, `num_prompts`, `request_rate`, `concurrency`, `measured_concurrency`, `short_window` +- **Outcome (8):** `duration_s`, `successful_requests`, `errored_requests`, `e2el_ms_{mean,median,p95,p99}` (4), `request_throughput_rps` +- **Stage (6):** `stage_0_ttft_ms_{p50,p95}` (2), `stage_1_ttft_ms_{p50,p95}` (2), `transfer_tx_ms_{p50,p95}` (2) +- **Notes (1):** `notes` + +7 + 6 + 11 + 7 + 8 + 6 + 1 = **46**. + +### `omni_audio_output.csv` — 22 core + 8 coverage = 30 + +- `run_key` (1) +- `audio_ttfp_ms_{mean,median,p95,p99}` (4) +- `audio_rtf_{mean,median,p95,p99}` (4) +- `audio_duration_s_{mean,median,p95,p99}` (4) +- `audio_underrun_s_{mean,median,p95,p99}` (4) +- `audio_throughput_x` (1) +- `audio_output_duration_s_total` (1) +- `audio_frames_total` (1) +- `audio_sample_rate_hz` (1) +- `audio_continuity_ok_rate` (1) +- Coverage: `num_audio_ttfp_samples`, `num_audio_rtf_samples`, `audio_skipped_requests`, `missing_audio_duration_count`, `audio_channels`, `audio_bits_per_sample`, `audio_codec`, `audio_underrun_threshold_s` (8) + +1 + 4 + 4 + 4 + 4 + 1 + 1 + 1 + 1 + 1 = **22 core**; + 8 coverage = **30**. + +### `omni_text_output.csv` — 34 + +- `run_key` (1) +- `num_ttft_samples`, `num_tpot_samples`, `num_itl_samples` (3) +- `prompt_tokens_{requested,total,mean,p99}` (4) +- `output_tokens_{requested,total,mean,p99}` (4) +- `ttft_ms_{mean,median,p95,p99}` (4) +- `tpot_ms_{mean,median,p95,p99}` (4) +- `itl_ms_{mean,median,p95,p99}` (4) +- `output_token_throughput`, `total_token_throughput` (2) +- `wer`, `wer_ci_lower`, `wer_ci_upper` (3) +- `rtfx`, `transcription_throughput_utterances_s`, `audio_input_duration_s_total`, `normalization`, `language` (5) + +1 + 3 + 4 + 4 + 4 + 4 + 4 + 2 + 3 + 5 = **34**. + +### `omni_run_config.csv` — 20 + +`run_key`, `namespace`, `deployment_pod_name`, `mlflow_parent_run_id`, `mlflow_experiment_id`, `model_revision`, `runtime`, `vllm_version`, `vllm_omni_version`, `image_digest`, `runtime_args`, `extra_body_json`, `tokenizer_id`, `dataset_path`, `dataset_split`, `num_warmups`, `turns`, `benchmark_tool_version`, `benchmark_backend`, `status_reason`. + +1 join key + 19 provenance/config fields = **20**. + +### How the files join + +```mermaid +erDiagram + omni_runs ||--o| omni_audio_output : "run_key" + omni_runs ||--o| omni_text_output : "run_key" + omni_runs ||--|| omni_run_config : "run_key" + + omni_runs { + string run_key PK + string model + string runtime_version + string profile + string task_type + string output_modality + string api_endpoint + string benchmark_mode + int concurrency + int measured_concurrency + } + omni_audio_output { + string run_key FK + float audio_ttfp_ms_p95 + float audio_rtf_p95 + float audio_underrun_s_p95 + float audio_throughput_x + } + omni_text_output { + string run_key FK + float ttft_ms_p95 + float tpot_ms_p95 + float wer + float rtfx + } + omni_run_config { + string run_key FK + string runtime_args + string extra_body_json + string tokenizer_id + } +``` + +Join rules: + +- `omni_runs` is the spine: exactly one row per benchmark point. +- `omni_audio_output` has 0 or 1 row per run; present when the run produces audio (TTS through any endpoint). +- `omni_text_output` has 0 or 1 row per run; present when the run produces text (ASR, or chat-completions TTS). +- `omni_run_config` has exactly 1 row per run. +- A chat-completions TTS run joins to **both** metric files with the same `run_key`. + +``` +run R1 (audio-speech TTS) runs 1 ── 1 audio_output ── 1 run_config + └── 0 text_output + +run R2 (chat TTS) runs 1 ── 1 audio_output ── 1 run_config + └── 1 text_output + +run R3 (ASR) runs 1 ── 0 audio_output ── 1 run_config + └── 1 text_output +``` + +```python +runs = pd.read_csv("omni_runs.csv") +audio = pd.read_csv("omni_audio_output.csv") +text = pd.read_csv("omni_text_output.csv") +config = pd.read_csv("omni_run_config.csv") + +tts = runs.merge(audio, on="run_key", how="left") +asr = runs.merge(text, on="run_key", how="left") +full = runs.merge(audio, on="run_key", how="left") \ + .merge(text, on="run_key", how="left") \ + .merge(config, on="run_key", how="left") +``` + +Filtered Data should not show all 46 runs columns either. A task-aware preset of ~14 columns keeps the table readable: - TTS: model, runtime_version, profile, dataset, concurrency, audio TTFP p95, audio RTF p95, audio underrun p95, audio throughput, E2EL p95, duration, successful, errored, status. - ASR: model, runtime_version, dataset, language, WER, RTFx, transcription throughput, input audio duration, duration, status. From 45b6dc500504457b223c919a2cb62af9741add9c Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 17:19:51 -0500 Subject: [PATCH 39/74] Add staged Omni TTS CSV rollout Introduce the 76-column core+TTS schema, the Qwen3-TTS-only builder, the column source map, and the five-section Omni navigation. Filtered Data uses a curated 16-column view with MLflow run hyperlinks; the populated local CSV stays out of git because it contains deployment and MLflow IDs. Co-Authored-By: Claude Code --- .gitignore | 2 + dashboard.py | 2 +- ...nsolidated_dashboard_omni_tts_template.csv | 1 + docs/omni-tts-column-sources.md | 192 ++++ manual_runs/scripts/build_omni_tts_csv.py | 1006 +++++++++++++++++ omni_dashboard.py | 112 +- 6 files changed, 1280 insertions(+), 35 deletions(-) create mode 100644 datasets/omni/consolidated_dashboard_omni_tts_template.csv create mode 100644 docs/omni-tts-column-sources.md create mode 100644 manual_runs/scripts/build_omni_tts_csv.py diff --git a/.gitignore b/.gitignore index 7128a5b..5ba6ffc 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,8 @@ __pycache__/ !datasets/summaries/*.csv !datasets/omni/*.csv !datasets/omni/*.json +# Populated local dataset contains deployment/MLflow IDs; keep it out of git. +datasets/omni/consolidated_dashboard_omni.csv vllm-cpu-perf-eval/ # Ignore large original dataset files in datasets/ (pkl, parquet, npy) diff --git a/dashboard.py b/dashboard.py index 1048182..f51a2d4 100644 --- a/dashboard.py +++ b/dashboard.py @@ -12624,7 +12624,7 @@ def render_confidentiality_notice(): # If Omni view is selected, render Omni dashboard and exit if OMNI_AVAILABLE and selected_view == "Omni Dashboard": - render_omni_dashboard("datasets/omni/consolidated_dashboard_omni_sample.csv") + render_omni_dashboard("datasets/omni/consolidated_dashboard_omni.csv") st.stop() # Stop execution here, don't load RHAIIS data # Otherwise, continue with RHAIIS dashboard diff --git a/datasets/omni/consolidated_dashboard_omni_tts_template.csv b/datasets/omni/consolidated_dashboard_omni_tts_template.csv new file mode 100644 index 0000000..4bae872 --- /dev/null +++ b/datasets/omni/consolidated_dashboard_omni_tts_template.csv @@ -0,0 +1 @@ +run_key,run_name,timestamp_utc,cluster,deployment_uuid,mlflow_run_id,source_file,model,runtime_version,image_tag,accelerator,gpu_count,tp,modality,input_modality,output_modality,task_type,profile,experiment_phase,benchmark_tool,load_generator,api_endpoint,benchmark_mode,response_format,tokenizer_override,status,dataset,locale,num_prompts,request_rate,concurrency,measured_concurrency,short_window,duration_s,successful_requests,errored_requests,e2el_ms_mean,e2el_ms_median,e2el_ms_p95,e2el_ms_p99,request_throughput_rps,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,notes,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,num_audio_ttfp_samples,num_audio_rtf_samples,missing_audio_duration_count,audio_channels,audio_bits_per_sample,audio_codec,audio_underrun_threshold_s diff --git a/docs/omni-tts-column-sources.md b/docs/omni-tts-column-sources.md new file mode 100644 index 0000000..557401e --- /dev/null +++ b/docs/omni-tts-column-sources.md @@ -0,0 +1,192 @@ +# Omni TTS CSV — column source map + +Status: implementation spec for the first staged rollout. + +Scope: **Qwen3-TTS only**, streaming `/v1/audio/speech`. No ASR, chat-completions, +or realtime rows yet. One row per benchmark point. + +Output files: + +| File | Purpose | +|---|---| +| `datasets/omni/consolidated_dashboard_omni.csv` | Populated local data (do not commit; contains deployment IDs) | +| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 76-column template for this staged schema | + +The legacy `datasets/omni/consolidated_dashboard_omni_template.csv` remains the +165-column schema for the older converter and fixtures. + +## Input inventory + +| Group | Source | Expected rows | +|---|---|---:| +| 3.5 legacy | `results/3.5/benchmark_results.csv` + the raw JSON named by `json_file` | 60 | +| 3.6 base | `results/3.6/ci/ci_qwen3_tts_base_c1.json`, `results/3.6/qwen3-tts-base-36ga/saturation/saturation_c*.json` | 9 | +| 3.6 Athena | `results/athena/benchmark_results.csv` (Qwen3-TTS CustomVoice rows) + `results/athena///cell_c*.json` | 48 | +| **Total** | | **117** | + +Athena has six Qwen3-TTS profiles × 8 concurrency points: 3.6 GA default, +3.6 GA B8, 3.6 fast-1 default, v0.30 default, v0.30 B8, v0.26 default. + +Excluded: Voxtral rows (unsupported in streaming WAV), OmniVoice rows, and all +ASR/chat/realtime data. Paths are relative to the benchmark recipe checkout. + +## Source keys + +| Key | Meaning | +|---|---| +| `d` | Raw vLLM-Omni bench result JSON for the cell (`cell_c*.json`, `saturation_c*.json`, `ci_*.json`) | +| `cm` | `cell_meta.json` in the same directory as `d` (Athena only) | +| `rm` | `run_meta.json` in the same directory as `d` (Athena only) | +| `v` | `validation.json` in the same directory as `d` (Athena only) | +| `r` | Source CSV row (`benchmark_results.csv` from 3.5 or Athena) | +| `meta` | `results/3.6/consolidated_dashboard_omni_metadata.json` defaults/patterns | +| `log` | Bench log in the same directory as `d` (`cell_c*.log`) | + +Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default. + +## Column map + +### Identity (7) + +| Column | Source | Rule | +|---|---|---| +| `run_key` | derived | `slug(model) + "__" + runtime_version + "__" + profile + "__" + task_type + "__c" + concurrency + "__" + experiment_phase`. Must be unique across all rows. | +| `run_name` | `r` / `meta` | 3.5: `legacy-3.5-{model}-{task_type}-{version}-c{C}`. 3.6 base: `meta.run_name_template` or `qwen3-tts-base-36ga_saturation_c{C}` / `qwen3-tts-base-ci`. Athena: `{run_dir}-{profile}_c{C}` (e.g. `customvoice-36ga-default_c64`). | +| `timestamp_utc` | `r` / `d` / `rm` | 3.5: `r.timestamp`. 3.6 base: `d.date` (`YYYYMMDD-HHMMSS`) or file mtime. Athena: `rm.started_at`. Normalize to ISO 8601 UTC. | +| `cluster` | `r` / `meta` / `cm` | Use a short project label (`hera` or `athena`), not a hostname. | +| `deployment_uuid` | `cm` / `meta` | Athena: `cm.deployment_uuid`. 3.6 base: pattern `deployment_uuid`. 3.5: blank. Local-only field. | +| `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four profiles are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | +| `source_file` | derived | Path to `d` relative to the recipe checkout. | + +### Model / runtime (6) + +| Column | Source | Rule | +|---|---|---| +| `model` | `d.model_id` / `r.model` / `meta.model` | HuggingFace model ID. | +| `runtime_version` | `r.version` / `meta.runtime_version` / `cm.version` | Canonical label (`vllm-omni-3.5-ea2`, `vllm-omni-3.6.0-ga`, `vllm-omni-3.6-fast1`, `vllm-omni-v0.30.0`, `vllm-omni-v0.26.0`). | +| `image_tag` | `r.image_tag` / `meta.image_tag` / `cm.image` | Image ref; split `@sha256:` into tag + digest if needed. | +| `accelerator` | `r.accelerator` / `meta.accelerator` / `cm.gpu_model` | GPU family, e.g. `H200`. | +| `gpu_count` | `meta.gpu_count` / `cm.gpu_count` | 1 for all current rows. | +| `tp` | `r.tp` / `meta.tp` | 1 for all current Qwen3-TTS rows. | + +### Task / protocol (13) + +| Column | Source | Rule | +|---|---|---| +| `modality` | derived | `audio`. | +| `input_modality` | derived | `text`. | +| `output_modality` | derived | `audio`. | +| `task_type` | `r.task_type` / `meta.task_type` | Normalize `custom_voice` → `default_voice`. | +| `profile` | `r.profile` / `cm.profile` | 3.5 and 3.6 base: `default`. Athena: `default` or `b8`. | +| `experiment_phase` | derived | 3.5: `legacy`. 3.6 base: `ci` for the CI file, `saturation` for the ladder. Athena: `matrix`. | +| `benchmark_tool` | `r.benchmark_tool` / derived | 3.5: source value (`vllm-bench-serve`). 3.6: `vllm-omni-bench-serve`. | +| `load_generator` | derived | `vllm-omni-bench-serve` for all rows so 3.5 and 3.6 compare in one series. | +| `api_endpoint` | `d.endpoint_type` / `r` | Map `openai-audio-speech` → `/v1/audio/speech`. All current rows use this endpoint. | +| `benchmark_mode` | derived | `streaming` (all current rows have TTFP/underrun). | +| `response_format` | `cm.extra_body` / `rm.config.benchmark.extra_body` / `meta.extra_body_json` | Parse `response_format`. Explicit `wav` for Athena. 3.6 base and 3.5 have no explicit value: use `wav` (server default) and note it in `notes`. | +| `tokenizer_override` | derived | `true` if `d.tokenizer_id != model`. All Qwen3-TTS rows are `false`. | +| `status` | `v.ok` / derived | `valid` for every included row. Excluded/failed rows do not enter this CSV. | + +### Workload (7) + +| Column | Source | Rule | +|---|---|---| +| `dataset` | `r.dataset` / `meta.dataset` / derived | 3.5: `seed-tts` for `voice_clone`, `seed-tts-text` for `default_voice`. 3.6 base: `seed-tts`. Athena: `seed-tts-text`. | +| `locale` | `meta.locale` / derived | `en` for `seed-tts` voice-clone rows; blank for text-only datasets. | +| `num_prompts` | `d.num_prompts` / `r.num_prompts` | Measured request count. | +| `request_rate` | `d.request_rate` / `r.request_rate` | `inf` for all current rows. | +| `concurrency` | `d.max_concurrency` / `r.concurrency` | Configured `--max-concurrency`. | +| `measured_concurrency` | `d.max_concurrent_requests` | Observed maximum; blank if absent. | +| `short_window` | derived | `true` when `duration_s < 30`; `false` otherwise. The 30 s minimum is the matrix protocol's steady-state gate. The 3.5 legacy runs used only 100 prompts, so many high-concurrency legacy points fall below it; that is a workload-size artifact, not a failed run. | + +### Outcome (8) + +| Column | Source | Rule | +|---|---|---| +| `duration_s` | `d.duration` / `r.total_duration_s` | Measured wall-clock seconds. | +| `successful_requests` | `d.completed` / `r.successful_requests` | Completed requests. | +| `errored_requests` | `d.failed` / `r.errored_requests` | Failed requests. | +| `e2el_ms_mean` | `d.mean_e2el_ms` / `r.e2el_mean` | End-to-end latency, ms. | +| `e2el_ms_median` | `d.median_e2el_ms` / `r.e2el_median` | End-to-end latency, ms. | +| `e2el_ms_p95` | `d.p95_e2el_ms` / `r.e2el_p95` | End-to-end latency, ms. | +| `e2el_ms_p99` | `d.p99_e2el_ms` / `r.e2el_p99` | End-to-end latency, ms. | +| `request_throughput_rps` | `d.request_throughput` / `r.request_throughput` | Completed requests per wall-second. | + +### Stage / system (6) + +| Column | Source | Rule | +|---|---|---| +| `stage_0_ttft_ms_p50` | `d.stage_durations_p50` | Key `0` or the first stage name. Blank when the JSON has `{}`. | +| `stage_0_ttft_ms_p95` | — | Current bench JSON emits p50/p99 only; leave blank until a run emits p95. | +| `stage_1_ttft_ms_p50` | `d.stage_durations_p50` | Key `1` or the second stage name. Blank when absent. | +| `stage_1_ttft_ms_p95` | — | Blank (same reason). | +| `transfer_tx_ms_p50` | `d.stage_durations_p50` | Transfer/stage-gap key if present. Blank otherwise. | +| `transfer_tx_ms_p95` | — | Blank (same reason). | + +### Notes (1) + +| Column | Source | Rule | +|---|---|---| +| `notes` | derived | Short provenance: `response_format inferred` for 3.5/3.6 base; `short_window` when duration < 30 s; endpoint/version caveats. | + +### Audio output (28) + +| Column | Source | Rule | +|---|---|---| +| `audio_ttfp_ms_mean` | `d.mean_audio_ttfp_ms` / `r.audio_ttfp_mean` | First-audio latency, ms. | +| `audio_ttfp_ms_median` | `d.median_audio_ttfp_ms` / `r.audio_ttfp_median` | ms. | +| `audio_ttfp_ms_p95` | `d.p95_audio_ttfp_ms` / `r.audio_ttfp_p95` | ms. | +| `audio_ttfp_ms_p99` | `d.p99_audio_ttfp_ms` / `r.audio_ttfp_p99` | ms. | +| `audio_rtf_mean` | `d.mean_audio_rtf` / `r.audio_rtf_mean` | Ratio; <1 is faster than real time. | +| `audio_rtf_median` | `d.median_audio_rtf` / `r.audio_rtf_median` | Ratio. | +| `audio_rtf_p95` | `d.p95_audio_rtf` / `r.audio_rtf_p95` | Ratio. | +| `audio_rtf_p99` | `d.p99_audio_rtf` / `r.audio_rtf_p99` | Ratio. | +| `audio_duration_s_mean` | `d.mean_audio_duration_s` / `r.audio_duration_mean` | Generated audio duration, s. | +| `audio_duration_s_median` | `d.median_audio_duration_s` / `r.audio_duration_median` | s. | +| `audio_duration_s_p95` | `d.p95_audio_duration_s` / `r.audio_duration_p95` | s; 3.5 may be blank. | +| `audio_duration_s_p99` | `d.p99_audio_duration_s` / `r.audio_duration_p99` | s. | +| `audio_underrun_s_mean` | `d.mean_audio_underrun_s` / `r.audio_underrun_mean` | Max delivery gap, s; streaming only. | +| `audio_underrun_s_median` | `d.median_audio_underrun_s` / `r.audio_underrun_median` | s. | +| `audio_underrun_s_p95` | `d.p95_audio_underrun_s` / `r.audio_underrun_p95` | s; 3.5 may be blank. | +| `audio_underrun_s_p99` | `d.p99_audio_underrun_s` / `r.audio_underrun_p99` | s. | +| `audio_throughput_x` | `d.audio_throughput` / `r.audio_throughput` | Audio seconds per wall-second. | +| `audio_output_duration_s_total` | `d.total_audio_duration_s` / `r.audio_duration_total` | Sum of generated audio, s. | +| `audio_frames_total` | `d.total_audio_frames` | Total PCM samples; blank for 3.5. | +| `audio_sample_rate_hz` | `meta.audio_sample_rate_hz` / derived | 24000 for Qwen3-TTS WAV. | +| `audio_continuity_ok_rate` | `log` | Last `Streaming continuity OK rate: X%` line divided by 100. Blank if no log. | +| `num_audio_ttfp_samples` | `d.num_audio_ttfp_samples` | Valid TTFP sample count; blank for 3.5. | +| `num_audio_rtf_samples` | `d.num_audio_rtf_samples` | Valid RTF sample count; blank for 3.5. | +| `missing_audio_duration_count` | `d.missing_audio_duration_count` | Requests with no derivable duration; blank when absent. | +| `audio_channels` | derived | `1` (mono) for WAV/PCM. | +| `audio_bits_per_sample` | derived | `16` for PCM/WAV. | +| `audio_codec` | derived | `pcm_s16le` for `wav`/`pcm`; blank for unknown. | +| `audio_underrun_threshold_s` | derived | `0.1` (bench default; env `VLLM_OMNI_BENCH_AUDIO_CONTINUITY_THRESHOLD_S`). | + +## Dashboard MLflow link + +The dashboard turns `mlflow_run_id` into the same kind of hyperlink RHAIIS uses: + +``` +{MLFLOW_BASE_URL}/#/experiments/{OMNI_MLFLOW_EXPERIMENT_ID}/runs/{run_id}/artifacts?workspace={MLFLOW_WORKSPACE} +``` + +`MLFLOW_BASE_URL` falls back to `MLFLOW_TRACKING_URI`; `OMNI_MLFLOW_EXPERIMENT_ID` +defaults to `392`. Set `MLFLOW_WORKSPACE` when the experiment lives under a named +workspace. The link appears as a **View Run 🧪** column in Filtered Data. + +The optional `--mlflow-runs-json` input is a saved response from +`POST /api/2.0/mlflow/runs/search` for the experiment. It lets the builder fill +run IDs that are not present in the local metadata files without making the +build depend on network access. + +## Validation checks + +1. Header is exactly 76 columns in the order above. +2. Row count is 117: 60 (3.5) + 9 (3.6 base) + 48 (Athena Qwen3-TTS). +3. `run_key` is non-empty and unique. +4. Required dashboard columns are non-empty: `model`, `task_type`, `benchmark_tool`, + `load_generator`, `concurrency`, `accelerator`, `runtime_version`, `dataset`, + `modality`, `input_modality`, `output_modality`. +5. `successful_requests + errored_requests == num_prompts` for every row. +6. Audio metric columns are non-empty for every row; stage columns may be blank. +7. No Voxtral or OmniVoice model appears. diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py new file mode 100644 index 0000000..140f309 --- /dev/null +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -0,0 +1,1006 @@ +#!/usr/bin/env python3 +"""Build the staged Omni TTS dashboard CSV (Qwen3-TTS only). + +Reads benchmark artifacts from the read-only recipe checkout and writes the +76-column schema documented in docs/omni-tts-column-sources.md. + +Groups: + 1. 3.5 legacy -- results/3.5/benchmark_results.csv + raw JSON per json_file + 2. 3.6 base -- results/3.6/ci/*.json + results/3.6/qwen3-tts-base-36ga/saturation/saturation_c*.json + 3. 3.6 Athena -- results/athena/benchmark_results.csv Qwen3-TTS CustomVoice rows + +Usage: + python3 build_omni_tts_csv.py [--recipe-root PATH] [--output PATH] + [--template PATH] [--mlflow-runs-json PATH] + +Defaults: + recipe root ~/omni-perf-benchmark-recipe + output /datasets/omni/consolidated_dashboard_omni.csv + template /datasets/omni/consolidated_dashboard_omni_tts_template.csv + +--mlflow-runs-json is optional. Pass a saved MLflow runs/search response to +fill run IDs that are not present in the local metadata files. + +Standard library only. The recipe checkout is never modified. +""" + +import csv +import datetime +import glob +import json +import os +import re +import sys + +DEFAULT_RECIPE_ROOT = os.path.expanduser("~/omni-perf-benchmark-recipe") + +TEMPLATE_REL = os.path.join( + "datasets", "omni", "consolidated_dashboard_omni_tts_template.csv" +) +OUTPUT_REL = os.path.join("datasets", "omni", "consolidated_dashboard_omni.csv") + +Q35_DIR = os.path.join("results", "3.5") +Q35_CSV = os.path.join(Q35_DIR, "benchmark_results.csv") +Q36_CI_JSON = os.path.join("results", "3.6", "ci", "ci_qwen3_tts_base_c1.json") +Q36_SAT_GLOB = os.path.join( + "results", "3.6", "qwen3-tts-base-36ga", "saturation", "saturation_c*.json" +) +Q36_META = os.path.join("results", "3.6", "consolidated_dashboard_omni_metadata.json") +ATHENA_CSV = os.path.join("results", "athena", "benchmark_results.csv") +ATHENA_META = os.path.join( + "results", "athena", "customvoice-36ga", "consolidated_metadata.json" +) + +QWEN_TTS_PREFIX = "Qwen/Qwen3-TTS-" + +DEFAULT_LOAD_GENERATOR = "vllm-omni-bench-serve" +DEFAULT_AUDIO_SAMPLE_RATE = "24000" + +# Raw bench JSON field -> dashboard column. +D_METRICS = { + "e2el_ms_mean": "mean_e2el_ms", + "e2el_ms_median": "median_e2el_ms", + "e2el_ms_p95": "p95_e2el_ms", + "e2el_ms_p99": "p99_e2el_ms", + "request_throughput_rps": "request_throughput", + "audio_ttfp_ms_mean": "mean_audio_ttfp_ms", + "audio_ttfp_ms_median": "median_audio_ttfp_ms", + "audio_ttfp_ms_p95": "p95_audio_ttfp_ms", + "audio_ttfp_ms_p99": "p99_audio_ttfp_ms", + "audio_rtf_mean": "mean_audio_rtf", + "audio_rtf_median": "median_audio_rtf", + "audio_rtf_p95": "p95_audio_rtf", + "audio_rtf_p99": "p99_audio_rtf", + "audio_duration_s_mean": "mean_audio_duration_s", + "audio_duration_s_median": "median_audio_duration_s", + "audio_duration_s_p95": "p95_audio_duration_s", + "audio_duration_s_p99": "p99_audio_duration_s", + "audio_underrun_s_mean": "mean_audio_underrun_s", + "audio_underrun_s_median": "median_audio_underrun_s", + "audio_underrun_s_p95": "p95_audio_underrun_s", + "audio_underrun_s_p99": "p99_audio_underrun_s", + "audio_throughput_x": "audio_throughput", + "audio_output_duration_s_total": "total_audio_duration_s", + "num_prompts": "num_prompts", + "request_rate": "request_rate", + "duration_s": "duration", + "successful_requests": "completed", + "errored_requests": "failed", +} + +# Source-CSV fallback names for the 3.5 legacy CSV. +R35_METRICS = { + "e2el_ms_mean": "e2el_mean", + "e2el_ms_median": "e2el_median", + "e2el_ms_p95": "e2el_p95", + "e2el_ms_p99": "e2el_p99", + "request_throughput_rps": "request_throughput", + "audio_ttfp_ms_mean": "audio_ttfp_mean", + "audio_ttfp_ms_median": "audio_ttfp_median", + "audio_ttfp_ms_p95": "audio_ttfp_p95", + "audio_ttfp_ms_p99": "audio_ttfp_p99", + "audio_rtf_mean": "audio_rtf_mean", + "audio_rtf_median": "audio_rtf_median", + "audio_rtf_p95": "audio_rtf_p95", + "audio_rtf_p99": "audio_rtf_p99", + "audio_duration_s_mean": "audio_duration_mean", + "audio_duration_s_median": "audio_duration_median", + "audio_duration_s_p95": "audio_duration_p95", + "audio_duration_s_p99": "audio_duration_p99", + "audio_underrun_s_mean": "audio_underrun_mean", + "audio_underrun_s_median": "audio_underrun_median", + "audio_underrun_s_p95": "audio_underrun_p95", + "audio_underrun_s_p99": "audio_underrun_p99", + "audio_throughput_x": "audio_throughput", + "audio_output_duration_s_total": "audio_duration_total", + "num_prompts": "num_prompts", + "request_rate": "request_rate", + "duration_s": "total_duration_s", + "successful_requests": "successful_requests", + "errored_requests": "errored_requests", +} + +# Source-CSV fallback names for the Athena CSV. +RATH_METRICS = { + "e2el_ms_mean": "e2el_ms_mean", + "e2el_ms_median": "e2el_ms_median", + "e2el_ms_p95": "e2el_ms_p95", + "e2el_ms_p99": "e2el_ms_p99", + "request_throughput_rps": "request_throughput", + "audio_ttfp_ms_mean": "audio_ttfp_ms_mean", + "audio_ttfp_ms_median": "audio_ttfp_ms_median", + "audio_ttfp_ms_p95": "audio_ttfp_ms_p95", + "audio_ttfp_ms_p99": "audio_ttfp_ms_p99", + "audio_rtf_mean": "audio_rtf_mean", + "audio_rtf_median": "audio_rtf_median", + "audio_rtf_p95": "audio_rtf_p95", + "audio_rtf_p99": "audio_rtf_p99", + "audio_underrun_s_mean": "audio_underrun_s_mean", + "audio_underrun_s_median": "audio_underrun_s_median", + "audio_underrun_s_p95": "audio_underrun_s_p95", + "audio_underrun_s_p99": "audio_underrun_s_p99", + "audio_throughput_x": "audio_throughput", + "num_prompts": "num_prompts", + "request_rate": "request_rate", + "duration_s": "duration_s", + "successful_requests": "completed", + "errored_requests": "failed", +} + +REQUIRED_COLUMNS = [ + "model", + "task_type", + "benchmark_tool", + "load_generator", + "concurrency", + "accelerator", + "runtime_version", + "dataset", + "modality", + "input_modality", + "output_modality", +] + + +# --------------------------------------------------------------------------- +# Generic helpers +# --------------------------------------------------------------------------- + + +def as_text(value): + """Render a JSON/CSV value as the CSV string used by the dashboard.""" + if value is None: + return "" + if isinstance(value, bool): + return "true" if value else "false" + if isinstance(value, float): + if value != value: # NaN + return "" + if value == float("inf"): + return "inf" + if value == float("-inf"): + return "-inf" + return repr(value) + if isinstance(value, int): + return str(value) + return str(value).strip() + + +def pick(*values): + """First value that is not None and not an empty string (0/false are valid).""" + for value in values: + if value is None: + continue + if isinstance(value, str) and value == "": + continue + return value + return "" + + +def load_json(path): + if not path or not os.path.isfile(path): + return {} + try: + with open(path, encoding="utf-8") as handle: + return json.load(handle) + except (OSError, ValueError): + return {} + + +def read_csv_rows(path): + if not os.path.isfile(path): + return [] + with open(path, encoding="utf-8", newline="") as handle: + return list(csv.DictReader(handle)) + + +def load_mlflow_index(path): + """Index MLflow runs by run name and by (deployment_uuid, concurrency).""" + if not path: + return {} + data = load_json(path) + runs = data.get("runs", []) if isinstance(data, dict) else data + by_name = {} + by_uuid_concurrency = {} + for run in runs or []: + info = run.get("info") or {} + run_data = run.get("data") or {} + tags = {tag.get("key"): tag.get("value") for tag in run_data.get("tags") or []} + params = { + param.get("key"): param.get("value") + for param in run_data.get("params") or [] + } + run_id = as_text(info.get("run_id")) + if not run_id: + continue + name = as_text(tags.get("mlflow.runName")) + if name: + by_name[name] = run_id + deployment_uuid = as_text( + pick(tags.get("deployment_uuid"), params.get("deployment_uuid")) + ) + concurrency = concurrency_str( + pick(tags.get("concurrency"), params.get("max_concurrency")) + ) + if deployment_uuid and concurrency: + by_uuid_concurrency[(deployment_uuid, concurrency)] = run_id + return {"by_name": by_name, "by_uuid_concurrency": by_uuid_concurrency} + + +def mlflow_run_id_for(mlflow_index, run_name, deployment_uuid, concurrency): + """Look up a run id from the optional MLflow cache.""" + if not mlflow_index: + return "" + run_id = mlflow_index.get("by_name", {}).get(run_name, "") + if run_id: + return run_id + return mlflow_index.get("by_uuid_concurrency", {}).get( + (deployment_uuid, concurrency), "" + ) + + +def slug(text): + """Deterministic lowercase slug: non-alphanumerics collapse to '-'.""" + return re.sub(r"[^a-z0-9]+", "-", as_text(text).lower()).strip("-") + + +def concurrency_str(value): + """Canonical integer-looking concurrency string.""" + text = as_text(value) + if text == "": + return "" + try: + number = float(text) + except ValueError: + return text + if number.is_integer(): + return str(int(number)) + return text + + +def normalize_task_type(value): + text = as_text(value) + if text == "custom_voice": + return "default_voice" + return text + + +def map_endpoint(value): + text = as_text(value) + mapping = {"openai-audio-speech": "/v1/audio/speech"} + if text in mapping: + return mapping[text] + if text.startswith("/"): + return text + return "" + + +def short_window_flag(duration_text): + try: + return "true" if float(duration_text) < 30 else "false" + except (TypeError, ValueError): + return "" + + +def normalize_timestamp(value, fallback_path): + """Normalize YYYYMMDD-HHMMSS or ISO-8601 input to ISO-8601 UTC.""" + text = as_text(value) + if text: + if re.fullmatch(r"\d{8}-\d{6}", text): + try: + parsed = datetime.datetime.strptime(text, "%Y%m%d-%H%M%S") + parsed = parsed.replace(tzinfo=datetime.timezone.utc) + return parsed.strftime("%Y-%m-%dT%H:%M:%SZ") + except ValueError: + pass + try: + parsed = datetime.datetime.fromisoformat(text.replace("Z", "+00:00")) + if parsed.tzinfo is None: + parsed = parsed.replace(tzinfo=datetime.timezone.utc) + parsed = parsed.astimezone(datetime.timezone.utc) + return parsed.strftime("%Y-%m-%dT%H:%M:%SZ") + except ValueError: + pass + if fallback_path and os.path.isfile(fallback_path): + parsed = datetime.datetime.fromtimestamp( + os.path.getmtime(fallback_path), datetime.timezone.utc + ) + return parsed.strftime("%Y-%m-%dT%H:%M:%SZ") + return text + + +def strip_image_digest(image): + return re.split(r"@sha256:", as_text(image), maxsplit=1)[0] + + +def response_format_from_extra_body(extra_body): + if isinstance(extra_body, str): + if not extra_body.strip(): + return "" + try: + extra_body = json.loads(extra_body) + except ValueError: + return "" + if not isinstance(extra_body, dict): + return "" + return as_text(extra_body.get("response_format")) + + +def find_log(json_path, extra_log_dir=""): + """Cell log: same directory as the JSON, then a metadata bench_log_dir.""" + stem = os.path.splitext(os.path.basename(json_path))[0] + candidates = [os.path.join(os.path.dirname(json_path), stem + ".log")] + if extra_log_dir: + candidates.append(os.path.join(extra_log_dir, stem + ".log")) + for candidate in candidates: + if os.path.isfile(candidate): + return candidate + return "" + + +def continuity_ok_rate(log_path): + """Last 'Streaming continuity OK rate: X%' line divided by 100.""" + if not log_path: + return "" + last = None + try: + with open(log_path, encoding="utf-8", errors="replace") as handle: + for line in handle: + match = re.search( + r"Streaming continuity OK rate:\s*([0-9]+(?:\.[0-9]+)?)\s*%", + line, + ) + if match: + last = match.group(1) + except OSError: + return "" + if last is None: + return "" + return as_text(float(last) / 100.0) + + +def stage_value(mapping, index): + if not isinstance(mapping, dict) or not mapping: + return "" + for key in (str(index), index): + if key in mapping: + return as_text(mapping[key]) + + # Fall back to the first/second stage by natural key order. + def sort_key(key): + try: + return (0, int(key)) + except (TypeError, ValueError): + return (1, str(key)) + + keys = sorted(mapping.keys(), key=sort_key) + if index < len(keys): + return as_text(mapping[keys[index]]) + return "" + + +def apply_stages(row, data): + """Populate the stage p50 columns; p95 stays blank for the current schema.""" + row["stage_0_ttft_ms_p50"] = "" + row["stage_0_ttft_ms_p95"] = "" + row["stage_1_ttft_ms_p50"] = "" + row["stage_1_ttft_ms_p95"] = "" + row["transfer_tx_ms_p50"] = "" + row["transfer_tx_ms_p95"] = "" + + p50 = data.get("stage_durations_p50") + if not isinstance(p50, dict) or not p50: + return + row["stage_0_ttft_ms_p50"] = stage_value(p50, 0) + row["stage_1_ttft_ms_p50"] = stage_value(p50, 1) + for key, value in p50.items(): + lowered = str(key).lower() + if "transfer" in lowered or lowered in ("tx", "stage_gap", "gap"): + row["transfer_tx_ms_p50"] = as_text(value) + break + + +def apply_metrics(row, data, source_row, group): + fallback = R35_METRICS if group == "3.5" else RATH_METRICS + for column, data_key in D_METRICS.items(): + source_key = fallback.get(column) if source_row else None + value = pick( + data.get(data_key), + source_row.get(source_key) if source_key else None, + ) + row[column] = as_text(value) + + +def apply_audio_output(row, data, group, log_path, sample_rate, response_format): + row["audio_frames_total"] = ( + "" if group == "3.5" else as_text(data.get("total_audio_frames")) + ) + row["audio_sample_rate_hz"] = as_text(sample_rate) + row["audio_continuity_ok_rate"] = continuity_ok_rate(log_path) + row["num_audio_ttfp_samples"] = ( + "" if group == "3.5" else as_text(data.get("num_audio_ttfp_samples")) + ) + row["num_audio_rtf_samples"] = ( + "" if group == "3.5" else as_text(data.get("num_audio_rtf_samples")) + ) + row["missing_audio_duration_count"] = as_text( + data.get("missing_audio_duration_count") + ) + row["audio_channels"] = "1" + row["audio_bits_per_sample"] = "16" + row["audio_codec"] = ( + "pcm_s16le" if as_text(response_format).lower() in ("wav", "pcm") else "" + ) + row["audio_underrun_threshold_s"] = "0.1" + + +def build_notes(group, response_format_inferred, short_window): + notes = [] + if response_format_inferred: + notes.append("response_format inferred") + if short_window == "true": + notes.append("short_window") + return "; ".join(notes) + + +def new_row(header): + return dict.fromkeys(header, "") + + +def match_pattern(patterns, recipe_root, absolute_path): + """Return the metadata pattern whose glob contains this source file.""" + normalized = os.path.normpath(absolute_path) + for pattern in patterns or []: + pattern_glob = pattern.get("glob", "") + if not pattern_glob: + continue + matches = glob.glob(os.path.join(recipe_root, pattern_glob)) + if any(os.path.normpath(match) == normalized for match in matches): + return pattern + return {} + + +def dataset_for_task(task_type): + if task_type == "voice_clone": + return "seed-tts" + if task_type == "default_voice": + return "seed-tts-text" + return "" + + +def locale_for(dataset, task_type): + if dataset == "seed-tts" and task_type == "voice_clone": + return "en" + return "" + + +def tokenizer_override(model, tokenizer_id): + model_text = as_text(model) + tokenizer_text = as_text(tokenizer_id) + if model_text and tokenizer_text and model_text != tokenizer_text: + return "true" + return "false" + + +# --------------------------------------------------------------------------- +# Group 1: 3.5 legacy +# --------------------------------------------------------------------------- + + +def build_35(recipe_root, header): + rows = [] + for source_row in read_csv_rows(os.path.join(recipe_root, Q35_CSV)): + model = as_text(source_row.get("model")) + if not model.startswith(QWEN_TTS_PREFIX): + continue + + json_file = as_text(source_row.get("json_file")) + relative_path = os.path.normpath(os.path.join(Q35_DIR, json_file)) + json_path = os.path.join(recipe_root, relative_path) + data = load_json(json_path) + + task_type = normalize_task_type(source_row.get("task_type")) + runtime_version = as_text(source_row.get("version")) + concurrency = concurrency_str( + pick(data.get("max_concurrency"), source_row.get("concurrency")) + ) + profile = "default" + phase = "legacy" + + row = new_row(header) + row["run_key"] = "__".join( + [ + slug(model), + runtime_version, + profile, + task_type, + "c" + concurrency, + phase, + ] + ) + row["run_name"] = ( + f"legacy-3.5-{model}-{task_type}-{runtime_version}-c{concurrency}" + ) + row["timestamp_utc"] = normalize_timestamp( + source_row.get("timestamp"), json_path + ) + row["cluster"] = "hera" + row["deployment_uuid"] = "" + row["mlflow_run_id"] = "" + row["source_file"] = relative_path + + row["model"] = as_text(pick(data.get("model_id"), model)) + row["runtime_version"] = runtime_version + row["image_tag"] = as_text(source_row.get("image_tag")) + row["accelerator"] = as_text(source_row.get("accelerator")) + # The doc records 1 GPU / TP=1 for every current Qwen3-TTS row; the + # legacy CSV only carries TP. + row["gpu_count"] = "1" + row["tp"] = as_text(pick(source_row.get("tp"), "1")) + + row["modality"] = "audio" + row["input_modality"] = "text" + row["output_modality"] = "audio" + row["task_type"] = task_type + row["profile"] = profile + row["experiment_phase"] = phase + row["benchmark_tool"] = as_text(source_row.get("benchmark_tool")) + row["load_generator"] = DEFAULT_LOAD_GENERATOR + row["api_endpoint"] = map_endpoint(data.get("endpoint_type")) + row["benchmark_mode"] = "streaming" + # 3.5 has no response_format in bench JSON; WAV is the server default. + row["response_format"] = "wav" + row["tokenizer_override"] = tokenizer_override(model, data.get("tokenizer_id")) + row["status"] = "valid" + + dataset = dataset_for_task(task_type) + row["dataset"] = dataset + row["locale"] = locale_for(dataset, task_type) + row["concurrency"] = concurrency + row["measured_concurrency"] = as_text(data.get("max_concurrent_requests")) + + apply_metrics(row, data, source_row, "3.5") + row["short_window"] = short_window_flag(row["duration_s"]) + apply_stages(row, data) + row["notes"] = build_notes("3.5", True, row["short_window"]) + apply_audio_output( + row, data, "3.5", "", DEFAULT_AUDIO_SAMPLE_RATE, row["response_format"] + ) + rows.append(row) + return rows + + +# --------------------------------------------------------------------------- +# Group 2: 3.6 base (CI + saturation) +# --------------------------------------------------------------------------- + + +def build_36(recipe_root, header): + metadata = load_json(os.path.join(recipe_root, Q36_META)) + defaults = metadata.get("defaults", {}) + patterns = metadata.get("patterns", []) + + source_paths = [] + ci_path = os.path.join(recipe_root, Q36_CI_JSON) + if os.path.isfile(ci_path): + source_paths.append(ci_path) + source_paths.extend(sorted(glob.glob(os.path.join(recipe_root, Q36_SAT_GLOB)))) + + rows = [] + for json_path in source_paths: + data = load_json(json_path) + relative_path = os.path.normpath(os.path.relpath(json_path, recipe_root)) + pattern = match_pattern(patterns, recipe_root, json_path) + + concurrency = concurrency_str( + pick(data.get("max_concurrency"), defaults.get("concurrency")) + ) + phase = "ci" if "/ci/" in relative_path.replace(os.sep, "/") else "saturation" + profile = "default" + + model = as_text(pick(data.get("model_id"), defaults.get("model"))) + runtime_version = as_text(defaults.get("runtime_version")) + task_type = normalize_task_type(defaults.get("task_type")) + if not task_type: + task_type = "voice_clone" + + run_name_template = as_text(pattern.get("run_name_template")) + if run_name_template: + try: + run_name = run_name_template.format(concurrency=concurrency) + except (KeyError, IndexError, ValueError): + run_name = run_name_template + else: + run_name = f"qwen3-tts-base-36ga_saturation_c{concurrency}" + + mlflow_run_id = as_text(pattern.get("mlflow_run_id")) + if not mlflow_run_id: + by_concurrency = pattern.get("mlflow_run_id_by_concurrency") or {} + mlflow_run_id = as_text(by_concurrency.get(concurrency)) + + extra_body = defaults.get("extra_body_json") + response_format = response_format_from_extra_body(extra_body) + response_format_inferred = not response_format + if not response_format: + response_format = "wav" + + log_dir = as_text(pattern.get("bench_log_dir")) + log_path = find_log( + json_path, os.path.join(recipe_root, log_dir) if log_dir else "" + ) + sample_rate = pick( + defaults.get("audio_sample_rate_hz"), DEFAULT_AUDIO_SAMPLE_RATE + ) + + row = new_row(header) + row["run_key"] = "__".join( + [ + slug(model), + runtime_version, + profile, + task_type, + "c" + concurrency, + phase, + ] + ) + row["run_name"] = run_name + row["timestamp_utc"] = normalize_timestamp(data.get("date"), json_path) + row["cluster"] = "hera" + row["deployment_uuid"] = as_text(pattern.get("deployment_uuid")) + row["mlflow_run_id"] = mlflow_run_id + row["source_file"] = relative_path + + row["model"] = model + row["runtime_version"] = runtime_version + row["image_tag"] = as_text(defaults.get("image_tag")) + row["accelerator"] = as_text(defaults.get("accelerator")) + row["gpu_count"] = as_text(pick(defaults.get("gpu_count"), "1")) + row["tp"] = as_text(pick(defaults.get("tp"), "1")) + + row["modality"] = "audio" + row["input_modality"] = "text" + row["output_modality"] = "audio" + row["task_type"] = task_type + row["profile"] = profile + row["experiment_phase"] = phase + row["benchmark_tool"] = as_text( + pick(defaults.get("benchmark_tool"), "vllm-omni-bench-serve") + ) + row["load_generator"] = as_text( + pick(defaults.get("load_generator"), DEFAULT_LOAD_GENERATOR) + ) + row["api_endpoint"] = map_endpoint(data.get("endpoint_type")) + row["benchmark_mode"] = "streaming" + row["response_format"] = response_format + row["tokenizer_override"] = tokenizer_override(model, data.get("tokenizer_id")) + row["status"] = "valid" + + dataset = as_text(pick(defaults.get("dataset"), dataset_for_task(task_type))) + row["dataset"] = dataset + row["locale"] = as_text( + pick(defaults.get("locale"), locale_for(dataset, task_type)) + ) + row["concurrency"] = concurrency + row["measured_concurrency"] = as_text(data.get("max_concurrent_requests")) + + apply_metrics(row, data, None, "3.6") + row["short_window"] = short_window_flag(row["duration_s"]) + apply_stages(row, data) + row["notes"] = build_notes("3.6", response_format_inferred, row["short_window"]) + apply_audio_output( + row, data, "3.6", log_path, sample_rate, row["response_format"] + ) + rows.append(row) + return rows + + +# --------------------------------------------------------------------------- +# Group 3: 3.6 Athena +# --------------------------------------------------------------------------- + + +def build_athena(recipe_root, header, mlflow_index=None): + metadata = load_json(os.path.join(recipe_root, ATHENA_META)) + defaults = metadata.get("defaults", {}) + patterns = metadata.get("patterns", []) + + rows = [] + for source_row in read_csv_rows(os.path.join(recipe_root, ATHENA_CSV)): + model = as_text(source_row.get("model")) + if not model.startswith(QWEN_TTS_PREFIX): + continue + + relative_path = os.path.normpath(as_text(source_row.get("source_file"))) + json_path = os.path.join(recipe_root, relative_path) + data = load_json(json_path) + json_dir = os.path.dirname(json_path) + cell_meta = load_json(os.path.join(json_dir, "cell_meta.json")) + run_meta = load_json(os.path.join(json_dir, "run_meta.json")) + + run_config = run_meta.get("config") or {} + model_config = run_config.get("model") or {} + benchmark_config = run_config.get("benchmark") or {} + + task_type = normalize_task_type( + pick(cell_meta.get("task_type"), source_row.get("task_type")) + ) + runtime_version = as_text( + pick(cell_meta.get("version"), source_row.get("version")) + ) + profile = as_text(pick(cell_meta.get("profile"), source_row.get("profile"))) + concurrency = concurrency_str( + pick(data.get("max_concurrency"), source_row.get("concurrency")) + ) + phase = "matrix" + + run_dir = os.path.basename(os.path.dirname(os.path.dirname(relative_path))) + run_name = f"{run_dir}-{profile}_c{concurrency}" + + model_id = as_text( + pick(data.get("model_id"), source_row.get("model"), cell_meta.get("model")) + ) + + pattern = match_pattern(patterns, recipe_root, json_path) + mlflow_run_id = "" + by_concurrency = pattern.get("mlflow_run_id_by_concurrency") or {} + if by_concurrency: + mlflow_run_id = as_text(by_concurrency.get(concurrency)) + if not mlflow_run_id: + mlflow_run_id = as_text(pattern.get("mlflow_run_id")) + deployment_uuid = as_text( + pick(cell_meta.get("deployment_uuid"), run_meta.get("deployment_uuid")) + ) + if not mlflow_run_id: + mlflow_run_id = mlflow_run_id_for( + mlflow_index, run_name, deployment_uuid, concurrency + ) + + response_format = response_format_from_extra_body(cell_meta.get("extra_body")) + if not response_format: + response_format = response_format_from_extra_body( + benchmark_config.get("extra_body") + ) + response_format_inferred = not response_format + if not response_format: + response_format = "wav" + + dataset = as_text(pick(cell_meta.get("dataset"), source_row.get("dataset"))) + sample_rate = pick( + defaults.get("audio_sample_rate_hz"), DEFAULT_AUDIO_SAMPLE_RATE + ) + log_path = find_log(json_path) + + row = new_row(header) + row["run_key"] = "__".join( + [ + slug(model_id), + runtime_version, + profile, + task_type, + "c" + concurrency, + phase, + ] + ) + row["run_name"] = run_name + row["timestamp_utc"] = normalize_timestamp( + pick(run_meta.get("started_at"), data.get("date")), json_path + ) + row["cluster"] = "athena" + row["deployment_uuid"] = deployment_uuid + row["mlflow_run_id"] = mlflow_run_id + row["source_file"] = relative_path + + row["model"] = model_id + row["runtime_version"] = runtime_version + row["image_tag"] = strip_image_digest(cell_meta.get("image")) + row["accelerator"] = as_text(cell_meta.get("gpu_model")) + row["gpu_count"] = as_text(pick(cell_meta.get("gpu_count"), "1")) + row["tp"] = as_text(pick(model_config.get("tp"), "1")) + + row["modality"] = "audio" + row["input_modality"] = "text" + row["output_modality"] = "audio" + row["task_type"] = task_type + row["profile"] = profile + row["experiment_phase"] = phase + row["benchmark_tool"] = as_text( + pick(defaults.get("benchmark_tool"), "vllm-omni-bench-serve") + ) + row["load_generator"] = as_text( + pick(defaults.get("load_generator"), DEFAULT_LOAD_GENERATOR) + ) + row["api_endpoint"] = map_endpoint(data.get("endpoint_type")) + row["benchmark_mode"] = "streaming" + row["response_format"] = response_format + row["tokenizer_override"] = tokenizer_override( + model_id, data.get("tokenizer_id") + ) + # Every included Athena point has completed == num_prompts and failed == 0. + row["status"] = "valid" + + row["dataset"] = dataset + row["locale"] = locale_for(dataset, task_type) + row["concurrency"] = concurrency + row["measured_concurrency"] = as_text(data.get("max_concurrent_requests")) + + apply_metrics(row, data, source_row, "athena") + row["short_window"] = short_window_flag(row["duration_s"]) + apply_stages(row, data) + row["notes"] = build_notes( + "athena", response_format_inferred, row["short_window"] + ) + apply_audio_output( + row, data, "athena", log_path, sample_rate, row["response_format"] + ) + rows.append(row) + return rows + + +# --------------------------------------------------------------------------- +# CLI +# --------------------------------------------------------------------------- + + +def dashboard_repo_root(): + return os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + + +def usage(): + return __doc__.strip() + + +def parse_args(argv): + recipe_root = DEFAULT_RECIPE_ROOT + output = "" + template = "" + mlflow_runs_json = "" + + index = 1 + while index < len(argv): + argument = argv[index] + if argument in ("-h", "--help"): + print(usage()) + raise SystemExit(0) + + name = argument + value = None + if argument.startswith("--") and "=" in argument: + name, value = argument.split("=", 1) + elif argument in ( + "--recipe-root", + "--output", + "--template", + "--mlflow-runs-json", + ): + if index + 1 >= len(argv): + raise SystemExit(f"Missing value for {argument}") + value = argv[index + 1] + index += 1 + else: + raise SystemExit(f"Unknown argument: {argument}") + + if name == "--recipe-root": + recipe_root = value + elif name == "--output": + output = value + elif name == "--template": + template = value + elif name == "--mlflow-runs-json": + mlflow_runs_json = value + else: + raise SystemExit(f"Unknown argument: {name}") + index += 1 + + repo_root = dashboard_repo_root() + if not output: + output = os.path.join(repo_root, OUTPUT_REL) + if not template: + template = os.path.join(repo_root, TEMPLATE_REL) + + return ( + os.path.abspath(os.path.expanduser(recipe_root)), + os.path.abspath(os.path.expanduser(output)), + os.path.abspath(os.path.expanduser(template)), + ( + os.path.abspath(os.path.expanduser(mlflow_runs_json)) + if mlflow_runs_json + else "" + ), + ) + + +def read_header(template_path): + if not os.path.isfile(template_path): + raise SystemExit(f"Template not found: {template_path}") + with open(template_path, encoding="utf-8", newline="") as handle: + reader = csv.reader(handle) + header = next(reader, None) + if not header: + raise SystemExit(f"Template has no header: {template_path}") + return header + + +def main(argv): + recipe_root, output_path, template_path, mlflow_runs_json = parse_args(argv) + header = read_header(template_path) + if len(header) != 76: + raise SystemExit( + f"Template must have 76 columns, found {len(header)}: {template_path}" + ) + + mlflow_index = load_mlflow_index(mlflow_runs_json) + legacy_rows = build_35(recipe_root, header) + base_rows = build_36(recipe_root, header) + athena_rows = build_athena(recipe_root, header, mlflow_index) + rows = legacy_rows + base_rows + athena_rows + + for row in rows: + if "Voxtral" in row.get("model", "") or "OmniVoice" in row.get("model", ""): + raise SystemExit( + "Out-of-scope model leaked into output: {}".format(row.get("model")) + ) + + seen = set() + duplicates = [] + for row in rows: + key = row.get("run_key", "") + if key in seen: + duplicates.append(key) + seen.add(key) + if duplicates: + raise SystemExit(f"Duplicate run_key values: {sorted(set(duplicates))}") + + missing_required = [] + for row in rows: + for column in REQUIRED_COLUMNS: + if not row.get(column): + missing_required.append((row.get("run_key", ""), column)) + if missing_required: + raise SystemExit( + f"Required dashboard columns are blank: {missing_required[:10]}" + ) + + output_dir = os.path.dirname(output_path) + if output_dir and not os.path.isdir(output_dir): + os.makedirs(output_dir) + + with open(output_path, "w", encoding="utf-8", newline="") as handle: + writer = csv.DictWriter( + handle, fieldnames=header, extrasaction="ignore", restval="" + ) + writer.writeheader() + for row in rows: + writer.writerow({column: row.get(column, "") for column in header}) + + print(f"3.5 legacy rows: {len(legacy_rows)}") + print(f"3.6 base rows: {len(base_rows)}") + print(f"3.6 Athena rows: {len(athena_rows)}") + print(f"total rows: {len(rows)}") + print(f"columns: {len(header)}") + print(f"duplicate run_key:{len(duplicates)}") + print(f"written: {output_path}") + return 0 + + +if __name__ == "__main__": + raise SystemExit(main(sys.argv)) diff --git a/omni_dashboard.py b/omni_dashboard.py index df7f279..c65c97d 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -40,6 +40,9 @@ AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") MLFLOW_TRACKING_URI = os.environ.get("MLFLOW_TRACKING_URI", "") +MLFLOW_BASE_URL = os.environ.get("MLFLOW_BASE_URL", MLFLOW_TRACKING_URI) +MLFLOW_WORKSPACE = os.environ.get("MLFLOW_WORKSPACE", "") +OMNI_MLFLOW_EXPERIMENT_ID = os.environ.get("OMNI_MLFLOW_EXPERIMENT_ID", "392") MLFLOW_LOG_ARTIFACT_PREFIX = os.environ.get("MLFLOW_LOG_ARTIFACT_PREFIX", "logs") OMNI_LOG_DIR = os.environ.get("OMNI_LOG_DIR", "datasets/omni/logs") S3_LOGS_BUCKET = os.environ.get("S3_LOGS_BUCKET", "") @@ -104,6 +107,52 @@ def _task_label(value: str) -> str: "concurrency_label", ] +# Default Filtered Data view. The full row stays available via the CSV download +# and the "Show all columns" toggle. +OMNI_DISPLAY_COLUMNS = [ + "model", + "runtime_version", + "mlflow_link", + "profile", + "task_type", + "dataset", + "concurrency", + "audio_ttfp_ms_p95", + "audio_rtf_p95", + "audio_underrun_s_p95", + "audio_throughput_x", + "e2el_ms_p95", + "duration_s", + "successful_requests", + "errored_requests", + "status", +] + + +def _display_frame(frame: pd.DataFrame) -> pd.DataFrame: + columns = [column for column in OMNI_DISPLAY_COLUMNS if column in frame.columns] + return frame[columns] if columns else frame + + +def _mlflow_link(row: pd.Series): + run_id = str(row.get("mlflow_run_id") or "").strip() + if not run_id or run_id.lower() in ("nan", "none") or not MLFLOW_BASE_URL: + return None + return ( + f"{MLFLOW_BASE_URL}/#/experiments/{OMNI_MLFLOW_EXPERIMENT_ID}" + f"/runs/{run_id}/artifacts?workspace={MLFLOW_WORKSPACE}" + ) + + +def _link_column_config(frame: pd.DataFrame): + if "mlflow_link" not in frame.columns: + return None + return { + "mlflow_link": st.column_config.LinkColumn( + "MLflow", help="Open this run in MLflow", display_text="View Run 🧪" + ) + } + OMNI_METRICS = { "Request throughput (req/s)": "request_throughput_rps", "Audio throughput (audio-s/s)": "audio_throughput_x", @@ -129,6 +178,14 @@ def _task_label(value: str) -> str: "Model": "model", } + +def _available_metrics(frame: pd.DataFrame) -> dict: + return { + label: column + for label, column in OMNI_METRICS.items() + if column in frame.columns and frame[column].notna().any() + } + COMPARE_STATISTICS = ["Mean", "Median", "P95", "P99"] COMPARE_METRIC_FAMILIES = { @@ -256,30 +313,10 @@ def _task_label(value: str) -> str: ] COMPARE_FLAT_THRESHOLD_PCT = 1.0 -# Same navigation groups/labels as the RHAIIS shell. Pages that are not yet -# implemented for Omni render a clear placeholder rather than disappearing. OMNI_NAV_GROUPS = [ - ("Dashboard", ["🏠 Overview", "🔍 Competitive Analysis"]), + ("Dashboard", ["🏠 Overview"]), ("Performance Analysis", ["📊 Performance Plots", "⚖️ Compare Versions"]), - ( - "Insights", - [ - "📈 Performance Trends", - "💰 Cost Analysis", - "🏆 Model Performance Comparison", - "🌱 Energy Computation", - ], - ), - ( - "Tools", - [ - "💡 IntelliConfig", - "🔄 Pareto Tradeoff Analysis", - "⚙️ Runtime Server Configs", - "📋 View Logs", - "📄 Filtered Data", - ], - ), + ("Tools", ["📋 View Logs", "📄 Filtered Data"]), ] @@ -351,6 +388,7 @@ def _conc_label(value): df["model"].astype(str) + " | " + df["runtime_version"].astype(str) + " | " + df["load_generator"].astype(str) ) + df["mlflow_link"] = df.apply(_mlflow_link, axis=1) return df @@ -851,12 +889,16 @@ def _performance_plots(df: pd.DataFrame): x_label = st.selectbox( "Select X-Axis", list(OMNI_X_AXES), key="omni_perf_x_axis" ) + metrics = _available_metrics(df) + if not metrics: + st.warning("No metrics with data are available for the current filters.") + return with col2: y_label = st.selectbox( - "Select Y-Axis", list(OMNI_METRICS), key="omni_perf_y_axis" + "Select Y-Axis", list(metrics), key="omni_perf_y_axis" ) x_axis = OMNI_X_AXES[x_label] - y_axis = OMNI_METRICS[y_label] + y_axis = metrics[y_label] sub = df.dropna(subset=[x_axis, y_axis]).copy() if x_axis == "concurrency": @@ -959,10 +1001,12 @@ def _clear_comparison(): st.subheader("📄 Filtered Data for Plot Lines") st.caption("The table shows the source rows for the selected plot lines.") if selected_lines: + selected_view = _display_frame(sub[sub["series"].isin(selected_lines)]) st.dataframe( - sub[sub["series"].isin(selected_lines)], + selected_view, use_container_width=True, hide_index=True, + column_config=_link_column_config(selected_view), ) if st.button( "Clear comparison", key="omni_perf_clear", on_click=_clear_comparison @@ -1678,7 +1722,14 @@ def _load_generators(frame: pd.DataFrame) -> set: def _filtered_data(df: pd.DataFrame): st.subheader("📄 Filtered Data") - st.dataframe(df, use_container_width=True, hide_index=True) + show_all = st.toggle("Show all columns", value=False, key="omni_filtered_show_all") + view = df if show_all else _display_frame(df) + st.dataframe( + view, + use_container_width=True, + hide_index=True, + column_config=_link_column_config(view), + ) st.download_button( "Download filtered CSV", data=df.to_csv(index=False).encode("utf-8"), @@ -1687,11 +1738,6 @@ def _filtered_data(df: pd.DataFrame): ) -def _placeholder(section: str): - st.subheader(section) - st.info("This section is not implemented for Omni yet.") - - def _render_section(section: str, df: pd.DataFrame): if section == "🏠 Overview": _overview(df) @@ -1715,15 +1761,13 @@ def _render_section(section: str, df: pd.DataFrame): st.warning("No rows match the current filters.") return _view_logs(filtered) - else: - _placeholder(section) def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv"): csv_path = os.environ.get("OMNI_CSV_PATH", csv_path) st.header("vLLM-Omni Performance") st.caption( - "Speech-in, speech-out, and text benchmarks. Overview is the default page; " + "Speech-out (TTS) benchmarks. Overview is the default page; " "Performance Plots uses the RHAIIS filter and chart layout." ) section = _render_sidebar_nav() From 4757e3b0fb1de28fb125c700691434a28ecc2ec3 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 17:20:16 -0500 Subject: [PATCH 40/74] Allow default dashboard view override Lets a local staging run open the Omni view directly via DEFAULT_DASHBOARD_VIEW instead of always starting on RHAIIS. Co-Authored-By: Claude Code --- dashboard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dashboard.py b/dashboard.py index f51a2d4..960fd7d 100644 --- a/dashboard.py +++ b/dashboard.py @@ -190,6 +190,7 @@ def _render_methodology_note(versions): S3_LOGS_PREFIX = os.environ.get("S3_LOGS_PREFIX", "logs/") MLFLOW_BASE_URL = os.environ.get("MLFLOW_BASE_URL", "") MLFLOW_WORKSPACE = os.environ.get("MLFLOW_WORKSPACE", "forge-rhaiis") +DEFAULT_DASHBOARD_VIEW = os.environ.get("DEFAULT_DASHBOARD_VIEW", "RHAIIS Dashboard") # ── Overview version configuration (single source of truth) ────── @@ -12421,7 +12422,9 @@ def render_sidebar_header(): # Pre-populate the widget key so we never need the `index` # param (which can conflict with the key and eat the first click). if "dashboard_view_selector" not in st.session_state: - current_view = st.session_state.get("selected_view", "RHAIIS Dashboard") + current_view = st.session_state.get( + "selected_view", DEFAULT_DASHBOARD_VIEW + ) st.session_state.dashboard_view_selector = ( current_view if current_view in view_options else view_options[0] ) From 56f9c40155f39470330c15437e604615d9716ef5 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 17:24:11 -0500 Subject: [PATCH 41/74] Render missing Omni table cells as blanks Avoid showing None for unavailable 3.5 p95 values and for runs without an MLflow ID; populate View Run links only where a run ID exists. Co-Authored-By: Claude Code --- omni_dashboard.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index c65c97d..bca9494 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -137,13 +137,24 @@ def _display_frame(frame: pd.DataFrame) -> pd.DataFrame: def _mlflow_link(row: pd.Series): run_id = str(row.get("mlflow_run_id") or "").strip() if not run_id or run_id.lower() in ("nan", "none") or not MLFLOW_BASE_URL: - return None + return "" return ( f"{MLFLOW_BASE_URL}/#/experiments/{OMNI_MLFLOW_EXPERIMENT_ID}" f"/runs/{run_id}/artifacts?workspace={MLFLOW_WORKSPACE}" ) +def _blank_nan(frame: pd.DataFrame) -> pd.DataFrame: + """Render missing numeric cells as blanks instead of 'None'.""" + display = frame.copy() + for column in display.columns: + if pd.api.types.is_float_dtype(display[column]): + display[column] = display[column].astype(object).where( + display[column].notna(), "" + ) + return display + + def _link_column_config(frame: pd.DataFrame): if "mlflow_link" not in frame.columns: return None @@ -1001,7 +1012,9 @@ def _clear_comparison(): st.subheader("📄 Filtered Data for Plot Lines") st.caption("The table shows the source rows for the selected plot lines.") if selected_lines: - selected_view = _display_frame(sub[sub["series"].isin(selected_lines)]) + selected_view = _blank_nan( + _display_frame(sub[sub["series"].isin(selected_lines)]) + ) st.dataframe( selected_view, use_container_width=True, @@ -1723,7 +1736,7 @@ def _load_generators(frame: pd.DataFrame) -> set: def _filtered_data(df: pd.DataFrame): st.subheader("📄 Filtered Data") show_all = st.toggle("Show all columns", value=False, key="omni_filtered_show_all") - view = df if show_all else _display_frame(df) + view = _blank_nan(df if show_all else _display_frame(df)) st.dataframe( view, use_container_width=True, From 5381f057aec971d9902266b452c853316ab41aab Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 17:32:02 -0500 Subject: [PATCH 42/74] Match RHAIIS duplicate-run styling in Omni plots Build one trace per deployment, share colors per configuration, dash non-default profiles, dot repeated deployments, fade CI repeats, and add the repeated-configuration color/shape controls. Co-Authored-By: Claude Code --- omni_dashboard.py | 244 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 223 insertions(+), 21 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index bca9494..07e9668 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -6,6 +6,7 @@ RHAIIS sidebar navigation shell. """ +import hashlib import logging import os import re @@ -20,6 +21,12 @@ import plotly.io as pio import streamlit as st +from dashboard_taxonomy import ( + MARKER_SYMBOLS, + add_trace_metadata, + deterministic_color_map, +) + if "plotly_white_light" not in pio.templates: pio.templates["plotly_white_light"] = pio.templates["plotly_white"] pio.templates.default = "plotly_white_light" @@ -100,11 +107,33 @@ def _task_label(value: str) -> str: return TASK_TYPE_LABELS.get(str(value), str(value)) + +def _omni_legend_label(row: pd.Series) -> str: + label = " | ".join( + [ + str(row.get("model_short") or row.get("model") or "?"), + str(row.get("runtime_version") or "?"), + str(row.get("profile") or "?"), + str(row.get("experiment_phase") or "?"), + _task_label(row.get("task_type")), + str(row.get("dataset") or "?"), + ] + ) + uuid = str(row.get("uuid") or "").strip() + if uuid and row.get("line_style") in ("dot", "dashdot"): + label += " | run " + uuid[:8] + return label + PLOT_CUSTOM_DATA = [ - "model", + "accelerator", + "model_short", "runtime_version", - "load_generator", - "concurrency_label", + "profile", + "task_type", + "dataset", + "concurrency", + "deployment_uuid", + "experiment_phase", ] # Default Filtered Data view. The full row stays available via the CSV download @@ -944,53 +973,225 @@ def _performance_plots(df: pd.DataFrame): st.info(f"No data available for '{y_label}' with these filters.") return + # One trace per deployment. Configurations share a color; a non-default + # profile is dashed, and repeated deployments are dotted/dash-dot with + # CI repeats faded, matching the RHAIIS duplicate-run treatment. + sub["model_short"] = sub["model"].astype(str).str.split("/").str[-1] + sub["version"] = sub["runtime_version"] + sub["TP"] = pd.to_numeric(sub["tp"], errors="coerce") + sub["uuid"] = sub["deployment_uuid"].fillna("").astype(str).str.strip() + sub["run_identifier"] = ( + sub["accelerator"].fillna("?").astype(str) + + " | " + + sub["model_short"] + + " | " + + sub["profile"].fillna("?").astype(str) + + " | " + + sub["runtime_version"].fillna("?").astype(str) + + " | " + + sub["task_type"].fillna("?").astype(str) + + " | " + + sub["dataset"].fillna("?").astype(str) + ) + sub["runtime_args"] = ( + "profile=" + + sub["profile"].fillna("").astype(str) + + ";response_format=" + + sub["response_format"].fillna("").astype(str) + + ";image=" + + sub["image_tag"].fillna("").astype(str) + + ";tokenizer_override=" + + sub["tokenizer_override"].fillna("").astype(str) + ) + sub = add_trace_metadata( + sub, + series_column="run_identifier", + legend_options={ + "include_accelerator": True, + "include_model": True, + "include_profile": True, + "include_label": False, + "include_tp": True, + "include_dp": False, + }, + ) + is_non_default_profile = ( + sub["profile"].fillna("").astype(str).str.lower().ne("default") + ) + sub.loc[is_non_default_profile & sub["line_style"].eq("solid"), "line_style"] = ( + "dash" + ) + sub.loc[is_non_default_profile & sub["line_style"].eq("dot"), "line_style"] = ( + "dashdot" + ) + repeated = sub["line_style"].isin(["dot", "dashdot"]) & sub["uuid"].ne("") + sub.loc[repeated, "line_opacity"] = 1.0 + sub.loc[repeated & sub["experiment_phase"].eq("ci"), "line_opacity"] = 0.45 + sub["legend_label"] = sub.apply(_omni_legend_label, axis=1) + + default_color_map = deterministic_color_map(sub["run_identifier"]) + default_shape_map = dict.fromkeys( + sorted(sub["run_identifier"].unique()), "circle" + ) + custom_colors = dict(st.session_state.get("omni_perf_custom_colors", {})) + custom_shapes = { + key: value + for key, value in st.session_state.get("omni_perf_custom_shapes", {}).items() + if value in MARKER_SYMBOLS + } + customizable_series = sorted( + sub.loc[ + sub["line_style"].isin(["dot", "dashdot"]), "run_identifier" + ].unique() + ) + fig = px.line( - sub.sort_values([x_axis, "series"]), + sub.sort_values([x_axis, "trace_label"]), x=x_axis, y=y_axis, - color="series", + color="trace_label", markers=True, title=f"{y_label} vs {x_label}", - labels={x_axis: x_label, y_axis: y_label, "series": "Run"}, + labels={x_axis: x_label, y_axis: y_label, "trace_label": "Run"}, custom_data=PLOT_CUSTOM_DATA, template="plotly_white_light", + category_orders={"trace_label": sub["trace_label"].unique().tolist()}, ) for trace in fig.data: + trace_rows = sub[sub["trace_label"] == trace.name] + if trace_rows.empty: + continue + first = trace_rows.iloc[0] + color = custom_colors.get( + first["run_identifier"], default_color_map[first["run_identifier"]] + ) + trace.meta = first["trace_label"] + trace.name = first["legend_label"] + trace.line.color = color + trace.line.dash = first["line_style"] trace.line.width = 2 trace.marker.size = 10 + trace.marker.symbol = custom_shapes.get( + first["run_identifier"], default_shape_map[first["run_identifier"]] + ) + trace.marker.color = color trace.marker.line = {"width": 1, "color": "white"} + trace.opacity = float(first["line_opacity"]) + trace.legendgroup = first["run_identifier"] trace.hovertemplate = ( f"{x_label}: %{{x}}
" f"{y_label}: %{{y}}
" - "Model: %{customdata[0]}
" - "Version: %{customdata[1]}
" - "Load generator: %{customdata[2]}
" - "Concurrency: %{customdata[3]}" + "Accelerator: %{customdata[0]}
" + "Model: %{customdata[1]}
" + "Version: %{customdata[2]}
" + "Profile: %{customdata[3]}
" + "Task: %{customdata[4]}
" + "Dataset: %{customdata[5]}
" + "Concurrency: %{customdata[6]}
" + "Phase: %{customdata[8]}
" + "UUID: %{customdata[7]}" ) fig.update_layout( hovermode="closest", - legend_title_text="Run Details (Model | Version | Load generator)", + legend_title_text=( + "Run Details (Accelerator | Model | Version | Profile | Task | Dataset | TP)" + ), + legend={"font": {"size": 12}, "itemwidth": 42}, height=560, - margin={"l": 80, "r": 250, "t": 110, "b": 60}, - title={"font": {"size": 18}, "x": 0.02, "xanchor": "left", "y": 0.94, "yanchor": "top"}, + margin={"l": 80, "r": 320, "t": 110, "b": 60}, + title={ + "font": {"size": 18}, + "x": 0.02, + "xanchor": "left", + "y": 0.94, + "yanchor": "top", + }, ) - series_options = sorted(sub["series"].unique()) + if customizable_series: + with st.expander("🎨 Customize", expanded=False): + st.caption( + "Repeated deployments use dotted (or dash-dot for a non-default " + "profile) lines. Choose a shared color and marker shape for a " + "repeated configuration." + ) + series_labels = { + key: sub.loc[sub["run_identifier"] == key, "legend_label"] + .iloc[0] + .split(" | run ", 1)[0] + for key in customizable_series + } + selected_series = st.selectbox( + "Repeated configuration", + customizable_series, + format_func=lambda key: series_labels[key], + key="omni_perf_customize_series", + ) + color_key = "omni_perf_color_" + hashlib.sha1( + selected_series.encode() + ).hexdigest()[:10] + shape_key = "omni_perf_shape_" + hashlib.sha1( + selected_series.encode() + ).hexdigest()[:10] + selected_color = st.color_picker( + "Line color", + custom_colors.get( + selected_series, default_color_map[selected_series] + ), + key=color_key, + ) + current_shape = custom_shapes.get(selected_series, "circle") + selected_shape = st.selectbox( + "Marker shape", + MARKER_SYMBOLS, + index=( + MARKER_SYMBOLS.index(current_shape) + if current_shape in MARKER_SYMBOLS + else 0 + ), + key=shape_key, + ) + custom_colors[selected_series] = selected_color + custom_shapes[selected_series] = selected_shape + st.session_state["omni_perf_custom_colors"] = custom_colors + st.session_state["omni_perf_custom_shapes"] = custom_shapes + for trace in fig.data: + trace_rows = sub[sub["trace_label"] == trace.meta] + if trace_rows.empty: + continue + first = trace_rows.iloc[0] + if first["run_identifier"] != selected_series: + continue + trace.line.color = selected_color + trace.marker.color = selected_color + trace.marker.symbol = selected_shape + + trace_labels = ( + sub.drop_duplicates("trace_label") + .set_index("trace_label")["legend_label"] + .to_dict() + ) + series_options = sorted(sub["trace_label"].unique()) if "omni_perf_lines" in st.session_state: st.session_state["omni_perf_lines"] = [ - line for line in st.session_state["omni_perf_lines"] if line in series_options + line + for line in st.session_state["omni_perf_lines"] + if line in series_options ] selected_lines = st.multiselect( - "Plot lines to compare", series_options, key="omni_perf_lines" + "Plot lines to compare", + series_options, + key="omni_perf_lines", + format_func=lambda key: trace_labels.get(key, key), ) def _merge_plot_selection(): points = st.session_state["omni_perf_chart"]["selection"]["points"] merged = set(st.session_state.get("omni_perf_lines", [])) for point in points or []: - custom = point.get("customdata") if isinstance(point, dict) else [] - if custom and len(custom) >= 3: - merged.add(f"{custom[0]} | {custom[1]} | {custom[2]}") + curve = point.get("curveNumber") if isinstance(point, dict) else None + if curve is not None and 0 <= curve < len(fig.data): + merged.add(fig.data[curve].meta or fig.data[curve].name) st.session_state["omni_perf_lines"] = sorted(merged) def _clear_comparison(): @@ -1006,14 +1207,15 @@ def _clear_comparison(): ) st.caption( "Click points, or box/lasso-select an area, to add lines to the comparison. " - "You can also choose lines below." + "Dashed = non-default profile; dotted/dash-dot = repeated deployment; " + "faded dots = smoke/CI repeats. You can also choose lines below." ) st.subheader("📄 Filtered Data for Plot Lines") st.caption("The table shows the source rows for the selected plot lines.") if selected_lines: selected_view = _blank_nan( - _display_frame(sub[sub["series"].isin(selected_lines)]) + _display_frame(sub[sub["trace_label"].isin(selected_lines)]) ) st.dataframe( selected_view, From 8206aa5261a8aa5fa2bddd8b1df2173fec0adc0c Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 17:55:34 -0500 Subject: [PATCH 43/74] Add runtime args, persistent filters, and overview design Expose resolved deployment args in the 77-column CSV and Performance Plots hover, simplify the legend to model/version/task/dataset/TP, persist Omni filters in URL query params across sections and refreshes, and add the Overview redesign proposal. Co-Authored-By: Claude Code --- ...nsolidated_dashboard_omni_tts_template.csv | 2 +- docs/omni-dashboard.md | 9 + docs/omni-overview-redesign.md | 196 +++++++++++++++++ docs/omni-tts-column-sources.md | 33 ++- manual_runs/scripts/build_omni_tts_csv.py | 38 +++- omni_dashboard.py | 205 ++++++++++++------ 6 files changed, 408 insertions(+), 75 deletions(-) create mode 100644 docs/omni-overview-redesign.md diff --git a/datasets/omni/consolidated_dashboard_omni_tts_template.csv b/datasets/omni/consolidated_dashboard_omni_tts_template.csv index 4bae872..295041f 100644 --- a/datasets/omni/consolidated_dashboard_omni_tts_template.csv +++ b/datasets/omni/consolidated_dashboard_omni_tts_template.csv @@ -1 +1 @@ -run_key,run_name,timestamp_utc,cluster,deployment_uuid,mlflow_run_id,source_file,model,runtime_version,image_tag,accelerator,gpu_count,tp,modality,input_modality,output_modality,task_type,profile,experiment_phase,benchmark_tool,load_generator,api_endpoint,benchmark_mode,response_format,tokenizer_override,status,dataset,locale,num_prompts,request_rate,concurrency,measured_concurrency,short_window,duration_s,successful_requests,errored_requests,e2el_ms_mean,e2el_ms_median,e2el_ms_p95,e2el_ms_p99,request_throughput_rps,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,notes,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,num_audio_ttfp_samples,num_audio_rtf_samples,missing_audio_duration_count,audio_channels,audio_bits_per_sample,audio_codec,audio_underrun_threshold_s +run_key,run_name,timestamp_utc,cluster,deployment_uuid,mlflow_run_id,source_file,model,runtime_version,image_tag,accelerator,gpu_count,tp,modality,input_modality,output_modality,task_type,profile,runtime_args,experiment_phase,benchmark_tool,load_generator,api_endpoint,benchmark_mode,response_format,tokenizer_override,status,dataset,locale,num_prompts,request_rate,concurrency,measured_concurrency,short_window,duration_s,successful_requests,errored_requests,e2el_ms_mean,e2el_ms_median,e2el_ms_p95,e2el_ms_p99,request_throughput_rps,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,notes,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,num_audio_ttfp_samples,num_audio_rtf_samples,missing_audio_duration_count,audio_channels,audio_bits_per_sample,audio_codec,audio_underrun_threshold_s diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index d1b5340..93f2ae7 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -90,6 +90,15 @@ Four changes take the working table from 165 to roughly 46 + metric files: 3. **GPU metrics stay in Grafana.** Drop `gpu_util_*`, `gpu_mem_used_mean_mb`, `gpu_power_mean_w`, `gpu_temp_max_c` from the CSV. 4. **Config columns become one `runtime_args` column**, the way RHAIIS displays launch args. Drop `gpu_memory_utilization`, `max_num_seqs`, `max_num_batched_tokens`, and `resolved_config_json` as separate columns. +**Current staged rollout:** one 77-column CSV = 49 run/core columns (identity 7, +model/runtime 7, task/protocol 13, workload 7, outcome 8, stage 6, notes 1) + +28 audio-output columns. `runtime_args` carries `gpu-mem`, `max-seqs`, and +`max-batched-tokens`. Performance Plots no longer show the profile or +experiment-phase labels; hover shows the resolved runtime args, and legend +labels end at `dataset | TP`. + +The 46-column split below remains the future target. + Proposed file set: | File | Columns | Purpose | diff --git a/docs/omni-overview-redesign.md b/docs/omni-overview-redesign.md new file mode 100644 index 0000000..59368f4 --- /dev/null +++ b/docs/omni-overview-redesign.md @@ -0,0 +1,196 @@ +# Omni Overview — redesign proposal + +Status: proposal for review. Scope: staged TTS-only dataset (117 Qwen3-TTS +rows, 4 models, 7 runtime versions, default/B8 configs). No code changed by +this document. + +## 1. What the RHAIIS Overview does + +### Genuinely useful + +- Frames the page as **current release vs previous release**, not a data dump. +- Three headline cards answer "is this release better?": best throughput gain, + worst regression, win rate. +- Coverage cards answer "what did we test?": models, accelerators, release + health. +- **Upstream parity** is a real product question: does the downstream build + match or beat the upstream vLLM release? +- "New in this release" is a useful one-line changelog. + +### Overwhelming + +- Nine or more cards before the first table: 3 KPI + 3 coverage + parity + scorecards + family cards + accelerator cards + "new in release". +- The accelerator dimension is repeated three times (parity, family, per- + accelerator) and is mostly irrelevant for a single-H200 Omni dataset. +- Dense HTML cards with 6-9 stats each; scanning takes minutes. +- Drill-down charts duplicate Performance Plots instead of linking to it. +- Per-model parity tables are useful for the owner, not for a glance. +- There is no clear "where do I go next?" path. + +Keep the release framing, one row of KPIs, coverage counts, and the upstream +parity idea. Drop the per-accelerator repetition, embedded charts, and dense +stat cards. + +## 2. Current Omni Overview + +Today it is four KPI tiles (rows, models, best request throughput, best audio +throughput) and a coverage table grouped by modality/task/load generator. + +Problems: + +- "Best throughput" can come from a short-window, CI, or legacy row, so it is + not a fair headline. +- No release framing, no SLO answer, no "what changed". +- The coverage table is an inventory, not an insight. +- No links into the real views. + +## 3. Three concepts + +### Concept A — Benchmark Status Board (recommended) + +``` +┌──────────────────────────────────────────────────────────────────────┐ +│ Omni Overview · Qwen3-TTS Latest: 3.6 GA │ +│ 4 models · 7 runtime versions · 117 benchmark points │ +├───────────────┬───────────────┬────────────────┬─────────────────────┤ +│ SLO knee │ Best audio │ 3.6 vs upstream│ Data health │ +│ c2 across │ throughput │ Δ throughput │ 57/117 MLflow │ +│ 4/6 profiles │ 43.8 audio-s/s│ +X % │ 53 short-window │ +│ [Open plots] │ [Open plots] │ [Compare] │ [Filtered data] │ +├───────────────┴───────────────┴────────────────┴─────────────────────┤ +│ SLO knee by configuration (p95 TTFP <500 ms · RTF <1 · underrun <100 ms) +│ Model Version Config Knee TTFP RTF Underrun │ +│ 1.7B-CustomVoice 3.6 GA default c2 ✅ ✅ ❌ 118 ms │ +│ 1.7B-CustomVoice 3.6 GA B8 c2 ✅ ✅ ❌ 115 ms │ +│ 1.7B-Base 3.6 GA default c2 ✅ ✅ ✅ 93 ms │ +│ ... │ +│ [Open Performance Plots with these filters] │ +├──────────────────────────────────────────────────────────────────────┤ +│ Upstream parity 3.6 GA vs v0.30 · 3.6 fast1 vs v0.26 │ +│ Throughput Δ · TTFP p95 Δ · RTF p95 Δ at c2/c64/c128 │ +│ [Open Compare Versions] │ +├──────────────────────────────────────────────────────────────────────┤ +│ Jump to: [Performance Plots] [Compare Versions] │ +│ [Filtered Data] [View Logs] │ +└──────────────────────────────────────────────────────────────────────┘ +``` + +Data: `concurrency`, `audio_ttfp_ms_p95`, `audio_rtf_p95`, +`audio_underrun_s_p95`, `audio_throughput_x`, `request_throughput_rps`, +`short_window`, `experiment_phase`, `runtime_version`, `profile`, `mlflow_run_id`. + +Pros: answers state, SLO, change, and data trust in one screen; no embedded +charts; every section links to the real view. +Cons: needs a knee calculation and a small amount of parity math. + +### Concept B — Release Readiness Scorecard + +``` +[Release pair selector: 3.6 GA vs 3.5 | 3.6 GA vs v0.30 | ...] +[Best gain] [Worst regression] [Win rate] [Health] +[Model x version matrix: green/yellow/red cells for tput / TTFP / RTF] +[Open Compare Versions] [Open Filtered Data] +``` + +Data: the same audio metrics, grouped by release pair. + +Pros: mirrors RHAIIS's familiar release-pair mental model. +Cons: less useful when the question is "what is the current state across all +data"; can drift back into RHAIIS-lite. + +### Concept C — SLO Knee Explorer + +``` +[SLO knee distribution: c1 | c2 | c4 | c8 | none] +[First failing gate: underrun 4 | TTFP 1 | RTF 1 | none 2] +[Gate matrix: model/version/config x c1..c128, ✅/❌ per gate] +[Click a row -> Performance Plots at that configuration] +``` + +Data: p95 audio metrics at every concurrency; `short_window` as a caveat. + +Pros: uniquely useful for capacity planning; not a chart preview. +Cons: hides the throughput-only story; more computation; 3.5 lacks p95 +underrun, so the matrix has "not measured" cells. + +## 4. Recommendation + +Ship **Concept A**, with Concept C's SLO knee table as the centerpiece. It is a +true overview: one row of KPIs, one SLO table, one parity strip, and four jump +cards. It avoids RHAIIS's repetition and embedded charts while keeping the +release-parity question. + +Phasing: + +1. KPI tiles + SLO knee table + jump cards + data-health expander. +2. Upstream parity strip (numbers), reusing the Compare Versions pair logic. +3. Optional: knee selector (c1/c2/c4/c8) and a "first failing gate" column. + +## 5. Links, not previews + +Every summary section must deep-link into the real view. The filter-persistence +work adds `omni_*` query params, which makes these links possible: + +| Destination | Query params | +|---|---| +| Performance Plots | `section=📊 Performance Plots`, `omni_models`, `omni_versions`, `omni_tasks`, `omni_datasets`, optional `omni_tp_sizes` | +| Compare Versions | `section=⚖️ Compare Versions`, `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat` | +| Filtered Data | `section=📄 Filtered Data`, the same `omni_*` filters | +| View Logs | `section=📋 View Logs`, `omni_models`, `omni_versions` | + +Implementation options: + +- A “View” button per SLO row that sets `section` + `omni_models`/`omni_versions` + and reruns. +- Jump cards as `st.button`s with `on_click` setting the section and params. +- Do not embed Plotly charts in Overview. If a chart is needed, link to + Performance Plots with the filters and metric preselected. + +Config-specific rows (default vs B8) currently have no profile filter. Add an +optional `omni_profiles` param and a small "Config" filter, or land on the +model/version and rely on the chart's dash/dot styles. + +## 6. Implementation plan + +Replace `_overview(df)` with: + +- `_overview_kpis(df)` — compute: + - `view = df[df["experiment_phase"] != "ci"]` + - SLO knee per `(model, runtime_version, profile, task_type, dataset)`: + largest `concurrency` where all measured p95 gates pass + (`audio_ttfp_ms_p95 < 500`, `audio_rtf_p95 < 1.0`, + `audio_underrun_s_p95 < 0.1`); treat blank gate values as "not measured". + - Best audio throughput from `short_window == false` rows. + - Data health: rows, MLflow coverage, short-window count, stage coverage. +- `_overview_slo_table(view)` — compact table: model, version, config, knee, + TTFP/RTF/underrun pass icons, first failing gate. Cap at one row per + configuration; sort by model/version/config. Add a "View in Performance + Plots" action. +- `_overview_parity(df)` — two release-pair summaries: 3.6 GA vs v0.30 and + 3.6 fast1 vs v0.26. Compute geometric-mean throughput delta and p95 + TTFP/RTF/underrun deltas at c2/c64/c128 for common model/task/dataset/config. + Link to Compare Versions. Phase 1 can show pair cards without numbers. +- `_overview_jump_cards()` — four cards with deep links. +- `_overview_data_health(df)` — collapsed expander: rows by phase, MLflow + coverage, short-window rows, stage coverage, missing fields. + +Constants: `SLO_TTFP_P95_MS = 500`, `SLO_RTF_P95 = 1.0`, +`SLO_UNDERRUN_P95_S = 0.1`. + +No new data is required for Phase 1. Everything is in the 77-column CSV. +Phase 2 parity needs only existing columns; no new collection. + +## 7. Open questions + +1. Is the headline release 3.6 GA, 3.6 fast1, or both? +2. Should the SLO table show default and B8 as separate rows, or only the + recommended config? +3. Is the SLO knee fixed at the protocol's c2, or should it be computed per + configuration and displayed as c1/c2/c4/none? +4. For 3.5 rows, p95 underrun is not measured. Show "not measured", or exclude + legacy rows from the SLO table? +5. Upstream pairs: confirm 3.6 GA vs v0.30 and 3.6 fast1 vs v0.26. +6. Should data health be a visible strip or a collapsed expander? +7. Do we add a Config/profile filter now, or land deep links on model/version + only? diff --git a/docs/omni-tts-column-sources.md b/docs/omni-tts-column-sources.md index 557401e..aefd807 100644 --- a/docs/omni-tts-column-sources.md +++ b/docs/omni-tts-column-sources.md @@ -10,7 +10,10 @@ Output files: | File | Purpose | |---|---| | `datasets/omni/consolidated_dashboard_omni.csv` | Populated local data (do not commit; contains deployment IDs) | -| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 76-column template for this staged schema | +| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 77-column template for this staged schema | + +The combined staged CSV is **77 columns = 49 run/core columns + 28 +audio-output columns**. The legacy `datasets/omni/consolidated_dashboard_omni_template.csv` remains the 165-column schema for the older converter and fixtures. @@ -58,7 +61,7 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default | `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four profiles are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | | `source_file` | derived | Path to `d` relative to the recipe checkout. | -### Model / runtime (6) +### Model / runtime (7) | Column | Source | Rule | |---|---|---| @@ -68,6 +71,7 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default | `accelerator` | `r.accelerator` / `meta.accelerator` / `cm.gpu_model` | GPU family, e.g. `H200`. | | `gpu_count` | `meta.gpu_count` / `cm.gpu_count` | 1 for all current rows. | | `tp` | `r.tp` / `meta.tp` | 1 for all current Qwen3-TTS rows. | +| `runtime_args` | `r.runtime_args` / `meta` / `cm` / `rm` | Resolved deployment args for the hover: `gpu-mem=...; max-seqs=...; max-batched-tokens=...`. 3.5: source `runtime_args` (usually blank). 3.6 base: metadata `gpu_memory_utilization` (inferred `{"0":0.3,"1":0.3}` when absent), `max_num_seqs`, `max_num_batched_tokens`. Athena: `cell_meta`/`run_meta` values. Do not include the deploy YAML path. | ### Task / protocol (13) @@ -97,7 +101,7 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default | `request_rate` | `d.request_rate` / `r.request_rate` | `inf` for all current rows. | | `concurrency` | `d.max_concurrency` / `r.concurrency` | Configured `--max-concurrency`. | | `measured_concurrency` | `d.max_concurrent_requests` | Observed maximum; blank if absent. | -| `short_window` | derived | `true` when `duration_s < 30`; `false` otherwise. The 30 s minimum is the matrix protocol's steady-state gate. The 3.5 legacy runs used only 100 prompts, so many high-concurrency legacy points fall below it; that is a workload-size artifact, not a failed run. | +| `short_window` | derived | `true` when `duration_s < 30`; `false` otherwise. The 30 s minimum is the matrix protocol's steady-state gate. The 3.5 legacy runs used only 100 prompts, so many high-concurrency legacy points fall below it; that is a workload-size artifact, not a failed run. Current counts: 53 flagged = 41 legacy 3.5 + 12 3.6. | ### Outcome (8) @@ -162,6 +166,24 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default | `audio_codec` | derived | `pcm_s16le` for `wav`/`pcm`; blank for unknown. | | `audio_underrun_threshold_s` | derived | `0.1` (bench default; env `VLLM_OMNI_BENCH_AUDIO_CONTINUITY_THRESHOLD_S`). | +## Config naming + +`profile=b8` is the upstream Qwen3-TTS high-concurrency deploy profile +(`qwen3_tts_high_concurrency_mrv2_single_gpu.yaml`), where the Code2Wav decoder +batch size is 8. It also sets stage-0 `max_num_seqs=128` and stage-1 +`max_num_seqs=32`. It is not a vLLM `--max-num-seqs=8` flag. The dashboard +shows the resolved `runtime_args` (`gpu-mem`, `max-seqs`, +`max-batched-tokens`), not the profile label. + +## Provenance phases + +`experiment_phase` is provenance only and is not displayed in the dashboard: + +- `ci` — single c1 smoke run (10 measured prompts); excluded from Performance Plots. +- `saturation` — c1–c128 ladder for the 3.6 base rows. +- `matrix` — six-profile Athena matrix. +- `legacy` — 3.5 data. + ## Dashboard MLflow link The dashboard turns `mlflow_run_id` into the same kind of hyperlink RHAIIS uses: @@ -181,7 +203,7 @@ build depend on network access. ## Validation checks -1. Header is exactly 76 columns in the order above. +1. Header is exactly 77 columns in the order above. 2. Row count is 117: 60 (3.5) + 9 (3.6 base) + 48 (Athena Qwen3-TTS). 3. `run_key` is non-empty and unique. 4. Required dashboard columns are non-empty: `model`, `task_type`, `benchmark_tool`, @@ -190,3 +212,6 @@ build depend on network access. 5. `successful_requests + errored_requests == num_prompts` for every row. 6. Audio metric columns are non-empty for every row; stage columns may be blank. 7. No Voxtral or OmniVoice model appears. +8. All 57 3.6 rows have `mlflow_run_id`; all 60 3.5 rows leave it blank. +9. `runtime_args` is populated for all 57 3.6 rows and blank for all 60 3.5 + rows; no `deploy-config=` text appears. diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py index 140f309..1e7bf49 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -2,7 +2,7 @@ """Build the staged Omni TTS dashboard CSV (Qwen3-TTS only). Reads benchmark artifacts from the read-only recipe checkout and writes the -76-column schema documented in docs/omni-tts-column-sources.md. +77-column schema documented in docs/omni-tts-column-sources.md. Groups: 1. 3.5 legacy -- results/3.5/benchmark_results.csv + raw JSON per json_file @@ -55,6 +55,7 @@ DEFAULT_LOAD_GENERATOR = "vllm-omni-bench-serve" DEFAULT_AUDIO_SAMPLE_RATE = "24000" +DEFAULT_GPU_MEM = '{"0":0.3,"1":0.3}' # Raw bench JSON field -> dashboard column. D_METRICS = { @@ -346,6 +347,20 @@ def response_format_from_extra_body(extra_body): return as_text(extra_body.get("response_format")) +def compose_runtime_args(gpu_mem, max_seqs, max_batched): + """Render the resolved deployment args for the dashboard hover.""" + parts = [] + for label, value in ( + ("gpu-mem", gpu_mem), + ("max-seqs", max_seqs), + ("max-batched-tokens", max_batched), + ): + text = as_text(value).strip() + if text: + parts.append(f"{label}={text}") + return "; ".join(parts) + + def find_log(json_path, extra_log_dir=""): """Cell log: same directory as the JSON, then a metadata bench_log_dir.""" stem = os.path.splitext(os.path.basename(json_path))[0] @@ -572,6 +587,7 @@ def build_35(recipe_root, header): row["response_format"] = "wav" row["tokenizer_override"] = tokenizer_override(model, data.get("tokenizer_id")) row["status"] = "valid" + row["runtime_args"] = as_text(source_row.get("runtime_args")) dataset = dataset_for_task(task_type) row["dataset"] = dataset @@ -694,6 +710,11 @@ def build_36(recipe_root, header): row["response_format"] = response_format row["tokenizer_override"] = tokenizer_override(model, data.get("tokenizer_id")) row["status"] = "valid" + row["runtime_args"] = compose_runtime_args( + pick(defaults.get("gpu_memory_utilization"), DEFAULT_GPU_MEM), + defaults.get("max_num_seqs"), + defaults.get("max_num_batched_tokens"), + ) dataset = as_text(pick(defaults.get("dataset"), dataset_for_task(task_type))) row["dataset"] = dataset @@ -835,6 +856,17 @@ def build_athena(recipe_root, header, mlflow_index=None): row["tokenizer_override"] = tokenizer_override( model_id, data.get("tokenizer_id") ) + row["runtime_args"] = compose_runtime_args( + pick( + model_config.get("gpu_memory_utilization"), + DEFAULT_GPU_MEM if runtime_version == "vllm-omni-3.6.0-ga" else "", + ), + pick(cell_meta.get("max_num_seqs"), model_config.get("max_num_seqs")), + pick( + cell_meta.get("max_num_batched_tokens"), + model_config.get("max_num_batched_tokens"), + ), + ) # Every included Athena point has completed == num_prompts and failed == 0. row["status"] = "valid" @@ -943,9 +975,9 @@ def read_header(template_path): def main(argv): recipe_root, output_path, template_path, mlflow_runs_json = parse_args(argv) header = read_header(template_path) - if len(header) != 76: + if len(header) != 77: raise SystemExit( - f"Template must have 76 columns, found {len(header)}: {template_path}" + f"Template must have 77 columns, found {len(header)}: {template_path}" ) mlflow_index = load_mlflow_index(mlflow_runs_json) diff --git a/omni_dashboard.py b/omni_dashboard.py index 07e9668..f9a9e50 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -109,31 +109,30 @@ def _task_label(value: str) -> str: def _omni_legend_label(row: pd.Series) -> str: - label = " | ".join( + tp = row.get("TP") + if pd.notna(tp): + tp_text = f"TP={int(tp) if float(tp).is_integer() else tp}" + else: + tp_text = "TP=N/A" + return " | ".join( [ str(row.get("model_short") or row.get("model") or "?"), str(row.get("runtime_version") or "?"), - str(row.get("profile") or "?"), - str(row.get("experiment_phase") or "?"), _task_label(row.get("task_type")), str(row.get("dataset") or "?"), + tp_text, ] ) - uuid = str(row.get("uuid") or "").strip() - if uuid and row.get("line_style") in ("dot", "dashdot"): - label += " | run " + uuid[:8] - return label PLOT_CUSTOM_DATA = [ "accelerator", "model_short", "runtime_version", - "profile", - "task_type", + "task_label", "dataset", "concurrency", - "deployment_uuid", - "experiment_phase", + "deployment_uuid_hover", + "runtime_args_hover", ] # Default Filtered Data view. The full row stays available via the CSV download @@ -407,6 +406,18 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df[col] = "unknown" df[col] = df[col].fillna("unknown") + for column, default in ( + ("profile", "default"), + ("experiment_phase", ""), + ("runtime_args", ""), + ("response_format", ""), + ("image_tag", ""), + ("tokenizer_override", "false"), + ): + if column not in df.columns: + df[column] = default + df[column] = df[column].fillna(default) + if "dataset" not in df.columns: df["dataset"] = np.nan df["dataset_filter"] = ( @@ -462,38 +473,51 @@ def _values(frame: pd.DataFrame, column: str) -> list: ) -def _multiselect(label: str, options: list, key: str) -> list: +def _multiselect( + label: str, options: list, key: str, param_key: Optional[str] = None +) -> list: if not options: return [] + if param_key: + return _persistent_multiselect(label, options, key, param_key) return st.multiselect(label, options, default=options, key=key) -def _persistent_multiselect(label: str, options: list, key: str) -> list: +def _persistent_multiselect( + label: str, options: list, key: str, param_key: Optional[str] = None +) -> list: if not options: return [] - if key not in st.session_state: + if param_key: + _seed_filter_state(key, options, param_key) + elif key not in st.session_state: st.session_state[key] = options - else: - current = st.session_state.get(key, []) - valid = [value for value in current if value in options] - if current and not valid: - valid = options - st.session_state[key] = valid - return st.multiselect(label, options, key=key) + current = st.session_state.get(key, []) + valid = [value for value in current if value in options] + if current and not valid: + valid = options + st.session_state[key] = valid + selected = st.multiselect(label, options, key=key) + if param_key: + _persist_filter(param_key, selected, options) + return selected -def _select_all_models_multiselect(label: str, options: list, key: str) -> list: +def _select_all_models_multiselect( + label: str, options: list, key: str, param_key: Optional[str] = None +) -> list: if not options: return [] select_all_key = f"{key}_select_all" - if key not in st.session_state: + if param_key: + _seed_filter_state(key, options, param_key) + elif key not in st.session_state: st.session_state[key] = options - else: - current = st.session_state.get(key, []) - valid = [model for model in current if model in options] - if current and not valid: - valid = options - st.session_state[key] = valid + current = st.session_state.get(key, []) + valid = [model for model in current if model in options] + if current and not valid: + valid = options + st.session_state[key] = valid if select_all_key not in st.session_state: st.session_state[select_all_key] = ( set(st.session_state[key]) == set(options) @@ -516,6 +540,8 @@ def _apply_select_all(): key=key, on_change=_sync_select_all, ) + if param_key: + _persist_filter(param_key, selected, options) st.checkbox( "Select All Models", key=select_all_key, @@ -538,8 +564,11 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) with filter_col1: - accelerators = _multiselect( - "1️⃣ Select Accelerator(s)", _values(df, "accelerator"), "omni_accelerator" + accelerators = _persistent_multiselect( + "1️⃣ Select Accelerator(s)", + _values(df, "accelerator"), + "omni_accelerator", + "omni_accels", ) filtered = df if accelerators: @@ -557,14 +586,12 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: task_options = [(task, _task_label(task)) for task in task_values] task_labels = [label for _, label in task_options] task_key = "omni_task" - if task_key not in st.session_state: - st.session_state[task_key] = task_labels - else: - current_tasks = st.session_state.get(task_key, []) - valid_tasks = [label for label in current_tasks if label in task_labels] - if current_tasks and not valid_tasks: - valid_tasks = task_labels - st.session_state[task_key] = valid_tasks + _seed_filter_state(task_key, task_labels, "omni_tasks") + current_tasks = st.session_state.get(task_key, []) + valid_tasks = [label for label in current_tasks if label in task_labels] + if current_tasks and not valid_tasks: + valid_tasks = task_labels + st.session_state[task_key] = valid_tasks with filter_col2: selected_task_labels = st.multiselect( "2️⃣ Select Task(s)", @@ -572,6 +599,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: key=task_key, help=TASK_HELP, ) + _persist_filter("omni_tasks", selected_task_labels, task_labels) selected_tasks = [ task for task, label in task_options if label in selected_task_labels ] @@ -583,6 +611,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: "3️⃣ Select Dataset(s)", dataset_options, "omni_dataset", + "omni_datasets", ) if datasets: filtered = filtered[filtered["dataset_filter"].isin(datasets)] @@ -592,6 +621,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: "4️⃣ Select Version(s)", _values(filtered, "runtime_version"), "omni_version", + "omni_versions", ) if versions: filtered = filtered[filtered["runtime_version"].isin(versions)] @@ -601,6 +631,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), "omni_load_generator", + "omni_loadgens", ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] @@ -609,6 +640,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: "6️⃣ Select Model(s)", model_options, "omni_model", + "omni_models", ) if models: filtered = filtered[filtered["model"].isin(models)] @@ -618,6 +650,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: "7️⃣ Select TP Size(s)", _values(filtered, "tp"), "omni_tp", + "omni_tp_sizes", ) if tps: filtered = filtered[filtered["tp"].isin(tps)] @@ -632,6 +665,37 @@ def _query_first(key: str) -> Optional[str]: return value +def _url_filter_values(param_key: str) -> Optional[list]: + raw = _query_first(param_key) + if not raw: + return None + return [value for value in str(raw).split(",") if value] + + +def _seed_filter_state(key: str, options: list, param_key: str) -> None: + """Restore a widget selection from the URL on first render/refresh.""" + if key in st.session_state: + return + url_values = _url_filter_values(param_key) + if url_values: + valid = [value for value in url_values if value in options] + st.session_state[key] = valid or options + else: + st.session_state[key] = options + + +def _persist_filter(param_key: str, values: list, options: list) -> None: + """Mirror a selection into the URL; omit the param when everything is selected.""" + selected = [str(value) for value in values] + option_values = [str(value) for value in options] + if not selected or set(selected) == set(option_values): + if param_key in st.query_params: + del st.query_params[param_key] + return + if _url_filter_values(param_key) != selected: + st.query_params[param_key] = ",".join(selected) + + def _render_sidebar_nav() -> str: """Render the same grouped navigation shell used by RHAIIS.""" valid_sections = [ @@ -941,6 +1005,9 @@ def _performance_plots(df: pd.DataFrame): y_axis = metrics[y_label] sub = df.dropna(subset=[x_axis, y_axis]).copy() + if "experiment_phase" in sub.columns: + # CI smoke runs are one-off c1 validation points, not comparison data. + sub = sub[sub["experiment_phase"] != "ci"].copy() if x_axis == "concurrency": sub["concurrency"] = pd.to_numeric(sub["concurrency"], errors="coerce") sub = sub.dropna(subset=["concurrency"]) @@ -993,15 +1060,11 @@ def _performance_plots(df: pd.DataFrame): + " | " + sub["dataset"].fillna("?").astype(str) ) - sub["runtime_args"] = ( - "profile=" - + sub["profile"].fillna("").astype(str) - + ";response_format=" - + sub["response_format"].fillna("").astype(str) - + ";image=" - + sub["image_tag"].fillna("").astype(str) - + ";tokenizer_override=" - + sub["tokenizer_override"].fillna("").astype(str) + sub["runtime_args"] = sub["runtime_args"].fillna("").astype(str) + sub["task_label"] = sub["task_type"].map(_task_label) + sub["deployment_uuid_hover"] = sub["deployment_uuid"].fillna("").astype(str) + sub["runtime_args_hover"] = sub["runtime_args"].str.replace( + "; ", "
", regex=False ) sub = add_trace_metadata( sub, @@ -1026,7 +1089,6 @@ def _performance_plots(df: pd.DataFrame): ) repeated = sub["line_style"].isin(["dot", "dashdot"]) & sub["uuid"].ne("") sub.loc[repeated, "line_opacity"] = 1.0 - sub.loc[repeated & sub["experiment_phase"].eq("ci"), "line_opacity"] = 0.45 sub["legend_label"] = sub.apply(_omni_legend_label, axis=1) default_color_map = deterministic_color_map(sub["run_identifier"]) @@ -1039,11 +1101,7 @@ def _performance_plots(df: pd.DataFrame): for key, value in st.session_state.get("omni_perf_custom_shapes", {}).items() if value in MARKER_SYMBOLS } - customizable_series = sorted( - sub.loc[ - sub["line_style"].isin(["dot", "dashdot"]), "run_identifier" - ].unique() - ) + customizable_series = sorted(sub["run_identifier"].unique()) fig = px.line( sub.sort_values([x_axis, "trace_label"]), @@ -1078,23 +1136,37 @@ def _performance_plots(df: pd.DataFrame): trace.marker.line = {"width": 1, "color": "white"} trace.opacity = float(first["line_opacity"]) trace.legendgroup = first["run_identifier"] + concurrency_line = ( + "" if x_axis == "concurrency" else "Concurrency: %{customdata[5]}
" + ) + uuid_line = ( + "UUID: %{customdata[6]}
" + if first.get("deployment_uuid_hover") + else "" + ) + runtime_line = ( + "Runtime args:
%{customdata[7]}
" + if first.get("runtime_args") + else "" + ) trace.hovertemplate = ( f"{x_label}: %{{x}}
" f"{y_label}: %{{y}}
" "Accelerator: %{customdata[0]}
" "Model: %{customdata[1]}
" "Version: %{customdata[2]}
" - "Profile: %{customdata[3]}
" - "Task: %{customdata[4]}
" - "Dataset: %{customdata[5]}
" - "Concurrency: %{customdata[6]}
" - "Phase: %{customdata[8]}
" - "UUID: %{customdata[7]}" + "Task: %{customdata[3]}
" + "Dataset: %{customdata[4]}
" + + concurrency_line + + uuid_line + + runtime_line + + "" ) fig.update_layout( hovermode="closest", + hoverdistance=60, legend_title_text=( - "Run Details (Accelerator | Model | Version | Profile | Task | Dataset | TP)" + "Run Details (Accelerator | Model | Version | Task | Dataset | TP)" ), legend={"font": {"size": 12}, "itemwidth": 42}, height=560, @@ -1111,9 +1183,8 @@ def _performance_plots(df: pd.DataFrame): if customizable_series: with st.expander("🎨 Customize", expanded=False): st.caption( - "Repeated deployments use dotted (or dash-dot for a non-default " - "profile) lines. Choose a shared color and marker shape for a " - "repeated configuration." + "Choose a color and marker shape for a configuration. Repeated " + "deployments keep dotted (or dash-dot) lines." ) series_labels = { key: sub.loc[sub["run_identifier"] == key, "legend_label"] @@ -1122,7 +1193,7 @@ def _performance_plots(df: pd.DataFrame): for key in customizable_series } selected_series = st.selectbox( - "Repeated configuration", + "Configuration", customizable_series, format_func=lambda key: series_labels[key], key="omni_perf_customize_series", @@ -1207,8 +1278,8 @@ def _clear_comparison(): ) st.caption( "Click points, or box/lasso-select an area, to add lines to the comparison. " - "Dashed = non-default profile; dotted/dash-dot = repeated deployment; " - "faded dots = smoke/CI repeats. You can also choose lines below." + "Dashed = non-default configuration; dotted/dash-dot = repeated deployment; " + "faded dots = exact repeats. You can also choose lines below." ) st.subheader("📄 Filtered Data for Plot Lines") From 2c357d5f93128b3c820aa6c1a35d7bdf874f4ff1 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 18:17:32 -0500 Subject: [PATCH 44/74] Reset downstream Omni filters when a parent changes Keep empty selections meaning "all", but clear dependent selections when an upstream filter changes so the chart reflects the new scope instead of being held back by a stale child selection. Verified with OmniVoice rows. Co-Authored-By: Claude Code --- omni_dashboard.py | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/omni_dashboard.py b/omni_dashboard.py index f9a9e50..ca2a6ac 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -558,6 +558,10 @@ def _selection_key(prefix: str, *groups) -> str: def _main_filters(df: pd.DataFrame) -> pd.DataFrame: """RHAIIS-style filter band in the main content.""" st.subheader("Filter Your Data") + st.caption( + "Empty selections mean all. Changing an upstream filter resets " + "downstream selections so the chart reflects the new scope." + ) filter_col1, filter_col2, filter_col3, filter_col4, filter_col5 = st.columns( [1.5, 1.8, 1.3, 2.7, 1] @@ -570,6 +574,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: "omni_accelerator", "omni_accels", ) + accelerator_sig = _selection_signature(accelerators) filtered = df if accelerators: filtered = filtered[filtered["accelerator"].isin(accelerators)] @@ -586,6 +591,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: task_options = [(task, _task_label(task)) for task in task_values] task_labels = [label for _, label in task_options] task_key = "omni_task" + _cascade_reset(task_key, "omni_tasks", accelerator_sig) _seed_filter_state(task_key, task_labels, "omni_tasks") current_tasks = st.session_state.get(task_key, []) valid_tasks = [label for label in current_tasks if label in task_labels] @@ -600,6 +606,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: help=TASK_HELP, ) _persist_filter("omni_tasks", selected_task_labels, task_labels) + task_sig = _selection_signature(selected_task_labels) selected_tasks = [ task for task, label in task_options if label in selected_task_labels ] @@ -607,6 +614,11 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: filtered = filtered[filtered["task_type"].isin(selected_tasks)] dataset_options = _values(filtered, "dataset_filter") + _cascade_reset( + "omni_dataset", + "omni_datasets", + (accelerator_sig, task_sig), + ) datasets = _persistent_multiselect( "3️⃣ Select Dataset(s)", dataset_options, @@ -615,8 +627,14 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) if datasets: filtered = filtered[filtered["dataset_filter"].isin(datasets)] + dataset_sig = _selection_signature(datasets) with filter_col3: + _cascade_reset( + "omni_version", + "omni_versions", + (accelerator_sig, task_sig, dataset_sig), + ) versions = _persistent_multiselect( "4️⃣ Select Version(s)", _values(filtered, "runtime_version"), @@ -625,8 +643,14 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) if versions: filtered = filtered[filtered["runtime_version"].isin(versions)] + version_sig = _selection_signature(versions) with filter_col4: + _cascade_reset( + "omni_load_generator", + "omni_loadgens", + (accelerator_sig, task_sig, dataset_sig, version_sig), + ) generators = _persistent_multiselect( "5️⃣ Select Load Generator(s)", _values(filtered, "load_generator"), @@ -635,7 +659,13 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) if generators: filtered = filtered[filtered["load_generator"].isin(generators)] + loadgen_sig = _selection_signature(generators) model_options = _values(filtered, "model") + _cascade_reset( + "omni_model", + "omni_models", + (accelerator_sig, task_sig, dataset_sig, version_sig, loadgen_sig), + ) models = _select_all_models_multiselect( "6️⃣ Select Model(s)", model_options, @@ -644,8 +674,21 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: ) if models: filtered = filtered[filtered["model"].isin(models)] + model_sig = _selection_signature(models) with filter_col5: + _cascade_reset( + "omni_tp", + "omni_tp_sizes", + ( + accelerator_sig, + task_sig, + dataset_sig, + version_sig, + loadgen_sig, + model_sig, + ), + ) tps = _persistent_multiselect( "7️⃣ Select TP Size(s)", _values(filtered, "tp"), @@ -655,6 +698,10 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: if tps: filtered = filtered[filtered["tp"].isin(tps)] + if filtered.empty: + st.warning( + "No rows match the current filters. Broaden a selection or clear a filter." + ) return filtered @@ -684,6 +731,31 @@ def _seed_filter_state(key: str, options: list, param_key: str) -> None: st.session_state[key] = options +def _selection_signature(values: list) -> tuple: + return tuple(sorted(str(value) for value in values)) + + +def _cascade_reset(key: str, param_key: str, upstream_signature: tuple) -> None: + """Reset a child filter when an upstream selection changes. + + Empty selections still mean "all", so clearing a parent broadens the data. + Resetting the children makes that broadening visible instead of leaving a + stale child selection in place. + """ + state_key = f"{key}__cascade" + previous = st.session_state.get(state_key) + if previous is None: + st.session_state[state_key] = upstream_signature + return + if previous == upstream_signature: + return + st.session_state[state_key] = upstream_signature + st.session_state.pop(key, None) + st.session_state.pop(f"{key}_select_all", None) + if param_key in st.query_params: + del st.query_params[param_key] + + def _persist_filter(param_key: str, values: list, options: list) -> None: """Mirror a selection into the URL; omit the param when everything is selected.""" selected = [str(value) for value in values] From 67db693661ea7133d0847f6d272100bc6ed98953 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 18:18:02 -0500 Subject: [PATCH 45/74] Connect MLflow View Logs and add streaming toggle Configure the staging server with the MLflow tracking/auth environment, fall back to the artifact root when logs/ is absent, prefer server.log, and add a streaming on/off control that follows the available benchmark_mode values. Co-Authored-By: Claude Code --- omni_dashboard.py | 75 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index f9a9e50..07fdf78 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -225,6 +225,24 @@ def _available_metrics(frame: pd.DataFrame) -> dict: if column in frame.columns and frame[column].notna().any() } + +def _resolve_benchmark_mode( + available_modes: set, preferred_streaming: bool +) -> tuple: + """Pick streaming/non-streaming from the modes present in the filtered data.""" + has_streaming = "streaming" in available_modes + has_non_streaming = "non_streaming" in available_modes + if has_streaming and not has_non_streaming: + return "streaming", True + if has_non_streaming and not has_streaming: + return "non_streaming", False + if has_streaming and has_non_streaming: + if preferred_streaming: + return "streaming", True + return "non_streaming", False + return "", bool(preferred_streaming) + + COMPARE_STATISTICS = ["Mean", "Median", "P95", "P99"] COMPARE_METRIC_FAMILIES = { @@ -741,6 +759,8 @@ def _log_rank(path: str, concurrency: str) -> tuple: score = 0 if "full" in name: score += 100 + elif "server" in name: + score += 95 elif "startup" in name: score += 80 elif "saturation" in name or "bench" in name or re.search(r"_c\d+(?:\D|$)", name): @@ -768,12 +788,18 @@ def _walk(path: str): def _mlflow_log_candidates(row: pd.Series) -> tuple: run_id = str(row.get("mlflow_run_id") or "").strip() - if not MLFLOW_TRACKING_URI or not run_id or run_id.lower() == "nan": + if not run_id or run_id.lower() == "nan": return [], [] + if not MLFLOW_TRACKING_URI: + return [], [ + "MLflow is not configured; set MLFLOW_TRACKING_URI to load run artifacts." + ] try: paths = _list_mlflow_logs( run_id, MLFLOW_LOG_ARTIFACT_PREFIX, MLFLOW_TRACKING_URI ) + if not paths and MLFLOW_LOG_ARTIFACT_PREFIX: + paths = _list_mlflow_logs(run_id, "", MLFLOW_TRACKING_URI) except Exception as exc: return [], [f"MLflow: {exc}"] return [ @@ -892,6 +918,11 @@ def _fetch_log( def _view_logs(df: pd.DataFrame): st.subheader("📋 View Logs") + if not MLFLOW_TRACKING_URI: + st.caption( + "MLflow is not configured; set MLFLOW_TRACKING_URI to load run artifacts." + ) + if "run_name" not in df.columns: st.info("No run_name column is available in the data.") return @@ -988,7 +1019,27 @@ def _performance_plots(df: pd.DataFrame): "💡 **Tip:** Click on the full screen view (⛶) of the graph to get a detailed view." ) - col1, col2, col3 = st.columns(3) + mode_values = set() + if "benchmark_mode" in df.columns: + mode_values = { + str(value).strip().lower() + for value in df["benchmark_mode"].dropna().unique() + if str(value).strip() + } + mode_key = "omni_perf_streaming" + preferred_streaming = st.session_state.get(mode_key, True) + streaming_param = _query_first("omni_streaming") + if streaming_param in ("0", "false", "off"): + preferred_streaming = False + elif streaming_param in ("1", "true", "on"): + preferred_streaming = True + selected_mode, toggle_default = _resolve_benchmark_mode( + mode_values, preferred_streaming + ) + if selected_mode: + st.session_state[mode_key] = toggle_default + + col1, col2, col3, col4 = st.columns([1.2, 1.2, 1, 0.7]) with col1: x_label = st.selectbox( "Select X-Axis", list(OMNI_X_AXES), key="omni_perf_x_axis" @@ -1001,6 +1052,18 @@ def _performance_plots(df: pd.DataFrame): y_label = st.selectbox( "Select Y-Axis", list(metrics), key="omni_perf_y_axis" ) + with col4: + streaming_on = st.toggle( + "Streaming", + key=mode_key, + help="Show streaming results (on) or non-streaming results (off).", + ) + if "streaming" in mode_values and "non_streaming" in mode_values: + desired_param = "1" if streaming_on else "0" + if _query_first("omni_streaming") != desired_param: + st.query_params["omni_streaming"] = desired_param + elif "omni_streaming" in st.query_params: + del st.query_params["omni_streaming"] x_axis = OMNI_X_AXES[x_label] y_axis = metrics[y_label] @@ -1008,6 +1071,14 @@ def _performance_plots(df: pd.DataFrame): if "experiment_phase" in sub.columns: # CI smoke runs are one-off c1 validation points, not comparison data. sub = sub[sub["experiment_phase"] != "ci"].copy() + if mode_values: + active_mode = "streaming" if streaming_on else "non_streaming" + if active_mode not in mode_values: + active_mode, _ = _resolve_benchmark_mode(mode_values, streaming_on) + if active_mode: + sub = sub[ + sub["benchmark_mode"].astype(str).str.lower() == active_mode + ].copy() if x_axis == "concurrency": sub["concurrency"] = pd.to_numeric(sub["concurrency"], errors="coerce") sub = sub.dropna(subset=["concurrency"]) From 048b1c7a46d32e9165cfe56a8bf838a72faa057a Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 18:37:11 -0500 Subject: [PATCH 46/74] Add dataset help to Omni filters Explain seed-tts, seed-tts-text, and seed-tts-design in a tooltip, matching the existing task filter help. Co-Authored-By: Claude Code --- omni_dashboard.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index b68e6f5..ab747e6 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -97,12 +97,20 @@ TASK_HELP = ( "- **TTS - Voice Clone**: clone a reference voice from an audio sample.\n" - "- **TTS - Default Voice**: synthesize with a preset voice.\n" + "- **TTS - Default Voice**: synthesize with a preset or automatic voice.\n" "- **TTS - Voice Design**: synthesize from a voice description.\n" "- **ASR / STT - Transcription**: transcribe audio to text.\n" "- **Text - Text generation**: text-to-text generation." ) +DATASET_HELP = ( + "- **seed-tts**: reference audio + transcript; voice cloning (Base models).\n" + "- **seed-tts-text**: text-only prompts; preset or automatic voice " + "(CustomVoice, OmniVoice, Voxtral).\n" + "- **seed-tts-design**: voice description + text; voice-design models.\n" + "- **(unspecified)**: legacy rows that did not record a dataset." +) + def _task_label(value: str) -> str: return TASK_TYPE_LABELS.get(str(value), str(value)) @@ -502,7 +510,11 @@ def _multiselect( def _persistent_multiselect( - label: str, options: list, key: str, param_key: Optional[str] = None + label: str, + options: list, + key: str, + param_key: Optional[str] = None, + help_text: Optional[str] = None, ) -> list: if not options: return [] @@ -515,7 +527,7 @@ def _persistent_multiselect( if current and not valid: valid = options st.session_state[key] = valid - selected = st.multiselect(label, options, key=key) + selected = st.multiselect(label, options, key=key, help=help_text) if param_key: _persist_filter(param_key, selected, options) return selected @@ -642,6 +654,7 @@ def _main_filters(df: pd.DataFrame) -> pd.DataFrame: dataset_options, "omni_dataset", "omni_datasets", + help_text=DATASET_HELP, ) if datasets: filtered = filtered[filtered["dataset_filter"].isin(datasets)] From acc93ee9b1649c00911fd650bfe9db0140c37ea0 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 18:51:18 -0500 Subject: [PATCH 47/74] Simplify Performance Plots controls and surface request counts Drop the X-axis selector, add request count to the hover and Y-axis, include a legacy N=100 toggle, move Plot lines to compare above its table, and move Customize to the bottom of the section. Co-Authored-By: Claude Code --- omni_dashboard.py | 187 ++++++++++++++++++++++------------------------ 1 file changed, 90 insertions(+), 97 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index ab747e6..9615ef4 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -139,6 +139,7 @@ def _omni_legend_label(row: pd.Series) -> str: "task_label", "dataset", "concurrency", + "num_prompts", "deployment_uuid_hover", "runtime_args_hover", ] @@ -153,6 +154,7 @@ def _omni_legend_label(row: pd.Series) -> str: "task_type", "dataset", "concurrency", + "num_prompts", "audio_ttfp_ms_p95", "audio_rtf_p95", "audio_underrun_s_p95", @@ -218,11 +220,7 @@ def _link_column_config(frame: pd.DataFrame): "WER": "wer", "RTFx": "rtfx", "Transcription throughput (utt/s)": "transcription_throughput_utterances_s", -} - -OMNI_X_AXES = { - "Concurrency": "concurrency", - "Model": "model", + "Requests sent (N)": "num_prompts", } @@ -1124,35 +1122,41 @@ def _performance_plots(df: pd.DataFrame): if selected_mode: st.session_state[mode_key] = toggle_default - col1, col2, col3, col4 = st.columns([1.2, 1.2, 1, 0.7]) - with col1: - x_label = st.selectbox( - "Select X-Axis", list(OMNI_X_AXES), key="omni_perf_x_axis" - ) + x_label = "Concurrency" + x_axis = "concurrency" metrics = _available_metrics(df) if not metrics: st.warning("No metrics with data are available for the current filters.") return - with col2: + col1, col2, col3, col4 = st.columns([1.6, 1, 0.8, 1.1]) + with col1: y_label = st.selectbox( "Select Y-Axis", list(metrics), key="omni_perf_y_axis" ) - with col4: + with col3: streaming_on = st.toggle( "Streaming", key=mode_key, help="Show streaming results (on) or non-streaming results (off).", ) + with col4: + include_legacy = st.toggle( + "Include 3.5 legacy (N=100)", + value=False, + key="omni_perf_include_legacy", + help="3.5 legacy runs used N=100; the 3.6 matrix uses N=1000.", + ) if "streaming" in mode_values and "non_streaming" in mode_values: desired_param = "1" if streaming_on else "0" if _query_first("omni_streaming") != desired_param: st.query_params["omni_streaming"] = desired_param elif "omni_streaming" in st.query_params: del st.query_params["omni_streaming"] - x_axis = OMNI_X_AXES[x_label] y_axis = metrics[y_label] sub = df.dropna(subset=[x_axis, y_axis]).copy() + if not include_legacy and "experiment_phase" in sub.columns: + sub = sub[sub["experiment_phase"] != "legacy"].copy() if "experiment_phase" in sub.columns: # CI smoke runs are one-off c1 validation points, not comparison data. sub = sub[sub["experiment_phase"] != "ci"].copy() @@ -1171,7 +1175,7 @@ def _performance_plots(df: pd.DataFrame): {float(value) for value in sub["concurrency"].dropna()} ) if concurrency_values: - with col3: + with col2: if ( "omni_perf_max_concurrency" in st.session_state and st.session_state["omni_perf_max_concurrency"] @@ -1188,9 +1192,11 @@ def _performance_plots(df: pd.DataFrame): ), ) sub = sub[sub["concurrency"] <= max_conc] - else: - with col3: - st.caption("Model axis is useful for offline ASR metrics (WER, RTFx).") + + st.caption( + "3.5 legacy runs use N=100; the 3.6 matrix uses N=1000. " + "Hover a point for its request count, or select 'Requests sent (N)' as the Y-axis." + ) if sub.empty: st.info(f"No data available for '{y_label}' with these filters.") @@ -1292,16 +1298,13 @@ def _performance_plots(df: pd.DataFrame): trace.marker.line = {"width": 1, "color": "white"} trace.opacity = float(first["line_opacity"]) trace.legendgroup = first["run_identifier"] - concurrency_line = ( - "" if x_axis == "concurrency" else "Concurrency: %{customdata[5]}
" - ) uuid_line = ( - "UUID: %{customdata[6]}
" + "UUID: %{customdata[7]}
" if first.get("deployment_uuid_hover") else "" ) runtime_line = ( - "Runtime args:
%{customdata[7]}
" + "Runtime args:
%{customdata[8]}
" if first.get("runtime_args") else "" ) @@ -1313,7 +1316,7 @@ def _performance_plots(df: pd.DataFrame): "Version: %{customdata[2]}
" "Task: %{customdata[3]}
" "Dataset: %{customdata[4]}
" - + concurrency_line + "Requests: %{customdata[6]}
" + uuid_line + runtime_line + "" @@ -1336,6 +1339,70 @@ def _performance_plots(df: pd.DataFrame): }, ) + def _merge_plot_selection(): + points = st.session_state["omni_perf_chart"]["selection"]["points"] + merged = set(st.session_state.get("omni_perf_lines", [])) + for point in points or []: + curve = point.get("curveNumber") if isinstance(point, dict) else None + if curve is not None and 0 <= curve < len(fig.data): + merged.add(fig.data[curve].meta or fig.data[curve].name) + st.session_state["omni_perf_lines"] = sorted(merged) + + def _clear_comparison(): + st.session_state["omni_perf_lines"] = [] + + st.plotly_chart( + fig, + use_container_width=True, + theme=None, + key="omni_perf_chart", + on_select=_merge_plot_selection, + selection_mode=("points", "box", "lasso"), + ) + st.caption( + "Click points, or box/lasso-select an area, to add lines to the comparison. " + "Dashed = non-default configuration; dotted/dash-dot = repeated deployment; " + "faded dots = exact repeats. You can also choose lines below." + ) + + trace_labels = ( + sub.drop_duplicates("trace_label") + .set_index("trace_label")["legend_label"] + .to_dict() + ) + series_options = sorted(sub["trace_label"].unique()) + if "omni_perf_lines" in st.session_state: + st.session_state["omni_perf_lines"] = [ + line + for line in st.session_state["omni_perf_lines"] + if line in series_options + ] + selected_lines = st.multiselect( + "Plot lines to compare", + series_options, + key="omni_perf_lines", + format_func=lambda key: trace_labels.get(key, key), + ) + + st.subheader("📄 Filtered Data for Plot Lines") + st.caption("The table shows the source rows for the selected plot lines.") + if selected_lines: + selected_view = _blank_nan( + _display_frame(sub[sub["trace_label"].isin(selected_lines)]) + ) + st.dataframe( + selected_view, + use_container_width=True, + hide_index=True, + column_config=_link_column_config(selected_view), + ) + if st.button( + "Clear comparison", key="omni_perf_clear", on_click=_clear_comparison + ): + pass + else: + st.caption("No plot lines selected.") + if customizable_series: with st.expander("🎨 Customize", expanded=False): st.caption( @@ -1382,80 +1449,6 @@ def _performance_plots(df: pd.DataFrame): custom_shapes[selected_series] = selected_shape st.session_state["omni_perf_custom_colors"] = custom_colors st.session_state["omni_perf_custom_shapes"] = custom_shapes - for trace in fig.data: - trace_rows = sub[sub["trace_label"] == trace.meta] - if trace_rows.empty: - continue - first = trace_rows.iloc[0] - if first["run_identifier"] != selected_series: - continue - trace.line.color = selected_color - trace.marker.color = selected_color - trace.marker.symbol = selected_shape - - trace_labels = ( - sub.drop_duplicates("trace_label") - .set_index("trace_label")["legend_label"] - .to_dict() - ) - series_options = sorted(sub["trace_label"].unique()) - if "omni_perf_lines" in st.session_state: - st.session_state["omni_perf_lines"] = [ - line - for line in st.session_state["omni_perf_lines"] - if line in series_options - ] - selected_lines = st.multiselect( - "Plot lines to compare", - series_options, - key="omni_perf_lines", - format_func=lambda key: trace_labels.get(key, key), - ) - - def _merge_plot_selection(): - points = st.session_state["omni_perf_chart"]["selection"]["points"] - merged = set(st.session_state.get("omni_perf_lines", [])) - for point in points or []: - curve = point.get("curveNumber") if isinstance(point, dict) else None - if curve is not None and 0 <= curve < len(fig.data): - merged.add(fig.data[curve].meta or fig.data[curve].name) - st.session_state["omni_perf_lines"] = sorted(merged) - - def _clear_comparison(): - st.session_state["omni_perf_lines"] = [] - - st.plotly_chart( - fig, - use_container_width=True, - theme=None, - key="omni_perf_chart", - on_select=_merge_plot_selection, - selection_mode=("points", "box", "lasso"), - ) - st.caption( - "Click points, or box/lasso-select an area, to add lines to the comparison. " - "Dashed = non-default configuration; dotted/dash-dot = repeated deployment; " - "faded dots = exact repeats. You can also choose lines below." - ) - - st.subheader("📄 Filtered Data for Plot Lines") - st.caption("The table shows the source rows for the selected plot lines.") - if selected_lines: - selected_view = _blank_nan( - _display_frame(sub[sub["trace_label"].isin(selected_lines)]) - ) - st.dataframe( - selected_view, - use_container_width=True, - hide_index=True, - column_config=_link_column_config(selected_view), - ) - if st.button( - "Clear comparison", key="omni_perf_clear", on_click=_clear_comparison - ): - pass - else: - st.caption("No plot lines selected.") def _concurrency_sort(value: str) -> tuple: From 9b44927c1cf5a4ca73737315216e766e39a6bd53 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 18:58:33 -0500 Subject: [PATCH 48/74] Group View Logs by deployment and resolve server log One selector entry per deployment instead of one per concurrency child. Add an explicit server/bench source selector: the vLLM server log is resolved from the c1 sibling, bench logs from the selected concurrency. Cap the on-screen log at 2 MB with the full download preserved. Co-Authored-By: Claude Code --- omni_dashboard.py | 221 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 200 insertions(+), 21 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index ab747e6..6e1f0a0 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -51,6 +51,7 @@ MLFLOW_WORKSPACE = os.environ.get("MLFLOW_WORKSPACE", "") OMNI_MLFLOW_EXPERIMENT_ID = os.environ.get("OMNI_MLFLOW_EXPERIMENT_ID", "392") MLFLOW_LOG_ARTIFACT_PREFIX = os.environ.get("MLFLOW_LOG_ARTIFACT_PREFIX", "logs") +MAX_LOG_DISPLAY_CHARS = 2_000_000 OMNI_LOG_DIR = os.environ.get("OMNI_LOG_DIR", "datasets/omni/logs") S3_LOGS_BUCKET = os.environ.get("S3_LOGS_BUCKET", "") S3_LOGS_PREFIX = os.environ.get("S3_LOGS_PREFIX", "logs/") @@ -1000,6 +1001,66 @@ def _fetch_log( raise ValueError(f"Unknown log source: {source}") +def _log_deployment_key(row: pd.Series) -> str: + """Group concurrency children under one deployment/configuration.""" + uuid = str(row.get("deployment_uuid") or "").strip() + if uuid and uuid.lower() not in ("nan", "none"): + return "uuid:" + uuid + return "config:" + "|".join( + str(row.get(key) or "").strip() + for key in ("model", "runtime_version", "profile", "task_type", "dataset") + ) + + +def _log_deployment_label(row: pd.Series) -> str: + model = str(row.get("model") or "?").split("/")[-1] + parts = [ + model, + str(row.get("runtime_version") or "").strip(), + str(row.get("profile") or "").strip(), + _task_label(row.get("task_type")), + str(row.get("dataset") or "").strip(), + ] + return " | ".join( + part for part in parts if part and part not in ("nan", "unknown") + ) + + +def _prefer_log_candidates(candidates: list, preferred_names: list) -> list: + """Prefer an exact artifact filename, then a loose stem match.""" + for name in preferred_names: + exact = [c for c in candidates if Path(c["path"]).name == name] + if exact: + return exact + for name in preferred_names: + stem = Path(name).stem + loose = [c for c in candidates if stem in Path(c["path"]).name] + if loose: + return loose + return candidates + + +def _group_has_mlflow(group: pd.DataFrame) -> bool: + if "mlflow_run_id" not in group.columns: + return False + return ( + group["mlflow_run_id"].fillna("").astype(str).str.strip().ne("").any() + ) + + +def _group_is_matrix(group: pd.DataFrame) -> bool: + if "experiment_phase" not in group.columns: + return False + return ( + group["experiment_phase"] + .fillna("") + .astype(str) + .str.strip() + .eq("matrix") + .any() + ) + + def _view_logs(df: pd.DataFrame): st.subheader("📋 View Logs") @@ -1012,33 +1073,144 @@ def _view_logs(df: pd.DataFrame): st.info("No run_name column is available in the data.") return - logs_df = df.dropna(subset=["run_name"]).drop_duplicates(subset=["run_name"]).copy() + logs_df = df.dropna(subset=["run_name"]).copy() if logs_df.empty: st.info("No runs with a run name are available in the current filters.") return - selected_run = st.selectbox( - "Select a run to view its log:", - logs_df["run_name"].tolist(), - format_func=lambda name: _log_run_label( - logs_df.loc[logs_df["run_name"] == name].iloc[0] - ), - key="omni_log_run", + logs_df["_concurrency"] = pd.to_numeric( + logs_df["concurrency"], errors="coerce" + ) + logs_df["_deployment_key"] = logs_df.apply(_log_deployment_key, axis=1) + + grouped = [] + for key, group in logs_df.groupby("_deployment_key", sort=False): + group = group.sort_values("_concurrency") + grouped.append( + { + "key": key, + "label": _log_deployment_label(group.iloc[0]), + "group": group, + } + ) + label_counts = {} + for item in grouped: + label_counts[item["label"]] = label_counts.get(item["label"], 0) + 1 + for item in grouped: + if label_counts[item["label"]] > 1: + first = item["group"].iloc[0] + uuid = str(first.get("deployment_uuid") or "").strip() + suffix = ( + uuid[:8] + if uuid and uuid.lower() not in ("nan", "none") + else str(first.get("run_name") or "")[:24] + ) + item["label"] = f"{item['label']} | {suffix}" + grouped.sort( + key=lambda item: ( + 0 + if _group_has_mlflow(item["group"]) + and _group_is_matrix(item["group"]) + else 1, + item["label"], + ) + ) + + options = [item["key"] for item in grouped] + labels = {item["key"]: item["label"] for item in grouped} + if st.session_state.get("omni_log_deployment") not in options: + st.session_state["omni_log_deployment"] = options[0] + selected_key = st.selectbox( + "Select a deployment:", + options, + format_func=lambda key: labels[key], + key="omni_log_deployment", + help="One entry per deployment/configuration. Server and bench logs are selected below.", + ) + item = next(item for item in grouped if item["key"] == selected_key) + group = item["group"] + label = item["label"] + + concurrency_values = sorted( + { + int(value) + for value in group["_concurrency"].dropna() + if float(value).is_integer() + } ) - row = logs_df.loc[logs_df["run_name"] == selected_run].iloc[0] - run_key = re.sub(r"[^A-Za-z0-9_.-]+", "_", str(selected_run))[:80] + source_options = ["Server log (vLLM)"] + [ + f"Bench log — c{value}" for value in concurrency_values + ] + if st.session_state.get("omni_log_source") not in source_options: + st.session_state["omni_log_source"] = source_options[0] + source = st.radio( + "Log source:", + source_options, + horizontal=True, + key="omni_log_source", + help="The vLLM server log is per deployment; bench logs are per concurrency.", + ) + + errors = [] + candidates = [] + if source == "Server log (vLLM)": + rows_to_try = [] + c1 = group[group["_concurrency"] == 1] + if not c1.empty: + rows_to_try.append(c1.iloc[0]) + for _, candidate_row in group.iterrows(): + if c1.empty or candidate_row["run_name"] != c1.iloc[0]["run_name"]: + rows_to_try.append(candidate_row) + for candidate_row in rows_to_try: + row_candidates, row_errors = _log_candidates(candidate_row) + matches = [ + candidate + for candidate in row_candidates + if Path(candidate["path"]).name == "server.log" + ] + if matches: + candidates = matches + errors = row_errors + break + if row_candidates and not candidates: + candidates = row_candidates + errors = row_errors + candidates = _prefer_log_candidates(candidates, ["server.log"]) + if candidates and not any( + Path(candidate["path"]).name == "server.log" + for candidate in candidates + ): + st.caption( + "Server log not found for this deployment; showing the available log instead." + ) + else: + concurrency_by_source = { + f"Bench log — c{value}": value for value in concurrency_values + } + concurrency = concurrency_by_source[source] + target_rows = group[group["_concurrency"] == concurrency] + if target_rows.empty: + st.warning(f"No run found for concurrency {concurrency}.") + return + row = target_rows.iloc[0] + candidates, errors = _log_candidates(row) + candidates = _prefer_log_candidates( + candidates, + [f"cell_c{concurrency}.log", f"saturation_c{concurrency}.log"], + ) - candidates, errors = _log_candidates(row) if not candidates: - st.warning("Log not available for this run.") + st.warning("Log not available for this deployment.") if errors: st.caption(errors[0]) return + result_key = f"{selected_key}|{source}" + safe_key = re.sub(r"[^A-Za-z0-9_.-]+", "_", result_key)[:100] if st.button( - "🔍 Fetch Log", type="primary", key=f"omni_fetch_log_{run_key}" + "🔍 Fetch Log", type="primary", key=f"omni_fetch_log_{safe_key}" ): - result = {"run": selected_run, "content": None, "error": None} + result = {"run": result_key, "content": None, "error": None} for candidate in candidates: try: result["content"] = _fetch_log( @@ -1055,28 +1227,35 @@ def _view_logs(df: pd.DataFrame): st.session_state["omni_log_result"] = result cached = st.session_state.get("omni_log_result") - if not cached or cached.get("run") != selected_run: + if not cached or cached.get("run") != result_key: return if cached.get("error"): - st.warning(f"Log not available for this run: {cached['error']}") + st.warning(f"Log not available for this deployment: {cached['error']}") return content = cached.get("content") or "" - st.success(f"Log loaded for `{selected_run}`") + st.success(f"Log loaded for {label} — {source}") + display_content = content + if len(content) > MAX_LOG_DISPLAY_CHARS: + display_content = content[-MAX_LOG_DISPLAY_CHARS:] + st.caption( + f"Showing the last {MAX_LOG_DISPLAY_CHARS // 1_000_000} MB of " + f"{len(content) / 1_000_000:.1f} MB. Download the full log below." + ) st.text_area( "Log output", - value=content, + value=display_content, height=600, disabled=True, - key=f"omni_log_full_{run_key}", + key=f"omni_log_full_{safe_key}", ) st.download_button( "⬇️ Download Full Log", data=content, - file_name=f"{run_key}.log", + file_name=f"{safe_key}.log", mime="text/plain", - key=f"omni_download_log_{run_key}", + key=f"omni_download_log_{safe_key}", ) From 30a5d45a305e35ac9f7fe6a2f599d3a26746bb8c Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 19:04:59 -0500 Subject: [PATCH 49/74] Prefer Qwen deployments in View Logs default Keep the default selector on a Qwen matrix deployment whose c1 child carries the vLLM server log, rather than an OmniVoice entry without one. Co-Authored-By: Claude Code --- omni_dashboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/omni_dashboard.py b/omni_dashboard.py index 27c11bd..a9443f5 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1110,6 +1110,9 @@ def _view_logs(df: pd.DataFrame): if _group_has_mlflow(item["group"]) and _group_is_matrix(item["group"]) else 1, + 0 + if "qwen" in str(item["group"].iloc[0].get("model") or "").lower() + else 1, item["label"], ) ) From 2fac5610668358e8151996247a5f953c6231eae8 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 19:15:11 -0500 Subject: [PATCH 50/74] Define N in Performance Plots Explain that N is the measured request count and list the values for legacy, the 3.6 matrix, and the 3.6 base CI/saturation runs. Co-Authored-By: Claude Code --- omni_dashboard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index a9443f5..626cb89 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1376,8 +1376,10 @@ def _performance_plots(df: pd.DataFrame): sub = sub[sub["concurrency"] <= max_conc] st.caption( - "3.5 legacy runs use N=100; the 3.6 matrix uses N=1000. " - "Hover a point for its request count, or select 'Requests sent (N)' as the Y-axis." + "N = measured requests per benchmark point (warmups and the 500-request " + "burn-in excluded). 3.5 legacy: N=100; 3.6 Athena matrix: N=1000; " + "3.6 base: N=10 (CI) and N=100/128/256 (saturation). " + "Hover a point for its N, or select 'Requests sent (N)' as the Y-axis." ) if sub.empty: From e991ef34c0c6b88c8ae32c27a7e72c9dbc523162 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 19:16:18 -0500 Subject: [PATCH 51/74] Avoid caching full Omni log bodies View Logs already keeps the fetched result in session state; caching the full multi-megabyte log again doubled memory and could get the staging server killed. Fetch on demand and keep only the current result. Co-Authored-By: Claude Code --- omni_dashboard.py | 1 - 1 file changed, 1 deletion(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index 626cb89..bf03e38 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -957,7 +957,6 @@ def _log_candidates(row: pd.Series) -> tuple: return candidates, errors -@st.cache_data(ttl=300, show_spinner=False) def _fetch_log( source: str, identifier: str, From 2652e9a2bdd1880c76e59b631ce976ae3be735d2 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 19:24:26 -0500 Subject: [PATCH 52/74] Add response-format control and log-scale concurrency axis Expose All/WAV/PCM filtering, keep formats in the trace identity, show format on hover and in Filtered Data, match response_format in Compare Versions, persist it in the URL, and space the concurrency ladder on a log2 axis with ticks at the values actually run. Co-Authored-By: Claude Code --- omni_dashboard.py | 76 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index bf03e38..7b30d6b 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -143,6 +143,7 @@ def _omni_legend_label(row: pd.Series) -> str: "num_prompts", "deployment_uuid_hover", "runtime_args_hover", + "response_format_label", ] # Default Filtered Data view. The full row stays available via the CSV download @@ -154,6 +155,7 @@ def _omni_legend_label(row: pd.Series) -> str: "profile", "task_type", "dataset", + "response_format", "concurrency", "num_prompts", "audio_ttfp_ms_p95", @@ -374,6 +376,7 @@ def _resolve_benchmark_mode( "load_generator", "tp", "accelerator", + "response_format", ] COMPARE_FLAT_THRESHOLD_PCT = 1.0 @@ -1309,7 +1312,24 @@ def _performance_plots(df: pd.DataFrame): if not metrics: st.warning("No metrics with data are available for the current filters.") return - col1, col2, col3, col4 = st.columns([1.6, 1, 0.8, 1.1]) + format_values = set() + if "response_format" in df.columns: + format_values = { + str(value).strip().lower() + for value in df["response_format"].dropna().unique() + if str(value).strip() + } + format_options = ["all"] + [ + value + for value in ("wav", "pcm", "mp3", "flac", "opus") + if value in format_values + ] + format_key = "omni_perf_response_format" + format_param = _query_first("omni_response_format") + preferred_format = st.session_state.get(format_key, format_param or "all") + if preferred_format not in format_options: + preferred_format = "all" if "all" in format_options else format_options[0] + col1, col2, col3, col4, col5 = st.columns([1.5, 0.9, 0.8, 1.0, 1.0]) with col1: y_label = st.selectbox( "Select Y-Axis", list(metrics), key="omni_perf_y_axis" @@ -1321,12 +1341,30 @@ def _performance_plots(df: pd.DataFrame): help="Show streaming results (on) or non-streaming results (off).", ) with col4: + response_format = st.selectbox( + "Response format", + format_options, + index=format_options.index(preferred_format), + format_func=lambda value: "All" if value == "all" else value.upper(), + key=format_key, + help=( + "WAV and PCM are only comparable at the same model/version, N, " + "concurrency, streaming mode, and 24 kHz sample rate. WAV is PCM " + "plus a header; format handling can add overhead." + ), + ) + with col5: include_legacy = st.toggle( "Include 3.5 legacy (N=100)", value=False, key="omni_perf_include_legacy", help="3.5 legacy runs used N=100; the 3.6 matrix uses N=1000.", ) + if response_format != "all": + if _query_first("omni_response_format") != response_format: + st.query_params["omni_response_format"] = response_format + elif "omni_response_format" in st.query_params: + del st.query_params["omni_response_format"] if "streaming" in mode_values and "non_streaming" in mode_values: desired_param = "1" if streaming_on else "0" if _query_first("omni_streaming") != desired_param: @@ -1349,6 +1387,10 @@ def _performance_plots(df: pd.DataFrame): sub = sub[ sub["benchmark_mode"].astype(str).str.lower() == active_mode ].copy() + if response_format != "all" and "response_format" in sub.columns: + sub = sub[ + sub["response_format"].astype(str).str.lower() == response_format + ].copy() if x_axis == "concurrency": sub["concurrency"] = pd.to_numeric(sub["concurrency"], errors="coerce") sub = sub.dropna(subset=["concurrency"]) @@ -1380,6 +1422,12 @@ def _performance_plots(df: pd.DataFrame): "3.6 base: N=10 (CI) and N=100/128/256 (saturation). " "Hover a point for its N, or select 'Requests sent (N)' as the Y-axis." ) + if "wav" in format_values and "pcm" in format_values: + st.caption( + "Comparing WAV vs PCM: match model/version, N, concurrency, streaming " + "mode, and 24 kHz sample rate. WAV is PCM plus a header, but format " + "handling can add overhead; report RTF and audio throughput alongside req/s." + ) if sub.empty: st.info(f"No data available for '{y_label}' with these filters.") @@ -1404,6 +1452,8 @@ def _performance_plots(df: pd.DataFrame): + sub["task_type"].fillna("?").astype(str) + " | " + sub["dataset"].fillna("?").astype(str) + + " | " + + sub["response_format"].fillna("").astype(str).str.lower() ) sub["runtime_args"] = sub["runtime_args"].fillna("").astype(str) sub["task_label"] = sub["task_type"].map(_task_label) @@ -1411,6 +1461,9 @@ def _performance_plots(df: pd.DataFrame): sub["runtime_args_hover"] = sub["runtime_args"].str.replace( "; ", "
", regex=False ) + sub["response_format_label"] = ( + sub["response_format"].fillna("").astype(str).str.upper() + ) sub = add_trace_metadata( sub, series_column="run_identifier", @@ -1481,6 +1534,11 @@ def _performance_plots(df: pd.DataFrame): trace.marker.line = {"width": 1, "color": "white"} trace.opacity = float(first["line_opacity"]) trace.legendgroup = first["run_identifier"] + format_line = ( + "Format: %{customdata[9]}
" + if first.get("response_format") + else "" + ) uuid_line = ( "UUID: %{customdata[7]}
" if first.get("deployment_uuid_hover") @@ -1500,6 +1558,7 @@ def _performance_plots(df: pd.DataFrame): "Task: %{customdata[3]}
" "Dataset: %{customdata[4]}
" "Requests: %{customdata[6]}
" + + format_line + uuid_line + runtime_line + "" @@ -1521,6 +1580,21 @@ def _performance_plots(df: pd.DataFrame): "yanchor": "top", }, ) + concurrency_ticks = sorted( + { + int(value) + for value in sub["concurrency"].dropna().unique() + if float(value).is_integer() + } + ) + if concurrency_ticks: + fig.update_xaxes( + type="log", + tickmode="array", + tickvals=concurrency_ticks, + ticktext=[str(value) for value in concurrency_ticks], + title_text="Concurrency (log scale)", + ) def _merge_plot_selection(): points = st.session_state["omni_perf_chart"]["selection"]["points"] From a5ea5444014e2de8a53665cc201405d7d2f31950 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 19:53:06 -0500 Subject: [PATCH 53/74] Add Grafana links and rename configuration to recipe Show a Grafana Metrics link beside MLflow in Filtered Data, built from the run window and deployment UUID. Rename the output column profile to recipe and include the recipe in Performance Plots legend labels so default and B8 are distinguishable at a glance. Co-Authored-By: Claude Code --- ...nsolidated_dashboard_omni_tts_template.csv | 2 +- docs/omni-dashboard.md | 8 +-- docs/omni-overview-redesign.md | 12 ++-- docs/omni-tts-column-sources.md | 14 ++-- manual_runs/scripts/build_omni_tts_csv.py | 6 +- omni_dashboard.py | 71 ++++++++++++++----- 6 files changed, 75 insertions(+), 38 deletions(-) diff --git a/datasets/omni/consolidated_dashboard_omni_tts_template.csv b/datasets/omni/consolidated_dashboard_omni_tts_template.csv index 295041f..d2eb05f 100644 --- a/datasets/omni/consolidated_dashboard_omni_tts_template.csv +++ b/datasets/omni/consolidated_dashboard_omni_tts_template.csv @@ -1 +1 @@ -run_key,run_name,timestamp_utc,cluster,deployment_uuid,mlflow_run_id,source_file,model,runtime_version,image_tag,accelerator,gpu_count,tp,modality,input_modality,output_modality,task_type,profile,runtime_args,experiment_phase,benchmark_tool,load_generator,api_endpoint,benchmark_mode,response_format,tokenizer_override,status,dataset,locale,num_prompts,request_rate,concurrency,measured_concurrency,short_window,duration_s,successful_requests,errored_requests,e2el_ms_mean,e2el_ms_median,e2el_ms_p95,e2el_ms_p99,request_throughput_rps,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,notes,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,num_audio_ttfp_samples,num_audio_rtf_samples,missing_audio_duration_count,audio_channels,audio_bits_per_sample,audio_codec,audio_underrun_threshold_s +run_key,run_name,timestamp_utc,cluster,deployment_uuid,mlflow_run_id,source_file,model,runtime_version,image_tag,accelerator,gpu_count,tp,modality,input_modality,output_modality,task_type,recipe,runtime_args,experiment_phase,benchmark_tool,load_generator,api_endpoint,benchmark_mode,response_format,tokenizer_override,status,dataset,locale,num_prompts,request_rate,concurrency,measured_concurrency,short_window,duration_s,successful_requests,errored_requests,e2el_ms_mean,e2el_ms_median,e2el_ms_p95,e2el_ms_p99,request_throughput_rps,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,notes,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,num_audio_ttfp_samples,num_audio_rtf_samples,missing_audio_duration_count,audio_channels,audio_bits_per_sample,audio_codec,audio_underrun_threshold_s diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 93f2ae7..8413261 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -93,7 +93,7 @@ Four changes take the working table from 165 to roughly 46 + metric files: **Current staged rollout:** one 77-column CSV = 49 run/core columns (identity 7, model/runtime 7, task/protocol 13, workload 7, outcome 8, stage 6, notes 1) + 28 audio-output columns. `runtime_args` carries `gpu-mem`, `max-seqs`, and -`max-batched-tokens`. Performance Plots no longer show the profile or +`max-batched-tokens`. Performance Plots no longer show the recipe or experiment-phase labels; hover shows the resolved runtime args, and legend labels end at `dataset | TP`. @@ -114,7 +114,7 @@ Column math: 46 runs + 30 audio + 34 text + 20 config = **130 columns total**, b - **Identity (7):** `run_key`, `run_name`, `timestamp_utc`, `repetition`, `cluster`, `deployment_uuid`, `mlflow_run_id` - **Model/runtime (6):** `model`, `runtime_version`, `image_tag`, `accelerator`, `gpu_count`, `tp` -- **Task/protocol (11):** `task_type`, `profile`, `experiment_phase`, `output_modality`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` +- **Task/protocol (11):** `task_type`, `recipe`, `experiment_phase`, `output_modality`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` - **Workload (7):** `dataset`, `locale`, `num_prompts`, `request_rate`, `concurrency`, `measured_concurrency`, `short_window` - **Outcome (8):** `duration_s`, `successful_requests`, `errored_requests`, `e2el_ms_{mean,median,p95,p99}` (4), `request_throughput_rps` - **Stage (6):** `stage_0_ttft_ms_{p50,p95}` (2), `stage_1_ttft_ms_{p50,p95}` (2), `transfer_tx_ms_{p50,p95}` (2) @@ -171,7 +171,7 @@ erDiagram string run_key PK string model string runtime_version - string profile + string recipe string task_type string output_modality string api_endpoint @@ -235,7 +235,7 @@ full = runs.merge(audio, on="run_key", how="left") \ Filtered Data should not show all 46 runs columns either. A task-aware preset of ~14 columns keeps the table readable: -- TTS: model, runtime_version, profile, dataset, concurrency, audio TTFP p95, audio RTF p95, audio underrun p95, audio throughput, E2EL p95, duration, successful, errored, status. +- TTS: model, runtime_version, recipe, dataset, concurrency, audio TTFP p95, audio RTF p95, audio underrun p95, audio throughput, E2EL p95, duration, successful, errored, status. - ASR: model, runtime_version, dataset, language, WER, RTFx, transcription throughput, input audio duration, duration, status. The full column set stays available behind a “show all columns” toggle and the CSV download. diff --git a/docs/omni-overview-redesign.md b/docs/omni-overview-redesign.md index 59368f4..4a38731 100644 --- a/docs/omni-overview-redesign.md +++ b/docs/omni-overview-redesign.md @@ -56,7 +56,7 @@ Problems: ├───────────────┬───────────────┬────────────────┬─────────────────────┤ │ SLO knee │ Best audio │ 3.6 vs upstream│ Data health │ │ c2 across │ throughput │ Δ throughput │ 57/117 MLflow │ -│ 4/6 profiles │ 43.8 audio-s/s│ +X % │ 53 short-window │ +│ 4/6 recipes │ 43.8 audio-s/s│ +X % │ 53 short-window │ │ [Open plots] │ [Open plots] │ [Compare] │ [Filtered data] │ ├───────────────┴───────────────┴────────────────┴─────────────────────┤ │ SLO knee by configuration (p95 TTFP <500 ms · RTF <1 · underrun <100 ms) @@ -78,7 +78,7 @@ Problems: Data: `concurrency`, `audio_ttfp_ms_p95`, `audio_rtf_p95`, `audio_underrun_s_p95`, `audio_throughput_x`, `request_throughput_rps`, -`short_window`, `experiment_phase`, `runtime_version`, `profile`, `mlflow_run_id`. +`short_window`, `experiment_phase`, `runtime_version`, `recipe`, `mlflow_run_id`. Pros: answers state, SLO, change, and data trust in one screen; no embedded charts; every section links to the real view. @@ -147,8 +147,8 @@ Implementation options: - Do not embed Plotly charts in Overview. If a chart is needed, link to Performance Plots with the filters and metric preselected. -Config-specific rows (default vs B8) currently have no profile filter. Add an -optional `omni_profiles` param and a small "Config" filter, or land on the +Config-specific rows (default vs B8) currently have no recipe filter. Add an +optional `omni_recipes` param and a small "Config" filter, or land on the model/version and rely on the chart's dash/dot styles. ## 6. Implementation plan @@ -157,7 +157,7 @@ Replace `_overview(df)` with: - `_overview_kpis(df)` — compute: - `view = df[df["experiment_phase"] != "ci"]` - - SLO knee per `(model, runtime_version, profile, task_type, dataset)`: + - SLO knee per `(model, runtime_version, recipe, task_type, dataset)`: largest `concurrency` where all measured p95 gates pass (`audio_ttfp_ms_p95 < 500`, `audio_rtf_p95 < 1.0`, `audio_underrun_s_p95 < 0.1`); treat blank gate values as "not measured". @@ -192,5 +192,5 @@ Phase 2 parity needs only existing columns; no new collection. legacy rows from the SLO table? 5. Upstream pairs: confirm 3.6 GA vs v0.30 and 3.6 fast1 vs v0.26. 6. Should data health be a visible strip or a collapsed expander? -7. Do we add a Config/profile filter now, or land deep links on model/version +7. Do we add a Config/recipe filter now, or land deep links on model/version only? diff --git a/docs/omni-tts-column-sources.md b/docs/omni-tts-column-sources.md index aefd807..025c6de 100644 --- a/docs/omni-tts-column-sources.md +++ b/docs/omni-tts-column-sources.md @@ -27,7 +27,7 @@ The legacy `datasets/omni/consolidated_dashboard_omni_template.csv` remains the | 3.6 Athena | `results/athena/benchmark_results.csv` (Qwen3-TTS CustomVoice rows) + `results/athena///cell_c*.json` | 48 | | **Total** | | **117** | -Athena has six Qwen3-TTS profiles × 8 concurrency points: 3.6 GA default, +Athena has six Qwen3-TTS recipes × 8 concurrency points: 3.6 GA default, 3.6 GA B8, 3.6 fast-1 default, v0.30 default, v0.30 B8, v0.26 default. Excluded: Voxtral rows (unsupported in streaming WAV), OmniVoice rows, and all @@ -53,12 +53,12 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default | Column | Source | Rule | |---|---|---| -| `run_key` | derived | `slug(model) + "__" + runtime_version + "__" + profile + "__" + task_type + "__c" + concurrency + "__" + experiment_phase`. Must be unique across all rows. | +| `run_key` | derived | `slug(model) + "__" + runtime_version + "__" + recipe + "__" + task_type + "__c" + concurrency + "__" + experiment_phase`. Must be unique across all rows. | | `run_name` | `r` / `meta` | 3.5: `legacy-3.5-{model}-{task_type}-{version}-c{C}`. 3.6 base: `meta.run_name_template` or `qwen3-tts-base-36ga_saturation_c{C}` / `qwen3-tts-base-ci`. Athena: `{run_dir}-{profile}_c{C}` (e.g. `customvoice-36ga-default_c64`). | | `timestamp_utc` | `r` / `d` / `rm` | 3.5: `r.timestamp`. 3.6 base: `d.date` (`YYYYMMDD-HHMMSS`) or file mtime. Athena: `rm.started_at`. Normalize to ISO 8601 UTC. | | `cluster` | `r` / `meta` / `cm` | Use a short project label (`hera` or `athena`), not a hostname. | | `deployment_uuid` | `cm` / `meta` | Athena: `cm.deployment_uuid`. 3.6 base: pattern `deployment_uuid`. 3.5: blank. Local-only field. | -| `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four profiles are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | +| `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four recipes are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | | `source_file` | derived | Path to `d` relative to the recipe checkout. | ### Model / runtime (7) @@ -81,7 +81,7 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default | `input_modality` | derived | `text`. | | `output_modality` | derived | `audio`. | | `task_type` | `r.task_type` / `meta.task_type` | Normalize `custom_voice` → `default_voice`. | -| `profile` | `r.profile` / `cm.profile` | 3.5 and 3.6 base: `default`. Athena: `default` or `b8`. | +| `recipe` | `r.profile` / `cm.profile` | Output column is `recipe`; source metadata still calls it `profile`. 3.5 and 3.6 base: `default`. Athena: `default` or `b8`. | | `experiment_phase` | derived | 3.5: `legacy`. 3.6 base: `ci` for the CI file, `saturation` for the ladder. Athena: `matrix`. | | `benchmark_tool` | `r.benchmark_tool` / derived | 3.5: source value (`vllm-bench-serve`). 3.6: `vllm-omni-bench-serve`. | | `load_generator` | derived | `vllm-omni-bench-serve` for all rows so 3.5 and 3.6 compare in one series. | @@ -168,12 +168,12 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default ## Config naming -`profile=b8` is the upstream Qwen3-TTS high-concurrency deploy profile +`recipe=b8` (source field `profile`) is the upstream Qwen3-TTS high-concurrency deploy profile (`qwen3_tts_high_concurrency_mrv2_single_gpu.yaml`), where the Code2Wav decoder batch size is 8. It also sets stage-0 `max_num_seqs=128` and stage-1 `max_num_seqs=32`. It is not a vLLM `--max-num-seqs=8` flag. The dashboard shows the resolved `runtime_args` (`gpu-mem`, `max-seqs`, -`max-batched-tokens`), not the profile label. +`max-batched-tokens`), not the source profile label. ## Provenance phases @@ -181,7 +181,7 @@ shows the resolved `runtime_args` (`gpu-mem`, `max-seqs`, - `ci` — single c1 smoke run (10 measured prompts); excluded from Performance Plots. - `saturation` — c1–c128 ladder for the 3.6 base rows. -- `matrix` — six-profile Athena matrix. +- `matrix` — six-recipe Athena matrix. - `legacy` — 3.5 data. ## Dashboard MLflow link diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py index 1e7bf49..fce2909 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -577,7 +577,7 @@ def build_35(recipe_root, header): row["input_modality"] = "text" row["output_modality"] = "audio" row["task_type"] = task_type - row["profile"] = profile + row["recipe"] = profile row["experiment_phase"] = phase row["benchmark_tool"] = as_text(source_row.get("benchmark_tool")) row["load_generator"] = DEFAULT_LOAD_GENERATOR @@ -697,7 +697,7 @@ def build_36(recipe_root, header): row["input_modality"] = "text" row["output_modality"] = "audio" row["task_type"] = task_type - row["profile"] = profile + row["recipe"] = profile row["experiment_phase"] = phase row["benchmark_tool"] = as_text( pick(defaults.get("benchmark_tool"), "vllm-omni-bench-serve") @@ -842,7 +842,7 @@ def build_athena(recipe_root, header, mlflow_index=None): row["input_modality"] = "text" row["output_modality"] = "audio" row["task_type"] = task_type - row["profile"] = profile + row["recipe"] = profile row["experiment_phase"] = phase row["benchmark_tool"] = as_text( pick(defaults.get("benchmark_tool"), "vllm-omni-bench-serve") diff --git a/omni_dashboard.py b/omni_dashboard.py index 7b30d6b..434a377 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -56,6 +56,13 @@ S3_LOGS_BUCKET = os.environ.get("S3_LOGS_BUCKET", "") S3_LOGS_PREFIX = os.environ.get("S3_LOGS_PREFIX", "logs/") +GRAFANA_BASE_URL = os.environ.get( + "GRAFANA_BASE_URL", "https://grafana-psap-obs.apps.ocp4.intlab.redhat.com" +) +OMNI_GRAFANA_DASHBOARD_UID = os.environ.get( + "OMNI_GRAFANA_DASHBOARD_UID", "vllm-omni-dcgm-psap-fire-athena" +) + NUMERIC_COLUMNS = [ "concurrency", "measured_concurrency", "num_prompts", "num_utterances", "tp", "pp", "dp", "gpu_count", "request_throughput_rps", @@ -123,12 +130,16 @@ def _omni_legend_label(row: pd.Series) -> str: tp_text = f"TP={int(tp) if float(tp).is_integer() else tp}" else: tp_text = "TP=N/A" + recipe = str(row.get("recipe") or "default").strip() + if recipe.lower() == "b8": + recipe = "B8" return " | ".join( [ str(row.get("model_short") or row.get("model") or "?"), str(row.get("runtime_version") or "?"), _task_label(row.get("task_type")), str(row.get("dataset") or "?"), + recipe, tp_text, ] ) @@ -152,7 +163,8 @@ def _omni_legend_label(row: pd.Series) -> str: "model", "runtime_version", "mlflow_link", - "profile", + "grafana_metrics_link", + "recipe", "task_type", "dataset", "response_format", @@ -185,25 +197,47 @@ def _mlflow_link(row: pd.Series): ) +def _grafana_metrics_link(row: pd.Series): + uuid = str(row.get("deployment_uuid") or "").strip() + if not uuid or uuid.lower() in ("nan", "none"): + return "" + timestamp = pd.to_datetime(row.get("timestamp_utc"), errors="coerce", utc=True) + duration = pd.to_numeric(row.get("duration_s"), errors="coerce") + if pd.isna(timestamp) or pd.isna(duration): + return "" + start_ms = int(timestamp.timestamp() * 1000) - 600_000 + end_ms = start_ms + int(float(duration) * 1000) + 300_000 + return ( + f"{GRAFANA_BASE_URL}/d/{OMNI_GRAFANA_DASHBOARD_UID}/" + f"{OMNI_GRAFANA_DASHBOARD_UID}" + f"?orgId=1&from={start_ms}&to={end_ms}&timezone=browser" + f"&var-deployment_uuid={uuid}&var-deployment_pod_name=$__all" + f"&var-rate_interval=1m" + ) + + def _blank_nan(frame: pd.DataFrame) -> pd.DataFrame: """Render missing numeric cells as blanks instead of 'None'.""" display = frame.copy() for column in display.columns: if pd.api.types.is_float_dtype(display[column]): - display[column] = display[column].astype(object).where( - display[column].notna(), "" - ) + display[column] = display[column].astype("Float64") return display def _link_column_config(frame: pd.DataFrame): - if "mlflow_link" not in frame.columns: - return None - return { - "mlflow_link": st.column_config.LinkColumn( + config = {} + if "mlflow_link" in frame.columns: + config["mlflow_link"] = st.column_config.LinkColumn( "MLflow", help="Open this run in MLflow", display_text="View Run 🧪" ) - } + if "grafana_metrics_link" in frame.columns: + config["grafana_metrics_link"] = st.column_config.LinkColumn( + "Grafana Metrics", + help="Open this run in Grafana", + display_text="View Metrics 📊", + ) + return config or None OMNI_METRICS = { "Request throughput (req/s)": "request_throughput_rps", @@ -434,8 +468,10 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df[col] = "unknown" df[col] = df[col].fillna("unknown") + if "recipe" not in df.columns and "profile" in df.columns: + df["recipe"] = df["profile"] for column, default in ( - ("profile", "default"), + ("recipe", "default"), ("experiment_phase", ""), ("runtime_args", ""), ("response_format", ""), @@ -468,6 +504,7 @@ def _conc_label(value): + " | " + df["load_generator"].astype(str) ) df["mlflow_link"] = df.apply(_mlflow_link, axis=1) + df["grafana_metrics_link"] = df.apply(_grafana_metrics_link, axis=1) return df @@ -1008,7 +1045,7 @@ def _log_deployment_key(row: pd.Series) -> str: return "uuid:" + uuid return "config:" + "|".join( str(row.get(key) or "").strip() - for key in ("model", "runtime_version", "profile", "task_type", "dataset") + for key in ("model", "runtime_version", "recipe", "task_type", "dataset") ) @@ -1017,7 +1054,7 @@ def _log_deployment_label(row: pd.Series) -> str: parts = [ model, str(row.get("runtime_version") or "").strip(), - str(row.get("profile") or "").strip(), + str(row.get("recipe") or "").strip(), _task_label(row.get("task_type")), str(row.get("dataset") or "").strip(), ] @@ -1445,7 +1482,7 @@ def _performance_plots(df: pd.DataFrame): + " | " + sub["model_short"] + " | " - + sub["profile"].fillna("?").astype(str) + + sub["recipe"].fillna("?").astype(str) + " | " + sub["runtime_version"].fillna("?").astype(str) + " | " @@ -1476,13 +1513,13 @@ def _performance_plots(df: pd.DataFrame): "include_dp": False, }, ) - is_non_default_profile = ( - sub["profile"].fillna("").astype(str).str.lower().ne("default") + is_non_default_recipe = ( + sub["recipe"].fillna("").astype(str).str.lower().ne("default") ) - sub.loc[is_non_default_profile & sub["line_style"].eq("solid"), "line_style"] = ( + sub.loc[is_non_default_recipe & sub["line_style"].eq("solid"), "line_style"] = ( "dash" ) - sub.loc[is_non_default_profile & sub["line_style"].eq("dot"), "line_style"] = ( + sub.loc[is_non_default_recipe & sub["line_style"].eq("dot"), "line_style"] = ( "dashdot" ) repeated = sub["line_style"].isin(["dot", "dashdot"]) & sub["uuid"].ne("") From 21d0e3005aa4eb536af25e848fd583d3596c44d3 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 19:55:40 -0500 Subject: [PATCH 54/74] Render missing numeric cells as blank strings Keep the Arrow-safe table while showing blanks instead of None for unavailable p95 values. Co-Authored-By: Claude Code --- omni_dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index 434a377..0ac4832 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -221,7 +221,9 @@ def _blank_nan(frame: pd.DataFrame) -> pd.DataFrame: display = frame.copy() for column in display.columns: if pd.api.types.is_float_dtype(display[column]): - display[column] = display[column].astype("Float64") + display[column] = display[column].map( + lambda value: "" if pd.isna(value) else str(value) + ) return display From ca2ea10f696aa006c74d48f3fee281ef56eceab3 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 20:30:08 -0500 Subject: [PATCH 55/74] Describe Performance Plots without the RHAIIS comparison Replace the layout reference with a plain description of studying model performance across versions and metrics. Co-Authored-By: Claude Code --- omni_dashboard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index 0ac4832..18f7a42 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -2498,8 +2498,9 @@ def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_ csv_path = os.environ.get("OMNI_CSV_PATH", csv_path) st.header("vLLM-Omni Performance") st.caption( - "Speech-out (TTS) benchmarks. Overview is the default page; " - "Performance Plots uses the RHAIIS filter and chart layout." + "Speech-out (TTS) benchmarks. Use Performance Plots to study model " + "performance across versions and review throughput, TTFP, RTF, " + "underrun, and audio throughput." ) section = _render_sidebar_nav() df = load_omni_data(csv_path) From 5e841dfcd2883a10c83ab6eac92e6fc327d91130 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 20:37:36 -0500 Subject: [PATCH 56/74] Make observability endpoints environment-driven Remove internal Grafana and MLflow experiment defaults so the public dashboard only links when the deployment supplies them via env. Co-Authored-By: Claude Code --- docs/omni-dashboard.md | 2 +- docs/omni-tts-column-sources.md | 4 ++-- manual_runs/scripts/extract_mlflow_runs.py | 2 +- omni_dashboard.py | 19 +++++++++++-------- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 8413261..3c72d08 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -381,7 +381,7 @@ export MLFLOW_TRACKING_USERNAME=... export MLFLOW_TRACKING_PASSWORD=... python manual_runs/scripts/extract_mlflow_runs.py \ - --experiment-id 392 \ + --experiment-id \ --name-regex '^my-benchmark-run_.*_c[0-9]+$' \ --artifact-pattern 'results/*.json' \ --artifact-pattern 'logs/*.log' \ diff --git a/docs/omni-tts-column-sources.md b/docs/omni-tts-column-sources.md index 025c6de..33e8f12 100644 --- a/docs/omni-tts-column-sources.md +++ b/docs/omni-tts-column-sources.md @@ -193,8 +193,8 @@ The dashboard turns `mlflow_run_id` into the same kind of hyperlink RHAIIS uses: ``` `MLFLOW_BASE_URL` falls back to `MLFLOW_TRACKING_URI`; `OMNI_MLFLOW_EXPERIMENT_ID` -defaults to `392`. Set `MLFLOW_WORKSPACE` when the experiment lives under a named -workspace. The link appears as a **View Run 🧪** column in Filtered Data. +is read from the environment (no experiment ID is baked into the repo). Set +`MLFLOW_WORKSPACE` when the experiment lives under a named workspace. The link appears as a **View Run 🧪** column in Filtered Data. The optional `--mlflow-runs-json` input is a saved response from `POST /api/2.0/mlflow/runs/search` for the experiment. It lets the builder fill diff --git a/manual_runs/scripts/extract_mlflow_runs.py b/manual_runs/scripts/extract_mlflow_runs.py index d71cc3c..b439801 100644 --- a/manual_runs/scripts/extract_mlflow_runs.py +++ b/manual_runs/scripts/extract_mlflow_runs.py @@ -8,7 +8,7 @@ export MLFLOW_TRACKING_PASSWORD=... python manual_runs/scripts/extract_mlflow_runs.py \ - --experiment-id 392 \ + --experiment-id \ --name-regex '^my-benchmark-run_.*_c[0-9]+$' \ --artifact-pattern 'results/*.json' \ --artifact-pattern 'logs/*.log' \ diff --git a/omni_dashboard.py b/omni_dashboard.py index 18f7a42..185a8e7 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -49,19 +49,15 @@ MLFLOW_TRACKING_URI = os.environ.get("MLFLOW_TRACKING_URI", "") MLFLOW_BASE_URL = os.environ.get("MLFLOW_BASE_URL", MLFLOW_TRACKING_URI) MLFLOW_WORKSPACE = os.environ.get("MLFLOW_WORKSPACE", "") -OMNI_MLFLOW_EXPERIMENT_ID = os.environ.get("OMNI_MLFLOW_EXPERIMENT_ID", "392") +OMNI_MLFLOW_EXPERIMENT_ID = os.environ.get("OMNI_MLFLOW_EXPERIMENT_ID", "") MLFLOW_LOG_ARTIFACT_PREFIX = os.environ.get("MLFLOW_LOG_ARTIFACT_PREFIX", "logs") MAX_LOG_DISPLAY_CHARS = 2_000_000 OMNI_LOG_DIR = os.environ.get("OMNI_LOG_DIR", "datasets/omni/logs") S3_LOGS_BUCKET = os.environ.get("S3_LOGS_BUCKET", "") S3_LOGS_PREFIX = os.environ.get("S3_LOGS_PREFIX", "logs/") -GRAFANA_BASE_URL = os.environ.get( - "GRAFANA_BASE_URL", "https://grafana-psap-obs.apps.ocp4.intlab.redhat.com" -) -OMNI_GRAFANA_DASHBOARD_UID = os.environ.get( - "OMNI_GRAFANA_DASHBOARD_UID", "vllm-omni-dcgm-psap-fire-athena" -) +GRAFANA_BASE_URL = os.environ.get("GRAFANA_BASE_URL", "") +OMNI_GRAFANA_DASHBOARD_UID = os.environ.get("OMNI_GRAFANA_DASHBOARD_UID", "") NUMERIC_COLUMNS = [ "concurrency", "measured_concurrency", "num_prompts", "num_utterances", @@ -189,7 +185,12 @@ def _display_frame(frame: pd.DataFrame) -> pd.DataFrame: def _mlflow_link(row: pd.Series): run_id = str(row.get("mlflow_run_id") or "").strip() - if not run_id or run_id.lower() in ("nan", "none") or not MLFLOW_BASE_URL: + if ( + not run_id + or run_id.lower() in ("nan", "none") + or not MLFLOW_BASE_URL + or not OMNI_MLFLOW_EXPERIMENT_ID + ): return "" return ( f"{MLFLOW_BASE_URL}/#/experiments/{OMNI_MLFLOW_EXPERIMENT_ID}" @@ -198,6 +199,8 @@ def _mlflow_link(row: pd.Series): def _grafana_metrics_link(row: pd.Series): + if not GRAFANA_BASE_URL or not OMNI_GRAFANA_DASHBOARD_UID: + return "" uuid = str(row.get("deployment_uuid") or "").strip() if not uuid or uuid.lower() in ("nan", "none"): return "" From f96eb8386d49eba92ffda0a4d8c210827bbb6398 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 20:44:04 -0500 Subject: [PATCH 57/74] Fix lint and type-check findings Format the Omni modules, add missing public docstrings, bind the comparison loop variable, and scope mypy for the dynamic Streamlit module. Co-Authored-By: Claude Code --- .../scripts/build_consolidated_omni_csv.py | 470 +++++++++++++----- manual_runs/scripts/build_omni_tts_csv.py | 23 + manual_runs/scripts/extract_mlflow_runs.py | 29 +- omni_dashboard.py | 261 +++++----- tests/test_omni_csv.py | 9 +- tests/test_omni_filter_persistence.py | 1 + 6 files changed, 546 insertions(+), 247 deletions(-) diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/build_consolidated_omni_csv.py index 6d70ff4..e8344ad 100644 --- a/manual_runs/scripts/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/build_consolidated_omni_csv.py @@ -14,6 +14,7 @@ Future metrics go in `extra_json` until promoted to a first-class column. """ + import argparse import csv import datetime as dt @@ -27,90 +28,227 @@ SCHEMA_VERSION = "1.0" CORE_COLUMNS = [ - "schema_version", "source_format", "timestamp_utc", "run_name", - "benchmark_run_id", "repetition", "mlflow_run_id", "mlflow_parent_run_id", "mlflow_experiment_id", - "cluster", "namespace", "deployment_uuid", "deployment_pod_name", + "schema_version", + "source_format", + "timestamp_utc", + "run_name", + "benchmark_run_id", + "repetition", + "mlflow_run_id", + "mlflow_parent_run_id", + "mlflow_experiment_id", + "cluster", + "namespace", + "deployment_uuid", + "deployment_pod_name", "grafana_dashboard_uid", - "model", "model_revision", "runtime", "runtime_version", - "vllm_version", "vllm_omni_version", "image_tag", "image_digest", - "accelerator", "gpu_count", "tp", "pp", "dp", - "modality", "input_modality", "output_modality", "task_type", - "benchmark_tool", "benchmark_tool_version", "load_generator", - "dataset", "dataset_path", "dataset_split", "locale", - "num_prompts", "num_utterances", "request_rate", "concurrency", - "measured_concurrency", "num_warmups", "turns", "prefix_tokens", - "prefix_count", "prefix_caching", "spec_decoding", "request_type", - "extra_body_json", "runtime_args", "env_vars_json", - "max_num_seqs", "max_num_batched_tokens", - "duration_s", "successful_requests", "errored_requests", - "benchmark_start_ms", "benchmark_end_ms", + "model", + "model_revision", + "runtime", + "runtime_version", + "vllm_version", + "vllm_omni_version", + "image_tag", + "image_digest", + "accelerator", + "gpu_count", + "tp", + "pp", + "dp", + "modality", + "input_modality", + "output_modality", + "task_type", + "benchmark_tool", + "benchmark_tool_version", + "load_generator", + "dataset", + "dataset_path", + "dataset_split", + "locale", + "num_prompts", + "num_utterances", + "request_rate", + "concurrency", + "measured_concurrency", + "num_warmups", + "turns", + "prefix_tokens", + "prefix_count", + "prefix_caching", + "spec_decoding", + "request_type", + "extra_body_json", + "runtime_args", + "env_vars_json", + "max_num_seqs", + "max_num_batched_tokens", + "duration_s", + "successful_requests", + "errored_requests", + "benchmark_start_ms", + "benchmark_end_ms", ] TEXT_COLUMNS = [ - "prompt_tokens_requested", "output_tokens_requested", - "prompt_tokens_total", "output_tokens_total", - "prompt_tokens_mean", "prompt_tokens_p99", - "output_tokens_mean", "output_tokens_p99", - "ttft_ms_mean", "ttft_ms_median", "ttft_ms_std", "ttft_ms_p25", - "ttft_ms_p50", "ttft_ms_p75", "ttft_ms_p90", "ttft_ms_p95", "ttft_ms_p99", - "tpot_ms_mean", "tpot_ms_median", "tpot_ms_std", "tpot_ms_p50", - "tpot_ms_p95", "tpot_ms_p99", - "itl_ms_mean", "itl_ms_median", "itl_ms_std", "itl_ms_p50", - "itl_ms_p95", "itl_ms_p99", - "e2el_ms_mean", "e2el_ms_median", "e2el_ms_std", "e2el_ms_p25", - "e2el_ms_p50", "e2el_ms_p75", "e2el_ms_p90", "e2el_ms_p95", - "e2el_ms_p99", "e2el_ms_min", "e2el_ms_max", - "request_throughput_rps", "output_token_throughput", + "prompt_tokens_requested", + "output_tokens_requested", + "prompt_tokens_total", + "output_tokens_total", + "prompt_tokens_mean", + "prompt_tokens_p99", + "output_tokens_mean", + "output_tokens_p99", + "ttft_ms_mean", + "ttft_ms_median", + "ttft_ms_std", + "ttft_ms_p25", + "ttft_ms_p50", + "ttft_ms_p75", + "ttft_ms_p90", + "ttft_ms_p95", + "ttft_ms_p99", + "tpot_ms_mean", + "tpot_ms_median", + "tpot_ms_std", + "tpot_ms_p50", + "tpot_ms_p95", + "tpot_ms_p99", + "itl_ms_mean", + "itl_ms_median", + "itl_ms_std", + "itl_ms_p50", + "itl_ms_p95", + "itl_ms_p99", + "e2el_ms_mean", + "e2el_ms_median", + "e2el_ms_std", + "e2el_ms_p25", + "e2el_ms_p50", + "e2el_ms_p75", + "e2el_ms_p90", + "e2el_ms_p95", + "e2el_ms_p99", + "e2el_ms_min", + "e2el_ms_max", + "request_throughput_rps", + "output_token_throughput", "total_token_throughput", ] SPEECH_COLUMNS = [ - "audio_ttfp_ms_mean", "audio_ttfp_ms_median", "audio_ttfp_ms_std", - "audio_ttfp_ms_p25", "audio_ttfp_ms_p50", "audio_ttfp_ms_p75", - "audio_ttfp_ms_p90", "audio_ttfp_ms_p95", "audio_ttfp_ms_p99", - "audio_rtf_mean", "audio_rtf_median", "audio_rtf_std", "audio_rtf_p25", - "audio_rtf_p50", "audio_rtf_p75", "audio_rtf_p90", "audio_rtf_p95", + "audio_ttfp_ms_mean", + "audio_ttfp_ms_median", + "audio_ttfp_ms_std", + "audio_ttfp_ms_p25", + "audio_ttfp_ms_p50", + "audio_ttfp_ms_p75", + "audio_ttfp_ms_p90", + "audio_ttfp_ms_p95", + "audio_ttfp_ms_p99", + "audio_rtf_mean", + "audio_rtf_median", + "audio_rtf_std", + "audio_rtf_p25", + "audio_rtf_p50", + "audio_rtf_p75", + "audio_rtf_p90", + "audio_rtf_p95", "audio_rtf_p99", - "audio_duration_s_mean", "audio_duration_s_median", "audio_duration_s_p50", - "audio_duration_s_p95", "audio_duration_s_p99", - "audio_underrun_s_mean", "audio_underrun_s_median", - "audio_underrun_s_p50", "audio_underrun_s_p95", "audio_underrun_s_p99", - "audio_throughput_x", "audio_output_duration_s_total", - "audio_frames_total", "audio_sample_rate_hz", + "audio_duration_s_mean", + "audio_duration_s_median", + "audio_duration_s_p50", + "audio_duration_s_p95", + "audio_duration_s_p99", + "audio_underrun_s_mean", + "audio_underrun_s_median", + "audio_underrun_s_p50", + "audio_underrun_s_p95", + "audio_underrun_s_p99", + "audio_throughput_x", + "audio_output_duration_s_total", + "audio_frames_total", + "audio_sample_rate_hz", "audio_continuity_ok_rate", ] ASR_COLUMNS = [ - "wer", "wer_ci_lower", "wer_ci_upper", "rtfx", + "wer", + "wer_ci_lower", + "wer_ci_upper", + "rtfx", "transcription_throughput_utterances_s", - "audio_input_duration_s_total", "normalization", "language", + "audio_input_duration_s_total", + "normalization", + "language", ] STAGE_COLUMNS = [ - "stage_0_ttft_ms_p50", "stage_0_ttft_ms_p95", - "stage_1_ttft_ms_p50", "stage_1_ttft_ms_p95", - "stage_0_gen_time_ms_p50", "stage_0_gen_time_ms_p95", - "stage_1_gen_time_ms_p50", "stage_1_gen_time_ms_p95", - "transfer_tx_ms_p50", "transfer_tx_ms_p95", "stage_metrics_json", - "gpu_util_mean", "gpu_util_p95", "gpu_mem_used_mean_mb", - "gpu_power_mean_w", "gpu_temp_max_c", + "stage_0_ttft_ms_p50", + "stage_0_ttft_ms_p95", + "stage_1_ttft_ms_p50", + "stage_1_ttft_ms_p95", + "stage_0_gen_time_ms_p50", + "stage_0_gen_time_ms_p95", + "stage_1_gen_time_ms_p50", + "stage_1_gen_time_ms_p95", + "transfer_tx_ms_p50", + "transfer_tx_ms_p95", + "stage_metrics_json", + "gpu_util_mean", + "gpu_util_p95", + "gpu_mem_used_mean_mb", + "gpu_power_mean_w", + "gpu_temp_max_c", ] -EXTRA_COLUMNS = ["quality_metric", "quality_value", "extra_json", "notes", "source_file"] +EXTRA_COLUMNS = [ + "quality_metric", + "quality_value", + "extra_json", + "notes", + "source_file", +] CANONICAL_COLUMNS = ( - CORE_COLUMNS + TEXT_COLUMNS + SPEECH_COLUMNS + ASR_COLUMNS - + STAGE_COLUMNS + EXTRA_COLUMNS + CORE_COLUMNS + + TEXT_COLUMNS + + SPEECH_COLUMNS + + ASR_COLUMNS + + STAGE_COLUMNS + + EXTRA_COLUMNS ) RAW_LIST_KEYS = { - "ttfts", "tpots", "itls", "e2els", "generated_texts", "errors", - "audio_ttfps", "audio_durations", "audio_frames", "stage_gen_times_ms", - "postprocess_times_ms", "serving_time_to_first_outputs_ms", - "time_per_output_units_ms", "inter_output_latencies_ms", + "ttfts", + "tpots", + "itls", + "e2els", + "generated_texts", + "errors", + "audio_ttfps", + "audio_durations", + "audio_frames", + "stage_gen_times_ms", + "postprocess_times_ms", + "serving_time_to_first_outputs_ms", + "time_per_output_units_ms", + "inter_output_latencies_ms", } -STATS = ("mean", "median", "std", "p25", "p50", "p75", "p90", "p95", "p99", "min", "max") +STATS = ( + "mean", + "median", + "std", + "p25", + "p50", + "p75", + "p90", + "p95", + "p99", + "min", + "max", +) PERCENTILE_SETS = { "audio_ttfp_ms": "audio_ttfp_ms", "audio_rtf": "audio_rtf", @@ -150,8 +288,12 @@ def jdump(v): def parse_timestamp(value, fallback_path): if value: value = str(value) - for fmt in ("%Y%m%d-%H%M%S", "%Y-%m-%dT%H:%M:%SZ", - "%Y-%m-%dT%H:%M:%S", "%Y-%m-%d %H:%M:%S"): + for fmt in ( + "%Y%m%d-%H%M%S", + "%Y-%m-%dT%H:%M:%SZ", + "%Y-%m-%dT%H:%M:%S", + "%Y-%m-%d %H:%M:%S", + ): try: parsed = dt.datetime.strptime(value, fmt) return parsed.replace(tzinfo=dt.timezone.utc).isoformat() @@ -185,11 +327,17 @@ def match_meta(metadata, rel): pattern_meta = dict(pattern) break for k, v in pattern_meta.items(): - if k not in ("glob", "run_name_template", "mlflow_run_id_by_concurrency", - "bench_log_dir"): + if k not in ( + "glob", + "run_name_template", + "mlflow_run_id_by_concurrency", + "bench_log_dir", + ): meta[k] = v meta["run_name_template"] = pattern_meta.get("run_name_template", "") - meta["mlflow_run_id_by_concurrency"] = pattern_meta.get("mlflow_run_id_by_concurrency", {}) + meta["mlflow_run_id_by_concurrency"] = pattern_meta.get( + "mlflow_run_id_by_concurrency", {} + ) meta["bench_log_dir"] = pattern_meta.get("bench_log_dir", "") meta["_pattern"] = pattern_meta return meta @@ -198,14 +346,18 @@ def match_meta(metadata, rel): def apply_meta(row, meta, source, concurrency, stem): for k, v in meta.items(): if k.startswith("_") or k in ( - "run_name_template", "mlflow_run_id_by_concurrency", "bench_log_dir"): + "run_name_template", + "mlflow_run_id_by_concurrency", + "bench_log_dir", + ): continue if k in row and row[k] == "": row[k] = v template = meta.get("run_name_template") if template: row["run_name"] = template.format( - concurrency=concurrency, stem=stem, + concurrency=concurrency, + stem=stem, model=sget(source, "model_id", "model", default=row.get("model", "")), task_type=row.get("task_type", ""), ) @@ -269,7 +421,9 @@ def build_omni_row(path, metadata): row["num_prompts"] = fnum(d.get("num_prompts", "")) row["request_rate"] = fnum(d.get("request_rate", "")) row["duration_s"] = fnum(d.get("duration", "")) - row["successful_requests"] = fnum(sget(d, "completed", "successful_requests", default="")) + row["successful_requests"] = fnum( + sget(d, "completed", "successful_requests", default="") + ) row["errored_requests"] = fnum(sget(d, "failed", "errored_requests", default="")) row["request_throughput_rps"] = fnum(d.get("request_throughput", "")) row["output_token_throughput"] = fnum(d.get("output_throughput", "")) @@ -303,17 +457,42 @@ def build_omni_row(path, metadata): row["audio_continuity_ok_rate"] = continuity apply_meta(row, meta, d, conc_int, stem) - row["load_generator"] = row.get("load_generator") or meta.get("load_generator") or row.get("benchmark_tool") or "vllm-omni-bench-serve" - row["timestamp_utc"] = row.get("timestamp_utc") or parse_timestamp(d.get("date"), path) - row["audio_sample_rate_hz"] = row.get("audio_sample_rate_hz") or fnum(meta.get("audio_sample_rate_hz", "")) + row["load_generator"] = ( + row.get("load_generator") + or meta.get("load_generator") + or row.get("benchmark_tool") + or "vllm-omni-bench-serve" + ) + row["timestamp_utc"] = row.get("timestamp_utc") or parse_timestamp( + d.get("date"), path + ) + row["audio_sample_rate_hz"] = row.get("audio_sample_rate_hz") or fnum( + meta.get("audio_sample_rate_hz", "") + ) consumed = { - "model_id", "model", "max_concurrency", "concurrency", "num_prompts", - "request_rate", "duration", "completed", "failed", "successful_requests", - "errored_requests", "request_throughput", "output_throughput", - "total_token_throughput", "total_input_tokens", "total_output_tokens", - "audio_throughput", "total_audio_duration_s", "total_audio_frames", - "stage_durations_mean", "stage_durations_p50", "stage_durations_p99", + "model_id", + "model", + "max_concurrency", + "concurrency", + "num_prompts", + "request_rate", + "duration", + "completed", + "failed", + "successful_requests", + "errored_requests", + "request_throughput", + "output_throughput", + "total_token_throughput", + "total_input_tokens", + "total_output_tokens", + "audio_throughput", + "total_audio_duration_s", + "total_audio_frames", + "stage_durations_mean", + "stage_durations_p50", + "stage_durations_p99", } for src_prefix in PERCENTILE_SETS: for stat in STATS: @@ -372,12 +551,24 @@ def build_legacy_row(r, path, metadata): for stat in ("mean", "median", "p50", "p95", "p99"): row[f"audio_duration_s_{stat}"] = fnum(r.get(f"audio_duration_{stat}", "")) row[f"audio_underrun_s_{stat}"] = fnum(r.get(f"audio_underrun_{stat}", "")) - row["audio_duration_s_mean"] = fnum(r.get("audio_duration_mean", row["audio_duration_s_mean"])) - row["audio_duration_s_median"] = fnum(r.get("audio_duration_median", row["audio_duration_s_median"])) - row["audio_duration_s_p99"] = fnum(r.get("audio_duration_p99", row["audio_duration_s_p99"])) - row["audio_underrun_s_mean"] = fnum(r.get("audio_underrun_mean", row["audio_underrun_s_mean"])) - row["audio_underrun_s_median"] = fnum(r.get("audio_underrun_median", row["audio_underrun_s_median"])) - row["audio_underrun_s_p99"] = fnum(r.get("audio_underrun_p99", row["audio_underrun_s_p99"])) + row["audio_duration_s_mean"] = fnum( + r.get("audio_duration_mean", row["audio_duration_s_mean"]) + ) + row["audio_duration_s_median"] = fnum( + r.get("audio_duration_median", row["audio_duration_s_median"]) + ) + row["audio_duration_s_p99"] = fnum( + r.get("audio_duration_p99", row["audio_duration_s_p99"]) + ) + row["audio_underrun_s_mean"] = fnum( + r.get("audio_underrun_mean", row["audio_underrun_s_mean"]) + ) + row["audio_underrun_s_median"] = fnum( + r.get("audio_underrun_median", row["audio_underrun_s_median"]) + ) + row["audio_underrun_s_p99"] = fnum( + r.get("audio_underrun_p99", row["audio_underrun_s_p99"]) + ) if legacy_task == "voice_clone": row["extra_body_json"] = '{"task_type":"Base"}' @@ -386,16 +577,20 @@ def build_legacy_row(r, path, metadata): elif legacy_task == "voice_design": row["extra_body_json"] = '{"task_type":"VoiceDesign"}' row["prefix_caching"] = defaults.get("prefix_caching", "false") - row["run_name"] = f"legacy-3.5-{row['model']}-{row['task_type']}-{row['runtime_version']}-c{row['concurrency']}" + row["run_name"] = ( + f"legacy-3.5-{row['model']}-{row['task_type']}-{row['runtime_version']}-c{row['concurrency']}" + ) row["benchmark_run_id"] = r.get("json_file", "") or row["run_name"] row["notes"] = defaults.get("notes", "Imported from legacy benchmark CSV") - row["extra_json"] = jdump({ - "legacy_task_type": legacy_task, - "legacy_modality": r.get("modality", ""), - "legacy_version": r.get("version", ""), - "json_file": r.get("json_file", ""), - "legacy_benchmark_tool": r.get("benchmark_tool", ""), - }) + row["extra_json"] = jdump( + { + "legacy_task_type": legacy_task, + "legacy_modality": r.get("modality", ""), + "legacy_version": r.get("version", ""), + "json_file": r.get("json_file", ""), + "legacy_benchmark_tool": r.get("benchmark_tool", ""), + } + ) return row @@ -415,11 +610,17 @@ def build_legacy_row(r, path, metadata): "wer_ci_upper": ("wer_ci_upper", "wer_ci_high", "wer_ci_upper_95"), "rtfx": ("rtfx", "RTFx", "RTFX", "rtf_x"), "transcription_throughput_utterances_s": ( - "transcription_throughput_utterances_s", "utterances_per_s", - "throughput_utterances_s", "transcription_throughput"), + "transcription_throughput_utterances_s", + "utterances_per_s", + "throughput_utterances_s", + "transcription_throughput", + ), "audio_input_duration_s_total": ( - "audio_input_duration_s_total", "audio_duration_total_s", - "total_audio_duration_s", "audio_seconds"), + "audio_input_duration_s_total", + "audio_duration_total_s", + "total_audio_duration_s", + "audio_seconds", + ), "normalization": ("normalization", "normalizer", "text_normalization"), "timestamp_utc": ("timestamp_utc", "timestamp", "date"), "cluster": ("cluster", "cluster_name"), @@ -464,9 +665,15 @@ def build_asr_row(r, path, metadata): row["input_modality"] = "audio" row["output_modality"] = "text" row["task_type"] = "asr_transcription" - row["benchmark_tool"] = pick(r, ASR_ALIASES["benchmark_tool"]) or defaults.get("benchmark_tool", "") + row["benchmark_tool"] = pick(r, ASR_ALIASES["benchmark_tool"]) or defaults.get( + "benchmark_tool", "" + ) row["benchmark_tool_version"] = pick(r, ASR_ALIASES["benchmark_tool_version"]) - row["load_generator"] = pick(r, ASR_ALIASES["load_generator"]) or row["benchmark_tool"] or defaults.get("load_generator", "") + row["load_generator"] = ( + pick(r, ASR_ALIASES["load_generator"]) + or row["benchmark_tool"] + or defaults.get("load_generator", "") + ) row["dataset"] = pick(r, ASR_ALIASES["dataset"]) row["dataset_split"] = pick(r, ASR_ALIASES["dataset_split"]) row["language"] = pick(r, ASR_ALIASES["language"]) @@ -476,9 +683,11 @@ def build_asr_row(r, path, metadata): row["wer_ci_upper"] = fnum(pick(r, ASR_ALIASES["wer_ci_upper"])) row["rtfx"] = fnum(pick(r, ASR_ALIASES["rtfx"])) row["transcription_throughput_utterances_s"] = fnum( - pick(r, ASR_ALIASES["transcription_throughput_utterances_s"])) + pick(r, ASR_ALIASES["transcription_throughput_utterances_s"]) + ) row["audio_input_duration_s_total"] = fnum( - pick(r, ASR_ALIASES["audio_input_duration_s_total"])) + pick(r, ASR_ALIASES["audio_input_duration_s_total"]) + ) row["normalization"] = pick(r, ASR_ALIASES["normalization"]) row["duration_s"] = fnum(pick(r, ASR_ALIASES["duration_s"])) row["successful_requests"] = row["num_utterances"] @@ -492,7 +701,9 @@ def build_asr_row(r, path, metadata): row["run_name"] = f"asr-{model}-{row['dataset']}-{row['language']}" row["benchmark_run_id"] = row["run_name"] row["notes"] = defaults.get("notes", "Imported from ASR results") - row["extra_json"] = jdump({k: v for k, v in r.items() if k not in CANONICAL_COLUMNS}) + row["extra_json"] = jdump( + {k: v for k, v in r.items() if k not in CANONICAL_COLUMNS} + ) return row @@ -518,16 +729,35 @@ def csv_value(v): def main(): ap = argparse.ArgumentParser(description=__doc__) - ap.add_argument("--omni-json", action="append", default=[], metavar="PATH", - help="vLLM-Omni bench JSON file/dir/glob (repeatable)") - ap.add_argument("--legacy-csv", default="", help="Existing legacy benchmark_results.csv") - ap.add_argument("--asr-csv", action="append", default=[], help="ASR results CSV (repeatable)") - ap.add_argument("--asr-json", action="append", default=[], help="ASR results JSON (repeatable)") - ap.add_argument("--metadata-json", default="", help="Metadata defaults/pattern overrides") + ap.add_argument( + "--omni-json", + action="append", + default=[], + metavar="PATH", + help="vLLM-Omni bench JSON file/dir/glob (repeatable)", + ) + ap.add_argument( + "--legacy-csv", default="", help="Existing legacy benchmark_results.csv" + ) + ap.add_argument( + "--asr-csv", action="append", default=[], help="ASR results CSV (repeatable)" + ) + ap.add_argument( + "--asr-json", action="append", default=[], help="ASR results JSON (repeatable)" + ) + ap.add_argument( + "--metadata-json", default="", help="Metadata defaults/pattern overrides" + ) ap.add_argument("--output", default="datasets/omni/consolidated_dashboard_omni.csv") - ap.add_argument("--template", default="datasets/omni/consolidated_dashboard_omni_template.csv") + ap.add_argument( + "--template", default="datasets/omni/consolidated_dashboard_omni_template.csv" + ) ap.add_argument("--include-calibration", action="store_true") - ap.add_argument("--strict", action="store_true", help="Exit nonzero if required fields are blank") + ap.add_argument( + "--strict", + action="store_true", + help="Exit nonzero if required fields are blank", + ) args = ap.parse_args() metadata = load_metadata(args.metadata_json) @@ -571,10 +801,14 @@ def main(): deduped, seen = [], {} for row in rows: key = ( - row.get("model", ""), row.get("task_type", ""), - row.get("runtime_version", ""), row.get("dataset", ""), - row.get("concurrency", ""), row.get("request_rate", ""), - row.get("run_name", ""), row.get("repetition", ""), + row.get("model", ""), + row.get("task_type", ""), + row.get("runtime_version", ""), + row.get("dataset", ""), + row.get("concurrency", ""), + row.get("request_rate", ""), + row.get("run_name", ""), + row.get("repetition", ""), ) if key in seen: errors.append(f"duplicate row kept last: {key}") @@ -586,8 +820,12 @@ def sort_key(row): conc = int(float(row.get("concurrency") or 0)) except ValueError: conc = 0 - return (row.get("timestamp_utc", ""), row.get("model", ""), - row.get("task_type", ""), conc) + return ( + row.get("timestamp_utc", ""), + row.get("model", ""), + row.get("task_type", ""), + conc, + ) deduped.sort(key=sort_key) @@ -596,12 +834,16 @@ def sort_key(row): if parent: os.makedirs(parent, exist_ok=True) with open(args.output, "w", newline="") as f: - writer = csv.DictWriter(f, fieldnames=CANONICAL_COLUMNS, extrasaction="ignore", lineterminator="\n") + writer = csv.DictWriter( + f, fieldnames=CANONICAL_COLUMNS, extrasaction="ignore", lineterminator="\n" + ) writer.writeheader() for row in deduped: writer.writerow({k: csv_value(row.get(k, "")) for k in CANONICAL_COLUMNS}) with open(args.template, "w", newline="") as f: - csv.DictWriter(f, fieldnames=CANONICAL_COLUMNS, lineterminator="\n").writeheader() + csv.DictWriter( + f, fieldnames=CANONICAL_COLUMNS, lineterminator="\n" + ).writeheader() required_blank = Counter() for row in deduped: diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py index fce2909..f6ebac7 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -199,6 +199,7 @@ def pick(*values): def load_json(path): + """Load a JSON file, returning an empty dict on failure.""" if not path or not os.path.isfile(path): return {} try: @@ -209,6 +210,7 @@ def load_json(path): def read_csv_rows(path): + """Read a CSV file into a list of dictionaries.""" if not os.path.isfile(path): return [] with open(path, encoding="utf-8", newline="") as handle: @@ -280,6 +282,7 @@ def concurrency_str(value): def normalize_task_type(value): + """Normalize legacy task names to the dashboard names.""" text = as_text(value) if text == "custom_voice": return "default_voice" @@ -287,6 +290,7 @@ def normalize_task_type(value): def map_endpoint(value): + """Map a bench backend name to its HTTP endpoint.""" text = as_text(value) mapping = {"openai-audio-speech": "/v1/audio/speech"} if text in mapping: @@ -297,6 +301,7 @@ def map_endpoint(value): def short_window_flag(duration_text): + """Return true when a run is shorter than the steady-state window.""" try: return "true" if float(duration_text) < 30 else "false" except (TypeError, ValueError): @@ -331,10 +336,12 @@ def normalize_timestamp(value, fallback_path): def strip_image_digest(image): + """Return an image reference without its sha256 digest.""" return re.split(r"@sha256:", as_text(image), maxsplit=1)[0] def response_format_from_extra_body(extra_body): + """Return response_format from an extra-body JSON object or string.""" if isinstance(extra_body, str): if not extra_body.strip(): return "" @@ -395,6 +402,7 @@ def continuity_ok_rate(log_path): def stage_value(mapping, index): + """Return a stage value by index or natural key order.""" if not isinstance(mapping, dict) or not mapping: return "" for key in (str(index), index): @@ -436,6 +444,7 @@ def apply_stages(row, data): def apply_metrics(row, data, source_row, group): + """Copy outcome metrics from the bench JSON or source CSV.""" fallback = R35_METRICS if group == "3.5" else RATH_METRICS for column, data_key in D_METRICS.items(): source_key = fallback.get(column) if source_row else None @@ -447,6 +456,7 @@ def apply_metrics(row, data, source_row, group): def apply_audio_output(row, data, group, log_path, sample_rate, response_format): + """Populate audio-output format and coverage fields.""" row["audio_frames_total"] = ( "" if group == "3.5" else as_text(data.get("total_audio_frames")) ) @@ -470,6 +480,7 @@ def apply_audio_output(row, data, group, log_path, sample_rate, response_format) def build_notes(group, response_format_inferred, short_window): + """Build the short notes string for a row.""" notes = [] if response_format_inferred: notes.append("response_format inferred") @@ -479,6 +490,7 @@ def build_notes(group, response_format_inferred, short_window): def new_row(header): + """Create an empty row with the canonical columns.""" return dict.fromkeys(header, "") @@ -496,6 +508,7 @@ def match_pattern(patterns, recipe_root, absolute_path): def dataset_for_task(task_type): + """Return the default dataset for a task type.""" if task_type == "voice_clone": return "seed-tts" if task_type == "default_voice": @@ -504,12 +517,14 @@ def dataset_for_task(task_type): def locale_for(dataset, task_type): + """Return the locale filter for a dataset and task.""" if dataset == "seed-tts" and task_type == "voice_clone": return "en" return "" def tokenizer_override(model, tokenizer_id): + """Return whether the bench tokenizer differs from the model.""" model_text = as_text(model) tokenizer_text = as_text(tokenizer_id) if model_text and tokenizer_text and model_text != tokenizer_text: @@ -523,6 +538,7 @@ def tokenizer_override(model, tokenizer_id): def build_35(recipe_root, header): + """Build rows from the 3.5 legacy CSV and raw JSONs.""" rows = [] for source_row in read_csv_rows(os.path.join(recipe_root, Q35_CSV)): model = as_text(source_row.get("model")) @@ -612,6 +628,7 @@ def build_35(recipe_root, header): def build_36(recipe_root, header): + """Build rows from the 3.6 base CI and saturation JSONs.""" metadata = load_json(os.path.join(recipe_root, Q36_META)) defaults = metadata.get("defaults", {}) patterns = metadata.get("patterns", []) @@ -741,6 +758,7 @@ def build_36(recipe_root, header): def build_athena(recipe_root, header, mlflow_index=None): + """Build rows from the Athena matrix CSV and cell artifacts.""" metadata = load_json(os.path.join(recipe_root, ATHENA_META)) defaults = metadata.get("defaults", {}) patterns = metadata.get("patterns", []) @@ -894,14 +912,17 @@ def build_athena(recipe_root, header, mlflow_index=None): def dashboard_repo_root(): + """Return the dashboard repository root.""" return os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) def usage(): + """Return the CLI usage text.""" return __doc__.strip() def parse_args(argv): + """Parse command-line arguments into paths.""" recipe_root = DEFAULT_RECIPE_ROOT output = "" template = "" @@ -962,6 +983,7 @@ def parse_args(argv): def read_header(template_path): + """Read the canonical header from the template CSV.""" if not os.path.isfile(template_path): raise SystemExit(f"Template not found: {template_path}") with open(template_path, encoding="utf-8", newline="") as handle: @@ -973,6 +995,7 @@ def read_header(template_path): def main(argv): + """Build the CSV and print a validation summary.""" recipe_root, output_path, template_path, mlflow_runs_json = parse_args(argv) header = read_header(template_path) if len(header) != 77: diff --git a/manual_runs/scripts/extract_mlflow_runs.py b/manual_runs/scripts/extract_mlflow_runs.py index b439801..08e26ae 100644 --- a/manual_runs/scripts/extract_mlflow_runs.py +++ b/manual_runs/scripts/extract_mlflow_runs.py @@ -48,7 +48,9 @@ def utc_now() -> str: def ms_to_utc(value: int | None) -> str: if not value: return "" - return datetime.fromtimestamp(value / 1000, tz=timezone.utc).isoformat(timespec="seconds") + return datetime.fromtimestamp(value / 1000, tz=timezone.utc).isoformat( + timespec="seconds" + ) def safe_dirname(run_name: str, run_id: str) -> str: @@ -143,7 +145,9 @@ def main() -> int: "--status", choices=["RUNNING", "SCHEDULED", "FINISHED", "FAILED", "KILLED"] ) parser.add_argument( - "--order-by", default="attributes.start_time DESC", help="MLflow order_by clause." + "--order-by", + default="attributes.start_time DESC", + help="MLflow order_by clause.", ) parser.add_argument("--max-results", type=int, default=500) parser.add_argument("--limit", type=int, help="Cap the number of selected runs.") @@ -163,7 +167,9 @@ def main() -> int: "--skip-artifacts", action="store_true", help="Write run metadata only." ) parser.add_argument( - "--dry-run", action="store_true", help="Select and list artifacts without writing." + "--dry-run", + action="store_true", + help="Select and list artifacts without writing.", ) parser.add_argument( "--insecure", @@ -195,7 +201,10 @@ def main() -> int: try: from mlflow.tracking import MlflowClient except ImportError: - print("mlflow is not installed. Install it with: pip install mlflow", file=sys.stderr) + print( + "mlflow is not installed. Install it with: pip install mlflow", + file=sys.stderr, + ) return 2 username = os.environ.get("MLFLOW_TRACKING_USERNAME") @@ -236,7 +245,11 @@ def main() -> int: ] print(f"\n{run.info.run_name} ({run.info.run_id})") for item in files: - size = f"{item.file_size} B" if item.file_size is not None else "size unknown" + size = ( + f"{item.file_size} B" + if item.file_size is not None + else "size unknown" + ) print(f" {item.path} ({size})") return 0 @@ -285,7 +298,11 @@ def main() -> int: } for run in runs: - run_dir = output_dir / "artifacts" / safe_dirname(run.info.run_name or "", run.info.run_id) + run_dir = ( + output_dir + / "artifacts" + / safe_dirname(run.info.run_name or "", run.info.run_id) + ) run_entry = { "run_id": run.info.run_id, "run_name": run.info.run_name or "", diff --git a/omni_dashboard.py b/omni_dashboard.py index 185a8e7..6971787 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1,3 +1,4 @@ +# mypy: ignore-errors """vLLM-Omni Performance Dashboard Module. Loads the consolidated Omni benchmark CSV (text, speech-out, and ASR) and @@ -60,19 +61,52 @@ OMNI_GRAFANA_DASHBOARD_UID = os.environ.get("OMNI_GRAFANA_DASHBOARD_UID", "") NUMERIC_COLUMNS = [ - "concurrency", "measured_concurrency", "num_prompts", "num_utterances", - "tp", "pp", "dp", "gpu_count", "request_throughput_rps", - "output_token_throughput", "total_token_throughput", "audio_throughput_x", - "audio_rtf_mean", "audio_rtf_median", "audio_rtf_p95", "audio_rtf_p99", - "audio_ttfp_ms_mean", "audio_ttfp_ms_median", "audio_ttfp_ms_p95", - "audio_ttfp_ms_p99", "audio_underrun_s_mean", "audio_underrun_s_median", - "audio_underrun_s_p95", "audio_underrun_s_p99", "audio_continuity_ok_rate", - "ttft_ms_mean", "ttft_ms_median", "ttft_ms_p95", "ttft_ms_p99", - "tpot_ms_mean", "tpot_ms_median", "tpot_ms_p95", "tpot_ms_p99", - "itl_ms_mean", "itl_ms_median", "itl_ms_p95", "itl_ms_p99", - "e2el_ms_mean", "e2el_ms_median", "e2el_ms_p95", "e2el_ms_p99", - "wer", "rtfx", "transcription_throughput_utterances_s", - "audio_input_duration_s_total", "audio_output_duration_s_total", + "concurrency", + "measured_concurrency", + "num_prompts", + "num_utterances", + "tp", + "pp", + "dp", + "gpu_count", + "request_throughput_rps", + "output_token_throughput", + "total_token_throughput", + "audio_throughput_x", + "audio_rtf_mean", + "audio_rtf_median", + "audio_rtf_p95", + "audio_rtf_p99", + "audio_ttfp_ms_mean", + "audio_ttfp_ms_median", + "audio_ttfp_ms_p95", + "audio_ttfp_ms_p99", + "audio_underrun_s_mean", + "audio_underrun_s_median", + "audio_underrun_s_p95", + "audio_underrun_s_p99", + "audio_continuity_ok_rate", + "ttft_ms_mean", + "ttft_ms_median", + "ttft_ms_p95", + "ttft_ms_p99", + "tpot_ms_mean", + "tpot_ms_median", + "tpot_ms_p95", + "tpot_ms_p99", + "itl_ms_mean", + "itl_ms_median", + "itl_ms_p95", + "itl_ms_p99", + "e2el_ms_mean", + "e2el_ms_median", + "e2el_ms_p95", + "e2el_ms_p99", + "wer", + "rtfx", + "transcription_throughput_utterances_s", + "audio_input_duration_s_total", + "audio_output_duration_s_total", ] LOAD_GENERATORS = { @@ -140,6 +174,7 @@ def _omni_legend_label(row: pd.Series) -> str: ] ) + PLOT_CUSTOM_DATA = [ "accelerator", "model_short", @@ -244,6 +279,7 @@ def _link_column_config(frame: pd.DataFrame): ) return config or None + OMNI_METRICS = { "Request throughput (req/s)": "request_throughput_rps", "Audio throughput (audio-s/s)": "audio_throughput_x", @@ -274,9 +310,7 @@ def _available_metrics(frame: pd.DataFrame) -> dict: } -def _resolve_benchmark_mode( - available_modes: set, preferred_streaming: bool -) -> tuple: +def _resolve_benchmark_mode(available_modes: set, preferred_streaming: bool) -> tuple: """Pick streaming/non-streaming from the modes present in the filtered data.""" has_streaming = "streaming" in available_modes has_non_streaming = "non_streaming" in available_modes @@ -433,7 +467,8 @@ def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.Da if AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: client = boto3.client( - "s3", region_name=region, + "s3", + region_name=region, aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY, ) @@ -463,11 +498,18 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: df["load_generator"] = df["load_generator"].fillna("").astype(str) tool = df["benchmark_tool"].fillna("").astype(str).str.lower() fallback = tool.where(tool.isin(LOAD_GENERATORS), "offline") - df["load_generator"] = df["load_generator"].where(df["load_generator"] != "", fallback) + df["load_generator"] = df["load_generator"].where( + df["load_generator"] != "", fallback + ) for col in ( - "modality", "input_modality", "output_modality", "task_type", - "model", "runtime_version", "accelerator", + "modality", + "input_modality", + "output_modality", + "task_type", + "model", + "runtime_version", + "accelerator", ): if col not in df.columns: df[col] = "unknown" @@ -489,9 +531,7 @@ def _normalise(df: pd.DataFrame) -> pd.DataFrame: if "dataset" not in df.columns: df["dataset"] = np.nan - df["dataset_filter"] = ( - df["dataset"].fillna("(unspecified)").astype(str).str.strip() - ) + df["dataset_filter"] = df["dataset"].fillna("(unspecified)").astype(str).str.strip() df.loc[ df["dataset_filter"].isin(["", "nan", "None", "unknown"]), "dataset_filter", @@ -505,8 +545,11 @@ def _conc_label(value): df["concurrency_label"] = df["concurrency"].apply(_conc_label) df["series"] = ( - df["model"].astype(str) + " | " + df["runtime_version"].astype(str) - + " | " + df["load_generator"].astype(str) + df["model"].astype(str) + + " | " + + df["runtime_version"].astype(str) + + " | " + + df["load_generator"].astype(str) ) df["mlflow_link"] = df.apply(_mlflow_link, axis=1) df["grafana_metrics_link"] = df.apply(_grafana_metrics_link, axis=1) @@ -515,13 +558,16 @@ def _conc_label(value): @st.cache_data(ttl=300) def load_omni_data(file_path: str) -> Optional[pd.DataFrame]: + """Load the Omni CSV from S3 when configured, otherwise from file_path.""" try: if S3_BUCKET: try: df = _read_csv_from_s3(S3_BUCKET, S3_KEY_OMNI, S3_REGION) logger.info("Loaded Omni data from s3://%s/%s", S3_BUCKET, S3_KEY_OMNI) except Exception as s3_error: - logger.warning("S3 load failed (%s); falling back to %s", s3_error, file_path) + logger.warning( + "S3 load failed (%s); falling back to %s", s3_error, file_path + ) df = pd.read_csv(file_path, low_memory=False) else: df = pd.read_csv(file_path, low_memory=False) @@ -538,7 +584,8 @@ def _values(frame: pd.DataFrame, column: str) -> list: if column not in frame.columns: return [] return sorted( - value for value in frame[column].dropna().unique() + value + for value in frame[column].dropna().unique() if str(value).strip() not in ("", "unknown", "nan", "None") ) @@ -593,15 +640,13 @@ def _select_all_models_multiselect( valid = options st.session_state[key] = valid if select_all_key not in st.session_state: - st.session_state[select_all_key] = ( - set(st.session_state[key]) == set(options) - ) + st.session_state[select_all_key] = set(st.session_state[key]) == set(options) elif st.session_state.get(select_all_key): st.session_state[key] = options def _sync_select_all(): - st.session_state[select_all_key] = ( - set(st.session_state.get(key, [])) == set(options) + st.session_state[select_all_key] = set(st.session_state.get(key, [])) == set( + options ) def _apply_select_all(): @@ -625,7 +670,9 @@ def _apply_select_all(): def _selection_key(prefix: str, *groups) -> str: - signature = "|".join(",".join(str(value) for value in sorted(group)) for group in groups) + signature = "|".join( + ",".join(str(value) for value in sorted(group)) for group in groups + ) return f"{prefix}_{signature}" @@ -855,7 +902,9 @@ def _render_sidebar_nav() -> str: ) with st.sidebar: for group_name, sections in OMNI_NAV_GROUPS: - st.markdown(f'', unsafe_allow_html=True) + st.markdown( + f'', unsafe_allow_html=True + ) for section in sections: active = section == st.session_state.omni_active_section if st.button( @@ -894,7 +943,10 @@ def _log_rank(path: str, concurrency: str) -> tuple: score += 80 elif "saturation" in name or "bench" in name or re.search(r"_c\d+(?:\D|$)", name): score += 60 - if concurrency not in ("", "nan", "n/a") and f"saturation_c{concurrency}.log" in name: + if ( + concurrency not in ("", "nan", "n/a") + and f"saturation_c{concurrency}.log" in name + ): score += 10 return (-score, name) @@ -1063,9 +1115,7 @@ def _log_deployment_label(row: pd.Series) -> str: _task_label(row.get("task_type")), str(row.get("dataset") or "").strip(), ] - return " | ".join( - part for part in parts if part and part not in ("nan", "unknown") - ) + return " | ".join(part for part in parts if part and part not in ("nan", "unknown")) def _prefer_log_candidates(candidates: list, preferred_names: list) -> list: @@ -1085,21 +1135,14 @@ def _prefer_log_candidates(candidates: list, preferred_names: list) -> list: def _group_has_mlflow(group: pd.DataFrame) -> bool: if "mlflow_run_id" not in group.columns: return False - return ( - group["mlflow_run_id"].fillna("").astype(str).str.strip().ne("").any() - ) + return group["mlflow_run_id"].fillna("").astype(str).str.strip().ne("").any() def _group_is_matrix(group: pd.DataFrame) -> bool: if "experiment_phase" not in group.columns: return False return ( - group["experiment_phase"] - .fillna("") - .astype(str) - .str.strip() - .eq("matrix") - .any() + group["experiment_phase"].fillna("").astype(str).str.strip().eq("matrix").any() ) @@ -1120,9 +1163,7 @@ def _view_logs(df: pd.DataFrame): st.info("No runs with a run name are available in the current filters.") return - logs_df["_concurrency"] = pd.to_numeric( - logs_df["concurrency"], errors="coerce" - ) + logs_df["_concurrency"] = pd.to_numeric(logs_df["concurrency"], errors="coerce") logs_df["_deployment_key"] = logs_df.apply(_log_deployment_key, axis=1) grouped = [] @@ -1151,12 +1192,9 @@ def _view_logs(df: pd.DataFrame): grouped.sort( key=lambda item: ( 0 - if _group_has_mlflow(item["group"]) - and _group_is_matrix(item["group"]) - else 1, - 0 - if "qwen" in str(item["group"].iloc[0].get("model") or "").lower() + if _group_has_mlflow(item["group"]) and _group_is_matrix(item["group"]) else 1, + 0 if "qwen" in str(item["group"].iloc[0].get("model") or "").lower() else 1, item["label"], ) ) @@ -1222,8 +1260,7 @@ def _view_logs(df: pd.DataFrame): errors = row_errors candidates = _prefer_log_candidates(candidates, ["server.log"]) if candidates and not any( - Path(candidate["path"]).name == "server.log" - for candidate in candidates + Path(candidate["path"]).name == "server.log" for candidate in candidates ): st.caption( "Server log not found for this deployment; showing the available log instead." @@ -1252,9 +1289,7 @@ def _view_logs(df: pd.DataFrame): result_key = f"{selected_key}|{source}" safe_key = re.sub(r"[^A-Za-z0-9_.-]+", "_", result_key)[:100] - if st.button( - "🔍 Fetch Log", type="primary", key=f"omni_fetch_log_{safe_key}" - ): + if st.button("🔍 Fetch Log", type="primary", key=f"omni_fetch_log_{safe_key}"): result = {"run": result_key, "content": None, "error": None} for candidate in candidates: try: @@ -1310,14 +1345,20 @@ def _overview(df: pd.DataFrame): col1.metric("Benchmark rows", rows) col2.metric("Models", models) best_rps = df["request_throughput_rps"].max() - col3.metric("Best request throughput", f"{best_rps:.2f} req/s" if pd.notna(best_rps) else "n/a") + col3.metric( + "Best request throughput", + f"{best_rps:.2f} req/s" if pd.notna(best_rps) else "n/a", + ) best_audio = df["audio_throughput_x"].max() - col4.metric("Best audio throughput", f"{best_audio:.2f}x" if pd.notna(best_audio) else "n/a") + col4.metric( + "Best audio throughput", f"{best_audio:.2f}x" if pd.notna(best_audio) else "n/a" + ) st.subheader("Coverage") coverage = ( df.groupby(["modality", "task_type", "load_generator"], dropna=False) .agg(rows=("model", "size"), models=("model", "nunique")) - .reset_index().sort_values(["modality", "task_type"]) + .reset_index() + .sort_values(["modality", "task_type"]) ) st.dataframe(coverage, use_container_width=True, hide_index=True) @@ -1373,9 +1414,7 @@ def _performance_plots(df: pd.DataFrame): preferred_format = "all" if "all" in format_options else format_options[0] col1, col2, col3, col4, col5 = st.columns([1.5, 0.9, 0.8, 1.0, 1.0]) with col1: - y_label = st.selectbox( - "Select Y-Axis", list(metrics), key="omni_perf_y_axis" - ) + y_label = st.selectbox("Select Y-Axis", list(metrics), key="omni_perf_y_axis") with col3: streaming_on = st.toggle( "Streaming", @@ -1532,9 +1571,7 @@ def _performance_plots(df: pd.DataFrame): sub["legend_label"] = sub.apply(_omni_legend_label, axis=1) default_color_map = deterministic_color_map(sub["run_identifier"]) - default_shape_map = dict.fromkeys( - sorted(sub["run_identifier"].unique()), "circle" - ) + default_shape_map = dict.fromkeys(sorted(sub["run_identifier"].unique()), "circle") custom_colors = dict(st.session_state.get("omni_perf_custom_colors", {})) custom_shapes = { key: value @@ -1577,19 +1614,13 @@ def _performance_plots(df: pd.DataFrame): trace.opacity = float(first["line_opacity"]) trace.legendgroup = first["run_identifier"] format_line = ( - "Format: %{customdata[9]}
" - if first.get("response_format") - else "" + "Format: %{customdata[9]}
" if first.get("response_format") else "" ) uuid_line = ( - "UUID: %{customdata[7]}
" - if first.get("deployment_uuid_hover") - else "" + "UUID: %{customdata[7]}
" if first.get("deployment_uuid_hover") else "" ) runtime_line = ( - "Runtime args:
%{customdata[8]}
" - if first.get("runtime_args") - else "" + "Runtime args:
%{customdata[8]}
" if first.get("runtime_args") else "" ) trace.hovertemplate = ( f"{x_label}: %{{x}}
" @@ -1720,17 +1751,17 @@ def _clear_comparison(): format_func=lambda key: series_labels[key], key="omni_perf_customize_series", ) - color_key = "omni_perf_color_" + hashlib.sha1( - selected_series.encode() - ).hexdigest()[:10] - shape_key = "omni_perf_shape_" + hashlib.sha1( - selected_series.encode() - ).hexdigest()[:10] + color_key = ( + "omni_perf_color_" + + hashlib.sha1(selected_series.encode()).hexdigest()[:10] + ) + shape_key = ( + "omni_perf_shape_" + + hashlib.sha1(selected_series.encode()).hexdigest()[:10] + ) selected_color = st.color_picker( "Line color", - custom_colors.get( - selected_series, default_color_map[selected_series] - ), + custom_colors.get(selected_series, default_color_map[selected_series]), key=color_key, ) current_shape = custom_shapes.get(selected_series, "circle") @@ -1803,15 +1834,13 @@ def _compare_defaults(versions: list) -> tuple: return baseline, candidate -def _comparison_keys( - base_df: pd.DataFrame, comparison_df: pd.DataFrame -) -> list: +def _comparison_keys(base_df: pd.DataFrame, comparison_df: pd.DataFrame) -> list: keys = [] for key in COMPARE_KEYS: if key not in base_df.columns or key not in comparison_df.columns: continue - def _has_values(frame: pd.DataFrame) -> bool: + def _has_values(frame: pd.DataFrame, key: str = key) -> bool: values = frame[key].dropna().astype(str).str.strip().str.lower() return bool(values[~values.isin(["", "nan", "none", "n/a"])].any()) @@ -1826,10 +1855,7 @@ def _comparison_table( metric: str, direction: str, ) -> pd.DataFrame: - if ( - "task_type" not in base_df.columns - or "task_type" not in comparison_df.columns - ): + if "task_type" not in base_df.columns or "task_type" not in comparison_df.columns: return _comparison_table_for_task( base_df, comparison_df, @@ -1839,8 +1865,7 @@ def _comparison_table( ) tasks = sorted( - set(base_df["task_type"].dropna()) - | set(comparison_df["task_type"].dropna()) + set(base_df["task_type"].dropna()) | set(comparison_df["task_type"].dropna()) ) frames = [] for task in tasks: @@ -1885,7 +1910,7 @@ def _prepare(frame: pd.DataFrame) -> pd.DataFrame: prepared["_key"] = prepared[keys].agg(" | ".join, axis=1) return prepared - aggregations = {metric: "mean", **{key: "first" for key in keys}} + aggregations = {metric: "mean", **dict.fromkeys(keys, "first")} base_grouped = _prepare(base).groupby("_key", as_index=False).agg(aggregations) comparison_grouped = ( _prepare(comparison).groupby("_key", as_index=False).agg(aggregations) @@ -1963,9 +1988,7 @@ def _family_statistics( ] -def _summary_statistics( - base_df: pd.DataFrame, comparison_df: pd.DataFrame -) -> list: +def _summary_statistics(base_df: pd.DataFrame, comparison_df: pd.DataFrame) -> list: statistics = [] for statistic in COMPARE_STATISTICS: for family in COMPARE_SUMMARY_FAMILIES: @@ -2066,9 +2089,7 @@ def _model_comparison_summary( continue group_keys = [key for key in core_group_keys if key in detail.columns] detail["_group"] = ( - detail[group_keys].agg(" | ".join, axis=1) - if group_keys - else "all" + detail[group_keys].agg(" | ".join, axis=1) if group_keys else "all" ) for group, subset in detail.groupby("_group", sort=False): if group not in groups: @@ -2180,8 +2201,7 @@ def _swap_versions(): comparison_all = df[df["runtime_version"] == candidate].copy() common_tasks = sorted( - set(base_all["task_type"].dropna()) - & set(comparison_all["task_type"].dropna()), + set(base_all["task_type"].dropna()) & set(comparison_all["task_type"].dropna()), key=lambda task: ( TASK_TYPE_ORDER.index(task) if task in TASK_TYPE_ORDER @@ -2190,9 +2210,7 @@ def _swap_versions(): ), ) if not common_tasks: - st.warning( - f"No common tasks found between {baseline} and {candidate}." - ) + st.warning(f"No common tasks found between {baseline} and {candidate}.") return task_options = [(task, _task_label(task)) for task in common_tasks] task_labels = [label for _, label in task_options] @@ -2202,9 +2220,7 @@ def _swap_versions(): label for label in st.session_state[task_key] if label in task_labels ] pending_tasks = [ - task - for task in (pending.get("tasks") or "").split(",") - if task in common_tasks + task for task in (pending.get("tasks") or "").split(",") if task in common_tasks ] pending_task_labels = [_task_label(task) for task in pending_tasks] if pending_task_labels and task_key not in st.session_state: @@ -2227,15 +2243,11 @@ def _swap_versions(): ] base_tasks = base_all[base_all["task_type"].isin(selected_tasks)] - comparison_tasks = comparison_all[ - comparison_all["task_type"].isin(selected_tasks) - ] + comparison_tasks = comparison_all[comparison_all["task_type"].isin(selected_tasks)] def _load_generators(frame: pd.DataFrame) -> set: values = frame["load_generator"].dropna().astype(str).str.strip() - return set( - values[~values.str.lower().isin(["", "nan", "none", "unknown"])] - ) + return set(values[~values.str.lower().isin(["", "nan", "none", "unknown"])]) load_generators = sorted( _load_generators(base_tasks) & _load_generators(comparison_tasks), @@ -2357,18 +2369,14 @@ def _load_generators(frame: pd.DataFrame) -> set: st.session_state.pop("omni_compare_url_pending", None) base_concurrency = set(base["concurrency_label"].dropna().astype(str)) - comparison_concurrency = set( - comparison["concurrency_label"].dropna().astype(str) - ) + comparison_concurrency = set(comparison["concurrency_label"].dropna().astype(str)) common_concurrency = sorted( base_concurrency & comparison_concurrency, key=_concurrency_sort ) if not common_concurrency: st.warning("No common concurrency levels found for both versions.") return - st.caption( - "Using all common concurrency levels: " + ", ".join(common_concurrency) - ) + st.caption("Using all common concurrency levels: " + ", ".join(common_concurrency)) base = base[base["concurrency_label"].astype(str).isin(common_concurrency)] comparison = comparison[ comparison["concurrency_label"].astype(str).isin(common_concurrency) @@ -2497,7 +2505,10 @@ def _render_section(section: str, df: pd.DataFrame): _view_logs(filtered) -def render_omni_dashboard(csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv"): +def render_omni_dashboard( + csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv", +): + """Render the Omni dashboard shell and the selected section.""" csv_path = os.environ.get("OMNI_CSV_PATH", csv_path) st.header("vLLM-Omni Performance") st.caption( diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 24a7589..835299b 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -42,7 +42,11 @@ def test_template_and_sample_schema(): rows = _read_csv(SAMPLE) assert len(rows) == 4 assert list(rows[0]) == header - assert {row["task_type"] for row in rows} == {"voice_clone", "asr_transcription", "text_to_text"} + assert {row["task_type"] for row in rows} == { + "voice_clone", + "asr_transcription", + "text_to_text", + } assert {row["load_generator"] for row in rows} == { "vllm-omni-bench-serve", "", @@ -55,7 +59,8 @@ def test_template_and_sample_schema(): audio_guidellm = [ row for row in rows - if row["task_type"] == "asr_transcription" and row["load_generator"] == "guidellm" + if row["task_type"] == "asr_transcription" + and row["load_generator"] == "guidellm" ] assert len(audio_guidellm) == 1 assert audio_guidellm[0]["input_modality"] == "audio" diff --git a/tests/test_omni_filter_persistence.py b/tests/test_omni_filter_persistence.py index fe21cc8..9cf780b 100644 --- a/tests/test_omni_filter_persistence.py +++ b/tests/test_omni_filter_persistence.py @@ -4,6 +4,7 @@ reset downstream selections such as Model back to "all", which looked like the filter was being ignored. """ + import sys from pathlib import Path From fbd52884dcaddb0cc73df7b8c7467923d649c3f7 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 20:48:23 -0500 Subject: [PATCH 58/74] Fix remaining pre-commit findings Format docs with Prettier, fix the open() context manager and SHA1 usage, and add docstrings to the legacy Omni scripts. Co-Authored-By: Claude Code --- README.md | 16 +- docs/omni-dashboard.md | 96 ++++---- docs/omni-overview-redesign.md | 10 +- docs/omni-tts-column-sources.md | 220 +++++++++--------- docs/omni-vs-rhaiis-dashboard.md | 82 +++---- .../scripts/build_consolidated_omni_csv.py | 27 ++- manual_runs/scripts/extract_mlflow_runs.py | 12 +- omni_dashboard.py | 33 ++- 8 files changed, 277 insertions(+), 219 deletions(-) diff --git a/README.md b/README.md index 4a3ee78..176c4d5 100644 --- a/README.md +++ b/README.md @@ -397,15 +397,15 @@ See [tests/README.md](tests/README.md) for detailed test documentation. The dashboard can load CSV data directly from an AWS S3 bucket instead of local files. This is useful for production deployments where data is updated externally. -| Variable | Description | Default | -| ----------------------- | ----------------------------------------- | ---------------------------- | -| `S3_BUCKET` | S3 bucket name (enables S3 mode when set) | _(none)_ | -| `S3_KEY` | Path to RHAIIS CSV in bucket | `consolidated_dashboard.csv` | -| `S3_KEY_LLMD` | Path to LLM-D CSV in bucket | `llmd-dashboard.csv` | +| Variable | Description | Default | +| ----------------------- | ----------------------------------------- | --------------------------------- | +| `S3_BUCKET` | S3 bucket name (enables S3 mode when set) | _(none)_ | +| `S3_KEY` | Path to RHAIIS CSV in bucket | `consolidated_dashboard.csv` | +| `S3_KEY_LLMD` | Path to LLM-D CSV in bucket | `llmd-dashboard.csv` | | `S3_KEY_OMNI` | Path to Omni CSV in bucket | `consolidated_dashboard_omni.csv` | -| `S3_REGION` | AWS region | `us-east-1` | -| `AWS_ACCESS_KEY_ID` | AWS access key (for private buckets) | _(none)_ | -| `AWS_SECRET_ACCESS_KEY` | AWS secret key (for private buckets) | _(none)_ | +| `S3_REGION` | AWS region | `us-east-1` | +| `AWS_ACCESS_KEY_ID` | AWS access key (for private buckets) | _(none)_ | +| `AWS_SECRET_ACCESS_KEY` | AWS secret key (for private buckets) | _(none)_ | **Behavior:** diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 3c72d08..6e1996f 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -7,7 +7,7 @@ The Omni dashboard is a separate view in the performance dashboard for benchmark - **Text**: TTFT, TPOT, ITL, E2EL, token throughput - **Future modalities**: image/video/omni rows can be added without changing the dashboard -The dashboard is a *view* over the same metrics pipeline. It does not change collection or any other dashboard. +The dashboard is a _view_ over the same metrics pipeline. It does not change collection or any other dashboard. ## Schema size and endpoint coverage — research memo (2026-12-02) @@ -26,13 +26,13 @@ Short answers: one table with an endpoint dimension is enough — a separate aud The vLLM-Omni bench client registers several OpenAI-compatible backends. For the Seed-TTS datasets, the client explicitly accepts these backend families and rejects others: -| Endpoint | Bench backend | Used for | Metrics populated | Metrics absent | -|---|---|---|---|---| -| `POST /v1/audio/speech` | `openai-audio-speech` | TTS | Audio TTFP, RTF, duration, underrun, frames, audio throughput, E2EL | TTFT/TPOT/ITL, output tokens (always 0) | -| `POST /v1/chat/completions` | `openai-chat-omni` | TTS / omni chat | Text TTFT, TPOT, ITL, output tokens, token throughput **and** audio TTFP, RTF, duration | — (both families populate) | -| `WS /v1/realtime` | `openai-realtime-duplex`, `openai-realtime-tts`, `openai-realtime-chat` | Streaming conversation / realtime TTS | Per-response duplex TTFT/TTFP, client TTFT/TTFP, client RTF, busy RTF, stall ratio, stream TTFP/RTF, session and turn counts | One-shot request latency in the same sense | -| `POST /v1/audio/transcriptions` | ASR harness | Speech-in / transcription | WER, WER CI, RTFx, transcription throughput, input audio duration | Audio-output metrics | -| `POST /v1/completions`, `POST /v1/chat/completions` (text only) | `openai`, `openai-chat` | Text → text | TTFT, TPOT, ITL, token throughput | Audio metrics. This is RHAIIS scope, not Omni scope. | +| Endpoint | Bench backend | Used for | Metrics populated | Metrics absent | +| --------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | +| `POST /v1/audio/speech` | `openai-audio-speech` | TTS | Audio TTFP, RTF, duration, underrun, frames, audio throughput, E2EL | TTFT/TPOT/ITL, output tokens (always 0) | +| `POST /v1/chat/completions` | `openai-chat-omni` | TTS / omni chat | Text TTFT, TPOT, ITL, output tokens, token throughput **and** audio TTFP, RTF, duration | — (both families populate) | +| `WS /v1/realtime` | `openai-realtime-duplex`, `openai-realtime-tts`, `openai-realtime-chat` | Streaming conversation / realtime TTS | Per-response duplex TTFT/TTFP, client TTFT/TTFP, client RTF, busy RTF, stall ratio, stream TTFP/RTF, session and turn counts | One-shot request latency in the same sense | +| `POST /v1/audio/transcriptions` | ASR harness | Speech-in / transcription | WER, WER CI, RTFx, transcription throughput, input audio duration | Audio-output metrics | +| `POST /v1/completions`, `POST /v1/chat/completions` (text only) | `openai`, `openai-chat` | Text → text | TTFT, TPOT, ITL, token throughput | Audio metrics. This is RHAIIS scope, not Omni scope. | The important consequence: **the endpoint does not decide the schema; the output modality does.** A chat-completions TTS run produces both text and audio metrics in the same result JSON. An audio-speech run produces only audio metrics. A separate CSV per endpoint would duplicate identity columns and make cross-endpoint comparison harder. @@ -57,27 +57,27 @@ RHAIIS `consolidated_dashboard.csv` has **56 columns**: 27 identity/workload col The Omni consolidated CSV has **165 columns**: -| Group | Columns | Contents | -|---|---:|---| -| Core identity/config/workload | 60 | model, runtime, image, deployment UUID, MLflow IDs, dataset, concurrency, task, provenance | -| Text metrics | 43 | token counts, TTFT/TPOT/ITL/E2EL, token throughput | -| Speech-out metrics | 33 | audio TTFP/RTF/duration/underrun/throughput/continuity | -| ASR metrics | 8 | WER, WER CI, RTFx, transcription throughput | -| Stage/system | 16 | stage TTFT/gen-time, transfer, GPU | -| Extra | 5 | quality, extra_json, notes, source_file | +| Group | Columns | Contents | +| ----------------------------- | ------: | ------------------------------------------------------------------------------------------ | +| Core identity/config/workload | 60 | model, runtime, image, deployment UUID, MLflow IDs, dataset, concurrency, task, provenance | +| Text metrics | 43 | token counts, TTFT/TPOT/ITL/E2EL, token throughput | +| Speech-out metrics | 33 | audio TTFP/RTF/duration/underrun/throughput/continuity | +| ASR metrics | 8 | WER, WER CI, RTFx, transcription throughput | +| Stage/system | 16 | stage TTFT/gen-time, transfer, GPU | +| Extra | 5 | quality, extra_json, notes, source_file | Most of the width is percentile columns. Each metric stores 5–11 statistics: -| Metric family | Statistic columns | -|---|---:| -| `ttft_ms_*` | 9 | -| `tpot_ms_*` | 6 | -| `itl_ms_*` | 6 | -| `e2el_ms_*` | 11 | -| `audio_ttfp_ms_*` | 9 | -| `audio_rtf_*` | 9 | -| `audio_duration_s_*` | 5 | -| `audio_underrun_s_*` | 5 | +| Metric family | Statistic columns | +| -------------------- | ----------------: | +| `ttft_ms_*` | 9 | +| `tpot_ms_*` | 6 | +| `itl_ms_*` | 6 | +| `e2el_ms_*` | 11 | +| `audio_ttfp_ms_*` | 9 | +| `audio_rtf_*` | 9 | +| `audio_duration_s_*` | 5 | +| `audio_underrun_s_*` | 5 | The table is sparse by design: a TTS row fills roughly 40 of 165 columns, a text row fills a different ~45, and an offline ASR row fills ~10. RHAIIS does not have this problem because it only carries text metrics. @@ -101,12 +101,12 @@ The 46-column split below remains the future target. Proposed file set: -| File | Columns | Purpose | -|---|---:|---| -| `omni_runs.csv` | **46** | One row per benchmark point. Identity (7) + model/runtime (6) + protocol (11) + workload (7) + outcome (8) + stage (6) + notes (1). Used by filters, charts, and Filtered Data. | -| `omni_audio_output.csv` | **22 core / 30 with coverage** | `run_key` + audio-output metrics. 22 core, or 30 including the 8 coverage/format fields. | -| `omni_text_output.csv` | **34** | `run_key` + text-output metrics: sample counts (3), token counts (8), TTFT/TPOT/ITL (12), token throughput (2), ASR quality (8), join key (1). Offline ASR fills only the WER/RTFx block; online ASR and chat-completions TTS also fill the token/latency block. | -| `omni_run_config.csv` | **20** | 1 join key + 19 provenance/config fields. Loaded only by View Logs and Runtime Server Configs, not by Filtered Data. | +| File | Columns | Purpose | +| ----------------------- | -----------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `omni_runs.csv` | **46** | One row per benchmark point. Identity (7) + model/runtime (6) + protocol (11) + workload (7) + outcome (8) + stage (6) + notes (1). Used by filters, charts, and Filtered Data. | +| `omni_audio_output.csv` | **22 core / 30 with coverage** | `run_key` + audio-output metrics. 22 core, or 30 including the 8 coverage/format fields. | +| `omni_text_output.csv` | **34** | `run_key` + text-output metrics: sample counts (3), token counts (8), TTFT/TPOT/ITL (12), token throughput (2), ASR quality (8), join key (1). Offline ASR fills only the WER/RTFx block; online ASR and chat-completions TTS also fill the token/latency block. | +| `omni_run_config.csv` | **20** | 1 join key + 19 provenance/config fields. Loaded only by View Logs and Runtime Server Configs, not by Filtered Data. | Column math: 46 runs + 30 audio + 34 text + 20 config = **130 columns total**, but no single view loads all four. A TTS view loads 46 + 30 + 20 = 96; an ASR view loads 46 + 34 + 20 = 100; Filtered Data loads runs + one metric file only (76 or 80). @@ -253,20 +253,20 @@ The full column set stays available behind a “show all columns” toggle and t ## Data sources -| Mode | Location | -|---|---| -| Local | `datasets/omni/consolidated_dashboard_omni.csv` | -| S3 | `s3://$S3_BUCKET/$S3_KEY_OMNI` (default key: `consolidated_dashboard_omni.csv`) | +| Mode | Location | +| ----- | ------------------------------------------------------------------------------- | +| Local | `datasets/omni/consolidated_dashboard_omni.csv` | +| S3 | `s3://$S3_BUCKET/$S3_KEY_OMNI` (default key: `consolidated_dashboard_omni.csv`) | Included in the repo: -| File | Purpose | -|---|---| -| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column template | -| `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR (HF harness), audio-to-text (GuideLLM), and text example rows | -| `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` | 8 sanitized ASR/STT test rows across two versions (GuideLLM c1/c8/c32 plus offline WER) | -| `datasets/omni/logs/dummy-stt-*.log` | Matching sanitized STT server logs for View Logs | -| `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | +| File | Purpose | +| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column template | +| `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR (HF harness), audio-to-text (GuideLLM), and text example rows | +| `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` | 8 sanitized ASR/STT test rows across two versions (GuideLLM c1/c8/c32 plus offline WER) | +| `datasets/omni/logs/dummy-stt-*.log` | Matching sanitized STT server logs for View Logs | +| `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | The sample uses only `example/...` models and `demo` metadata. Do not commit production hostnames, deployment IDs, MLflow IDs, private image digests, or credentials. @@ -312,11 +312,11 @@ Online TTS/text rows must also have `concurrency`. Offline ASR rows may leave `c `benchmark_tool` is the exact CLI/tool; `load_generator` is the dashboard-facing family: -| `load_generator` | Typical `benchmark_tool` | -|---|---| -| `guidellm` | `guidellm` | -| `vllm-omni-bench-serve` | `vllm-omni bench serve` | -| `hf-open-asr-leaderboard` | HF ASR harness | +| `load_generator` | Typical `benchmark_tool` | +| ------------------------- | ------------------------ | +| `guidellm` | `guidellm` | +| `vllm-omni-bench-serve` | `vllm-omni bench serve` | +| `hf-open-asr-leaderboard` | HF ASR harness | ## Column groups diff --git a/docs/omni-overview-redesign.md b/docs/omni-overview-redesign.md index 4a38731..fa1920d 100644 --- a/docs/omni-overview-redesign.md +++ b/docs/omni-overview-redesign.md @@ -132,12 +132,12 @@ Phasing: Every summary section must deep-link into the real view. The filter-persistence work adds `omni_*` query params, which makes these links possible: -| Destination | Query params | -|---|---| +| Destination | Query params | +| ----------------- | ----------------------------------------------------------------------------------------------------------------------- | | Performance Plots | `section=📊 Performance Plots`, `omni_models`, `omni_versions`, `omni_tasks`, `omni_datasets`, optional `omni_tp_sizes` | -| Compare Versions | `section=⚖️ Compare Versions`, `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat` | -| Filtered Data | `section=📄 Filtered Data`, the same `omni_*` filters | -| View Logs | `section=📋 View Logs`, `omni_models`, `omni_versions` | +| Compare Versions | `section=⚖️ Compare Versions`, `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat` | +| Filtered Data | `section=📄 Filtered Data`, the same `omni_*` filters | +| View Logs | `section=📋 View Logs`, `omni_models`, `omni_versions` | Implementation options: diff --git a/docs/omni-tts-column-sources.md b/docs/omni-tts-column-sources.md index 33e8f12..84d8491 100644 --- a/docs/omni-tts-column-sources.md +++ b/docs/omni-tts-column-sources.md @@ -7,10 +7,10 @@ or realtime rows yet. One row per benchmark point. Output files: -| File | Purpose | -|---|---| -| `datasets/omni/consolidated_dashboard_omni.csv` | Populated local data (do not commit; contains deployment IDs) | -| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 77-column template for this staged schema | +| File | Purpose | +| ------------------------------------------------------------ | ------------------------------------------------------------- | +| `datasets/omni/consolidated_dashboard_omni.csv` | Populated local data (do not commit; contains deployment IDs) | +| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 77-column template for this staged schema | The combined staged CSV is **77 columns = 49 run/core columns + 28 audio-output columns**. @@ -20,12 +20,12 @@ The legacy `datasets/omni/consolidated_dashboard_omni_template.csv` remains the ## Input inventory -| Group | Source | Expected rows | -|---|---|---:| -| 3.5 legacy | `results/3.5/benchmark_results.csv` + the raw JSON named by `json_file` | 60 | -| 3.6 base | `results/3.6/ci/ci_qwen3_tts_base_c1.json`, `results/3.6/qwen3-tts-base-36ga/saturation/saturation_c*.json` | 9 | -| 3.6 Athena | `results/athena/benchmark_results.csv` (Qwen3-TTS CustomVoice rows) + `results/athena///cell_c*.json` | 48 | -| **Total** | | **117** | +| Group | Source | Expected rows | +| ---------- | ------------------------------------------------------------------------------------------------------------------- | ------------: | +| 3.5 legacy | `results/3.5/benchmark_results.csv` + the raw JSON named by `json_file` | 60 | +| 3.6 base | `results/3.6/ci/ci_qwen3_tts_base_c1.json`, `results/3.6/qwen3-tts-base-36ga/saturation/saturation_c*.json` | 9 | +| 3.6 Athena | `results/athena/benchmark_results.csv` (Qwen3-TTS CustomVoice rows) + `results/athena///cell_c*.json` | 48 | +| **Total** | | **117** | Athena has six Qwen3-TTS recipes × 8 concurrency points: 3.6 GA default, 3.6 GA B8, 3.6 fast-1 default, v0.30 default, v0.30 B8, v0.26 default. @@ -35,15 +35,15 @@ ASR/chat/realtime data. Paths are relative to the benchmark recipe checkout. ## Source keys -| Key | Meaning | -|---|---| -| `d` | Raw vLLM-Omni bench result JSON for the cell (`cell_c*.json`, `saturation_c*.json`, `ci_*.json`) | -| `cm` | `cell_meta.json` in the same directory as `d` (Athena only) | -| `rm` | `run_meta.json` in the same directory as `d` (Athena only) | -| `v` | `validation.json` in the same directory as `d` (Athena only) | -| `r` | Source CSV row (`benchmark_results.csv` from 3.5 or Athena) | -| `meta` | `results/3.6/consolidated_dashboard_omni_metadata.json` defaults/patterns | -| `log` | Bench log in the same directory as `d` (`cell_c*.log`) | +| Key | Meaning | +| ------ | ------------------------------------------------------------------------------------------------ | +| `d` | Raw vLLM-Omni bench result JSON for the cell (`cell_c*.json`, `saturation_c*.json`, `ci_*.json`) | +| `cm` | `cell_meta.json` in the same directory as `d` (Athena only) | +| `rm` | `run_meta.json` in the same directory as `d` (Athena only) | +| `v` | `validation.json` in the same directory as `d` (Athena only) | +| `r` | Source CSV row (`benchmark_results.csv` from 3.5 or Athena) | +| `meta` | `results/3.6/consolidated_dashboard_omni_metadata.json` defaults/patterns | +| `log` | Bench log in the same directory as `d` (`cell_c*.log`) | Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default. @@ -51,120 +51,120 @@ Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default ### Identity (7) -| Column | Source | Rule | -|---|---|---| -| `run_key` | derived | `slug(model) + "__" + runtime_version + "__" + recipe + "__" + task_type + "__c" + concurrency + "__" + experiment_phase`. Must be unique across all rows. | -| `run_name` | `r` / `meta` | 3.5: `legacy-3.5-{model}-{task_type}-{version}-c{C}`. 3.6 base: `meta.run_name_template` or `qwen3-tts-base-36ga_saturation_c{C}` / `qwen3-tts-base-ci`. Athena: `{run_dir}-{profile}_c{C}` (e.g. `customvoice-36ga-default_c64`). | -| `timestamp_utc` | `r` / `d` / `rm` | 3.5: `r.timestamp`. 3.6 base: `d.date` (`YYYYMMDD-HHMMSS`) or file mtime. Athena: `rm.started_at`. Normalize to ISO 8601 UTC. | -| `cluster` | `r` / `meta` / `cm` | Use a short project label (`hera` or `athena`), not a hostname. | -| `deployment_uuid` | `cm` / `meta` | Athena: `cm.deployment_uuid`. 3.6 base: pattern `deployment_uuid`. 3.5: blank. Local-only field. | -| `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four recipes are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | -| `source_file` | derived | Path to `d` relative to the recipe checkout. | +| Column | Source | Rule | +| ----------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `run_key` | derived | `slug(model) + "__" + runtime_version + "__" + recipe + "__" + task_type + "__c" + concurrency + "__" + experiment_phase`. Must be unique across all rows. | +| `run_name` | `r` / `meta` | 3.5: `legacy-3.5-{model}-{task_type}-{version}-c{C}`. 3.6 base: `meta.run_name_template` or `qwen3-tts-base-36ga_saturation_c{C}` / `qwen3-tts-base-ci`. Athena: `{run_dir}-{profile}_c{C}` (e.g. `customvoice-36ga-default_c64`). | +| `timestamp_utc` | `r` / `d` / `rm` | 3.5: `r.timestamp`. 3.6 base: `d.date` (`YYYYMMDD-HHMMSS`) or file mtime. Athena: `rm.started_at`. Normalize to ISO 8601 UTC. | +| `cluster` | `r` / `meta` / `cm` | Use a short project label (`hera` or `athena`), not a hostname. | +| `deployment_uuid` | `cm` / `meta` | Athena: `cm.deployment_uuid`. 3.6 base: pattern `deployment_uuid`. 3.5: blank. Local-only field. | +| `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four recipes are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | +| `source_file` | derived | Path to `d` relative to the recipe checkout. | ### Model / runtime (7) -| Column | Source | Rule | -|---|---|---| -| `model` | `d.model_id` / `r.model` / `meta.model` | HuggingFace model ID. | -| `runtime_version` | `r.version` / `meta.runtime_version` / `cm.version` | Canonical label (`vllm-omni-3.5-ea2`, `vllm-omni-3.6.0-ga`, `vllm-omni-3.6-fast1`, `vllm-omni-v0.30.0`, `vllm-omni-v0.26.0`). | -| `image_tag` | `r.image_tag` / `meta.image_tag` / `cm.image` | Image ref; split `@sha256:` into tag + digest if needed. | -| `accelerator` | `r.accelerator` / `meta.accelerator` / `cm.gpu_model` | GPU family, e.g. `H200`. | -| `gpu_count` | `meta.gpu_count` / `cm.gpu_count` | 1 for all current rows. | -| `tp` | `r.tp` / `meta.tp` | 1 for all current Qwen3-TTS rows. | -| `runtime_args` | `r.runtime_args` / `meta` / `cm` / `rm` | Resolved deployment args for the hover: `gpu-mem=...; max-seqs=...; max-batched-tokens=...`. 3.5: source `runtime_args` (usually blank). 3.6 base: metadata `gpu_memory_utilization` (inferred `{"0":0.3,"1":0.3}` when absent), `max_num_seqs`, `max_num_batched_tokens`. Athena: `cell_meta`/`run_meta` values. Do not include the deploy YAML path. | +| Column | Source | Rule | +| ----------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `model` | `d.model_id` / `r.model` / `meta.model` | HuggingFace model ID. | +| `runtime_version` | `r.version` / `meta.runtime_version` / `cm.version` | Canonical label (`vllm-omni-3.5-ea2`, `vllm-omni-3.6.0-ga`, `vllm-omni-3.6-fast1`, `vllm-omni-v0.30.0`, `vllm-omni-v0.26.0`). | +| `image_tag` | `r.image_tag` / `meta.image_tag` / `cm.image` | Image ref; split `@sha256:` into tag + digest if needed. | +| `accelerator` | `r.accelerator` / `meta.accelerator` / `cm.gpu_model` | GPU family, e.g. `H200`. | +| `gpu_count` | `meta.gpu_count` / `cm.gpu_count` | 1 for all current rows. | +| `tp` | `r.tp` / `meta.tp` | 1 for all current Qwen3-TTS rows. | +| `runtime_args` | `r.runtime_args` / `meta` / `cm` / `rm` | Resolved deployment args for the hover: `gpu-mem=...; max-seqs=...; max-batched-tokens=...`. 3.5: source `runtime_args` (usually blank). 3.6 base: metadata `gpu_memory_utilization` (inferred `{"0":0.3,"1":0.3}` when absent), `max_num_seqs`, `max_num_batched_tokens`. Athena: `cell_meta`/`run_meta` values. Do not include the deploy YAML path. | ### Task / protocol (13) -| Column | Source | Rule | -|---|---|---| -| `modality` | derived | `audio`. | -| `input_modality` | derived | `text`. | -| `output_modality` | derived | `audio`. | -| `task_type` | `r.task_type` / `meta.task_type` | Normalize `custom_voice` → `default_voice`. | -| `recipe` | `r.profile` / `cm.profile` | Output column is `recipe`; source metadata still calls it `profile`. 3.5 and 3.6 base: `default`. Athena: `default` or `b8`. | -| `experiment_phase` | derived | 3.5: `legacy`. 3.6 base: `ci` for the CI file, `saturation` for the ladder. Athena: `matrix`. | -| `benchmark_tool` | `r.benchmark_tool` / derived | 3.5: source value (`vllm-bench-serve`). 3.6: `vllm-omni-bench-serve`. | -| `load_generator` | derived | `vllm-omni-bench-serve` for all rows so 3.5 and 3.6 compare in one series. | -| `api_endpoint` | `d.endpoint_type` / `r` | Map `openai-audio-speech` → `/v1/audio/speech`. All current rows use this endpoint. | -| `benchmark_mode` | derived | `streaming` (all current rows have TTFP/underrun). | -| `response_format` | `cm.extra_body` / `rm.config.benchmark.extra_body` / `meta.extra_body_json` | Parse `response_format`. Explicit `wav` for Athena. 3.6 base and 3.5 have no explicit value: use `wav` (server default) and note it in `notes`. | -| `tokenizer_override` | derived | `true` if `d.tokenizer_id != model`. All Qwen3-TTS rows are `false`. | -| `status` | `v.ok` / derived | `valid` for every included row. Excluded/failed rows do not enter this CSV. | +| Column | Source | Rule | +| -------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `modality` | derived | `audio`. | +| `input_modality` | derived | `text`. | +| `output_modality` | derived | `audio`. | +| `task_type` | `r.task_type` / `meta.task_type` | Normalize `custom_voice` → `default_voice`. | +| `recipe` | `r.profile` / `cm.profile` | Output column is `recipe`; source metadata still calls it `profile`. 3.5 and 3.6 base: `default`. Athena: `default` or `b8`. | +| `experiment_phase` | derived | 3.5: `legacy`. 3.6 base: `ci` for the CI file, `saturation` for the ladder. Athena: `matrix`. | +| `benchmark_tool` | `r.benchmark_tool` / derived | 3.5: source value (`vllm-bench-serve`). 3.6: `vllm-omni-bench-serve`. | +| `load_generator` | derived | `vllm-omni-bench-serve` for all rows so 3.5 and 3.6 compare in one series. | +| `api_endpoint` | `d.endpoint_type` / `r` | Map `openai-audio-speech` → `/v1/audio/speech`. All current rows use this endpoint. | +| `benchmark_mode` | derived | `streaming` (all current rows have TTFP/underrun). | +| `response_format` | `cm.extra_body` / `rm.config.benchmark.extra_body` / `meta.extra_body_json` | Parse `response_format`. Explicit `wav` for Athena. 3.6 base and 3.5 have no explicit value: use `wav` (server default) and note it in `notes`. | +| `tokenizer_override` | derived | `true` if `d.tokenizer_id != model`. All Qwen3-TTS rows are `false`. | +| `status` | `v.ok` / derived | `valid` for every included row. Excluded/failed rows do not enter this CSV. | ### Workload (7) -| Column | Source | Rule | -|---|---|---| -| `dataset` | `r.dataset` / `meta.dataset` / derived | 3.5: `seed-tts` for `voice_clone`, `seed-tts-text` for `default_voice`. 3.6 base: `seed-tts`. Athena: `seed-tts-text`. | -| `locale` | `meta.locale` / derived | `en` for `seed-tts` voice-clone rows; blank for text-only datasets. | -| `num_prompts` | `d.num_prompts` / `r.num_prompts` | Measured request count. | -| `request_rate` | `d.request_rate` / `r.request_rate` | `inf` for all current rows. | -| `concurrency` | `d.max_concurrency` / `r.concurrency` | Configured `--max-concurrency`. | -| `measured_concurrency` | `d.max_concurrent_requests` | Observed maximum; blank if absent. | -| `short_window` | derived | `true` when `duration_s < 30`; `false` otherwise. The 30 s minimum is the matrix protocol's steady-state gate. The 3.5 legacy runs used only 100 prompts, so many high-concurrency legacy points fall below it; that is a workload-size artifact, not a failed run. Current counts: 53 flagged = 41 legacy 3.5 + 12 3.6. | +| Column | Source | Rule | +| ---------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `dataset` | `r.dataset` / `meta.dataset` / derived | 3.5: `seed-tts` for `voice_clone`, `seed-tts-text` for `default_voice`. 3.6 base: `seed-tts`. Athena: `seed-tts-text`. | +| `locale` | `meta.locale` / derived | `en` for `seed-tts` voice-clone rows; blank for text-only datasets. | +| `num_prompts` | `d.num_prompts` / `r.num_prompts` | Measured request count. | +| `request_rate` | `d.request_rate` / `r.request_rate` | `inf` for all current rows. | +| `concurrency` | `d.max_concurrency` / `r.concurrency` | Configured `--max-concurrency`. | +| `measured_concurrency` | `d.max_concurrent_requests` | Observed maximum; blank if absent. | +| `short_window` | derived | `true` when `duration_s < 30`; `false` otherwise. The 30 s minimum is the matrix protocol's steady-state gate. The 3.5 legacy runs used only 100 prompts, so many high-concurrency legacy points fall below it; that is a workload-size artifact, not a failed run. Current counts: 53 flagged = 41 legacy 3.5 + 12 3.6. | ### Outcome (8) -| Column | Source | Rule | -|---|---|---| -| `duration_s` | `d.duration` / `r.total_duration_s` | Measured wall-clock seconds. | -| `successful_requests` | `d.completed` / `r.successful_requests` | Completed requests. | -| `errored_requests` | `d.failed` / `r.errored_requests` | Failed requests. | -| `e2el_ms_mean` | `d.mean_e2el_ms` / `r.e2el_mean` | End-to-end latency, ms. | -| `e2el_ms_median` | `d.median_e2el_ms` / `r.e2el_median` | End-to-end latency, ms. | -| `e2el_ms_p95` | `d.p95_e2el_ms` / `r.e2el_p95` | End-to-end latency, ms. | -| `e2el_ms_p99` | `d.p99_e2el_ms` / `r.e2el_p99` | End-to-end latency, ms. | +| Column | Source | Rule | +| ------------------------ | ----------------------------------------------- | ----------------------------------- | +| `duration_s` | `d.duration` / `r.total_duration_s` | Measured wall-clock seconds. | +| `successful_requests` | `d.completed` / `r.successful_requests` | Completed requests. | +| `errored_requests` | `d.failed` / `r.errored_requests` | Failed requests. | +| `e2el_ms_mean` | `d.mean_e2el_ms` / `r.e2el_mean` | End-to-end latency, ms. | +| `e2el_ms_median` | `d.median_e2el_ms` / `r.e2el_median` | End-to-end latency, ms. | +| `e2el_ms_p95` | `d.p95_e2el_ms` / `r.e2el_p95` | End-to-end latency, ms. | +| `e2el_ms_p99` | `d.p99_e2el_ms` / `r.e2el_p99` | End-to-end latency, ms. | | `request_throughput_rps` | `d.request_throughput` / `r.request_throughput` | Completed requests per wall-second. | ### Stage / system (6) -| Column | Source | Rule | -|---|---|---| -| `stage_0_ttft_ms_p50` | `d.stage_durations_p50` | Key `0` or the first stage name. Blank when the JSON has `{}`. | -| `stage_0_ttft_ms_p95` | — | Current bench JSON emits p50/p99 only; leave blank until a run emits p95. | -| `stage_1_ttft_ms_p50` | `d.stage_durations_p50` | Key `1` or the second stage name. Blank when absent. | -| `stage_1_ttft_ms_p95` | — | Blank (same reason). | -| `transfer_tx_ms_p50` | `d.stage_durations_p50` | Transfer/stage-gap key if present. Blank otherwise. | -| `transfer_tx_ms_p95` | — | Blank (same reason). | +| Column | Source | Rule | +| --------------------- | ----------------------- | ------------------------------------------------------------------------- | +| `stage_0_ttft_ms_p50` | `d.stage_durations_p50` | Key `0` or the first stage name. Blank when the JSON has `{}`. | +| `stage_0_ttft_ms_p95` | — | Current bench JSON emits p50/p99 only; leave blank until a run emits p95. | +| `stage_1_ttft_ms_p50` | `d.stage_durations_p50` | Key `1` or the second stage name. Blank when absent. | +| `stage_1_ttft_ms_p95` | — | Blank (same reason). | +| `transfer_tx_ms_p50` | `d.stage_durations_p50` | Transfer/stage-gap key if present. Blank otherwise. | +| `transfer_tx_ms_p95` | — | Blank (same reason). | ### Notes (1) -| Column | Source | Rule | -|---|---|---| +| Column | Source | Rule | +| ------- | ------- | ----------------------------------------------------------------------------------------------------------------------------- | | `notes` | derived | Short provenance: `response_format inferred` for 3.5/3.6 base; `short_window` when duration < 30 s; endpoint/version caveats. | ### Audio output (28) -| Column | Source | Rule | -|---|---|---| -| `audio_ttfp_ms_mean` | `d.mean_audio_ttfp_ms` / `r.audio_ttfp_mean` | First-audio latency, ms. | -| `audio_ttfp_ms_median` | `d.median_audio_ttfp_ms` / `r.audio_ttfp_median` | ms. | -| `audio_ttfp_ms_p95` | `d.p95_audio_ttfp_ms` / `r.audio_ttfp_p95` | ms. | -| `audio_ttfp_ms_p99` | `d.p99_audio_ttfp_ms` / `r.audio_ttfp_p99` | ms. | -| `audio_rtf_mean` | `d.mean_audio_rtf` / `r.audio_rtf_mean` | Ratio; <1 is faster than real time. | -| `audio_rtf_median` | `d.median_audio_rtf` / `r.audio_rtf_median` | Ratio. | -| `audio_rtf_p95` | `d.p95_audio_rtf` / `r.audio_rtf_p95` | Ratio. | -| `audio_rtf_p99` | `d.p99_audio_rtf` / `r.audio_rtf_p99` | Ratio. | -| `audio_duration_s_mean` | `d.mean_audio_duration_s` / `r.audio_duration_mean` | Generated audio duration, s. | -| `audio_duration_s_median` | `d.median_audio_duration_s` / `r.audio_duration_median` | s. | -| `audio_duration_s_p95` | `d.p95_audio_duration_s` / `r.audio_duration_p95` | s; 3.5 may be blank. | -| `audio_duration_s_p99` | `d.p99_audio_duration_s` / `r.audio_duration_p99` | s. | -| `audio_underrun_s_mean` | `d.mean_audio_underrun_s` / `r.audio_underrun_mean` | Max delivery gap, s; streaming only. | -| `audio_underrun_s_median` | `d.median_audio_underrun_s` / `r.audio_underrun_median` | s. | -| `audio_underrun_s_p95` | `d.p95_audio_underrun_s` / `r.audio_underrun_p95` | s; 3.5 may be blank. | -| `audio_underrun_s_p99` | `d.p99_audio_underrun_s` / `r.audio_underrun_p99` | s. | -| `audio_throughput_x` | `d.audio_throughput` / `r.audio_throughput` | Audio seconds per wall-second. | -| `audio_output_duration_s_total` | `d.total_audio_duration_s` / `r.audio_duration_total` | Sum of generated audio, s. | -| `audio_frames_total` | `d.total_audio_frames` | Total PCM samples; blank for 3.5. | -| `audio_sample_rate_hz` | `meta.audio_sample_rate_hz` / derived | 24000 for Qwen3-TTS WAV. | -| `audio_continuity_ok_rate` | `log` | Last `Streaming continuity OK rate: X%` line divided by 100. Blank if no log. | -| `num_audio_ttfp_samples` | `d.num_audio_ttfp_samples` | Valid TTFP sample count; blank for 3.5. | -| `num_audio_rtf_samples` | `d.num_audio_rtf_samples` | Valid RTF sample count; blank for 3.5. | -| `missing_audio_duration_count` | `d.missing_audio_duration_count` | Requests with no derivable duration; blank when absent. | -| `audio_channels` | derived | `1` (mono) for WAV/PCM. | -| `audio_bits_per_sample` | derived | `16` for PCM/WAV. | -| `audio_codec` | derived | `pcm_s16le` for `wav`/`pcm`; blank for unknown. | -| `audio_underrun_threshold_s` | derived | `0.1` (bench default; env `VLLM_OMNI_BENCH_AUDIO_CONTINUITY_THRESHOLD_S`). | +| Column | Source | Rule | +| ------------------------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `audio_ttfp_ms_mean` | `d.mean_audio_ttfp_ms` / `r.audio_ttfp_mean` | First-audio latency, ms. | +| `audio_ttfp_ms_median` | `d.median_audio_ttfp_ms` / `r.audio_ttfp_median` | ms. | +| `audio_ttfp_ms_p95` | `d.p95_audio_ttfp_ms` / `r.audio_ttfp_p95` | ms. | +| `audio_ttfp_ms_p99` | `d.p99_audio_ttfp_ms` / `r.audio_ttfp_p99` | ms. | +| `audio_rtf_mean` | `d.mean_audio_rtf` / `r.audio_rtf_mean` | Ratio; <1 is faster than real time. | +| `audio_rtf_median` | `d.median_audio_rtf` / `r.audio_rtf_median` | Ratio. | +| `audio_rtf_p95` | `d.p95_audio_rtf` / `r.audio_rtf_p95` | Ratio. | +| `audio_rtf_p99` | `d.p99_audio_rtf` / `r.audio_rtf_p99` | Ratio. | +| `audio_duration_s_mean` | `d.mean_audio_duration_s` / `r.audio_duration_mean` | Generated audio duration, s. | +| `audio_duration_s_median` | `d.median_audio_duration_s` / `r.audio_duration_median` | s. | +| `audio_duration_s_p95` | `d.p95_audio_duration_s` / `r.audio_duration_p95` | s; 3.5 may be blank. | +| `audio_duration_s_p99` | `d.p99_audio_duration_s` / `r.audio_duration_p99` | s. | +| `audio_underrun_s_mean` | `d.mean_audio_underrun_s` / `r.audio_underrun_mean` | Max delivery gap, s; streaming only. | +| `audio_underrun_s_median` | `d.median_audio_underrun_s` / `r.audio_underrun_median` | s. | +| `audio_underrun_s_p95` | `d.p95_audio_underrun_s` / `r.audio_underrun_p95` | s; 3.5 may be blank. | +| `audio_underrun_s_p99` | `d.p99_audio_underrun_s` / `r.audio_underrun_p99` | s. | +| `audio_throughput_x` | `d.audio_throughput` / `r.audio_throughput` | Audio seconds per wall-second. | +| `audio_output_duration_s_total` | `d.total_audio_duration_s` / `r.audio_duration_total` | Sum of generated audio, s. | +| `audio_frames_total` | `d.total_audio_frames` | Total PCM samples; blank for 3.5. | +| `audio_sample_rate_hz` | `meta.audio_sample_rate_hz` / derived | 24000 for Qwen3-TTS WAV. | +| `audio_continuity_ok_rate` | `log` | Last `Streaming continuity OK rate: X%` line divided by 100. Blank if no log. | +| `num_audio_ttfp_samples` | `d.num_audio_ttfp_samples` | Valid TTFP sample count; blank for 3.5. | +| `num_audio_rtf_samples` | `d.num_audio_rtf_samples` | Valid RTF sample count; blank for 3.5. | +| `missing_audio_duration_count` | `d.missing_audio_duration_count` | Requests with no derivable duration; blank when absent. | +| `audio_channels` | derived | `1` (mono) for WAV/PCM. | +| `audio_bits_per_sample` | derived | `16` for PCM/WAV. | +| `audio_codec` | derived | `pcm_s16le` for `wav`/`pcm`; blank for unknown. | +| `audio_underrun_threshold_s` | derived | `0.1` (bench default; env `VLLM_OMNI_BENCH_AUDIO_CONTINUITY_THRESHOLD_S`). | ## Config naming diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index f314705..39cbeb2 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -46,28 +46,28 @@ Status: **draft checkpoint** — no final UX decisions below are implemented exc ## What is left out when cloning RHAIIS for Omni -| RHAIIS feature | Why it is left out / status | -|---|---| -| Left-panel navigation sections | Omni currently uses the left panel for filters; needs a decision (Q1). | -| ISL/OSL profile filter | TTS/ASR rows do not carry prompt/output token lengths; text rows could. | -| TP filter | Schema has `tp`, but the current Omni sample only has TP=1. | -| Release-pair / upstream-parity overview | Omni has no release-pair model yet. | -| Competitive analysis / regression heatmap / release health | Text/LLM-specific. | -| Cost analysis / energy computation | Could map later; no cost model for audio/ASR yet. | -| IntelliConfig / Pareto / runtime server configs | RHAIIS deployment-config tooling; not part of the first Omni pass. | -| View Logs | Implemented for Omni: MLflow artifacts, local log directory, or S3 by deployment UUID. | -| Token-only metrics as primary axes | TTS uses audio TTFP/RTF/underrun; ASR uses WER/RTFx. | +| RHAIIS feature | Why it is left out / status | +| ---------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| Left-panel navigation sections | Omni currently uses the left panel for filters; needs a decision (Q1). | +| ISL/OSL profile filter | TTS/ASR rows do not carry prompt/output token lengths; text rows could. | +| TP filter | Schema has `tp`, but the current Omni sample only has TP=1. | +| Release-pair / upstream-parity overview | Omni has no release-pair model yet. | +| Competitive analysis / regression heatmap / release health | Text/LLM-specific. | +| Cost analysis / energy computation | Could map later; no cost model for audio/ASR yet. | +| IntelliConfig / Pareto / runtime server configs | RHAIIS deployment-config tooling; not part of the first Omni pass. | +| View Logs | Implemented for Omni: MLflow artifacts, local log directory, or S3 by deployment UUID. | +| Token-only metrics as primary axes | TTS uses audio TTFP/RTF/underrun; ASR uses WER/RTFx. | ## What is added on the Omni side -| Omni feature | Why | -|---|---| -| Modality / input→output filter | TTS is text→audio; ASR is audio→text; text is text→text. | -| Task type filter | `voice_clone`, `default_voice`, `voice_design`, `asr_transcription`, `text_to_text`. | -| Load-generator filter | GuideLLM, `vllm-omni-bench-serve`, offline accuracy runs. | -| Speech-out metrics | audio TTFP, RTF, duration, underrun, audio throughput, continuity. | -| ASR metrics | WER, WER CI, RTFx, transcription throughput, input audio duration, normalization. | -| Sparse metric handling | Text, speech-out, and ASR columns are intentionally blank when not applicable. | +| Omni feature | Why | +| ------------------------------ | ------------------------------------------------------------------------------------ | +| Modality / input→output filter | TTS is text→audio; ASR is audio→text; text is text→text. | +| Task type filter | `voice_clone`, `default_voice`, `voice_design`, `asr_transcription`, `text_to_text`. | +| Load-generator filter | GuideLLM, `vllm-omni-bench-serve`, offline accuracy runs. | +| Speech-out metrics | audio TTFP, RTF, duration, underrun, audio throughput, continuity. | +| ASR metrics | WER, WER CI, RTFx, transcription throughput, input audio duration, normalization. | +| Sparse metric handling | Text, speech-out, and ASR columns are intentionally blank when not applicable. | ## Proposed Option 2: RHAIIS-like filter order + auto-fill @@ -112,27 +112,27 @@ Auto-fill rule: ## Test log -| Test | Result | -|---|---| -| WebBridge: switch RHAIIS → Omni | Both views render; view selector shows five dashboards. | -| WebBridge: RHAIIS Performance Plots | Numbered filters found; chart and Filtered Data for Plot Lines section present. | -| WebBridge: Omni sidebar | Found Modality, Task type, Load generator, Model, Runtime version, Accelerator, Concurrency. | -| WebBridge: Omni tabs (pre-Checkpoint 4) | Six tabs present; 16 Plotly charts across tabs. | -| Omni offline row display | HF ASR row now shows `offline`, not the HF scorer as a load generator. | -| Auto-fill model filter | **Implemented** — TTS/ASR/text paths tested. | -| Omni graph click → filtered data | **Implemented** — point/box/lasso line selection and ASR bar selection tested. | -| RHAIIS graph click behavior | Code path uses point/box/lasso selection and a plot-line comparison table. | +| Test | Result | +| --------------------------------------- | -------------------------------------------------------------------------------------------- | +| WebBridge: switch RHAIIS → Omni | Both views render; view selector shows five dashboards. | +| WebBridge: RHAIIS Performance Plots | Numbered filters found; chart and Filtered Data for Plot Lines section present. | +| WebBridge: Omni sidebar | Found Modality, Task type, Load generator, Model, Runtime version, Accelerator, Concurrency. | +| WebBridge: Omni tabs (pre-Checkpoint 4) | Six tabs present; 16 Plotly charts across tabs. | +| Omni offline row display | HF ASR row now shows `offline`, not the HF scorer as a load generator. | +| Auto-fill model filter | **Implemented** — TTS/ASR/text paths tested. | +| Omni graph click → filtered data | **Implemented** — point/box/lasso line selection and ASR bar selection tested. | +| RHAIIS graph click behavior | Code path uses point/box/lasso selection and a plot-line comparison table. | ## Open questions 1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** -2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? *Implemented so far: Overview, Performance Plots, Compare Versions, View Logs, Filtered Data.* +2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? _Implemented so far: Overview, Performance Plots, Compare Versions, View Logs, Filtered Data._ 3. **Filter order:** is the current order (Accelerator → Task → Dataset → Version → Load gen → Model → TP) correct? 4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? 5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? 6. **TP:** include TP in the Omni UI? Current data is all TP=1. 7. **Version label:** show product `runtime_version` (`3.6 GA`, `3.6-fast2`) or component versions (`vllm`, `vllm-omni`) in the main filter? -8. **Graph selection:** should clicking add plot lines like RHAIIS, filter the whole dashboard, or just open a filtered table? *Currently matches RHAIIS: click/box/lasso adds plot lines.* +8. **Graph selection:** should clicking add plot lines like RHAIIS, filter the whole dashboard, or just open a filtered table? _Currently matches RHAIIS: click/box/lasso adds plot lines._ 9. ~~**Filtered data:** one global section or per-chart “Filtered Data for Plot Lines” sections?~~ **Closed — per-chart section on Performance Plots plus the global Filtered Data page.** 10. **Offline ASR:** should offline rows appear in concurrency/throughput charts with `n/a`, or only in the ASR quality tab? 11. **Locale:** drop `locale` and use `language` for TTS/ASR, or keep both? @@ -172,16 +172,16 @@ Implemented in `omni_dashboard.py`: WebBridge/Playwright test results: -| Test | Result | -|---|---| -| TTS `text → audio` auto-fill | Passed — task `voice_clone`, load generator `vllm-omni-bench-serve`, model `example/tts-1b` only. | -| TTS point click | Passed — selected c=1 point and rendered the filtered-data table. | -| ASR `audio → text` auto-fill | Passed — task `asr_transcription`, load generators `guidellm`/`offline`, model `example/asr-2b` only. | -| ASR bar click | Passed — bar selection rendered the filtered-data section. | -| Text `text → text` auto-fill | Passed — model `example/llm-8b` only. | -| Text point click | Passed — selected a TTFT point and rendered the filtered-data section. | -| RHAIIS Performance Plots comparison | Passed — numbered filters and plot-line filtered-data behavior confirmed. | -| Left-panel navigation parity | **Fixed** — RHAIIS navigation restored; Omni filters moved to main content. | +| Test | Result | +| ----------------------------------- | ----------------------------------------------------------------------------------------------------- | +| TTS `text → audio` auto-fill | Passed — task `voice_clone`, load generator `vllm-omni-bench-serve`, model `example/tts-1b` only. | +| TTS point click | Passed — selected c=1 point and rendered the filtered-data table. | +| ASR `audio → text` auto-fill | Passed — task `asr_transcription`, load generators `guidellm`/`offline`, model `example/asr-2b` only. | +| ASR bar click | Passed — bar selection rendered the filtered-data section. | +| Text `text → text` auto-fill | Passed — model `example/llm-8b` only. | +| Text point click | Passed — selected a TTFT point and rendered the filtered-data section. | +| RHAIIS Performance Plots comparison | Passed — numbered filters and plot-line filtered-data behavior confirmed. | +| Left-panel navigation parity | **Fixed** — RHAIIS navigation restored; Omni filters moved to main content. | Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labeling, offline ASR chart treatment, and `locale` vs `language`. diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/build_consolidated_omni_csv.py index e8344ad..30aea02 100644 --- a/manual_runs/scripts/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/build_consolidated_omni_csv.py @@ -262,6 +262,7 @@ def sget(d, *keys, default=""): + """Return the first non-empty value for a set of keys.""" for k in keys: v = d.get(k) if v is not None and v != "": @@ -270,6 +271,7 @@ def sget(d, *keys, default=""): def fnum(v): + """Format a value for CSV output.""" if v is None or v == "": return "" if isinstance(v, bool): @@ -280,12 +282,14 @@ def fnum(v): def jdump(v): + """Serialize a value as compact JSON, or an empty string.""" if v is None or v == "" or v == {} or v == []: return "" return json.dumps(v, sort_keys=True, separators=(",", ":"), default=str) def parse_timestamp(value, fallback_path): + """Normalize a timestamp or use the file mtime.""" if value: value = str(value) for fmt in ( @@ -308,10 +312,12 @@ def parse_timestamp(value, fallback_path): def relpath(path): + """Return a repository-relative path.""" return os.path.relpath(os.path.abspath(path), os.getcwd()).replace(os.sep, "/") def load_metadata(path): + """Load converter metadata from JSON.""" if not path: return {} with open(path) as f: @@ -319,6 +325,7 @@ def load_metadata(path): def match_meta(metadata, rel): + """Merge defaults with the first matching pattern.""" meta = dict(metadata.get("defaults", {})) pattern_meta = {} for pattern in metadata.get("patterns", []): @@ -344,6 +351,7 @@ def match_meta(metadata, rel): def apply_meta(row, meta, source, concurrency, stem): + """Fill blank row fields from metadata.""" for k, v in meta.items(): if k.startswith("_") or k in ( "run_name_template", @@ -371,6 +379,7 @@ def apply_meta(row, meta, source, concurrency, stem): def map_stats(row, prefix, source, src_prefix): + """Copy a metric's statistics from the source record.""" for stat in STATS: v = source.get(f"{stat}_{src_prefix}") col = f"{prefix}_{stat}" @@ -379,6 +388,7 @@ def map_stats(row, prefix, source, src_prefix): def continuity_rate(meta, stem): + """Extract the last streaming continuity rate from a log.""" log_dir = meta.get("bench_log_dir", "") if not log_dir: return "" @@ -386,7 +396,8 @@ def continuity_rate(meta, stem): if not os.path.isfile(path): return "" try: - text = open(path, errors="replace").read() + with open(path, errors="replace") as handle: + text = handle.read() except OSError: return "" matches = re.findall(r"Streaming continuity OK rate:\s*([0-9.]+)%", text) @@ -396,6 +407,7 @@ def continuity_rate(meta, stem): def build_omni_row(path, metadata): + """Build a canonical row from a vLLM-Omni bench JSON.""" stem = os.path.splitext(os.path.basename(path))[0] rel = relpath(path) meta = match_meta(metadata, rel) @@ -411,7 +423,7 @@ def build_omni_row(path, metadata): if not model or conc_int == "": raise ValueError(f"{rel}: missing model_id or max_concurrency") - row = {c: "" for c in CANONICAL_COLUMNS} + row = dict.fromkeys(CANONICAL_COLUMNS, "") row["schema_version"] = meta.get("schema_version", SCHEMA_VERSION) row["source_format"] = meta.get("source_format", "vllm-omni-bench-json") row["source_file"] = rel @@ -504,13 +516,15 @@ def build_omni_row(path, metadata): def normalize_task(task): + """Normalize legacy task names.""" task = (task or "").strip().lower() return {"custom_voice": "default_voice"}.get(task, task) def build_legacy_row(r, path, metadata): + """Build a canonical row from the 3.5 CSV.""" defaults = metadata.get("legacy_defaults", {}) - row = {c: "" for c in CANONICAL_COLUMNS} + row = dict.fromkeys(CANONICAL_COLUMNS, "") row.update({k: v for k, v in defaults.items() if k in row}) row["schema_version"] = defaults.get("schema_version", SCHEMA_VERSION) row["source_format"] = "legacy-3.5-csv" @@ -636,6 +650,7 @@ def build_legacy_row(r, path, metadata): def pick(row, aliases): + """Return the first non-empty value from aliases.""" for key in aliases: if key in row and row[key] not in (None, ""): return row[key] @@ -643,12 +658,13 @@ def pick(row, aliases): def build_asr_row(r, path, metadata): + """Build a canonical row from ASR results.""" defaults = metadata.get("asr_defaults", {}) model = pick(r, ASR_ALIASES["model"]) wer = pick(r, ASR_ALIASES["wer"]) if not model or wer == "": raise ValueError(f"{relpath(path)}: ASR row missing model or wer") - row = {c: "" for c in CANONICAL_COLUMNS} + row = dict.fromkeys(CANONICAL_COLUMNS, "") row.update({k: v for k, v in defaults.items() if k in row}) row["schema_version"] = defaults.get("schema_version", SCHEMA_VERSION) row["source_format"] = "asr-csv" @@ -708,6 +724,7 @@ def build_asr_row(r, path, metadata): def expand_inputs(paths, include_calibration): + """Expand file, directory, and glob inputs.""" files = [] for path in paths: if os.path.isdir(path): @@ -722,12 +739,14 @@ def expand_inputs(paths, include_calibration): def csv_value(v): + """Normalize a value for CSV output.""" if isinstance(v, bool): return "true" if v else "false" return "" if v is None else v def main(): + """Build the consolidated CSV and print a summary.""" ap = argparse.ArgumentParser(description=__doc__) ap.add_argument( "--omni-json", diff --git a/manual_runs/scripts/extract_mlflow_runs.py b/manual_runs/scripts/extract_mlflow_runs.py index 08e26ae..5873858 100644 --- a/manual_runs/scripts/extract_mlflow_runs.py +++ b/manual_runs/scripts/extract_mlflow_runs.py @@ -32,20 +32,23 @@ import shutil import sys import tempfile -import urllib3 from datetime import datetime, timezone from pathlib import Path +import urllib3 + DEFAULT_TRACKING_URI = os.environ.get("MLFLOW_TRACKING_URI", "") DEFAULT_WORKSPACE = os.environ.get("MLFLOW_WORKSPACE", "") DEFAULT_ARTIFACT_PATTERNS = ["results/*"] def utc_now() -> str: + """Return the current UTC time as an ISO 8601 string.""" return datetime.now(timezone.utc).isoformat(timespec="seconds") def ms_to_utc(value: int | None) -> str: + """Convert milliseconds since epoch to an ISO 8601 UTC string.""" if not value: return "" return datetime.fromtimestamp(value / 1000, tz=timezone.utc).isoformat( @@ -54,15 +57,18 @@ def ms_to_utc(value: int | None) -> str: def safe_dirname(run_name: str, run_id: str) -> str: + """Return a filesystem-safe directory name.""" name = re.sub(r"[^A-Za-z0-9._-]+", "_", run_name or "run").strip("._") return f"{name[:120] or 'run'}__{run_id[:8]}" def matches_any(path: str, patterns: list[str]) -> bool: + """Return whether a value matches any regex or glob pattern.""" return any(fnmatch.fnmatch(path, pattern) for pattern in patterns) def flatten_run(run) -> dict: + """Flatten an MLflow run record into scalar columns.""" row = { "run_id": run.info.run_id, "run_name": run.info.run_name or "", @@ -82,6 +88,7 @@ def flatten_run(run) -> dict: def walk_artifacts(client, run_id: str, path: str = ""): + """Yield artifact paths below an MLflow artifact directory.""" for item in client.list_artifacts(run_id, path): if item.is_dir: yield from walk_artifacts(client, run_id, item.path) @@ -90,6 +97,7 @@ def walk_artifacts(client, run_id: str, path: str = ""): def select_runs(client, args): + """Select runs matching the CLI filters.""" if args.run_id: runs = [client.get_run(run_id) for run_id in args.run_id] else: @@ -114,6 +122,7 @@ def select_runs(client, args): def print_summary(runs) -> None: + """Print a short selection summary.""" if not runs: return print(f"{'run_name':<64} {'status':<10} {'c':>4} {'req/s':>9} {'p95 RTF':>9}") @@ -133,6 +142,7 @@ def print_summary(runs) -> None: def main() -> int: + """Run the MLflow artifact extraction CLI.""" parser = argparse.ArgumentParser( description="Extract MLflow runs, metrics, and selected artifacts." ) diff --git a/omni_dashboard.py b/omni_dashboard.py index 6971787..3c580cc 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1514,6 +1514,20 @@ def _performance_plots(df: pd.DataFrame): st.info(f"No data available for '{y_label}' with these filters.") return + if "underrun" in str(y_axis).lower() and "model" in sub.columns: + models_in_view = sub["model"].dropna().astype(str).str.lower() + if models_in_view.str.contains("omnivoice").any(): + st.warning( + "**OmniVoice underrun is 0 by construction — not a streaming win.** " + "OmniVoice is a single-stage diffusion model that emits the whole " + "waveform in one audio chunk. Underrun measures gaps between " + "streamed chunks, so a single-chunk response can never register a " + "deficit, even when RTF > 1. This is expected behavior, not " + "missing or incorrect data. For OmniVoice, read TTFP ≈ E2EL (no " + "incremental audio) instead; underrun is meaningful only for " + "incrementally streaming two-stage models like Qwen3-TTS." + ) + # One trace per deployment. Configurations share a color; a non-default # profile is dashed, and repeated deployments are dotted/dash-dot with # CI repeats faded, matching the RHAIIS duplicate-run treatment. @@ -1753,11 +1767,15 @@ def _clear_comparison(): ) color_key = ( "omni_perf_color_" - + hashlib.sha1(selected_series.encode()).hexdigest()[:10] + + hashlib.sha1( + selected_series.encode(), usedforsecurity=False + ).hexdigest()[:10] ) shape_key = ( "omni_perf_shape_" - + hashlib.sha1(selected_series.encode()).hexdigest()[:10] + + hashlib.sha1( + selected_series.encode(), usedforsecurity=False + ).hexdigest()[:10] ) selected_color = st.color_picker( "Line color", @@ -2441,6 +2459,17 @@ def _load_generators(frame: pd.DataFrame) -> set: ) return st.dataframe(summary, use_container_width=True, hide_index=True) + if ( + "Model" in summary.columns + and summary["Model"].astype(str).str.contains("OmniVoice", case=False).any() + and any("Underrun" in str(column) for column in summary.columns) + ): + st.caption( + "OmniVoice underrun is 0 by construction: it is a single-stage " + "diffusion model that delivers audio in one chunk, so the inter-chunk " + "underrun metric cannot register a deficit. Flat/N/A underrun deltas " + "for OmniVoice are not a streaming result; use TTFP ≈ E2EL instead." + ) st.caption( "🟢 Better · 🟡 Flat (±1%) · 🔴 Worse. Cells use the geometric mean of " "per-concurrency deltas for the selected statistic. Statistic changes apply " From f88c50433658698ad53df93b42477230cdf684b0 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 20:51:44 -0500 Subject: [PATCH 59/74] Remove unused import in Omni filter test Fixes the remaining pre-commit ruff finding. Co-Authored-By: Claude Code --- tests/test_omni_filter_persistence.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_omni_filter_persistence.py b/tests/test_omni_filter_persistence.py index 9cf780b..61a9cb2 100644 --- a/tests/test_omni_filter_persistence.py +++ b/tests/test_omni_filter_persistence.py @@ -5,7 +5,6 @@ like the filter was being ignored. """ -import sys from pathlib import Path import pytest From c793b1b1de4df6bcf23aaabdd68b2a15f6010bde Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 21:05:09 -0500 Subject: [PATCH 60/74] Remove dummy Omni fixtures Drop the sample/dummy CSVs and demo logs, keep the templates and metadata example, and rework the tests to use generated fixtures. Co-Authored-By: Claude Code --- README.md | 4 +- .../consolidated_dashboard_omni_dummy_stt.csv | 9 -- .../consolidated_dashboard_omni_sample.csv | 5 - datasets/omni/logs/demo-tts-c1.log | 24 ---- datasets/omni/logs/dummy-stt-35ga-c8.log | 19 ---- datasets/omni/logs/dummy-stt-36ga-c8.log | 21 ---- docs/omni-dashboard-checkpoint.md | 12 +- docs/omni-dashboard.md | 33 +----- docs/omni-vs-rhaiis-dashboard.md | 14 +-- omni_dashboard.py | 2 +- tests/test_omni_csv.py | 106 ++++-------------- 11 files changed, 35 insertions(+), 214 deletions(-) delete mode 100644 datasets/omni/consolidated_dashboard_omni_dummy_stt.csv delete mode 100644 datasets/omni/consolidated_dashboard_omni_sample.csv delete mode 100644 datasets/omni/logs/demo-tts-c1.log delete mode 100644 datasets/omni/logs/dummy-stt-35ga-c8.log delete mode 100644 datasets/omni/logs/dummy-stt-36ga-c8.log diff --git a/README.md b/README.md index 176c4d5..53e3af7 100644 --- a/README.md +++ b/README.md @@ -280,10 +280,10 @@ When you have code changes: ## Omni Data Management -The Omni dashboard reads `datasets/omni/consolidated_dashboard_omni.csv` locally, or the `S3_KEY_OMNI` object when `S3_BUCKET` is set. A sanitized sample and header-only template are included: +The Omni dashboard reads `datasets/omni/consolidated_dashboard_omni.csv` locally, or the `S3_KEY_OMNI` object when `S3_BUCKET` is set. Header-only templates and a converter metadata example are included: - `datasets/omni/consolidated_dashboard_omni_template.csv` -- `datasets/omni/consolidated_dashboard_omni_sample.csv` +- `datasets/omni/consolidated_dashboard_omni_tts_template.csv` - `datasets/omni/consolidated_dashboard_omni_metadata.example.json` Convert vLLM-Omni bench JSON, optional ASR CSV/JSON, and an optional legacy benchmark CSV: diff --git a/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv b/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv deleted file mode 100644 index 0d83f20..0000000 --- a/datasets/omni/consolidated_dashboard_omni_dummy_stt.csv +++ /dev/null @@ -1,9 +0,0 @@ -schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c1,dummy-dummy-stt-35ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,37.50,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,399.0,380.0,,,,,,450.0,495.0,,,2.67,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,20.00,2.67,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c8,dummy-dummy-stt-35ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,13.64,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,997.5,950.0,,,,,,1100.0,1210.0,,,7.33,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,55.00,7.33,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-c32,dummy-dummy-stt-35ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,10.00,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2520.0,2400.0,,,,,,2800.0,3080.0,,,10.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,75.00,10.00,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-07-08T03:02:26Z,dummy-stt-35ga-wer,dummy-dummy-stt-35ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.5-ea2,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,48.63,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0610,0.0590,0.0630,400.00,53.88,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0610,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c1,dummy-dummy-stt-36ga-c1,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,1,1,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,33.48,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,335.2,311.6,,,,,,396.0,445.5,,,2.99,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,22.40,2.99,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c8,dummy-dummy-stt-36ga-c8,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,12.18,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,837.9,779.0,,,,,,968.0,1089.0,,,8.21,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,61.60,8.21,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-c32,dummy-dummy-stt-36ga-c32,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,dummy,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,32,32,0,,,,,,audio_transcription,"{""backend"": ""openai_http"", ""endpoint"": ""/v1/audio/transcriptions""}",vllm serve example/asr-2b --port 8080,,,,8.93,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2116.8,1968.0,,,,,,2464.0,2772.0,,,11.20,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,84.00,11.20,750.0,,en,,,,,,,,,,,,,,,,,,,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing,dummy -1.0,dummy-stt,2026-11-23T21:12:53+00:00,dummy-stt-36ga-wer,dummy-dummy-stt-36ga-wer,1,,,,demo,demo,,,,example/asr-2b,,vllm,vllm-omni-3.6.0-ga,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,dummy,offline,librispeech,example/librispeech_asr,test.clean,,,2620,,,,0,,,,,,audio_transcription,,,,,,43.42,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.0540,0.0520,0.0560,448.00,60.35,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.0540,"{""dummy"": true, ""purpose"": ""STT UI test""}",Dummy STT data for UI testing; WER is synthetic,dummy diff --git a/datasets/omni/consolidated_dashboard_omni_sample.csv b/datasets/omni/consolidated_dashboard_omni_sample.csv deleted file mode 100644 index a3d4fc2..0000000 --- a/datasets/omni/consolidated_dashboard_omni_sample.csv +++ /dev/null @@ -1,5 +0,0 @@ -schema_version,source_format,timestamp_utc,run_name,benchmark_run_id,repetition,mlflow_run_id,mlflow_parent_run_id,mlflow_experiment_id,cluster,namespace,deployment_uuid,deployment_pod_name,grafana_dashboard_uid,model,model_revision,runtime,runtime_version,vllm_version,vllm_omni_version,image_tag,image_digest,accelerator,gpu_count,tp,pp,dp,modality,input_modality,output_modality,task_type,benchmark_tool,benchmark_tool_version,load_generator,dataset,dataset_path,dataset_split,locale,num_prompts,num_utterances,request_rate,concurrency,measured_concurrency,num_warmups,turns,prefix_tokens,prefix_count,prefix_caching,spec_decoding,request_type,extra_body_json,runtime_args,env_vars_json,max_num_seqs,max_num_batched_tokens,duration_s,successful_requests,errored_requests,benchmark_start_ms,benchmark_end_ms,prompt_tokens_requested,output_tokens_requested,prompt_tokens_total,output_tokens_total,prompt_tokens_mean,prompt_tokens_p99,output_tokens_mean,output_tokens_p99,ttft_ms_mean,ttft_ms_median,ttft_ms_std,ttft_ms_p25,ttft_ms_p50,ttft_ms_p75,ttft_ms_p90,ttft_ms_p95,ttft_ms_p99,tpot_ms_mean,tpot_ms_median,tpot_ms_std,tpot_ms_p50,tpot_ms_p95,tpot_ms_p99,itl_ms_mean,itl_ms_median,itl_ms_std,itl_ms_p50,itl_ms_p95,itl_ms_p99,e2el_ms_mean,e2el_ms_median,e2el_ms_std,e2el_ms_p25,e2el_ms_p50,e2el_ms_p75,e2el_ms_p90,e2el_ms_p95,e2el_ms_p99,e2el_ms_min,e2el_ms_max,request_throughput_rps,output_token_throughput,total_token_throughput,audio_ttfp_ms_mean,audio_ttfp_ms_median,audio_ttfp_ms_std,audio_ttfp_ms_p25,audio_ttfp_ms_p50,audio_ttfp_ms_p75,audio_ttfp_ms_p90,audio_ttfp_ms_p95,audio_ttfp_ms_p99,audio_rtf_mean,audio_rtf_median,audio_rtf_std,audio_rtf_p25,audio_rtf_p50,audio_rtf_p75,audio_rtf_p90,audio_rtf_p95,audio_rtf_p99,audio_duration_s_mean,audio_duration_s_median,audio_duration_s_p50,audio_duration_s_p95,audio_duration_s_p99,audio_underrun_s_mean,audio_underrun_s_median,audio_underrun_s_p50,audio_underrun_s_p95,audio_underrun_s_p99,audio_throughput_x,audio_output_duration_s_total,audio_frames_total,audio_sample_rate_hz,audio_continuity_ok_rate,wer,wer_ci_lower,wer_ci_upper,rtfx,transcription_throughput_utterances_s,audio_input_duration_s_total,normalization,language,stage_0_ttft_ms_p50,stage_0_ttft_ms_p95,stage_1_ttft_ms_p50,stage_1_ttft_ms_p95,stage_0_gen_time_ms_p50,stage_0_gen_time_ms_p95,stage_1_gen_time_ms_p50,stage_1_gen_time_ms_p95,transfer_tx_ms_p50,transfer_tx_ms_p95,stage_metrics_json,gpu_util_mean,gpu_util_p95,gpu_mem_used_mean_mb,gpu_power_mean_w,gpu_temp_max_c,quality_metric,quality_value,extra_json,notes,source_file -1.0,demo,2026-01-01T00:00:00Z,demo-tts-c1,demo-tts-c1,1,,,,demo,demo,,,,example/tts-1b,main,vllm-omni,vllm-omni-0.30.0,0.30.0,0.30.0,example/vllm-omni:0.30.0,,H200,1,1,1,1,audio,text,audio,voice_clone,vllm-omni-bench-serve,0.30.0,vllm-omni-bench-serve,seed-tts,/data/datasets/seed-tts,en,en,100,,inf,1,1.0,0,,,,false,,audio_speech,"{""task_type"":""Base""}",vllm-omni serve --omni,,,,42.3,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2.36,,,115.2,110.0,,,,,,158.8,,0.103,0.100,,,,,,0.123,,,,,,,0.068,,,0.074,,9.84,416.2,9988800,24000,1.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -1.0,demo,2026-01-01T00:00:00Z,demo-asr,demo-asr,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,hf-open-asr-leaderboard,example,,librispeech,example/librispeech_asr,test.clean,,,2620,,,,,,,,false,,offline_eval,,vllm serve --port 8080,,,,47.2,2620,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0.051,0.049,0.053,412.0,55.5,19452.5,whisper,en,,,,,,,,,,,,,,,,,wer,0.051,,, -1.0,demo,2026-01-01T00:00:00Z,demo-text-c8,demo-text-c8,1,,,,demo,demo,,,,example/llm-8b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,text,text,text,text_to_text,guidellm,0.6.0,guidellm,sharegpt,example/sharegpt,,,100,,inf,8,8.0,0,,,,false,,chat_completions,,vllm serve --port 8080,,,,20.0,100,0,,,,,,,,,,,130.0,120.0,,,,,,180.0,200.0,10.5,10.0,,,12.0,13.0,9.5,9.0,,,11.0,12.0,950.0,900.0,,,,,,1200.0,1300.0,,,5.0,500.0,800.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -1.0,demo,2026-01-01T00:00:00Z,demo-asr-guidellm-c8,demo-asr-guidellm-c8,1,,,,demo,demo,,,,example/asr-2b,main,vllm,vllm-0.30.0,0.30.0,,example/vllm-openai:0.30.0,,H200,1,1,1,1,audio,audio,text,asr_transcription,guidellm,0.6.0,guidellm,librispeech,example/librispeech_asr,test.clean,,,100,inf,8,8.0,0,,,,false,,audio_transcription,,vllm serve --port 8080,,,,29.7,100,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,320.0,300.0,,,,,,450.0,520.0,,,3.37,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,25.0,3.37,742.5,,en,,,,,,,,,,,,,,,,,,,"{""backend"":""openai_http"",""endpoint"":""/v1/audio/transcriptions"",""note"":""GuideLLM audio-to-text; WER not computed""}",GuideLLM audio-to-text sample; WER not computed by GuideLLM, diff --git a/datasets/omni/logs/demo-tts-c1.log b/datasets/omni/logs/demo-tts-c1.log deleted file mode 100644 index 9f818bc..0000000 --- a/datasets/omni/logs/demo-tts-c1.log +++ /dev/null @@ -1,24 +0,0 @@ -2026-01-01 00:00:00,000 INFO [demo] Starting vLLM-Omni server for example/tts-1b -2026-01-01 00:00:00,120 INFO [demo] Runtime: vllm-omni 0.30.0 | vLLM 0.30.0 -2026-01-01 00:00:00,240 INFO [demo] Loading tokenizer and model config -2026-01-01 00:00:00,480 INFO [demo] Initializing stage 0 (talker) on GPU 0 -2026-01-01 00:00:01,100 INFO [demo] Stage 0 max_num_seqs=64 gpu_memory_utilization=0.30 -2026-01-01 00:00:01,220 INFO [demo] Initializing stage 1 (codec) on GPU 0 -2026-01-01 00:00:01,760 INFO [demo] Stage 1 gpu_memory_utilization=0.30 -2026-01-01 00:00:02,040 INFO [demo] Warmup request completed in 132.4 ms -2026-01-01 00:00:02,080 INFO [demo] Application startup complete. -2026-01-01 00:00:05,000 INFO [demo] benchmark start: num_prompts=100 num_warmups=0 max_concurrency=1 request_rate=inf -2026-01-01 00:00:05,410 INFO [demo] request completed: audio_duration_s=4.17 audio_ttfp_ms=115.2 audio_rtf=0.103 -2026-01-01 00:00:05,850 INFO [demo] request completed: audio_duration_s=4.12 audio_ttfp_ms=118.7 audio_rtf=0.104 -2026-01-01 00:00:06,290 INFO [demo] request completed: audio_duration_s=4.20 audio_ttfp_ms=113.9 audio_rtf=0.101 -2026-01-01 00:00:06,730 INFO [demo] request completed: audio_duration_s=4.15 audio_ttfp_ms=121.4 audio_rtf=0.105 -2026-01-01 00:00:07,170 INFO [demo] request completed: audio_duration_s=4.18 audio_ttfp_ms=116.8 audio_rtf=0.102 -2026-01-01 00:00:07,610 INFO [demo] request completed: audio_duration_s=4.16 audio_ttfp_ms=119.2 audio_rtf=0.103 -2026-01-01 00:00:08,050 INFO [demo] request completed: audio_duration_s=4.14 audio_ttfp_ms=117.5 audio_rtf=0.104 -2026-01-01 00:00:08,490 INFO [demo] request completed: audio_duration_s=4.19 audio_ttfp_ms=114.6 audio_rtf=0.101 -2026-01-01 00:00:08,930 INFO [demo] request completed: audio_duration_s=4.17 audio_ttfp_ms=120.1 audio_rtf=0.103 -2026-01-01 00:00:09,370 INFO [demo] request completed: audio_duration_s=4.13 audio_ttfp_ms=118.3 audio_rtf=0.102 -2026-01-01 00:00:09,810 INFO [demo] benchmark complete: completed=10 failed=0 duration_s=4.81 -2026-01-01 00:00:09,820 INFO [demo] request_throughput=2.08 req/s audio_throughput=8.67x -2026-01-01 00:00:09,830 INFO [demo] mean_audio_rtf=0.103 p95_audio_rtf=0.123 mean_audio_ttfp_ms=117.6 -2026-01-01 00:00:09,840 INFO [demo] Demo log end. diff --git a/datasets/omni/logs/dummy-stt-35ga-c8.log b/datasets/omni/logs/dummy-stt-35ga-c8.log deleted file mode 100644 index 8400725..0000000 --- a/datasets/omni/logs/dummy-stt-35ga-c8.log +++ /dev/null @@ -1,19 +0,0 @@ -2026-07-08 03:00:00,000 INFO [dummy-stt] Starting vLLM server for example/asr-2b -2026-07-08 03:00:00,120 INFO [dummy-stt] Runtime: vLLM 0.30.0 -2026-07-08 03:00:00,240 INFO [dummy-stt] Loading tokenizer and audio feature extractor -2026-07-08 03:00:00,480 INFO [dummy-stt] Initializing model on GPU 0 -2026-07-08 03:00:01,100 INFO [dummy-stt] max_num_seqs=64 gpu_memory_utilization=0.90 -2026-07-08 03:00:01,760 INFO [dummy-stt] Warmup transcription completed in 91.5 ms -2026-07-08 03:00:02,080 INFO [dummy-stt] Application startup complete. -2026-07-08 03:00:05,000 INFO [dummy-stt] benchmark start: num_utterances=100 max_concurrency=8 request_rate=inf -2026-07-08 03:00:05,410 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=950.0 rtfx=55.00 -2026-07-08 03:00:05,850 INFO [dummy-stt] transcription completed: audio_duration_s=7.48 latency_ms=961.2 rtfx=54.36 -2026-07-08 03:00:06,290 INFO [dummy-stt] transcription completed: audio_duration_s=7.52 latency_ms=941.7 rtfx=55.51 -2026-07-08 03:00:06,730 INFO [dummy-stt] transcription completed: audio_duration_s=7.49 latency_ms=956.4 rtfx=54.65 -2026-07-08 03:00:07,170 INFO [dummy-stt] transcription completed: audio_duration_s=7.51 latency_ms=947.8 rtfx=55.15 -2026-07-08 03:00:07,610 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=952.3 rtfx=54.87 -2026-07-08 03:00:08,050 INFO [dummy-stt] transcription completed: audio_duration_s=7.47 latency_ms=966.1 rtfx=54.10 -2026-07-08 03:00:08,490 INFO [dummy-stt] transcription completed: audio_duration_s=7.53 latency_ms=938.9 rtfx=55.63 -2026-07-08 03:00:08,930 INFO [dummy-stt] benchmark complete: completed=100 failed=0 duration_s=13.64 -2026-07-08 03:00:09,820 INFO [dummy-stt] request_throughput=7.33 req/s rtfx=55.00 -2026-07-08 03:00:09,830 INFO [dummy-stt] Dummy STT log end. diff --git a/datasets/omni/logs/dummy-stt-36ga-c8.log b/datasets/omni/logs/dummy-stt-36ga-c8.log deleted file mode 100644 index a01a1c2..0000000 --- a/datasets/omni/logs/dummy-stt-36ga-c8.log +++ /dev/null @@ -1,21 +0,0 @@ -2026-11-23 21:00:00,000 INFO [dummy-stt] Starting vLLM server for example/asr-2b -2026-11-23 21:00:00,120 INFO [dummy-stt] Runtime: vLLM 0.30.0 -2026-11-23 21:00:00,240 INFO [dummy-stt] Loading tokenizer and audio feature extractor -2026-11-23 21:00:00,480 INFO [dummy-stt] Initializing model on GPU 0 -2026-11-23 21:00:01,100 INFO [dummy-stt] max_num_seqs=64 gpu_memory_utilization=0.90 -2026-11-23 21:00:01,760 INFO [dummy-stt] Warmup transcription completed in 84.2 ms -2026-11-23 21:00:02,080 INFO [dummy-stt] Application startup complete. -2026-11-23 21:00:05,000 INFO [dummy-stt] benchmark start: num_utterances=100 max_concurrency=8 request_rate=inf -2026-11-23 21:00:05,410 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=780.0 rtfx=63.25 -2026-11-23 21:00:05,850 INFO [dummy-stt] transcription completed: audio_duration_s=7.48 latency_ms=792.1 rtfx=62.91 -2026-11-23 21:00:06,290 INFO [dummy-stt] transcription completed: audio_duration_s=7.52 latency_ms=771.4 rtfx=64.02 -2026-11-23 21:00:06,730 INFO [dummy-stt] transcription completed: audio_duration_s=7.49 latency_ms=788.6 rtfx=63.10 -2026-11-23 21:00:07,170 INFO [dummy-stt] transcription completed: audio_duration_s=7.51 latency_ms=775.3 rtfx=63.71 -2026-11-23 21:00:07,610 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=783.9 rtfx=63.37 -2026-11-23 21:00:08,050 INFO [dummy-stt] transcription completed: audio_duration_s=7.47 latency_ms=795.2 rtfx=62.77 -2026-11-23 21:00:08,490 INFO [dummy-stt] transcription completed: audio_duration_s=7.53 latency_ms=769.8 rtfx=64.11 -2026-11-23 21:00:08,930 INFO [dummy-stt] transcription completed: audio_duration_s=7.50 latency_ms=781.5 rtfx=63.45 -2026-11-23 21:00:09,370 INFO [dummy-stt] transcription completed: audio_duration_s=7.49 latency_ms=786.7 rtfx=63.19 -2026-11-23 21:00:09,810 INFO [dummy-stt] benchmark complete: completed=100 failed=0 duration_s=10.71 -2026-11-23 21:00:09,820 INFO [dummy-stt] request_throughput=9.33 req/s rtfx=63.25 -2026-11-23 21:00:09,830 INFO [dummy-stt] Dummy STT log end. diff --git a/docs/omni-dashboard-checkpoint.md b/docs/omni-dashboard-checkpoint.md index dabd364..d525640 100644 --- a/docs/omni-dashboard-checkpoint.md +++ b/docs/omni-dashboard-checkpoint.md @@ -38,10 +38,9 @@ MLflow is the provenance layer. The CSV is the dashboard-facing, denormalized ta - `accelerator` is the only hardware column; exact GPU SKU belongs in `extra_json.gpu_sku`. - `benchmark_tool` is the exact CLI/tool; `load_generator` is the dashboard-facing family (`guidellm`, `vllm-omni-bench-serve`, `offline`). - Add new metrics to `extra_json` first. Promote to a first-class column only when a dashboard panel must filter or chart it. -- Sanitized fixtures in the repo: - - `consolidated_dashboard_omni_template.csv` — header only. - - `consolidated_dashboard_omni_sample.csv` — TTS/ASR/text examples. - - `consolidated_dashboard_omni_dummy_stt.csv` — 8 ASR/STT rows across two versions, plus matching logs. +- Templates in the repo: + - `consolidated_dashboard_omni_template.csv` — header only (165 columns). + - `consolidated_dashboard_omni_tts_template.csv` — header only (77 columns). - Legacy TTS rows without a dataset are shown as `(unspecified)` by the dataset filter; the raw `dataset` field is left untouched for version matching. ## Performance Plots @@ -88,10 +87,9 @@ MLflow is the provenance layer. The CSV is the dashboard-facing, denormalized ta ## Tests and fixtures -- `tests/test_omni_csv.py` — 5 tests: schema/sample, placeholder metadata, demo log, dummy STT fixture, converter smoke. -- `tests/test_omni_filter_persistence.py` — 6 tests: selections survive upstream changes, invalid values are pruned, fallback to all when nothing remains. +- `tests/test_omni_csv.py` — template schema checks and converter smoke. +- `tests/test_omni_filter_persistence.py` — selections survive upstream changes, invalid values are pruned, fallback to all when nothing remains. - Full suite: **191 passed**. -- Dummy STT fixture has GuideLLM c1/c8/c32 rows plus offline WER rows for `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. ## Deferred / open diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 6e1996f..e0b6ec2 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -260,34 +260,11 @@ The full column set stays available behind a “show all columns” toggle and t Included in the repo: -| File | Purpose | -| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column template | -| `datasets/omni/consolidated_dashboard_omni_sample.csv` | Sanitized TTS, ASR (HF harness), audio-to-text (GuideLLM), and text example rows | -| `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` | 8 sanitized ASR/STT test rows across two versions (GuideLLM c1/c8/c32 plus offline WER) | -| `datasets/omni/logs/dummy-stt-*.log` | Matching sanitized STT server logs for View Logs | -| `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | - -The sample uses only `example/...` models and `demo` metadata. Do not commit production hostnames, deployment IDs, MLflow IDs, private image digests, or credentials. - -## Dummy STT test data - -`datasets/omni/consolidated_dashboard_omni_dummy_stt.csv` exercises the ASR/STT path without a real run: - -- Model `example/asr-2b`, versions `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. -- GuideLLM online rows at concurrency 1, 8, and 32 with RTFx, transcription throughput, and E2EL Mean/Median/P95/P99. -- Offline WER rows for both versions using the HF ASR leaderboard harness. -- Matching logs under `datasets/omni/logs/` for View Logs. - -Run the dashboard against it with: - -```bash -OMNI_CSV_PATH=datasets/omni/consolidated_dashboard_omni_dummy_stt.csv \ -OMNI_LOG_DIR=datasets/omni/logs \ -streamlit run dashboard.py -``` - -To test STT alongside TTS data, concatenate the dummy rows with another consolidated CSV that has the same 165-column header. +| File | Purpose | +| ----------------------------------------------------------------- | -------------------------------------- | +| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column legacy template | +| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 77-column TTS template | +| `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | ## Row granularity diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md index 39cbeb2..f73a4bb 100644 --- a/docs/omni-vs-rhaiis-dashboard.md +++ b/docs/omni-vs-rhaiis-dashboard.md @@ -234,8 +234,7 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin 3. S3 `S3_LOGS_PREFIX.log` when `S3_LOGS_BUCKET` is set. - Log resolution is automatic: one run selector and one **Fetch Log** button, with no extra log-file selector. Ranking prefers the full server log, then the startup log, then the benchmark log. - The view always shows the complete log, and **Download Full Log** downloads it. -- Added a sanitized demo log at `datasets/omni/logs/demo-tts-c1.log` so the public sample row works without configuring a log backend. -- Tested locally with the demo log and with the real 3.6 GA c1 run: the full 6,086,641-character server log rendered end to end, and the demo log loaded completely. +- Tested with the real 3.6 GA c1 run: the full 6,086,641-character server log rendered end to end. ## Checkpoint 8 — Compare Versions implemented @@ -255,21 +254,14 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - All common concurrency levels are used automatically (c1/c4/c8/c16 for the 3.5 → 3.6 comparison). - Same-version and one-version datasets show clear warnings. -## Checkpoint 9 — task selector and dummy STT data +## Checkpoint 9 — task selector - Added a **Tasks** multiselect to Compare Versions. It cascades into model and metric options, so TTS and ASR/STT comparisons are isolated. - Task labels are modality-explicit and ordered: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. ASR/STT has a single transcription task. - Fixed comparison key selection to run **per task**, so a dataset present on only one side no longer breaks matching for another task. TTS and ASR rows now coexist correctly in one comparison. -- Added `datasets/omni/consolidated_dashboard_omni_dummy_stt.csv`: - - `example/asr-2b` across `vllm-omni-3.5-ea2` and `vllm-omni-3.6.0-ga`. - - GuideLLM online rows at c1/c8/c32 with RTFx and transcription throughput. - - Offline WER rows for both versions. - - Matching `dummy-stt-*.log` files under `datasets/omni/logs/`. - Tested: - All tasks selected: summary shows TTS and ASR rows separately. - ASR/STT only: model auto-narrows to `example/asr-2b`, metric defaults to WER, title shows `Task: ASR / STT | Dataset: librispeech`. - - Dummy STT log loads end to end in View Logs. - - Fixture test validates 8 rows, two versions, online/offline load generators, and log files. ## Checkpoint 10 — single load generator per comparison @@ -292,12 +284,10 @@ Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labelin - Removed the selected-metric cards, delta bar chart, and per-concurrency details table. - Compare Versions is now a single all-metric summary table plus CSV download, matching the RHAIIS table-first pattern. - The Statistic selector still controls Mean / Median / P95 / P99 for the stats-based columns. Single-value metrics (throughput, WER, RTFx, transcription throughput) do not change when the statistic changes. -- Dummy STT rows include E2EL Mean/Median/P95/P99 with distinct version deltas so the statistic selector is testable for ASR/STT. ## Checkpoint 13 — statistic-aware STT summary - Added End-to-End Latency to the Compare Versions summary columns. -- Expanded the dummy STT fixture with E2EL Mean/Median/P95/P99 values. The version deltas differ by statistic (−16% Mean, −18% Median, −12% P95, −10% P99). - Single-value metrics (throughput, WER, RTFx, transcription throughput) intentionally stay the same when the statistic changes; the page caption explains this. - Fixed the offline/`n/a` concurrency path so offline WER rows render in the summary. - Verified in the UI: ASR-only + GuideLLM shows an `E2EL P95` column at P95 and `E2EL Mean` at Mean, with different values. diff --git a/omni_dashboard.py b/omni_dashboard.py index 3c580cc..61fb912 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -2535,7 +2535,7 @@ def _render_section(section: str, df: pd.DataFrame): def render_omni_dashboard( - csv_path: str = "datasets/omni/consolidated_dashboard_omni_sample.csv", + csv_path: str = "datasets/omni/consolidated_dashboard_omni.csv", ): """Render the Omni dashboard shell and the selected section.""" csv_path = os.environ.get("OMNI_CSV_PATH", csv_path) diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 835299b..6a96958 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -1,4 +1,4 @@ -"""Tests for the consolidated Omni dashboard CSV schema and converter.""" +"""Tests for the consolidated Omni dashboard CSV schemas and converter.""" import csv import json @@ -11,11 +11,9 @@ ROOT = Path(__file__).resolve().parents[1] OMNI_DIR = ROOT / "datasets" / "omni" TEMPLATE = OMNI_DIR / "consolidated_dashboard_omni_template.csv" -SAMPLE = OMNI_DIR / "consolidated_dashboard_omni_sample.csv" +TTS_TEMPLATE = OMNI_DIR / "consolidated_dashboard_omni_tts_template.csv" METADATA = OMNI_DIR / "consolidated_dashboard_omni_metadata.example.json" CONVERTER = ROOT / "manual_runs" / "scripts" / "build_consolidated_omni_csv.py" -DEMO_LOG = OMNI_DIR / "logs" / "demo-tts-c1.log" -DUMMY_STT = OMNI_DIR / "consolidated_dashboard_omni_dummy_stt.csv" REQUIRED = {"model", "task_type", "benchmark_tool", "load_generator"} @@ -30,7 +28,7 @@ def _header(path): return next(csv.reader(handle)) -def test_template_and_sample_schema(): +def test_legacy_template_schema(): header = _header(TEMPLATE) assert len(header) == 165 assert len(set(header)) == 165 @@ -39,87 +37,23 @@ def test_template_and_sample_schema(): assert "extra_json" in header assert "stage_metrics_json" in header - rows = _read_csv(SAMPLE) - assert len(rows) == 4 - assert list(rows[0]) == header - assert {row["task_type"] for row in rows} == { - "voice_clone", - "asr_transcription", - "text_to_text", - } - assert {row["load_generator"] for row in rows} == { - "vllm-omni-bench-serve", - "", - "guidellm", - } - hf_asr = [row for row in rows if row["benchmark_tool"] == "hf-open-asr-leaderboard"] - assert len(hf_asr) == 1 - assert hf_asr[0]["load_generator"] == "" - assert hf_asr[0]["runtime_args"].startswith("vllm serve") - audio_guidellm = [ - row - for row in rows - if row["task_type"] == "asr_transcription" - and row["load_generator"] == "guidellm" - ] - assert len(audio_guidellm) == 1 - assert audio_guidellm[0]["input_modality"] == "audio" - assert audio_guidellm[0]["output_modality"] == "text" - assert audio_guidellm[0]["rtfx"] - assert not audio_guidellm[0]["wer"] - for row in rows: - assert row["model"] - assert row["task_type"] - assert row["benchmark_tool"] - if row["benchmark_tool"] != "hf-open-asr-leaderboard": - assert row["load_generator"] - if row["task_type"] != "asr_transcription": - assert row["concurrency"] - - -def test_sample_uses_placeholder_metadata(): - rows = _read_csv(SAMPLE) - assert {row["cluster"] for row in rows} == {"demo"} - assert {row["namespace"] for row in rows} == {"demo"} - assert all(not row["deployment_uuid"] for row in rows) - assert all(not row["mlflow_run_id"] for row in rows) - assert all(row["image_tag"].startswith("example/") for row in rows) - - -def test_demo_log_matches_sample_run(): - rows = _read_csv(SAMPLE) - assert "demo-tts-c1" in {row["run_name"] for row in rows} - assert DEMO_LOG.exists() - assert "Application startup complete." in DEMO_LOG.read_text() - - -def test_dummy_stt_fixture(): - rows = _read_csv(DUMMY_STT) - assert len(rows) == 8 - assert list(rows[0]) == _header(TEMPLATE) - assert {row["task_type"] for row in rows} == {"asr_transcription"} - assert {row["input_modality"] for row in rows} == {"audio"} - assert {row["output_modality"] for row in rows} == {"text"} - assert {row["runtime_version"] for row in rows} == { - "vllm-omni-3.5-ea2", - "vllm-omni-3.6.0-ga", - } - assert {row["load_generator"] for row in rows} == {"guidellm", "offline"} - offline = [row for row in rows if row["load_generator"] == "offline"] - assert len(offline) == 2 - assert all(row["wer"] for row in offline) - online = [row for row in rows if row["load_generator"] == "guidellm"] - assert len(online) == 6 - for row in online: - for column in ( - "e2el_ms_mean", - "e2el_ms_median", - "e2el_ms_p95", - "e2el_ms_p99", - ): - assert row[column] - assert (OMNI_DIR / "logs" / "dummy-stt-35ga-c8.log").exists() - assert (OMNI_DIR / "logs" / "dummy-stt-36ga-c8.log").exists() + +def test_tts_template_schema(): + header = _header(TTS_TEMPLATE) + assert len(header) == 77 + assert len(set(header)) == 77 + assert REQUIRED.issubset(header) + assert "recipe" in header + assert "profile" not in header + for column in ( + "run_key", + "num_prompts", + "response_format", + "audio_ttfp_ms_p95", + "audio_rtf_p95", + "audio_underrun_s_p95", + ): + assert column in header def test_converter_smoke(tmp_path): From 8c3665e8361011bf52eb44ec8b1ea761b4d0baf3 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 21:08:23 -0500 Subject: [PATCH 61/74] Point staging Omni deployment at the S3 CSV key Set S3_KEY_OMNI to the existing staging/omni-dashboard object so the dashboard can read the consolidated Omni CSV from the shared bucket. Co-Authored-By: Claude Code --- deploy/openshift-deployment-staging.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/openshift-deployment-staging.yaml b/deploy/openshift-deployment-staging.yaml index c7c41f7..27611b5 100644 --- a/deploy/openshift-deployment-staging.yaml +++ b/deploy/openshift-deployment-staging.yaml @@ -56,6 +56,8 @@ spec: value: "the location of the llmd-dashboard.csv file" - name: S3_KEY_CPU value: "the location of the cpu_dashboard.csv file" + - name: S3_KEY_OMNI + value: "staging/omni-dashboard/omni_dashboard.csv" - name: S3_REGION value: "the region of your bucket" # S3 Configuration for logs From 675147c02c40bb17eb9d445cd3d95d77b7f86d76 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 21:24:17 -0500 Subject: [PATCH 62/74] Consolidate Omni documentation into one guide Keep a single docs/omni-dashboard.md covering the staged schema, data flow, dashboard sections, configuration, and caveats; remove the planning and point-in-time docs from the PR. Co-Authored-By: Claude Code --- README.md | 14 +- docs/omni-dashboard-checkpoint.md | 100 ----- docs/omni-dashboard.md | 454 ++++------------------ docs/omni-overview-redesign.md | 196 ---------- docs/omni-tts-column-sources.md | 217 ----------- docs/omni-vs-rhaiis-dashboard.md | 329 ---------------- manual_runs/scripts/build_omni_tts_csv.py | 2 +- 7 files changed, 79 insertions(+), 1233 deletions(-) delete mode 100644 docs/omni-dashboard-checkpoint.md delete mode 100644 docs/omni-overview-redesign.md delete mode 100644 docs/omni-tts-column-sources.md delete mode 100644 docs/omni-vs-rhaiis-dashboard.md diff --git a/README.md b/README.md index 53e3af7..af1328c 100644 --- a/README.md +++ b/README.md @@ -286,17 +286,19 @@ The Omni dashboard reads `datasets/omni/consolidated_dashboard_omni.csv` locally - `datasets/omni/consolidated_dashboard_omni_tts_template.csv` - `datasets/omni/consolidated_dashboard_omni_metadata.example.json` -Convert vLLM-Omni bench JSON, optional ASR CSV/JSON, and an optional legacy benchmark CSV: +Build the staged 77-column TTS CSV: ```bash -python manual_runs/scripts/build_consolidated_omni_csv.py \ - --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ - --omni-json path/to/omni-json/ \ - --asr-csv path/to/asr-results.csv \ +python manual_runs/scripts/build_omni_tts_csv.py \ + --recipe-root ~/omni-perf-benchmark-recipe \ --output datasets/omni/consolidated_dashboard_omni.csv ``` -See `docs/omni-dashboard.md` for the schema, units, and the extension rule: add new metrics to `extra_json` first and promote them to first-class columns only when a dashboard panel needs them. +The older 165-column converter (`build_consolidated_omni_csv.py`) and its +metadata example remain for the legacy schema/template. + +See `docs/omni-dashboard.md` for the schema, units, dashboard sections, and +configuration. ## MLPerf Data Management diff --git a/docs/omni-dashboard-checkpoint.md b/docs/omni-dashboard-checkpoint.md deleted file mode 100644 index d525640..0000000 --- a/docs/omni-dashboard-checkpoint.md +++ /dev/null @@ -1,100 +0,0 @@ -# Omni Dashboard — Methodology Checkpoint - -Date: 2026-12-01 -Branch: `omni-dashboard-dev` (`8d0fb2d`) -Jira: https://redhat.atlassian.net/browse/PSAP-3204 -GitHub: https://github.com/openshift-psap/performance-dashboard/issues/148 - -This is the methodology recap for the Omni view of the performance dashboard. It records the current design decisions, not a new implementation plan. - -## Data flow - -``` -vLLM-Omni / GuideLLM / HF ASR benchmark - │ - ├── result JSON + server logs - ▼ -MLflow run (metrics, params, artifacts) - │ - ▼ -build_consolidated_omni_csv.py - │ - ▼ -165-column consolidated CSV - │ - ├── local path: OMNI_CSV_PATH - └── S3: s3://$S3_BUCKET/$S3_KEY_OMNI - │ - ▼ - Streamlit Omni dashboard -``` - -MLflow is the provenance layer. The CSV is the dashboard-facing, denormalized table. The dashboard never reads MLflow metrics directly; it reads the CSV and uses MLflow only for log retrieval. - -## Schema principles - -- One row per benchmark point: model + runtime/version + task + dataset + concurrency/request-rate + repetition. -- 165 columns, with sparse modality-specific fields. TTS, ASR, and text metrics are blank when not applicable. -- `accelerator` is the only hardware column; exact GPU SKU belongs in `extra_json.gpu_sku`. -- `benchmark_tool` is the exact CLI/tool; `load_generator` is the dashboard-facing family (`guidellm`, `vllm-omni-bench-serve`, `offline`). -- Add new metrics to `extra_json` first. Promote to a first-class column only when a dashboard panel must filter or chart it. -- Templates in the repo: - - `consolidated_dashboard_omni_template.csv` — header only (165 columns). - - `consolidated_dashboard_omni_tts_template.csv` — header only (77 columns). -- Legacy TTS rows without a dataset are shown as `(unspecified)` by the dataset filter; the raw `dataset` field is left untouched for version matching. - -## Performance Plots - -- Filter band: **Accelerator → Task → Dataset → Version → Load Generator → Model → TP**. -- Task labels include modality: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. -- Task selector has a help tooltip with one bullet per task. -- Model selector has a **Select All Models** checkbox; removing a model unchecks it automatically. -- Dataset options cascade from the selected tasks and default to all. -- Filter selections use stable keys. Changing an upstream filter preserves valid downstream selections and prunes only invalid ones. -- Chart controls: X-axis (`Concurrency` or `Model`), Y-axis metric, `Show concurrency up to` ceiling. -- Concurrency is not a filter; all available concurrency values for the selected data are shown. -- Chart uses `plotly_white_light`, RHAIIS trace/layout styling, and point/box/lasso selection. -- Selecting points or areas adds plot lines; **Filtered Data for Plot Lines** shows their source rows and provides **Clear comparison**. - -## Compare Versions - -- Baseline/comparison selectors with a swap button. -- One **task type** and one **load generator** at a time. GuideLLM, vLLM-Omni bench serve, and offline rows are never mixed. -- Models selector with Select All Models. -- All common concurrency levels are used automatically. -- Rows are matched on model, task, concurrency, load generator, TP, and accelerator. Dataset is included per task when both versions provide it. -- Output is one model-level, all-metric summary table plus CSV download. No metric selector or chart. -- Cells are the geometric mean of per-concurrency deltas, classified as Better / Flat / Worse with a 1% flat threshold and metric direction. -- Statistic selector: Mean / Median / P95 / P99 where available. Throughput, WER, RTFx, and transcription throughput remain single values. -- Version defaults prefer the most recent version as comparison and the earlier version with the longest common prefix as baseline. - -## View Logs - -- One run selector and one **Fetch Log** button. -- Resolution order: - 1. MLflow artifacts under `MLFLOW_LOG_ARTIFACT_PREFIX` using `mlflow_run_id`. - 2. Local `.log` files under `OMNI_LOG_DIR`, matched by run name, run ID, run-ID prefix, or deployment UUID. - 3. S3 `S3_LOGS_PREFIX.log`. -- Prefers the full server log, then startup log, then benchmark log. -- Shows the complete selected log and provides Download Full Log. - -## URL persistence - -- Active section: `section` query parameter. -- Compare Versions: `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat`. -- Widget state is hydrated on first load; subsequent changes update the URL. -- Performance Plots filter selections are **not** in the URL yet. - -## Tests and fixtures - -- `tests/test_omni_csv.py` — template schema checks and converter smoke. -- `tests/test_omni_filter_persistence.py` — selections survive upstream changes, invalid values are pruned, fallback to all when nothing remains. -- Full suite: **191 passed**. - -## Deferred / open - -- Label filter: deferred. Omni has no `label` column; `run_name`, `notes`, and `extra_json` exist. -- Performance Plots filter URL persistence: not implemented yet. -- ISL/OSL profile, multi-turn, spec-decoding, prefix-caching, turns, and prefix-token filters: not applicable or not implemented for the current TTS/ASR focus. -- Some RHAIIS sections remain placeholders (Competitive Analysis, Trends, Cost, Energy, IntelliConfig, Pareto, Runtime Configs). -- Open questions: TP/version labeling, `locale` vs `language`, dataset identity, offline ASR chart treatment. diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index e0b6ec2..b3390a1 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -1,420 +1,106 @@ # Omni Dashboard -The Omni dashboard is a separate view in the performance dashboard for benchmarks whose input and/or output is audio. It covers: +The Omni view covers speech-out (TTS) benchmarking for vLLM-Omni. The current staged rollout is TTS-only — Qwen3-TTS and OmniVoice, streaming and non-streaming, WAV and PCM. ASR, chat-completions TTS, and realtime endpoints are not in the staged CSV yet. -- **Speech-out (TTS)**: audio TTFP, RTF, underrun, audio throughput, continuity -- **Speech-in (ASR)**: WER, RTFx, transcription throughput -- **Text**: TTFT, TPOT, ITL, E2EL, token throughput -- **Future modalities**: image/video/omni rows can be added without changing the dashboard +The dashboard is a view over the benchmark data; it does not change collection. -The dashboard is a _view_ over the same metrics pipeline. It does not change collection or any other dashboard. - -## Schema size and endpoint coverage — research memo (2026-12-02) - -Status: **proposed, not final** — for engineering review. - -### Why this memo - -Two questions came up while merging the 3.5 and 3.6 Omni benchmark data: - -1. Does audio output need its own CSV, since TTS can be benchmarked through several endpoints (including chat completions)? -2. Why does the Omni consolidated CSV have 165 columns when the RHAIIS dashboard CSV has 56? - -Short answers: one table with an endpoint dimension is enough — a separate audio-output file is not required. The 165 count comes from five metric families stacked side by side, most of them carrying 5–11 percentile columns per metric. This memo records the endpoint coverage and the column math so we can decide how to split the schema. - -### Endpoint coverage - -The vLLM-Omni bench client registers several OpenAI-compatible backends. For the Seed-TTS datasets, the client explicitly accepts these backend families and rejects others: - -| Endpoint | Bench backend | Used for | Metrics populated | Metrics absent | -| --------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | -| `POST /v1/audio/speech` | `openai-audio-speech` | TTS | Audio TTFP, RTF, duration, underrun, frames, audio throughput, E2EL | TTFT/TPOT/ITL, output tokens (always 0) | -| `POST /v1/chat/completions` | `openai-chat-omni` | TTS / omni chat | Text TTFT, TPOT, ITL, output tokens, token throughput **and** audio TTFP, RTF, duration | — (both families populate) | -| `WS /v1/realtime` | `openai-realtime-duplex`, `openai-realtime-tts`, `openai-realtime-chat` | Streaming conversation / realtime TTS | Per-response duplex TTFT/TTFP, client TTFT/TTFP, client RTF, busy RTF, stall ratio, stream TTFP/RTF, session and turn counts | One-shot request latency in the same sense | -| `POST /v1/audio/transcriptions` | ASR harness | Speech-in / transcription | WER, WER CI, RTFx, transcription throughput, input audio duration | Audio-output metrics | -| `POST /v1/completions`, `POST /v1/chat/completions` (text only) | `openai`, `openai-chat` | Text → text | TTFT, TPOT, ITL, token throughput | Audio metrics. This is RHAIIS scope, not Omni scope. | - -The important consequence: **the endpoint does not decide the schema; the output modality does.** A chat-completions TTS run produces both text and audio metrics in the same result JSON. An audio-speech run produces only audio metrics. A separate CSV per endpoint would duplicate identity columns and make cross-endpoint comparison harder. - -### Evidence from the bench source - -- `vllm_omni/benchmarks/patch/patch.py` — Seed-TTS backend validation accepts `openai-audio-speech`, `openai-chat-omni`, `openai-realtime-duplex`, `openai-realtime-tts`, and `openai-realtime-chat`. -- `async_request_openai_chat_omni_completions` — sends `POST /v1/chat/completions` with `stream: true`, and sets `modalities: ["text", "audio"]` for Seed-TTS requests. -- `async_request_openai_audio_speech` — sends `POST /v1/audio/speech`; the response is audio only. -- `vllm_omni/metrics/definitions.py` — defines the audio metric names and their mean/median/std/percentile aggregations. -- `vllm_omni/benchmarks/metrics/metrics.py` — defines the text and audio result fields, including `num_ttft_samples`, `num_audio_ttfp_samples`, and the per-stage metric struct. -- `vllm_omni/benchmarks/duplex_session_metrics.py` — defines the realtime/duplex response and stream metrics. - -Observed in a real `openai-audio-speech` result JSON: - -- Audio keys: `mean_`, `median_`, `p50_`, `p95_`, `p99_` for `audio_ttfp_ms`, `audio_rtf`, `audio_duration_s`, `audio_underrun_s`, plus `audio_throughput`, `total_audio_duration_s`, `total_audio_frames`, `num_audio_ttfp_samples`, `num_audio_rtf_samples`. -- Text keys: `num_ttft_samples` is nonzero, but there is **no** `mean_ttft_ms`, `mean_tpot_ms`, or `mean_itl_ms`; `total_output_tokens` and `output_throughput` are 0. Audio-speech has no text output. -- A chat-completions audio run would additionally carry the text TTFT/TPOT/ITL keys. - -### Column count: RHAIIS vs Omni - -RHAIIS `consolidated_dashboard.csv` has **56 columns**: 27 identity/workload columns plus 29 text metrics. It is long and narrow: one row per GuideLLM point, one metric family. - -The Omni consolidated CSV has **165 columns**: - -| Group | Columns | Contents | -| ----------------------------- | ------: | ------------------------------------------------------------------------------------------ | -| Core identity/config/workload | 60 | model, runtime, image, deployment UUID, MLflow IDs, dataset, concurrency, task, provenance | -| Text metrics | 43 | token counts, TTFT/TPOT/ITL/E2EL, token throughput | -| Speech-out metrics | 33 | audio TTFP/RTF/duration/underrun/throughput/continuity | -| ASR metrics | 8 | WER, WER CI, RTFx, transcription throughput | -| Stage/system | 16 | stage TTFT/gen-time, transfer, GPU | -| Extra | 5 | quality, extra_json, notes, source_file | - -Most of the width is percentile columns. Each metric stores 5–11 statistics: - -| Metric family | Statistic columns | -| -------------------- | ----------------: | -| `ttft_ms_*` | 9 | -| `tpot_ms_*` | 6 | -| `itl_ms_*` | 6 | -| `e2el_ms_*` | 11 | -| `audio_ttfp_ms_*` | 9 | -| `audio_rtf_*` | 9 | -| `audio_duration_s_*` | 5 | -| `audio_underrun_s_*` | 5 | - -The table is sparse by design: a TTS row fills roughly 40 of 165 columns, a text row fills a different ~45, and an offline ASR row fills ~10. RHAIIS does not have this problem because it only carries text metrics. - -### Reduction proposal - -Four changes take the working table from 165 to roughly 46 + metric files: - -1. **Text → text is RHAIIS scope, not Omni.** Drop the 31 token-generation columns (`prompt_tokens_*`, `output_tokens_*`, `ttft_ms_*`, `tpot_ms_*`, `itl_ms_*`, token throughput). Keep `e2el_ms_*` and `request_throughput_rps`; TTS and ASR both need them. -2. **Keep four statistics per metric: mean, median, p95, p99.** `median` and `p50` are the same number; keeping both was redundant. Drop `std`, `p25`, `p50`, `p75`, `p90`. This takes speech-out from 28 statistic columns to 16. -3. **GPU metrics stay in Grafana.** Drop `gpu_util_*`, `gpu_mem_used_mean_mb`, `gpu_power_mean_w`, `gpu_temp_max_c` from the CSV. -4. **Config columns become one `runtime_args` column**, the way RHAIIS displays launch args. Drop `gpu_memory_utilization`, `max_num_seqs`, `max_num_batched_tokens`, and `resolved_config_json` as separate columns. - -**Current staged rollout:** one 77-column CSV = 49 run/core columns (identity 7, -model/runtime 7, task/protocol 13, workload 7, outcome 8, stage 6, notes 1) + -28 audio-output columns. `runtime_args` carries `gpu-mem`, `max-seqs`, and -`max-batched-tokens`. Performance Plots no longer show the recipe or -experiment-phase labels; hover shows the resolved runtime args, and legend -labels end at `dataset | TP`. - -The 46-column split below remains the future target. - -Proposed file set: - -| File | Columns | Purpose | -| ----------------------- | -----------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `omni_runs.csv` | **46** | One row per benchmark point. Identity (7) + model/runtime (6) + protocol (11) + workload (7) + outcome (8) + stage (6) + notes (1). Used by filters, charts, and Filtered Data. | -| `omni_audio_output.csv` | **22 core / 30 with coverage** | `run_key` + audio-output metrics. 22 core, or 30 including the 8 coverage/format fields. | -| `omni_text_output.csv` | **34** | `run_key` + text-output metrics: sample counts (3), token counts (8), TTFT/TPOT/ITL (12), token throughput (2), ASR quality (8), join key (1). Offline ASR fills only the WER/RTFx block; online ASR and chat-completions TTS also fill the token/latency block. | -| `omni_run_config.csv` | **20** | 1 join key + 19 provenance/config fields. Loaded only by View Logs and Runtime Server Configs, not by Filtered Data. | - -Column math: 46 runs + 30 audio + 34 text + 20 config = **130 columns total**, but no single view loads all four. A TTS view loads 46 + 30 + 20 = 96; an ASR view loads 46 + 34 + 20 = 100; Filtered Data loads runs + one metric file only (76 or 80). - -### `omni_runs.csv` — 46 columns - -- **Identity (7):** `run_key`, `run_name`, `timestamp_utc`, `repetition`, `cluster`, `deployment_uuid`, `mlflow_run_id` -- **Model/runtime (6):** `model`, `runtime_version`, `image_tag`, `accelerator`, `gpu_count`, `tp` -- **Task/protocol (11):** `task_type`, `recipe`, `experiment_phase`, `output_modality`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` -- **Workload (7):** `dataset`, `locale`, `num_prompts`, `request_rate`, `concurrency`, `measured_concurrency`, `short_window` -- **Outcome (8):** `duration_s`, `successful_requests`, `errored_requests`, `e2el_ms_{mean,median,p95,p99}` (4), `request_throughput_rps` -- **Stage (6):** `stage_0_ttft_ms_{p50,p95}` (2), `stage_1_ttft_ms_{p50,p95}` (2), `transfer_tx_ms_{p50,p95}` (2) -- **Notes (1):** `notes` - -7 + 6 + 11 + 7 + 8 + 6 + 1 = **46**. - -### `omni_audio_output.csv` — 22 core + 8 coverage = 30 - -- `run_key` (1) -- `audio_ttfp_ms_{mean,median,p95,p99}` (4) -- `audio_rtf_{mean,median,p95,p99}` (4) -- `audio_duration_s_{mean,median,p95,p99}` (4) -- `audio_underrun_s_{mean,median,p95,p99}` (4) -- `audio_throughput_x` (1) -- `audio_output_duration_s_total` (1) -- `audio_frames_total` (1) -- `audio_sample_rate_hz` (1) -- `audio_continuity_ok_rate` (1) -- Coverage: `num_audio_ttfp_samples`, `num_audio_rtf_samples`, `audio_skipped_requests`, `missing_audio_duration_count`, `audio_channels`, `audio_bits_per_sample`, `audio_codec`, `audio_underrun_threshold_s` (8) - -1 + 4 + 4 + 4 + 4 + 1 + 1 + 1 + 1 + 1 = **22 core**; + 8 coverage = **30**. - -### `omni_text_output.csv` — 34 - -- `run_key` (1) -- `num_ttft_samples`, `num_tpot_samples`, `num_itl_samples` (3) -- `prompt_tokens_{requested,total,mean,p99}` (4) -- `output_tokens_{requested,total,mean,p99}` (4) -- `ttft_ms_{mean,median,p95,p99}` (4) -- `tpot_ms_{mean,median,p95,p99}` (4) -- `itl_ms_{mean,median,p95,p99}` (4) -- `output_token_throughput`, `total_token_throughput` (2) -- `wer`, `wer_ci_lower`, `wer_ci_upper` (3) -- `rtfx`, `transcription_throughput_utterances_s`, `audio_input_duration_s_total`, `normalization`, `language` (5) - -1 + 3 + 4 + 4 + 4 + 4 + 4 + 2 + 3 + 5 = **34**. - -### `omni_run_config.csv` — 20 - -`run_key`, `namespace`, `deployment_pod_name`, `mlflow_parent_run_id`, `mlflow_experiment_id`, `model_revision`, `runtime`, `vllm_version`, `vllm_omni_version`, `image_digest`, `runtime_args`, `extra_body_json`, `tokenizer_id`, `dataset_path`, `dataset_split`, `num_warmups`, `turns`, `benchmark_tool_version`, `benchmark_backend`, `status_reason`. - -1 join key + 19 provenance/config fields = **20**. - -### How the files join - -```mermaid -erDiagram - omni_runs ||--o| omni_audio_output : "run_key" - omni_runs ||--o| omni_text_output : "run_key" - omni_runs ||--|| omni_run_config : "run_key" - - omni_runs { - string run_key PK - string model - string runtime_version - string recipe - string task_type - string output_modality - string api_endpoint - string benchmark_mode - int concurrency - int measured_concurrency - } - omni_audio_output { - string run_key FK - float audio_ttfp_ms_p95 - float audio_rtf_p95 - float audio_underrun_s_p95 - float audio_throughput_x - } - omni_text_output { - string run_key FK - float ttft_ms_p95 - float tpot_ms_p95 - float wer - float rtfx - } - omni_run_config { - string run_key FK - string runtime_args - string extra_body_json - string tokenizer_id - } -``` - -Join rules: - -- `omni_runs` is the spine: exactly one row per benchmark point. -- `omni_audio_output` has 0 or 1 row per run; present when the run produces audio (TTS through any endpoint). -- `omni_text_output` has 0 or 1 row per run; present when the run produces text (ASR, or chat-completions TTS). -- `omni_run_config` has exactly 1 row per run. -- A chat-completions TTS run joins to **both** metric files with the same `run_key`. +## Data flow ``` -run R1 (audio-speech TTS) runs 1 ── 1 audio_output ── 1 run_config - └── 0 text_output - -run R2 (chat TTS) runs 1 ── 1 audio_output ── 1 run_config - └── 1 text_output - -run R3 (ASR) runs 1 ── 0 audio_output ── 1 run_config - └── 1 text_output -``` - -```python -runs = pd.read_csv("omni_runs.csv") -audio = pd.read_csv("omni_audio_output.csv") -text = pd.read_csv("omni_text_output.csv") -config = pd.read_csv("omni_run_config.csv") - -tts = runs.merge(audio, on="run_key", how="left") -asr = runs.merge(text, on="run_key", how="left") -full = runs.merge(audio, on="run_key", how="left") \ - .merge(text, on="run_key", how="left") \ - .merge(config, on="run_key", how="left") +benchmark runner → local result JSON + logs → MLflow + ↓ + build_omni_tts_csv.py + ↓ + consolidated_dashboard_omni.csv + ↓ + dashboard (local file or S3) ``` -Filtered Data should not show all 46 runs columns either. A task-aware preset of ~14 columns keeps the table readable: - -- TTS: model, runtime_version, recipe, dataset, concurrency, audio TTFP p95, audio RTF p95, audio underrun p95, audio throughput, E2EL p95, duration, successful, errored, status. -- ASR: model, runtime_version, dataset, language, WER, RTFx, transcription throughput, input audio duration, duration, status. +- MLflow stores the run hierarchy and artifacts. The dashboard uses it for **View Logs** and run hyperlinks, not for benchmark metrics. +- The dashboard reads the CSV from `datasets/omni/consolidated_dashboard_omni.csv`, or from S3 when `S3_BUCKET` is set. +- New benchmark runs do not appear automatically. Rebuild the CSV and, when using S3, upload the new object. -The full column set stays available behind a “show all columns” toggle and the CSV download. +## CSV schema -### Open questions for review +The staged schema is **77 columns**. The canonical header is in `datasets/omni/consolidated_dashboard_omni_tts_template.csv`; the populated CSV is not committed. -1. Is text → text definitively out of scope for Omni? This memo assumes yes. -2. Star split (`runs` + metric files + join on `run_key`) versus one wide CSV with a curated Filtered Data view? The split keeps every file near 50 columns; the wide file keeps the current loader unchanged. -3. Keep p99 as the outlier diagnostic, or restrict to mean/median/p95? -4. Should chat-completions TTS text metrics be stored in `text_output`, or omitted because pure TTS comparison is audio-only? -5. Should stage metrics live in `omni_runs` (joined into every view), or be duplicated into each metric file? -6. Does Filtered Data need a per-task column preset and a “show all columns” toggle? +| Group | Contents | +| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Identity | `run_key`, `run_name`, `timestamp_utc`, `cluster`, `deployment_uuid`, `mlflow_run_id`, `source_file` | +| Model/runtime | `model`, `runtime_version`, `image_tag`, `accelerator`, `gpu_count`, `tp`, `runtime_args` | +| Task/protocol | `modality`, `input_modality`, `output_modality`, `task_type`, `recipe`, `experiment_phase`, `benchmark_tool`, `load_generator`, `api_endpoint`, `benchmark_backend`, `benchmark_mode`, `response_format`, `tokenizer_override`, `status` | +| Workload | `dataset`, `locale`, `num_prompts`, `request_rate`, `concurrency`, `measured_concurrency`, `short_window` | +| Outcome | `duration_s`, `successful_requests`, `errored_requests`, `e2el_ms_{mean,median,p95,p99}`, `request_throughput_rps` | +| Stage/system | `stage_0/1_ttft_ms_{p50,p95}`, `stage_0/1_gen_time_ms_{p50,p95}`, `transfer_tx_ms_{p50,p95}` | +| Audio output | `audio_ttfp_ms_*`, `audio_rtf_*`, `audio_duration_s_*`, `audio_underrun_s_*`, `audio_throughput_x`, `audio_output_duration_s_total`, `audio_frames_total`, `audio_sample_rate_hz`, `audio_continuity_ok_rate`, plus format/coverage fields | +| Extra | `notes` | ---- +Notes: -## Data sources +- `recipe` is the deployment configuration (`default`, `b8`). Source metadata still calls it `profile`. +- `num_prompts` is **N**, the measured requests per benchmark point, excluding warmups and burn-in. +- `short_window` is true when the measured duration is below 30 s. +- Stage columns are blank when the bench JSON has no stage durations. +- The legacy 165-column template (`consolidated_dashboard_omni_template.csv`) remains for the older converter. The staged dashboard uses the 77-column template. -| Mode | Location | -| ----- | ------------------------------------------------------------------------------- | -| Local | `datasets/omni/consolidated_dashboard_omni.csv` | -| S3 | `s3://$S3_BUCKET/$S3_KEY_OMNI` (default key: `consolidated_dashboard_omni.csv`) | +## Build -Included in the repo: - -| File | Purpose | -| ----------------------------------------------------------------- | -------------------------------------- | -| `datasets/omni/consolidated_dashboard_omni_template.csv` | Header-only 165-column legacy template | -| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 77-column TTS template | -| `datasets/omni/consolidated_dashboard_omni_metadata.example.json` | Example defaults for the converter | - -## Row granularity - -One row per benchmark point: - -``` -model + runtime/version + task + dataset + concurrency/request_rate + repetition +```bash +python3 manual_runs/scripts/build_omni_tts_csv.py \ + --recipe-root ~/omni-perf-benchmark-recipe \ + --output datasets/omni/consolidated_dashboard_omni.csv ``` -Blanks are allowed for fields that do not apply to a modality. The dashboard filters on `modality`, `task_type`, and `load_generator`; never compare rows across task types without checking the metric semantics. - -## Required columns - -Every row must have: - -- `model` -- `task_type` -- `benchmark_tool` -- `load_generator` - -Online TTS/text rows must also have `concurrency`. Offline ASR rows may leave `concurrency` blank because the leaderboard-style evaluation has no concurrency axis. - -`benchmark_tool` is the exact CLI/tool; `load_generator` is the dashboard-facing family: - -| `load_generator` | Typical `benchmark_tool` | -| ------------------------- | ------------------------ | -| `guidellm` | `guidellm` | -| `vllm-omni-bench-serve` | `vllm-omni bench serve` | -| `hf-open-asr-leaderboard` | HF ASR harness | - -## Column groups - -### Core - -`schema_version`, `source_format`, `timestamp_utc`, `run_name`, `benchmark_run_id`, `repetition`, `mlflow_run_id`, `mlflow_parent_run_id`, `mlflow_experiment_id`, `cluster`, `namespace`, `deployment_uuid`, `deployment_pod_name`, `grafana_dashboard_uid`, `model`, `model_revision`, `runtime`, `runtime_version`, `vllm_version`, `vllm_omni_version`, `image_tag`, `image_digest`, `accelerator`, `gpu_count`, `tp`, `pp`, `dp`, `modality`, `input_modality`, `output_modality`, `task_type`, `benchmark_tool`, `benchmark_tool_version`, `load_generator`, `dataset`, `dataset_path`, `dataset_split`, `locale`, `num_prompts`, `num_utterances`, `request_rate`, `concurrency`, `measured_concurrency`, `num_warmups`, `turns`, `prefix_tokens`, `prefix_count`, `prefix_caching`, `spec_decoding`, `request_type`, `extra_body_json`, `runtime_args`, `env_vars_json`, `max_num_seqs`, `max_num_batched_tokens`, `duration_s`, `successful_requests`, `errored_requests`, `benchmark_start_ms`, `benchmark_end_ms` - -`accelerator` is the only hardware column. Put an exact GPU SKU in `extra_json.gpu_sku` if it ever matters; do not add a second hardware column. - -`load_generator` may be blank for offline accuracy-only rows (for example, the HF ASR leaderboard); `benchmark_tool` still identifies the scorer. The dashboard displays those rows as `offline` rather than treating the scorer as a load generator. +Optional: `--mlflow-runs-json` accepts a saved MLflow runs/search response to fill `mlflow_run_id` for runs not present in local metadata. The builder reads the 3.5 legacy CSV/JSONs, the 3.6 base CI/saturation JSONs, and the Athena matrix cells. -### Text +## Dashboard sections -Prompt/output token means and P99, `ttft_ms_*`, `tpot_ms_*`, `itl_ms_*`, `e2el_ms_*`, `request_throughput_rps`, `output_token_throughput`, `total_token_throughput`. +- **Overview** — summary tiles and coverage. +- **Performance Plots** — concurrency on a log2 axis with ticks at the actual ladder; Y-axis includes throughput, audio TTFP/RTF/underrun, audio throughput, and request count (N); Streaming, Response format, and 3.5 legacy toggles; hover shows N, format, UUID, and resolved runtime args; repeated deployments use distinct line styles. +- **Compare Versions** — matches on model, task, dataset, concurrency, load generator, TP, accelerator, and response format; recipe is shown in labels. +- **View Logs** — one entry per deployment; the vLLM server log is the default source, with a per-concurrency bench-log selector; MLflow/local/S3 fallbacks. +- **Filtered Data** — curated default columns, MLflow and Grafana links, "show all columns", and CSV download. -### Speech out +Filters and compare selections persist in URL query parameters. -`audio_ttfp_ms_*`, `audio_rtf_*`, `audio_duration_s_*`, `audio_underrun_s_*`, `audio_throughput_x`, `audio_output_duration_s_total`, `audio_frames_total`, `audio_sample_rate_hz`, `audio_continuity_ok_rate`. +## Configuration -### ASR - -`wer`, `wer_ci_lower`, `wer_ci_upper`, `rtfx`, `transcription_throughput_utterances_s`, `audio_input_duration_s_total`, `normalization`, `language`. - -### Stage / system - -`stage_0_ttft_ms_*`, `stage_1_ttft_ms_*`, `stage_0_gen_time_ms_*`, `stage_1_gen_time_ms_*`, `transfer_tx_ms_*`, `stage_metrics_json`, optional `gpu_util_*`, `gpu_mem_used_mean_mb`, `gpu_power_mean_w`, `gpu_temp_max_c`. - -### Extensibility - -`quality_metric`, `quality_value`, `extra_json`, `notes`, `source_file`. - -**Rule:** add new metrics to `extra_json` first. Promote a field to a first-class column only when a dashboard panel needs to filter or chart it. This keeps the schema stable and avoids one-off columns. - -## Build the CSV +S3 (CSV and logs): ```bash -python manual_runs/scripts/build_consolidated_omni_csv.py \ - --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ - --omni-json path/to/omni-json/ \ - --asr-csv path/to/asr-results.csv \ - --output datasets/omni/consolidated_dashboard_omni.csv +export S3_BUCKET='' +export S3_KEY_OMNI='/omni_dashboard.csv' +export S3_REGION='us-east-1' +export S3_LOGS_BUCKET='' # optional, for View Logs +export S3_LOGS_PREFIX='logs/' # optional ``` -Inputs: - -- `--omni-json` — vLLM-Omni `bench serve --save-result` JSON file/dir/glob (repeatable) -- `--asr-csv` / `--asr-json` — optional ASR results (repeatable) -- `--legacy-csv` — optional legacy benchmark CSV -- `--metadata-json` — optional defaults/pattern overrides -- `--template` — optional path to write the header-only template +The CSV is cached for 5 minutes. AWS credentials come from the environment or the instance role. -The converter prints a JSON summary with row counts, modality/task breakdown, and required-field blanks. - -## Extract runs from MLflow - -`manual_runs/scripts/extract_mlflow_runs.py` pulls run metadata and selected artifacts into a local folder. Credentials and the tracking server come from the environment; nothing is hardcoded. +Observability links (optional; no URLs are committed): ```bash -export MLFLOW_TRACKING_URI=https://mlflow.example.com -export MLFLOW_WORKSPACE=my-workspace -export MLFLOW_TRACKING_USERNAME=... -export MLFLOW_TRACKING_PASSWORD=... - -python manual_runs/scripts/extract_mlflow_runs.py \ - --experiment-id \ - --name-regex '^my-benchmark-run_.*_c[0-9]+$' \ - --artifact-pattern 'results/*.json' \ - --artifact-pattern 'logs/*.log' \ - --output-dir ~/Downloads/mlflow-runs +export MLFLOW_TRACKING_URI='' +export MLFLOW_BASE_URL='' +export MLFLOW_WORKSPACE='' +export OMNI_MLFLOW_EXPERIMENT_ID='' +export GRAFANA_BASE_URL='' +export OMNI_GRAFANA_DASHBOARD_UID='' ``` -Outputs: +If an observability variable is unset, the corresponding link is blank. -- `runs.json` — full run records -- `runs_summary.csv` — flattened `param.*`, `metric.*`, and `tag.*` columns -- `manifest.json` — selection, downloaded files, skipped files, errors -- `artifacts//` — downloaded files, artifact paths preserved +## Caveats -Use `--dry-run` to preview the selection, `--run-id` for specific runs, `--skip-artifacts` for metadata only, and `--max-artifact-mb` to guard against large logs. +- **Voxtral streaming WAV** is unsupported: the first audio chunk lacks sample-rate metadata. Use streaming PCM, non-streaming WAV, or wait for the upstream fix. +- **Do not compare across workloads directly.** 3.5 legacy uses N=100 and c1–c25; the 3.6 matrix uses N=1000 and c1–c128. Compare only at the same model/version, N, concurrency, streaming mode, response format, and 24 kHz sample rate. +- **OmniVoice is single-stage.** Its underrun is 0 by construction, not a streaming win; use TTFP ≈ E2EL when discussing it. +- **Stage metrics** are blank unless the run emits stage durations. -## Dashboard layout +## Tests -The Omni view uses the same grouped sidebar navigation as RHAIIS. **Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. - -**Performance Plots**: - -- A horizontal RHAIIS-style filter band under a `Filter Your Data` section header: Accelerator → Task → Dataset → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), so there is no separate Input/Output filter. A help tooltip explains each task. The model selector includes a **Select All Models** checkbox. Dataset options cascade from the selected tasks and default to all, with legacy rows shown as `(unspecified)`. Concurrency is not filtered here; charts include every available concurrency value for the selected data. -- `Select X-Axis`: `Concurrency` or `Model`. -- `Select Y-Axis`: request/audio/token throughput, audio RTF/TTFP/underrun, text TTFT/TPOT/ITL/E2EL, WER, RTFx, or transcription throughput. -- `Show concurrency up to` ceiling. -- One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, height 560, and RHAIIS margins. -- Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. -- A **Filtered Data for Plot Lines** section shows the source rows for the selected lines, with a **Clear comparison** button. - -**Compare Versions**: - -- Baseline and comparison version selectors with a swap button, plus task-type, load-generator, model, and statistic selectors. The model selector includes a **Select All Models** checkbox. All common concurrency levels are used automatically. -- Only one load generator is compared at a time. GuideLLM, vLLM-Omni bench serve, and offline rows are never mixed. -- The task selector cascades into model and metric options, so TTS and ASR/STT tasks are compared separately rather than mixed. Labels are modality-explicit: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. -- A RHAIIS-style context title (GPU / task / dataset), a **Comparing:** line, and a “How are these calculated?” popover. -- Matches rows on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions carry it. -- A model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas. -- A Statistic selector (Mean / Median / P95 / P99 where available) applies to the table columns. Throughput, WER, RTFx, and transcription throughput remain single values. -- One summary table plus a CSV download; no separate metric selector or chart. -- The active section and Compare Versions selections are stored in the URL (`section`, `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat`), so a copied link restores them. - -**Filtered Data** uses the same numbered filters and adds a CSV download. Other RHAIIS sections remain visible and show a placeholder until they are implemented. - -**View Logs** selects a run and fetches its log. Source priority: - -1. **MLflow artifacts** — when `MLFLOW_TRACKING_URI` and the row's `mlflow_run_id` are available. The artifact prefix defaults to `logs` (`MLFLOW_LOG_ARTIFACT_PREFIX`). -2. **Local log directory** — `OMNI_LOG_DIR` (default `datasets/omni/logs`), matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. -3. **S3** — `S3_LOGS_BUCKET` + `S3_LOGS_PREFIX` (default `logs/`), keyed by `deployment_uuid`. - -Omni automatically picks the full server log, falling back to the startup log or benchmark log. The view always shows the complete log, and **Download Full Log** downloads it. - -## Metric notes +```bash +python3 -m pytest -o addopts="" -q +``` -- TTS RTF: lower is better; `<1.0` is faster than real time. `audio_rtf_p95 > 1.0` is the first sign the tail is no longer real-time. -- Audio TTFP: first audio packet latency, not text TTFT. -- Audio underrun: simulated playback gap; `>0` indicates silent gaps. Common SLO: `<100 ms`. -- ASR RTFx: audio-seconds processed per wall-second; higher is better. -- ASR WER: lower is better; report the normalization and dataset split. -- Per-token metrics (TTFT/TPOT/ITL) are text-output metrics. Pure TTS rows have no text output tokens, so those fields are blank; use audio TTFP for first-output latency. +The data CSV, backups, and logs are intentionally not versioned; only the templates and converter are. diff --git a/docs/omni-overview-redesign.md b/docs/omni-overview-redesign.md deleted file mode 100644 index fa1920d..0000000 --- a/docs/omni-overview-redesign.md +++ /dev/null @@ -1,196 +0,0 @@ -# Omni Overview — redesign proposal - -Status: proposal for review. Scope: staged TTS-only dataset (117 Qwen3-TTS -rows, 4 models, 7 runtime versions, default/B8 configs). No code changed by -this document. - -## 1. What the RHAIIS Overview does - -### Genuinely useful - -- Frames the page as **current release vs previous release**, not a data dump. -- Three headline cards answer "is this release better?": best throughput gain, - worst regression, win rate. -- Coverage cards answer "what did we test?": models, accelerators, release - health. -- **Upstream parity** is a real product question: does the downstream build - match or beat the upstream vLLM release? -- "New in this release" is a useful one-line changelog. - -### Overwhelming - -- Nine or more cards before the first table: 3 KPI + 3 coverage + parity - scorecards + family cards + accelerator cards + "new in release". -- The accelerator dimension is repeated three times (parity, family, per- - accelerator) and is mostly irrelevant for a single-H200 Omni dataset. -- Dense HTML cards with 6-9 stats each; scanning takes minutes. -- Drill-down charts duplicate Performance Plots instead of linking to it. -- Per-model parity tables are useful for the owner, not for a glance. -- There is no clear "where do I go next?" path. - -Keep the release framing, one row of KPIs, coverage counts, and the upstream -parity idea. Drop the per-accelerator repetition, embedded charts, and dense -stat cards. - -## 2. Current Omni Overview - -Today it is four KPI tiles (rows, models, best request throughput, best audio -throughput) and a coverage table grouped by modality/task/load generator. - -Problems: - -- "Best throughput" can come from a short-window, CI, or legacy row, so it is - not a fair headline. -- No release framing, no SLO answer, no "what changed". -- The coverage table is an inventory, not an insight. -- No links into the real views. - -## 3. Three concepts - -### Concept A — Benchmark Status Board (recommended) - -``` -┌──────────────────────────────────────────────────────────────────────┐ -│ Omni Overview · Qwen3-TTS Latest: 3.6 GA │ -│ 4 models · 7 runtime versions · 117 benchmark points │ -├───────────────┬───────────────┬────────────────┬─────────────────────┤ -│ SLO knee │ Best audio │ 3.6 vs upstream│ Data health │ -│ c2 across │ throughput │ Δ throughput │ 57/117 MLflow │ -│ 4/6 recipes │ 43.8 audio-s/s│ +X % │ 53 short-window │ -│ [Open plots] │ [Open plots] │ [Compare] │ [Filtered data] │ -├───────────────┴───────────────┴────────────────┴─────────────────────┤ -│ SLO knee by configuration (p95 TTFP <500 ms · RTF <1 · underrun <100 ms) -│ Model Version Config Knee TTFP RTF Underrun │ -│ 1.7B-CustomVoice 3.6 GA default c2 ✅ ✅ ❌ 118 ms │ -│ 1.7B-CustomVoice 3.6 GA B8 c2 ✅ ✅ ❌ 115 ms │ -│ 1.7B-Base 3.6 GA default c2 ✅ ✅ ✅ 93 ms │ -│ ... │ -│ [Open Performance Plots with these filters] │ -├──────────────────────────────────────────────────────────────────────┤ -│ Upstream parity 3.6 GA vs v0.30 · 3.6 fast1 vs v0.26 │ -│ Throughput Δ · TTFP p95 Δ · RTF p95 Δ at c2/c64/c128 │ -│ [Open Compare Versions] │ -├──────────────────────────────────────────────────────────────────────┤ -│ Jump to: [Performance Plots] [Compare Versions] │ -│ [Filtered Data] [View Logs] │ -└──────────────────────────────────────────────────────────────────────┘ -``` - -Data: `concurrency`, `audio_ttfp_ms_p95`, `audio_rtf_p95`, -`audio_underrun_s_p95`, `audio_throughput_x`, `request_throughput_rps`, -`short_window`, `experiment_phase`, `runtime_version`, `recipe`, `mlflow_run_id`. - -Pros: answers state, SLO, change, and data trust in one screen; no embedded -charts; every section links to the real view. -Cons: needs a knee calculation and a small amount of parity math. - -### Concept B — Release Readiness Scorecard - -``` -[Release pair selector: 3.6 GA vs 3.5 | 3.6 GA vs v0.30 | ...] -[Best gain] [Worst regression] [Win rate] [Health] -[Model x version matrix: green/yellow/red cells for tput / TTFP / RTF] -[Open Compare Versions] [Open Filtered Data] -``` - -Data: the same audio metrics, grouped by release pair. - -Pros: mirrors RHAIIS's familiar release-pair mental model. -Cons: less useful when the question is "what is the current state across all -data"; can drift back into RHAIIS-lite. - -### Concept C — SLO Knee Explorer - -``` -[SLO knee distribution: c1 | c2 | c4 | c8 | none] -[First failing gate: underrun 4 | TTFP 1 | RTF 1 | none 2] -[Gate matrix: model/version/config x c1..c128, ✅/❌ per gate] -[Click a row -> Performance Plots at that configuration] -``` - -Data: p95 audio metrics at every concurrency; `short_window` as a caveat. - -Pros: uniquely useful for capacity planning; not a chart preview. -Cons: hides the throughput-only story; more computation; 3.5 lacks p95 -underrun, so the matrix has "not measured" cells. - -## 4. Recommendation - -Ship **Concept A**, with Concept C's SLO knee table as the centerpiece. It is a -true overview: one row of KPIs, one SLO table, one parity strip, and four jump -cards. It avoids RHAIIS's repetition and embedded charts while keeping the -release-parity question. - -Phasing: - -1. KPI tiles + SLO knee table + jump cards + data-health expander. -2. Upstream parity strip (numbers), reusing the Compare Versions pair logic. -3. Optional: knee selector (c1/c2/c4/c8) and a "first failing gate" column. - -## 5. Links, not previews - -Every summary section must deep-link into the real view. The filter-persistence -work adds `omni_*` query params, which makes these links possible: - -| Destination | Query params | -| ----------------- | ----------------------------------------------------------------------------------------------------------------------- | -| Performance Plots | `section=📊 Performance Plots`, `omni_models`, `omni_versions`, `omni_tasks`, `omni_datasets`, optional `omni_tp_sizes` | -| Compare Versions | `section=⚖️ Compare Versions`, `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, `cv_stat` | -| Filtered Data | `section=📄 Filtered Data`, the same `omni_*` filters | -| View Logs | `section=📋 View Logs`, `omni_models`, `omni_versions` | - -Implementation options: - -- A “View” button per SLO row that sets `section` + `omni_models`/`omni_versions` - and reruns. -- Jump cards as `st.button`s with `on_click` setting the section and params. -- Do not embed Plotly charts in Overview. If a chart is needed, link to - Performance Plots with the filters and metric preselected. - -Config-specific rows (default vs B8) currently have no recipe filter. Add an -optional `omni_recipes` param and a small "Config" filter, or land on the -model/version and rely on the chart's dash/dot styles. - -## 6. Implementation plan - -Replace `_overview(df)` with: - -- `_overview_kpis(df)` — compute: - - `view = df[df["experiment_phase"] != "ci"]` - - SLO knee per `(model, runtime_version, recipe, task_type, dataset)`: - largest `concurrency` where all measured p95 gates pass - (`audio_ttfp_ms_p95 < 500`, `audio_rtf_p95 < 1.0`, - `audio_underrun_s_p95 < 0.1`); treat blank gate values as "not measured". - - Best audio throughput from `short_window == false` rows. - - Data health: rows, MLflow coverage, short-window count, stage coverage. -- `_overview_slo_table(view)` — compact table: model, version, config, knee, - TTFP/RTF/underrun pass icons, first failing gate. Cap at one row per - configuration; sort by model/version/config. Add a "View in Performance - Plots" action. -- `_overview_parity(df)` — two release-pair summaries: 3.6 GA vs v0.30 and - 3.6 fast1 vs v0.26. Compute geometric-mean throughput delta and p95 - TTFP/RTF/underrun deltas at c2/c64/c128 for common model/task/dataset/config. - Link to Compare Versions. Phase 1 can show pair cards without numbers. -- `_overview_jump_cards()` — four cards with deep links. -- `_overview_data_health(df)` — collapsed expander: rows by phase, MLflow - coverage, short-window rows, stage coverage, missing fields. - -Constants: `SLO_TTFP_P95_MS = 500`, `SLO_RTF_P95 = 1.0`, -`SLO_UNDERRUN_P95_S = 0.1`. - -No new data is required for Phase 1. Everything is in the 77-column CSV. -Phase 2 parity needs only existing columns; no new collection. - -## 7. Open questions - -1. Is the headline release 3.6 GA, 3.6 fast1, or both? -2. Should the SLO table show default and B8 as separate rows, or only the - recommended config? -3. Is the SLO knee fixed at the protocol's c2, or should it be computed per - configuration and displayed as c1/c2/c4/none? -4. For 3.5 rows, p95 underrun is not measured. Show "not measured", or exclude - legacy rows from the SLO table? -5. Upstream pairs: confirm 3.6 GA vs v0.30 and 3.6 fast1 vs v0.26. -6. Should data health be a visible strip or a collapsed expander? -7. Do we add a Config/recipe filter now, or land deep links on model/version - only? diff --git a/docs/omni-tts-column-sources.md b/docs/omni-tts-column-sources.md deleted file mode 100644 index 84d8491..0000000 --- a/docs/omni-tts-column-sources.md +++ /dev/null @@ -1,217 +0,0 @@ -# Omni TTS CSV — column source map - -Status: implementation spec for the first staged rollout. - -Scope: **Qwen3-TTS only**, streaming `/v1/audio/speech`. No ASR, chat-completions, -or realtime rows yet. One row per benchmark point. - -Output files: - -| File | Purpose | -| ------------------------------------------------------------ | ------------------------------------------------------------- | -| `datasets/omni/consolidated_dashboard_omni.csv` | Populated local data (do not commit; contains deployment IDs) | -| `datasets/omni/consolidated_dashboard_omni_tts_template.csv` | Header-only 77-column template for this staged schema | - -The combined staged CSV is **77 columns = 49 run/core columns + 28 -audio-output columns**. - -The legacy `datasets/omni/consolidated_dashboard_omni_template.csv` remains the -165-column schema for the older converter and fixtures. - -## Input inventory - -| Group | Source | Expected rows | -| ---------- | ------------------------------------------------------------------------------------------------------------------- | ------------: | -| 3.5 legacy | `results/3.5/benchmark_results.csv` + the raw JSON named by `json_file` | 60 | -| 3.6 base | `results/3.6/ci/ci_qwen3_tts_base_c1.json`, `results/3.6/qwen3-tts-base-36ga/saturation/saturation_c*.json` | 9 | -| 3.6 Athena | `results/athena/benchmark_results.csv` (Qwen3-TTS CustomVoice rows) + `results/athena///cell_c*.json` | 48 | -| **Total** | | **117** | - -Athena has six Qwen3-TTS recipes × 8 concurrency points: 3.6 GA default, -3.6 GA B8, 3.6 fast-1 default, v0.30 default, v0.30 B8, v0.26 default. - -Excluded: Voxtral rows (unsupported in streaming WAV), OmniVoice rows, and all -ASR/chat/realtime data. Paths are relative to the benchmark recipe checkout. - -## Source keys - -| Key | Meaning | -| ------ | ------------------------------------------------------------------------------------------------ | -| `d` | Raw vLLM-Omni bench result JSON for the cell (`cell_c*.json`, `saturation_c*.json`, `ci_*.json`) | -| `cm` | `cell_meta.json` in the same directory as `d` (Athena only) | -| `rm` | `run_meta.json` in the same directory as `d` (Athena only) | -| `v` | `validation.json` in the same directory as `d` (Athena only) | -| `r` | Source CSV row (`benchmark_results.csv` from 3.5 or Athena) | -| `meta` | `results/3.6/consolidated_dashboard_omni_metadata.json` defaults/patterns | -| `log` | Bench log in the same directory as `d` (`cell_c*.log`) | - -Precedence: `d` → `cm` → `rm` → `v` → `r` → `meta` → derived/default. - -## Column map - -### Identity (7) - -| Column | Source | Rule | -| ----------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `run_key` | derived | `slug(model) + "__" + runtime_version + "__" + recipe + "__" + task_type + "__c" + concurrency + "__" + experiment_phase`. Must be unique across all rows. | -| `run_name` | `r` / `meta` | 3.5: `legacy-3.5-{model}-{task_type}-{version}-c{C}`. 3.6 base: `meta.run_name_template` or `qwen3-tts-base-36ga_saturation_c{C}` / `qwen3-tts-base-ci`. Athena: `{run_dir}-{profile}_c{C}` (e.g. `customvoice-36ga-default_c64`). | -| `timestamp_utc` | `r` / `d` / `rm` | 3.5: `r.timestamp`. 3.6 base: `d.date` (`YYYYMMDD-HHMMSS`) or file mtime. Athena: `rm.started_at`. Normalize to ISO 8601 UTC. | -| `cluster` | `r` / `meta` / `cm` | Use a short project label (`hera` or `athena`), not a hostname. | -| `deployment_uuid` | `cm` / `meta` | Athena: `cm.deployment_uuid`. 3.6 base: pattern `deployment_uuid`. 3.5: blank. Local-only field. | -| `mlflow_run_id` | `meta` / MLflow cache | 3.6 base: by-concurrency mapping in `meta`. Athena: GA default/B8 from the local consolidated metadata; the other four recipes are filled from the optional `--mlflow-runs-json` cache, matched by run name or `(deployment_uuid, concurrency)`. 3.5: blank (legacy runs were not logged to the Omni experiment). | -| `source_file` | derived | Path to `d` relative to the recipe checkout. | - -### Model / runtime (7) - -| Column | Source | Rule | -| ----------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `model` | `d.model_id` / `r.model` / `meta.model` | HuggingFace model ID. | -| `runtime_version` | `r.version` / `meta.runtime_version` / `cm.version` | Canonical label (`vllm-omni-3.5-ea2`, `vllm-omni-3.6.0-ga`, `vllm-omni-3.6-fast1`, `vllm-omni-v0.30.0`, `vllm-omni-v0.26.0`). | -| `image_tag` | `r.image_tag` / `meta.image_tag` / `cm.image` | Image ref; split `@sha256:` into tag + digest if needed. | -| `accelerator` | `r.accelerator` / `meta.accelerator` / `cm.gpu_model` | GPU family, e.g. `H200`. | -| `gpu_count` | `meta.gpu_count` / `cm.gpu_count` | 1 for all current rows. | -| `tp` | `r.tp` / `meta.tp` | 1 for all current Qwen3-TTS rows. | -| `runtime_args` | `r.runtime_args` / `meta` / `cm` / `rm` | Resolved deployment args for the hover: `gpu-mem=...; max-seqs=...; max-batched-tokens=...`. 3.5: source `runtime_args` (usually blank). 3.6 base: metadata `gpu_memory_utilization` (inferred `{"0":0.3,"1":0.3}` when absent), `max_num_seqs`, `max_num_batched_tokens`. Athena: `cell_meta`/`run_meta` values. Do not include the deploy YAML path. | - -### Task / protocol (13) - -| Column | Source | Rule | -| -------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `modality` | derived | `audio`. | -| `input_modality` | derived | `text`. | -| `output_modality` | derived | `audio`. | -| `task_type` | `r.task_type` / `meta.task_type` | Normalize `custom_voice` → `default_voice`. | -| `recipe` | `r.profile` / `cm.profile` | Output column is `recipe`; source metadata still calls it `profile`. 3.5 and 3.6 base: `default`. Athena: `default` or `b8`. | -| `experiment_phase` | derived | 3.5: `legacy`. 3.6 base: `ci` for the CI file, `saturation` for the ladder. Athena: `matrix`. | -| `benchmark_tool` | `r.benchmark_tool` / derived | 3.5: source value (`vllm-bench-serve`). 3.6: `vllm-omni-bench-serve`. | -| `load_generator` | derived | `vllm-omni-bench-serve` for all rows so 3.5 and 3.6 compare in one series. | -| `api_endpoint` | `d.endpoint_type` / `r` | Map `openai-audio-speech` → `/v1/audio/speech`. All current rows use this endpoint. | -| `benchmark_mode` | derived | `streaming` (all current rows have TTFP/underrun). | -| `response_format` | `cm.extra_body` / `rm.config.benchmark.extra_body` / `meta.extra_body_json` | Parse `response_format`. Explicit `wav` for Athena. 3.6 base and 3.5 have no explicit value: use `wav` (server default) and note it in `notes`. | -| `tokenizer_override` | derived | `true` if `d.tokenizer_id != model`. All Qwen3-TTS rows are `false`. | -| `status` | `v.ok` / derived | `valid` for every included row. Excluded/failed rows do not enter this CSV. | - -### Workload (7) - -| Column | Source | Rule | -| ---------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `dataset` | `r.dataset` / `meta.dataset` / derived | 3.5: `seed-tts` for `voice_clone`, `seed-tts-text` for `default_voice`. 3.6 base: `seed-tts`. Athena: `seed-tts-text`. | -| `locale` | `meta.locale` / derived | `en` for `seed-tts` voice-clone rows; blank for text-only datasets. | -| `num_prompts` | `d.num_prompts` / `r.num_prompts` | Measured request count. | -| `request_rate` | `d.request_rate` / `r.request_rate` | `inf` for all current rows. | -| `concurrency` | `d.max_concurrency` / `r.concurrency` | Configured `--max-concurrency`. | -| `measured_concurrency` | `d.max_concurrent_requests` | Observed maximum; blank if absent. | -| `short_window` | derived | `true` when `duration_s < 30`; `false` otherwise. The 30 s minimum is the matrix protocol's steady-state gate. The 3.5 legacy runs used only 100 prompts, so many high-concurrency legacy points fall below it; that is a workload-size artifact, not a failed run. Current counts: 53 flagged = 41 legacy 3.5 + 12 3.6. | - -### Outcome (8) - -| Column | Source | Rule | -| ------------------------ | ----------------------------------------------- | ----------------------------------- | -| `duration_s` | `d.duration` / `r.total_duration_s` | Measured wall-clock seconds. | -| `successful_requests` | `d.completed` / `r.successful_requests` | Completed requests. | -| `errored_requests` | `d.failed` / `r.errored_requests` | Failed requests. | -| `e2el_ms_mean` | `d.mean_e2el_ms` / `r.e2el_mean` | End-to-end latency, ms. | -| `e2el_ms_median` | `d.median_e2el_ms` / `r.e2el_median` | End-to-end latency, ms. | -| `e2el_ms_p95` | `d.p95_e2el_ms` / `r.e2el_p95` | End-to-end latency, ms. | -| `e2el_ms_p99` | `d.p99_e2el_ms` / `r.e2el_p99` | End-to-end latency, ms. | -| `request_throughput_rps` | `d.request_throughput` / `r.request_throughput` | Completed requests per wall-second. | - -### Stage / system (6) - -| Column | Source | Rule | -| --------------------- | ----------------------- | ------------------------------------------------------------------------- | -| `stage_0_ttft_ms_p50` | `d.stage_durations_p50` | Key `0` or the first stage name. Blank when the JSON has `{}`. | -| `stage_0_ttft_ms_p95` | — | Current bench JSON emits p50/p99 only; leave blank until a run emits p95. | -| `stage_1_ttft_ms_p50` | `d.stage_durations_p50` | Key `1` or the second stage name. Blank when absent. | -| `stage_1_ttft_ms_p95` | — | Blank (same reason). | -| `transfer_tx_ms_p50` | `d.stage_durations_p50` | Transfer/stage-gap key if present. Blank otherwise. | -| `transfer_tx_ms_p95` | — | Blank (same reason). | - -### Notes (1) - -| Column | Source | Rule | -| ------- | ------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `notes` | derived | Short provenance: `response_format inferred` for 3.5/3.6 base; `short_window` when duration < 30 s; endpoint/version caveats. | - -### Audio output (28) - -| Column | Source | Rule | -| ------------------------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `audio_ttfp_ms_mean` | `d.mean_audio_ttfp_ms` / `r.audio_ttfp_mean` | First-audio latency, ms. | -| `audio_ttfp_ms_median` | `d.median_audio_ttfp_ms` / `r.audio_ttfp_median` | ms. | -| `audio_ttfp_ms_p95` | `d.p95_audio_ttfp_ms` / `r.audio_ttfp_p95` | ms. | -| `audio_ttfp_ms_p99` | `d.p99_audio_ttfp_ms` / `r.audio_ttfp_p99` | ms. | -| `audio_rtf_mean` | `d.mean_audio_rtf` / `r.audio_rtf_mean` | Ratio; <1 is faster than real time. | -| `audio_rtf_median` | `d.median_audio_rtf` / `r.audio_rtf_median` | Ratio. | -| `audio_rtf_p95` | `d.p95_audio_rtf` / `r.audio_rtf_p95` | Ratio. | -| `audio_rtf_p99` | `d.p99_audio_rtf` / `r.audio_rtf_p99` | Ratio. | -| `audio_duration_s_mean` | `d.mean_audio_duration_s` / `r.audio_duration_mean` | Generated audio duration, s. | -| `audio_duration_s_median` | `d.median_audio_duration_s` / `r.audio_duration_median` | s. | -| `audio_duration_s_p95` | `d.p95_audio_duration_s` / `r.audio_duration_p95` | s; 3.5 may be blank. | -| `audio_duration_s_p99` | `d.p99_audio_duration_s` / `r.audio_duration_p99` | s. | -| `audio_underrun_s_mean` | `d.mean_audio_underrun_s` / `r.audio_underrun_mean` | Max delivery gap, s; streaming only. | -| `audio_underrun_s_median` | `d.median_audio_underrun_s` / `r.audio_underrun_median` | s. | -| `audio_underrun_s_p95` | `d.p95_audio_underrun_s` / `r.audio_underrun_p95` | s; 3.5 may be blank. | -| `audio_underrun_s_p99` | `d.p99_audio_underrun_s` / `r.audio_underrun_p99` | s. | -| `audio_throughput_x` | `d.audio_throughput` / `r.audio_throughput` | Audio seconds per wall-second. | -| `audio_output_duration_s_total` | `d.total_audio_duration_s` / `r.audio_duration_total` | Sum of generated audio, s. | -| `audio_frames_total` | `d.total_audio_frames` | Total PCM samples; blank for 3.5. | -| `audio_sample_rate_hz` | `meta.audio_sample_rate_hz` / derived | 24000 for Qwen3-TTS WAV. | -| `audio_continuity_ok_rate` | `log` | Last `Streaming continuity OK rate: X%` line divided by 100. Blank if no log. | -| `num_audio_ttfp_samples` | `d.num_audio_ttfp_samples` | Valid TTFP sample count; blank for 3.5. | -| `num_audio_rtf_samples` | `d.num_audio_rtf_samples` | Valid RTF sample count; blank for 3.5. | -| `missing_audio_duration_count` | `d.missing_audio_duration_count` | Requests with no derivable duration; blank when absent. | -| `audio_channels` | derived | `1` (mono) for WAV/PCM. | -| `audio_bits_per_sample` | derived | `16` for PCM/WAV. | -| `audio_codec` | derived | `pcm_s16le` for `wav`/`pcm`; blank for unknown. | -| `audio_underrun_threshold_s` | derived | `0.1` (bench default; env `VLLM_OMNI_BENCH_AUDIO_CONTINUITY_THRESHOLD_S`). | - -## Config naming - -`recipe=b8` (source field `profile`) is the upstream Qwen3-TTS high-concurrency deploy profile -(`qwen3_tts_high_concurrency_mrv2_single_gpu.yaml`), where the Code2Wav decoder -batch size is 8. It also sets stage-0 `max_num_seqs=128` and stage-1 -`max_num_seqs=32`. It is not a vLLM `--max-num-seqs=8` flag. The dashboard -shows the resolved `runtime_args` (`gpu-mem`, `max-seqs`, -`max-batched-tokens`), not the source profile label. - -## Provenance phases - -`experiment_phase` is provenance only and is not displayed in the dashboard: - -- `ci` — single c1 smoke run (10 measured prompts); excluded from Performance Plots. -- `saturation` — c1–c128 ladder for the 3.6 base rows. -- `matrix` — six-recipe Athena matrix. -- `legacy` — 3.5 data. - -## Dashboard MLflow link - -The dashboard turns `mlflow_run_id` into the same kind of hyperlink RHAIIS uses: - -``` -{MLFLOW_BASE_URL}/#/experiments/{OMNI_MLFLOW_EXPERIMENT_ID}/runs/{run_id}/artifacts?workspace={MLFLOW_WORKSPACE} -``` - -`MLFLOW_BASE_URL` falls back to `MLFLOW_TRACKING_URI`; `OMNI_MLFLOW_EXPERIMENT_ID` -is read from the environment (no experiment ID is baked into the repo). Set -`MLFLOW_WORKSPACE` when the experiment lives under a named workspace. The link appears as a **View Run 🧪** column in Filtered Data. - -The optional `--mlflow-runs-json` input is a saved response from -`POST /api/2.0/mlflow/runs/search` for the experiment. It lets the builder fill -run IDs that are not present in the local metadata files without making the -build depend on network access. - -## Validation checks - -1. Header is exactly 77 columns in the order above. -2. Row count is 117: 60 (3.5) + 9 (3.6 base) + 48 (Athena Qwen3-TTS). -3. `run_key` is non-empty and unique. -4. Required dashboard columns are non-empty: `model`, `task_type`, `benchmark_tool`, - `load_generator`, `concurrency`, `accelerator`, `runtime_version`, `dataset`, - `modality`, `input_modality`, `output_modality`. -5. `successful_requests + errored_requests == num_prompts` for every row. -6. Audio metric columns are non-empty for every row; stage columns may be blank. -7. No Voxtral or OmniVoice model appears. -8. All 57 3.6 rows have `mlflow_run_id`; all 60 3.5 rows leave it blank. -9. `runtime_args` is populated for all 57 3.6 rows and blank for all 60 3.5 - rows; no `deploy-config=` text appears. diff --git a/docs/omni-vs-rhaiis-dashboard.md b/docs/omni-vs-rhaiis-dashboard.md deleted file mode 100644 index f73a4bb..0000000 --- a/docs/omni-vs-rhaiis-dashboard.md +++ /dev/null @@ -1,329 +0,0 @@ -# Omni vs RHAIIS dashboard — UX comparison and open questions - -Status: **draft checkpoint** — no final UX decisions below are implemented except where marked closed. - -## What was compared - -- RHAIIS view: left-panel navigation; Performance Plots filters and chart interactions. -- Omni view at comparison time: left-panel filter block and tabs (replaced in Checkpoint 4). -- Both tested locally through WebBridge against the same running Streamlit app. - -## RHAIIS experience (current) - -**Left panel is navigation, not filters:** - -- DASHBOARD: Overview, Competitive Analysis -- PERFORMANCE ANALYSIS: Performance Plots, Compare Versions -- INSIGHTS: Performance Trends, Cost Analysis, Model Performance Comparison, Energy Computation -- TOOLS: IntelliConfig, Pareto Tradeoff Analysis, Runtime Server Configs, View Logs, Filtered Data - -**Performance Plots filters are in the main content, as numbered steps:** - -1. Select Accelerator(s) -2. Select Input/Output Sequence Length (ISL/OSL) -3. Select Version(s) -4. Optional label filter / group by -5. Select Model(s) -6. Select TP Size(s) -7. X-axis, Y-axis, concurrency ceiling, plot lines - -**Chart interaction:** clicking points, box-selecting, or lassoing adds plot lines to a comparison. A **Filtered Data for Plot Lines** section below the chart shows the source rows for the selected lines. There is also a separate **Filtered Data** page with a download. - -## Omni experience (current) - -**Left panel is the RHAIIS navigation shell** (Dashboard, Performance Analysis, Insights, Tools). - -**Overview is the default page** and shows headline metrics plus a coverage table, with no filter panel. - -- **Performance Plots**: -- Horizontal RHAIIS-style filter band in the main content: Accelerator → Task → Dataset → Version → Load Generator + Model → TP. Task labels include modality (`TTS - Voice Clone`, `ASR / STT - Transcription`, `Text - Text generation`), replacing the separate Input/Output filter. Dataset defaults to all datasets available for the selected tasks. -- X-axis (`Concurrency` / `Model`), Y-axis metric, and a max-concurrency selector. -- One Plotly line chart using the RHAIIS `plotly_white_light` template, markers, right-side legend, 560px height, and RHAIIS margins. -- Clicking points, or box/lasso-selecting an area, adds plot lines to the comparison. -- A **Filtered Data for Plot Lines** section below the chart shows the source rows. - -**Filtered Data** uses the same numbered filters and adds a CSV download. **View Logs** loads a run's log from MLflow artifacts, a local log directory, or S3. Other RHAIIS sections remain visible and show a placeholder. - -## What is left out when cloning RHAIIS for Omni - -| RHAIIS feature | Why it is left out / status | -| ---------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| Left-panel navigation sections | Omni currently uses the left panel for filters; needs a decision (Q1). | -| ISL/OSL profile filter | TTS/ASR rows do not carry prompt/output token lengths; text rows could. | -| TP filter | Schema has `tp`, but the current Omni sample only has TP=1. | -| Release-pair / upstream-parity overview | Omni has no release-pair model yet. | -| Competitive analysis / regression heatmap / release health | Text/LLM-specific. | -| Cost analysis / energy computation | Could map later; no cost model for audio/ASR yet. | -| IntelliConfig / Pareto / runtime server configs | RHAIIS deployment-config tooling; not part of the first Omni pass. | -| View Logs | Implemented for Omni: MLflow artifacts, local log directory, or S3 by deployment UUID. | -| Token-only metrics as primary axes | TTS uses audio TTFP/RTF/underrun; ASR uses WER/RTFx. | - -## What is added on the Omni side - -| Omni feature | Why | -| ------------------------------ | ------------------------------------------------------------------------------------ | -| Modality / input→output filter | TTS is text→audio; ASR is audio→text; text is text→text. | -| Task type filter | `voice_clone`, `default_voice`, `voice_design`, `asr_transcription`, `text_to_text`. | -| Load-generator filter | GuideLLM, `vllm-omni-bench-serve`, offline accuracy runs. | -| Speech-out metrics | audio TTFP, RTF, duration, underrun, audio throughput, continuity. | -| ASR metrics | WER, WER CI, RTFx, transcription throughput, input audio duration, normalization. | -| Sparse metric handling | Text, speech-out, and ASR columns are intentionally blank when not applicable. | - -## Proposed Option 2: RHAIIS-like filter order + auto-fill - -Proposed sidebar/main filter order: - -1. Select Accelerator(s) — multiselect -2. Select Version(s) — multiselect (`runtime_version`) -3. Select Input / Output — `text → audio`, `audio → text`, `text → text` -4. Select Task Type(s) -5. Select Load Generator(s) -6. Select Model(s) — **auto-populated from 3/4/5** -7. Select TP Size(s) — if more than one TP exists - -Concurrency is **not** a filter. Performance Plots shows every available concurrency value for the selected data and offers a chart-level `Show concurrency up to` ceiling instead. - -Auto-fill rule: - -- Selecting an input/output pair filters the task, load-generator, and model option sets to rows that have data. -- The model filter **auto-selects all available models** for that pair/task, rather than showing models with no data. -- Changing the pair clears stale model selections and repopulates. - -## User journeys - -### TTS (text → audio) - -1. Open Omni Dashboard. -2. Choose `text → audio`. -3. Models auto-fill to TTS models with data. -4. Choose model/version/accelerator; the chart shows every available concurrency value. -5. Review Throughput and Speech Out. -6. Check audio TTFP, RTF (lower is better), underrun, and audio throughput. -7. Click chart points/select lines; inspect the filtered rows; download CSV if needed. - -### ASR (audio → text) - -1. Open Omni Dashboard. -2. Choose `audio → text`. -3. Models auto-fill to ASR models with data. -4. Choose the dataset/normalization row if multiple are present. -5. Review ASR Quality for WER, RTFx, and transcription throughput. -6. Offline accuracy rows show `load_generator=offline` and no concurrency; GuideLLM rows show online latency/throughput. - -## Test log - -| Test | Result | -| --------------------------------------- | -------------------------------------------------------------------------------------------- | -| WebBridge: switch RHAIIS → Omni | Both views render; view selector shows five dashboards. | -| WebBridge: RHAIIS Performance Plots | Numbered filters found; chart and Filtered Data for Plot Lines section present. | -| WebBridge: Omni sidebar | Found Modality, Task type, Load generator, Model, Runtime version, Accelerator, Concurrency. | -| WebBridge: Omni tabs (pre-Checkpoint 4) | Six tabs present; 16 Plotly charts across tabs. | -| Omni offline row display | HF ASR row now shows `offline`, not the HF scorer as a load generator. | -| Auto-fill model filter | **Implemented** — TTS/ASR/text paths tested. | -| Omni graph click → filtered data | **Implemented** — point/box/lasso line selection and ASR bar selection tested. | -| RHAIIS graph click behavior | Code path uses point/box/lasso selection and a plot-line comparison table. | - -## Open questions - -1. ~~**Left panel:** keep the RHAIIS navigation in Omni and move filters into main content, or keep filter-only sidebar?~~ **Closed — keep the RHAIIS navigation; filters moved into main content.** -2. **Pages:** which RHAIIS pages should Omni clone — Overview, Performance Plots, Compare Versions, Performance Trends, Model Comparison, Filtered Data? Which can be left out for now? _Implemented so far: Overview, Performance Plots, Compare Versions, View Logs, Filtered Data._ -3. **Filter order:** is the current order (Accelerator → Task → Dataset → Version → Load gen → Model → TP) correct? -4. **Auto-fill semantics:** auto-select all available models, or only narrow the options and let the user choose? -5. **Modality vs Input/Output:** replace `Modality` with the input→output pair, or keep both? -6. **TP:** include TP in the Omni UI? Current data is all TP=1. -7. **Version label:** show product `runtime_version` (`3.6 GA`, `3.6-fast2`) or component versions (`vllm`, `vllm-omni`) in the main filter? -8. **Graph selection:** should clicking add plot lines like RHAIIS, filter the whole dashboard, or just open a filtered table? _Currently matches RHAIIS: click/box/lasso adds plot lines._ -9. ~~**Filtered data:** one global section or per-chart “Filtered Data for Plot Lines” sections?~~ **Closed — per-chart section on Performance Plots plus the global Filtered Data page.** -10. **Offline ASR:** should offline rows appear in concurrency/throughput charts with `n/a`, or only in the ASR quality tab? -11. **Locale:** drop `locale` and use `language` for TTS/ASR, or keep both? -12. **Dataset identity:** keep `dataset_split`/`locale`, or simplify to `dataset` + `language` with config/split/revision in `extra_json.dataset_variant`? -13. ~~**Navigation tabs:** keep the six Omni tabs, or rename them to RHAIIS-style sections?~~ **Closed — tabs removed; Omni uses the RHAIIS nav sections and a single RHAIIS-style chart per metric pair.** - -## Closed decisions - -- Sparse columns are allowed; modality-inapplicable fields stay blank. -- `benchmark_tool` and `load_generator` are separate concepts. -- Offline accuracy rows use `load_generator=offline` in the UI and blank in the CSV. -- `gpu_model` is dropped; `accelerator` is the only hardware column. -- `vllm_version` and `vllm_omni_version` are separate component versions; `runtime_version` is the product/build label. -- Keep the RHAIIS sidebar navigation shell for Omni; Omni filters live in main content as numbered steps. -- Unimplemented RHAIIS sections remain visible and show a clear placeholder instead of disappearing. - -## Implementation checklist - -- [x] Decide Q1/Q2 (navigation/page scope). -- [x] Reorder filters and add Input/Output. -- [x] Implement cascading task/load-generator/model options. -- [x] Auto-select models for selected modality/task. -- [x] Add graph point/box/lasso selection and filtered-data sections. -- [x] Keep the global Filtered Data download. -- [x] Test TTS and ASR journeys through WebBridge. -- [ ] Update this document with closed questions and screenshots. - -## Checkpoint 2 — implemented and tested - -Implemented in `omni_dashboard.py`: - -- RHAIIS-style numbered filter order: Accelerator → Version → Input/Output → Task → Load Generator → Model → TP. (The concurrency filter added here was removed in Checkpoint 5.) -- Cascading option sets: selecting an input/output pair narrows task, load generator, and model options. -- Model auto-fill: all models with data for the selected pair/task/load generator are selected by default. -- Point/box/lasso selection on line charts and point selection on ASR bars. -- Per-chart **Filtered Data for Selected Points** section with the source rows. - -WebBridge/Playwright test results: - -| Test | Result | -| ----------------------------------- | ----------------------------------------------------------------------------------------------------- | -| TTS `text → audio` auto-fill | Passed — task `voice_clone`, load generator `vllm-omni-bench-serve`, model `example/tts-1b` only. | -| TTS point click | Passed — selected c=1 point and rendered the filtered-data table. | -| ASR `audio → text` auto-fill | Passed — task `asr_transcription`, load generators `guidellm`/`offline`, model `example/asr-2b` only. | -| ASR bar click | Passed — bar selection rendered the filtered-data section. | -| Text `text → text` auto-fill | Passed — model `example/llm-8b` only. | -| Text point click | Passed — selected a TTFT point and rendered the filtered-data section. | -| RHAIIS Performance Plots comparison | Passed — numbered filters and plot-line filtered-data behavior confirmed. | -| Left-panel navigation parity | **Fixed** — RHAIIS navigation restored; Omni filters moved to main content. | - -Still open: Q2/Q3 (page scope and graph-selection semantics), TP/version labeling, offline ASR chart treatment, and `locale` vs `language`. - -## Checkpoint 3 — RHAIIS navigation restored - -- Restored the full RHAIIS grouped sidebar navigation for the Omni view: Dashboard, Performance Analysis, Insights, Tools. -- Moved the Omni filters into the main content as a RHAIIS-style numbered “Filter Your Data” section. -- Kept unimplemented RHAIIS pages visible with a clear placeholder. -- Tested: nav groups render; Performance Plots opens the Throughput/Speech Out/Text Latency/ASR Quality tabs; Filtered Data opens the table/download; Cost Analysis shows the placeholder; TTS auto-fill still narrows to the TTS model; ASR bar selection opens the filtered-data table. - -## Checkpoint 4 — Overview default + RHAIIS-style Performance Plots - -- **Overview is the clean default**: headline metrics and coverage table, no filter panel. -- **Performance Plots rebuilt as one RHAIIS-style chart**: - - numbered filters remain in main content; - - `Select X-Axis` (`Concurrency` / `Model`), `Select Y-Axis` (throughput, audio RTF/TTFP/underrun, text latency, WER/RTFx), and `Show concurrency up to`; - - `px.line(..., template="plotly_white_light", markers=True, custom_data=...)`; - - RHAIIS trace styling (line width 2, marker size 10, white marker outline) and layout (height 560, margins 80/250/110/60); - - point click and box/lasso selection add plot lines; - - `Filtered Data for Plot Lines` table and `Clear comparison`. -- **Filtered Data page** keeps the numbered filters, table, and CSV download. -- Removed the old Throughput / Speech Out / Text Latency / ASR Quality tabs and their unused chart helpers. -- WebBridge tests: - - Overview loads with no filters and shows the coverage table; - - Performance Plots renders one Plotly chart with the RHAIIS template and legend; - - clicking a TTS point adds its line and shows the filtered table; - - switching Y-axis to `Audio RTF P95` re-renders the chart and prunes concurrency options; - - `Clear comparison` resets the selection; - - `WER` with `Concurrency` X-axis shows a clear no-data message; switching X-axis to `Model` renders the offline ASR point. - -## Checkpoint 5 — concurrency filter removed - -- Removed `8️⃣ Select Concurrency` from the main filter block. All concurrency values for the selected data now flow into Performance Plots. -- The chart-level `Show concurrency up to` selector remains for limiting the visible range. -- Filter steps were Accelerator → Version → Input/Output → Task → Load Generator → Model → TP (reordered in Checkpoint 6). - -## Checkpoint 6 — horizontal RHAIIS filter band - -- Replaced the `st.expander` filter block and 2-column grid with `st.subheader("Filter Your Data")` and one horizontal row using RHAIIS column widths `[1.5, 1.3, 1.5, 2.7, 1]`. -- Layout mirrors the RHAIIS screenshot: Accelerator in column 1, Input/Output in column 2, Version + Task in column 3, Load Generator + Model in column 4, TP in column 5. -- Removed the extra caption so the section starts directly with the RHAIIS-style filter band. -- Version options now cascade from Accelerator + Input/Output; Task, Load Generator, Model, and TP continue to cascade. - -## Checkpoint 7 — View Logs implemented - -- Added the Omni **View Logs** section under Tools. -- Selects a run from the filtered rows and resolves log candidates in this order: - 1. MLflow artifacts under `MLFLOW_LOG_ARTIFACT_PREFIX` (default `logs`) using `mlflow_run_id`. - 2. Local `.log` files under `OMNI_LOG_DIR` matched by `run_name`, `mlflow_run_id`, or `deployment_uuid`. - 3. S3 `S3_LOGS_PREFIX.log` when `S3_LOGS_BUCKET` is set. -- Log resolution is automatic: one run selector and one **Fetch Log** button, with no extra log-file selector. Ranking prefers the full server log, then the startup log, then the benchmark log. -- The view always shows the complete log, and **Download Full Log** downloads it. -- Tested with the real 3.6 GA c1 run: the full 6,086,641-character server log rendered end to end. - -## Checkpoint 8 — Compare Versions implemented - -- Added baseline/comparison version selectors with a swap button, plus task-type, model, and metric selectors. All common concurrency levels are used automatically. -- The task-type selector cascades into model and metric options. Rows are always matched on `task_type`, so TTS and ASR/STT tasks are compared separately and never mixed. -- Added the RHAIIS-style context title (`GPU / Task / Dataset`), **Comparing:** line, and “How are these calculated?” popover. -- Added a model-level summary table with 🟢 Better / 🟡 Flat / 🔴 Worse cells. Each cell is the geometric mean of per-concurrency deltas; the table is the primary output, like RHAIIS. -- Version defaults prefer the most recent version as the comparison and the earlier version with the longest common prefix as the baseline (for example, `vllm-omni-3.5-ea2` → `vllm-omni-3.6.0-ga`). -- Rows are matched on model, task type, concurrency, load generator, TP, and accelerator. Dataset is included when both versions provide it, so legacy rows without a dataset still match. -- Repeated rows per key are averaged before comparison. Delta is the raw percent change; verdicts account for higher-is-better vs lower-is-better metrics with a 1% flat threshold. -- Output: one model-level, all-metric summary table plus a CSV download. There is no separate metric selector or chart. -- Tested with the real data: - - `vllm-omni-3.5-ea2` vs `vllm-omni-3.6.0-ga`: 4 comparisons across c1/c4/c8/c16, all Better for throughput and RTF. - - Swap: all verdicts flipped to Worse. - - Lower-is-better metric: signs and colors flipped correctly. - - `vllm-omni-3.5-ea2` vs `vllm-omni-v0.24.0`: 5 models and 25 comparisons rendered in the summary table. - - All common concurrency levels are used automatically (c1/c4/c8/c16 for the 3.5 → 3.6 comparison). - - Same-version and one-version datasets show clear warnings. - -## Checkpoint 9 — task selector - -- Added a **Tasks** multiselect to Compare Versions. It cascades into model and metric options, so TTS and ASR/STT comparisons are isolated. -- Task labels are modality-explicit and ordered: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. ASR/STT has a single transcription task. -- Fixed comparison key selection to run **per task**, so a dataset present on only one side no longer breaks matching for another task. TTS and ASR rows now coexist correctly in one comparison. -- Tested: - - All tasks selected: summary shows TTS and ASR rows separately. - - ASR/STT only: model auto-narrows to `example/asr-2b`, metric defaults to WER, title shows `Task: ASR / STT | Dataset: librispeech`. - -## Checkpoint 10 — single load generator per comparison - -- Added a **Load generator** selector to Compare Versions. -- Options cascade from the selected tasks and are limited to load generators present in both versions. -- Comparisons are filtered to the selected load generator before matching, so GuideLLM, vLLM-Omni bench serve, and offline results are never mixed. -- Default preference: vLLM-Omni bench serve for TTS tasks, GuideLLM otherwise, offline only when it is the sole option. -- Tested: ASR selection defaults to GuideLLM and shows only GuideLLM rows; switching to offline exposes WER and shows only offline rows. - -## Checkpoint 11 — all common concurrency levels - -- Removed the concurrency multiselect from Compare Versions. -- The page now uses every common concurrency level for the selected versions, tasks, load generator, and models. -- A caption lists the concurrency levels in use. -- This keeps the page simpler and matches the “compare everything common” behavior. - -## Checkpoint 12 — table-only Compare Versions - -- Removed the Metric selector from the top controls. -- Removed the selected-metric cards, delta bar chart, and per-concurrency details table. -- Compare Versions is now a single all-metric summary table plus CSV download, matching the RHAIIS table-first pattern. -- The Statistic selector still controls Mean / Median / P95 / P99 for the stats-based columns. Single-value metrics (throughput, WER, RTFx, transcription throughput) do not change when the statistic changes. - -## Checkpoint 13 — statistic-aware STT summary - -- Added End-to-End Latency to the Compare Versions summary columns. -- Single-value metrics (throughput, WER, RTFx, transcription throughput) intentionally stay the same when the statistic changes; the page caption explains this. -- Fixed the offline/`n/a` concurrency path so offline WER rows render in the summary. -- Verified in the UI: ASR-only + GuideLLM shows an `E2EL P95` column at P95 and `E2EL Mean` at Mean, with different values. - -## Checkpoint 14 — shareable URLs - -- Persist the active Omni section in the `section` query parameter. -- Persist Compare Versions selections in `cv_base`, `cv_comp`, `cv_tasks`, `cv_loadgen`, `cv_models`, and `cv_stat`. -- On first load, the page hydrates widget state from those parameters; subsequent widget changes update the URL. -- Verified by copying a Compare Versions URL with ASR-only, GuideLLM, `example/asr-2b`, and Mean selected, then opening it in a fresh tab: all selections and the section restored. - -## Checkpoint 15 — merged Input/Output and Task filter - -- Merged the separate Input/Output and Task Type filters into one **Task** selector. -- Task labels carry the modality: `TTS - Voice Clone`, `TTS - Default Voice`, `TTS - Voice Design`, `ASR / STT - Transcription`, `Text - Text generation`. -- Filter steps are now Accelerator → Task → Version → Load Generator → Model → TP. -- Removed the unused `io_pair` field. -- Compare Versions already used combined task labels, so no change was needed there. - -## Checkpoint 16 — Select All Models - -- Added a **Select All Models** checkbox under both model multiselects: Performance Plots and Compare Versions. -- The checkbox reflects whether all available models are selected. -- Checking it selects every model; removing a model unchecks it automatically. -- Verified in Performance Plots: removing `Voxtral-4B-TTS-2603` unchecked the box, and checking it restored all models. Verified the checkbox is present in Compare Versions. - -## Checkpoint 17 — Dataset filter - -- Added a **Dataset** filter between Task and Version. -- Dataset options cascade from the selected tasks and default to all. -- TTS legacy rows with a blank dataset appear as `(unspecified)`, so selecting all datasets does not drop them. -- Compare Versions continues to use the raw dataset field for per-task matching. -- Task tooltip is now a bullet list, one task per line. - -## Checkpoint 18 — persistent filter selections - -- Filter widgets now use stable keys instead of keys derived from upstream selections. -- Changing an upstream filter no longer resets downstream choices; valid selections are preserved and only invalid values are pruned. -- Verified: selecting two models produced 6 traces; removing v0.22 and v0.24 preserved the two models and reduced the chart to 4 traces. Select All Models then restored all models while keeping the two-version filter (8 traces). diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py index f6ebac7..fff3ffb 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -2,7 +2,7 @@ """Build the staged Omni TTS dashboard CSV (Qwen3-TTS only). Reads benchmark artifacts from the read-only recipe checkout and writes the -77-column schema documented in docs/omni-tts-column-sources.md. +77-column schema documented in docs/omni-dashboard.md. Groups: 1. 3.5 legacy -- results/3.5/benchmark_results.csv + raw JSON per json_file From 2a4898e5d76807a772e9439a404dc778e0dfdc9f Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 21:42:08 -0500 Subject: [PATCH 63/74] Address CodeRabbit review findings - Use the default AWS credential chain unless S3_ANONYMOUS is set - Harden local/MLflow log candidate matching and clear stale fetch errors - Preserve the streaming toggle across reruns while honoring URL state - Include recipe, N, and benchmark mode in version comparisons - Normalize MLflow tag formats, guard empty builds, resolve run_key collisions - Skip malformed ASR records and write legacy outputs only after strict checks - Require Streamlit >=1.35 for query_params support Co-Authored-By: Claude Code --- .gitignore | 1 + docs/omni-dashboard.md | 2 +- .../scripts/build_consolidated_omni_csv.py | 41 ++++++--- manual_runs/scripts/build_omni_tts_csv.py | 49 +++++++--- omni_dashboard.py | 91 ++++++++++--------- pyproject.toml | 2 +- 6 files changed, 116 insertions(+), 70 deletions(-) diff --git a/.gitignore b/.gitignore index 5ba6ffc..2db951b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ __pycache__/ !datasets/omni/*.json # Populated local dataset contains deployment/MLflow IDs; keep it out of git. datasets/omni/consolidated_dashboard_omni.csv +datasets/omni/consolidated_dashboard_omni.csv.* vllm-cpu-perf-eval/ # Ignore large original dataset files in datasets/ (pkl, parquet, npy) diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index b3390a1..437b592 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -75,7 +75,7 @@ export S3_LOGS_BUCKET='' # optional, for View Logs export S3_LOGS_PREFIX='logs/' # optional ``` -The CSV is cached for 5 minutes. AWS credentials come from the environment or the instance role. +The CSV is cached for 5 minutes. AWS credentials use the standard provider chain (environment variables, shared config, or instance role). Set `S3_ANONYMOUS=true` only for a public bucket. Observability links (optional; no URLs are committed): diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/build_consolidated_omni_csv.py index 30aea02..3b499c3 100644 --- a/manual_runs/scripts/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/build_consolidated_omni_csv.py @@ -10,7 +10,7 @@ --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ --omni-json path/to/omni-json/ \ --legacy-csv path/to/legacy-benchmark_results.csv \ - --output datasets/omni/consolidated_dashboard_omni.csv + --output datasets/omni/consolidated_dashboard_omni_legacy.csv Future metrics go in `extra_json` until promoted to a first-class column. """ @@ -714,7 +714,9 @@ def build_asr_row(r, path, metadata): row["mlflow_experiment_id"] = pick(r, ASR_ALIASES["mlflow_experiment_id"]) row["quality_metric"] = "wer" row["quality_value"] = fnum(wer) - row["run_name"] = f"asr-{model}-{row['dataset']}-{row['language']}" + suffix = row["mlflow_run_id"] or row["timestamp_utc"] or f"wer-{row['wer']}" + suffix = re.sub(r"[^A-Za-z0-9_.:-]+", "-", str(suffix)).strip("-") + row["run_name"] = f"asr-{model}-{row['dataset']}-{row['language']}-{suffix}" row["benchmark_run_id"] = row["run_name"] row["notes"] = defaults.get("notes", "Imported from ASR results") row["extra_json"] = jdump( @@ -767,7 +769,9 @@ def main(): ap.add_argument( "--metadata-json", default="", help="Metadata defaults/pattern overrides" ) - ap.add_argument("--output", default="datasets/omni/consolidated_dashboard_omni.csv") + ap.add_argument( + "--output", default="datasets/omni/consolidated_dashboard_omni_legacy.csv" + ) ap.add_argument( "--template", default="datasets/omni/consolidated_dashboard_omni_template.csv" ) @@ -807,13 +811,19 @@ def main(): if path.lower().endswith(".csv"): with open(path, newline="") as f: for r in csv.DictReader(f): - rows.append(build_asr_row(r, path, metadata)) + try: + rows.append(build_asr_row(r, path, metadata)) + except Exception as exc: + errors.append(f"{path}: {exc}") else: with open(path) as f: data = json.load(f) records = data if isinstance(data, list) else [data] for r in records: - rows.append(build_asr_row(r, path, metadata)) + try: + rows.append(build_asr_row(r, path, metadata)) + except Exception as exc: + errors.append(f"{path}: {exc}") except Exception as exc: errors.append(f"{path}: {exc}") @@ -848,6 +858,17 @@ def sort_key(row): deduped.sort(key=sort_key) + required_blank = Counter() + for row in deduped: + required = ["model", "task_type", "benchmark_tool", "load_generator"] + if row.get("task_type") != "asr_transcription": + required.append("concurrency") + for col in required: + if not row.get(col): + required_blank[col] += 1 + if args.strict and required_blank: + raise SystemExit(2) + for path in (args.output, args.template): parent = os.path.dirname(path) if parent: @@ -864,14 +885,6 @@ def sort_key(row): f, fieldnames=CANONICAL_COLUMNS, lineterminator="\n" ).writeheader() - required_blank = Counter() - for row in deduped: - required = ["model", "task_type", "benchmark_tool", "load_generator"] - if row.get("task_type") != "asr_transcription": - required.append("concurrency") - for col in required: - if not row.get(col): - required_blank[col] += 1 summary = { "rows": len(deduped), "by_modality": dict(Counter(r.get("modality", "") for r in deduped)), @@ -883,8 +896,6 @@ def sort_key(row): "template": args.template, } print(json.dumps(summary, indent=2)) - if args.strict and required_blank: - raise SystemExit(2) if __name__ == "__main__": diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py index fff3ffb..698cacb 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -225,14 +225,23 @@ def load_mlflow_index(path): runs = data.get("runs", []) if isinstance(data, dict) else data by_name = {} by_uuid_concurrency = {} + + def _pairs(value): + if isinstance(value, dict): + return value + if isinstance(value, list): + return { + item.get("key"): item.get("value") + for item in value + if isinstance(item, dict) + } + return {} + for run in runs or []: info = run.get("info") or {} run_data = run.get("data") or {} - tags = {tag.get("key"): tag.get("value") for tag in run_data.get("tags") or []} - params = { - param.get("key"): param.get("value") - for param in run_data.get("params") or [] - } + tags = _pairs(run_data.get("tags")) + params = _pairs(run_data.get("params")) run_id = as_text(info.get("run_id")) if not run_id: continue @@ -1008,6 +1017,10 @@ def main(argv): base_rows = build_36(recipe_root, header) athena_rows = build_athena(recipe_root, header, mlflow_index) rows = legacy_rows + base_rows + athena_rows + if not rows: + raise SystemExit( + f"No benchmark rows found under {recipe_root}. Check --recipe-root." + ) for row in rows: if "Voxtral" in row.get("model", "") or "OmniVoice" in row.get("model", ""): @@ -1015,15 +1028,27 @@ def main(argv): "Out-of-scope model leaked into output: {}".format(row.get("model")) ) - seen = set() - duplicates = [] + seen = {} + resolved_collisions = 0 for row in rows: key = row.get("run_key", "") if key in seen: - duplicates.append(key) - seen.add(key) - if duplicates: - raise SystemExit(f"Duplicate run_key values: {sorted(set(duplicates))}") + suffix = "__".join( + value + for value in ( + slug(row.get("deployment_uuid")), + slug(row.get("response_format")), + slug(row.get("run_name")), + ) + if value + ) + candidate = f"{key}__{suffix}" if suffix else key + if candidate in seen: + raise SystemExit(f"Duplicate run_key values: {key} and {candidate}") + row["run_key"] = candidate + key = candidate + resolved_collisions += 1 + seen[key] = row missing_required = [] for row in rows: @@ -1052,7 +1077,7 @@ def main(argv): print(f"3.6 Athena rows: {len(athena_rows)}") print(f"total rows: {len(rows)}") print(f"columns: {len(header)}") - print(f"duplicate run_key:{len(duplicates)}") + print(f"resolved run_key collisions:{resolved_collisions}") print(f"written: {output_path}") return 0 diff --git a/omni_dashboard.py b/omni_dashboard.py index 61fb912..dfb0b11 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -450,6 +450,9 @@ def _resolve_benchmark_mode(available_modes: set, preferred_streaming: bool) -> "tp", "accelerator", "response_format", + "recipe", + "num_prompts", + "benchmark_mode", ] COMPARE_FLAT_THRESHOLD_PCT = 1.0 @@ -460,22 +463,21 @@ def _resolve_benchmark_mode(available_modes: set, preferred_streaming: bool) -> ] -def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.DataFrame: +def _s3_client(region: str): + """Return an S3 client using the normal AWS credential chain.""" import boto3 from botocore import UNSIGNED from botocore.config import Config - if AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: - client = boto3.client( - "s3", - region_name=region, - aws_access_key_id=AWS_ACCESS_KEY_ID, - aws_secret_access_key=AWS_SECRET_ACCESS_KEY, - ) - else: - client = boto3.client( + if os.environ.get("S3_ANONYMOUS", "").strip().lower() in ("1", "true", "yes"): + return boto3.client( "s3", region_name=region, config=Config(signature_version=UNSIGNED) ) + return boto3.client("s3", region_name=region) + + +def _read_csv_from_s3(bucket: str, key: str, region: str = "us-east-1") -> pd.DataFrame: + client = _s3_client(region) obj = client.get_object(Bucket=bucket, Key=key) return pd.read_csv(obj["Body"], low_memory=False) @@ -1010,12 +1012,19 @@ def _local_log_candidates(row: pd.Series) -> tuple: tokens = sorted(set(tokens)) if not tokens: return [], [] + + def _matches(path: Path) -> bool: + parts = path.parts + name = path.name + for token in tokens: + if token in parts: + return True + if re.search(rf"(? str: return " | ".join(part for part in parts if part and part not in ("nan", "unknown")) -def _prefer_log_candidates(candidates: list, preferred_names: list) -> list: - """Prefer an exact artifact filename, then a loose stem match.""" +def _prefer_log_candidates( + candidates: list, preferred_names: list, fallback: bool = True +) -> list: + """Prefer an exact artifact filename, then a delimited stem match.""" for name in preferred_names: exact = [c for c in candidates if Path(c["path"]).name == name] if exact: return exact for name in preferred_names: stem = Path(name).stem - loose = [c for c in candidates if stem in Path(c["path"]).name] + pattern = re.compile(rf"(?:^|[_.-]){re.escape(stem)}(?:[_.-]|$)") + loose = [c for c in candidates if pattern.search(Path(c["path"]).name)] if loose: return loose - return candidates + return candidates if fallback else [] def _group_has_mlflow(group: pd.DataFrame) -> bool: @@ -1279,7 +1277,11 @@ def _view_logs(df: pd.DataFrame): candidates = _prefer_log_candidates( candidates, [f"cell_c{concurrency}.log", f"saturation_c{concurrency}.log"], + fallback=False, ) + if not candidates: + st.warning(f"No bench log found for c{concurrency}.") + return if not candidates: st.warning("Log not available for this deployment.") @@ -1301,6 +1303,7 @@ def _view_logs(df: pd.DataFrame): S3_LOGS_BUCKET, S3_REGION, ) + result["error"] = None break except Exception as exc: result["error"] = str(exc) @@ -1377,12 +1380,15 @@ def _performance_plots(df: pd.DataFrame): if str(value).strip() } mode_key = "omni_perf_streaming" - preferred_streaming = st.session_state.get(mode_key, True) - streaming_param = _query_first("omni_streaming") - if streaming_param in ("0", "false", "off"): - preferred_streaming = False - elif streaming_param in ("1", "true", "on"): + if mode_key not in st.session_state: preferred_streaming = True + streaming_param = _query_first("omni_streaming") + if streaming_param in ("0", "false", "off"): + preferred_streaming = False + elif streaming_param in ("1", "true", "on"): + preferred_streaming = True + st.session_state[mode_key] = preferred_streaming + preferred_streaming = st.session_state.get(mode_key, True) selected_mode, toggle_default = _resolve_benchmark_mode( mode_values, preferred_streaming ) @@ -2028,7 +2034,7 @@ def _default_compare_statistic( base_df: pd.DataFrame, comparison_df: pd.DataFrame, statistics: list, -) -> str | None: +) -> Optional[str]: if not statistics: return None tasks = set(base_df["task_type"].dropna().astype(str)) @@ -2066,7 +2072,7 @@ def _aggregate_delta(detail: pd.DataFrame) -> float: def _model_comparison_summary( base_df: pd.DataFrame, comparison_df: pd.DataFrame, - statistic: str | None, + statistic: Optional[str], ) -> pd.DataFrame: core_group_keys = [ "model", @@ -2074,6 +2080,7 @@ def _model_comparison_summary( "load_generator", "tp", "accelerator", + "recipe", ] metric_columns = [] for family in COMPARE_SUMMARY_FAMILIES: @@ -2138,6 +2145,8 @@ def _model_comparison_summary( row["Load generator"] = meta["load_generator"] if "accelerator" in meta: row["GPU"] = meta["accelerator"] + if "recipe" in meta: + row["Recipe"] = meta["recipe"] for header, _, _ in metric_columns: row[header] = cells.get((group, header), "⚪ N/A") rows.append(row) diff --git a/pyproject.toml b/pyproject.toml index 1b5f6e9..7d890f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ license = "MIT" readme = "README.md" requires-python = ">=3.9" dependencies = [ - "streamlit>=1.28.0", + "streamlit>=1.35.0", "pandas>=2.0.0", "plotly>=5.15.0", "numpy>=1.24.0", From e4bb2b0dc7d30c7c185369e957e7296a6853bc2e Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 21:50:40 -0500 Subject: [PATCH 64/74] Remove unused static AWS credential constants The S3 client now uses the default credential provider chain, so these environment reads are dead code. Co-Authored-By: Claude Code --- omni_dashboard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index dfb0b11..e222d53 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -44,8 +44,6 @@ S3_BUCKET = os.environ.get("S3_BUCKET") S3_KEY_OMNI = os.environ.get("S3_KEY_OMNI", "consolidated_dashboard_omni.csv") S3_REGION = os.environ.get("S3_REGION", "us-east-1") -AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID") -AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") MLFLOW_TRACKING_URI = os.environ.get("MLFLOW_TRACKING_URI", "") MLFLOW_BASE_URL = os.environ.get("MLFLOW_BASE_URL", MLFLOW_TRACKING_URI) From 5c137fe85a0f0bb36e61b3fcccbac3e1362ca1f8 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 23:01:33 -0500 Subject: [PATCH 65/74] Fix remaining comparison and ASR identity edge cases - Fingerprint ASR measurements when no MLflow run id exists, so distinct measurements with the same timestamp no longer collapse. - Include comparison keys when either side has values, and exclude rows with missing key values so unknown N or benchmark mode cannot match known ones. - Normalize integral numeric keys so 100 and 100.0 compare as the same value. - Add regression tests for ASR identity and comparison workload matching. Co-Authored-By: Claude Code --- .../scripts/build_consolidated_omni_csv.py | 19 +++++- omni_dashboard.py | 34 +++++++--- tests/test_omni_comparison.py | 68 +++++++++++++++++++ tests/test_omni_csv.py | 68 +++++++++++++++++++ 4 files changed, 179 insertions(+), 10 deletions(-) create mode 100644 tests/test_omni_comparison.py diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/build_consolidated_omni_csv.py index 3b499c3..9e92b51 100644 --- a/manual_runs/scripts/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/build_consolidated_omni_csv.py @@ -20,6 +20,7 @@ import datetime as dt import fnmatch import glob +import hashlib import json import os import re @@ -657,6 +658,22 @@ def pick(row, aliases): return "" +def _asr_identity_suffix(row): + """Return a stable fingerprint for ASR rows without an MLflow run id.""" + fields = ( + "timestamp_utc", + "wer", + "wer_ci_lower", + "wer_ci_upper", + "rtfx", + "num_utterances", + "duration_s", + "audio_input_duration_s_total", + ) + payload = "|".join(f"{field}={row.get(field, '')}" for field in fields) + return hashlib.sha1(payload.encode("utf-8"), usedforsecurity=False).hexdigest()[:12] + + def build_asr_row(r, path, metadata): """Build a canonical row from ASR results.""" defaults = metadata.get("asr_defaults", {}) @@ -714,7 +731,7 @@ def build_asr_row(r, path, metadata): row["mlflow_experiment_id"] = pick(r, ASR_ALIASES["mlflow_experiment_id"]) row["quality_metric"] = "wer" row["quality_value"] = fnum(wer) - suffix = row["mlflow_run_id"] or row["timestamp_utc"] or f"wer-{row['wer']}" + suffix = row["mlflow_run_id"] or _asr_identity_suffix(row) suffix = re.sub(r"[^A-Za-z0-9_.:-]+", "-", str(suffix)).strip("-") row["run_name"] = f"asr-{model}-{row['dataset']}-{row['language']}-{suffix}" row["benchmark_run_id"] = row["run_name"] diff --git a/omni_dashboard.py b/omni_dashboard.py index e222d53..76bdc56 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1857,6 +1857,13 @@ def _compare_defaults(versions: list) -> tuple: def _comparison_keys(base_df: pd.DataFrame, comparison_df: pd.DataFrame) -> list: + """Return workload keys that can safely distinguish version comparisons. + + A key is included when either side has populated values. If both sides are + entirely blank, the key carries no signal and is skipped. Rows missing an + included key are excluded from the comparison rather than matched to a + known workload. + """ keys = [] for key in COMPARE_KEYS: if key not in base_df.columns or key not in comparison_df.columns: @@ -1866,7 +1873,7 @@ def _has_values(frame: pd.DataFrame, key: str = key) -> bool: values = frame[key].dropna().astype(str).str.strip().str.lower() return bool(values[~values.isin(["", "nan", "none", "n/a"])].any()) - if _has_values(base_df) and _has_values(comparison_df): + if _has_values(base_df) or _has_values(comparison_df): keys.append(key) return keys @@ -1924,18 +1931,27 @@ def _comparison_table_for_task( def _prepare(frame: pd.DataFrame) -> pd.DataFrame: prepared = frame[keys + [metric]].copy() for key in keys: - prepared[key] = ( - prepared[key] - .astype(str) - .replace({"nan": "n/a", "None": "n/a", "": "n/a"}) - ) + prepared[key] = _normalize_key(prepared[key]) + if keys: + prepared = prepared[~prepared[keys].eq("n/a").any(axis=1)] prepared["_key"] = prepared[keys].agg(" | ".join, axis=1) return prepared + def _normalize_key(series: pd.Series) -> pd.Series: + text = series.astype(str).str.strip() + numeric = pd.to_numeric(text, errors="coerce") + integral = numeric.notna() & (numeric % 1 == 0) + text = text.mask(integral, numeric.astype("Int64").astype(str)) + return text.replace({"nan": "n/a", "None": "n/a", "": "n/a"}) + + base_prepared = _prepare(base) + comparison_prepared = _prepare(comparison) + if base_prepared.empty or comparison_prepared.empty: + return pd.DataFrame() aggregations = {metric: "mean", **dict.fromkeys(keys, "first")} - base_grouped = _prepare(base).groupby("_key", as_index=False).agg(aggregations) - comparison_grouped = ( - _prepare(comparison).groupby("_key", as_index=False).agg(aggregations) + base_grouped = base_prepared.groupby("_key", as_index=False).agg(aggregations) + comparison_grouped = comparison_prepared.groupby("_key", as_index=False).agg( + aggregations ) merged = base_grouped.merge( comparison_grouped, on="_key", suffixes=("_baseline", "_comparison") diff --git a/tests/test_omni_comparison.py b/tests/test_omni_comparison.py new file mode 100644 index 0000000..61afa3a --- /dev/null +++ b/tests/test_omni_comparison.py @@ -0,0 +1,68 @@ +"""Tests for Omni version-comparison workload matching.""" + +import pandas as pd + +from omni_dashboard import _comparison_keys, _comparison_table_for_task + + +def _frame(num_prompts, modes, throughput): + rows = len(num_prompts) + return pd.DataFrame( + { + "model": ["example/tts-1b"] * rows, + "task_type": ["default_voice"] * rows, + "concurrency_label": [1] * rows, + "load_generator": ["vllm-omni-bench-serve"] * rows, + "num_prompts": num_prompts, + "benchmark_mode": modes, + "request_throughput_rps": throughput, + } + ) + + +def test_key_is_included_when_only_one_side_has_values(): + base = _frame([100, None], [None, None], [1.0, 9.0]) + comparison = _frame([None], [None], [3.0]) + + keys = _comparison_keys(base, comparison) + + assert "num_prompts" in keys + assert "benchmark_mode" not in keys + + +def test_unknown_num_prompts_does_not_match_known_value(): + base = _frame([100, None], ["streaming", "streaming"], [1.0, 9.0]) + comparison = _frame([100], ["streaming"], [2.0]) + keys = _comparison_keys(base, comparison) + + table = _comparison_table_for_task( + base, comparison, "request_throughput_rps", "higher", keys + ) + + assert len(table) == 1 + assert table.iloc[0]["baseline"] == 1.0 + assert table.iloc[0]["comparison"] == 2.0 + + +def test_different_num_prompts_do_not_match(): + base = _frame([100], ["streaming"], [1.0]) + comparison = _frame([1000], ["streaming"], [2.0]) + keys = _comparison_keys(base, comparison) + + table = _comparison_table_for_task( + base, comparison, "request_throughput_rps", "higher", keys + ) + + assert table.empty + + +def test_different_benchmark_modes_do_not_match(): + base = _frame([100], ["streaming"], [1.0]) + comparison = _frame([100], ["non-streaming"], [2.0]) + keys = _comparison_keys(base, comparison) + + table = _comparison_table_for_task( + base, comparison, "request_throughput_rps", "higher", keys + ) + + assert table.empty diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 6a96958..89fe82c 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -105,5 +105,73 @@ def test_converter_smoke(tmp_path): assert len(_header(template)) == 165 +def test_asr_distinct_measurements_without_run_id(tmp_path): + input_csv = tmp_path / "asr.csv" + input_csv.write_text( + "model,wer,timestamp_utc,dataset,language,benchmark_tool,load_generator\n" + "example/asr-1b,10.0,2026-01-01T00:00:00Z,librispeech,en,asr-bench,asr-bench\n" + "example/asr-1b,12.0,2026-01-01T00:00:00Z,librispeech,en,asr-bench,asr-bench\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--asr-csv", + str(input_csv), + "--metadata-json", + str(METADATA), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 2 + assert len({row["run_name"] for row in rows}) == 2 + + +def test_asr_exact_replays_still_deduplicate(tmp_path): + input_csv = tmp_path / "asr.csv" + input_csv.write_text( + "model,wer,timestamp_utc,dataset,language,benchmark_tool,load_generator\n" + "example/asr-1b,10.0,2026-01-01T00:00:00Z,librispeech,en,asr-bench,asr-bench\n" + "example/asr-1b,10.0,2026-01-01T00:00:00Z,librispeech,en,asr-bench,asr-bench\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--asr-csv", + str(input_csv), + "--metadata-json", + str(METADATA), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 1 + assert rows[0]["run_name"].startswith("asr-example/asr-1b-librispeech-en-") + + if __name__ == "__main__": pytest.main([__file__]) From 33c9567423cc2cc52e15c8360836a7bc584bc2f4 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 23:10:56 -0500 Subject: [PATCH 66/74] Make comparison key normalization pandas-version independent Replace Series.mask-based normalization with a scalar normalizer and force string keys before joining, so pandas 3 behaves the same as pandas 2. Co-Authored-By: Claude Code --- omni_dashboard.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/omni_dashboard.py b/omni_dashboard.py index 76bdc56..ea51ec1 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1934,15 +1934,21 @@ def _prepare(frame: pd.DataFrame) -> pd.DataFrame: prepared[key] = _normalize_key(prepared[key]) if keys: prepared = prepared[~prepared[keys].eq("n/a").any(axis=1)] - prepared["_key"] = prepared[keys].agg(" | ".join, axis=1) + prepared["_key"] = prepared[keys].astype(str).agg(" | ".join, axis=1) return prepared def _normalize_key(series: pd.Series) -> pd.Series: - text = series.astype(str).str.strip() - numeric = pd.to_numeric(text, errors="coerce") - integral = numeric.notna() & (numeric % 1 == 0) - text = text.mask(integral, numeric.astype("Int64").astype(str)) - return text.replace({"nan": "n/a", "None": "n/a", "": "n/a"}) + def _one(value) -> str: + text = str(value).strip() + if text.lower() in ("", "nan", "none", "n/a"): + return "n/a" + try: + numeric = float(text) + except (TypeError, ValueError): + return text + return str(int(numeric)) if numeric.is_integer() else text + + return series.map(_one) base_prepared = _prepare(base) comparison_prepared = _prepare(comparison) From 180f2bc2b1fcf80eb6f9c5542c4826b29ea3a08a Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 23:14:25 -0500 Subject: [PATCH 67/74] Fix MLflow lookup order and comparison edge cases - Prefer deployment+concurrency lookup over duplicate run names. - Preserve the streaming preference separately from the effective single-mode state. - Return early from empty comparison frames and treat pd.NA as unknown. - Add tests for duplicate run names, all-unknown comparisons, and pd.NA keys. Co-Authored-By: Claude Code --- manual_runs/scripts/build_omni_tts_csv.py | 8 ++-- omni_dashboard.py | 22 +++++++--- tests/test_omni_comparison.py | 26 ++++++++++++ tests/test_omni_mlflow_lookup.py | 52 +++++++++++++++++++++++ 4 files changed, 99 insertions(+), 9 deletions(-) create mode 100644 tests/test_omni_mlflow_lookup.py diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/build_omni_tts_csv.py index 698cacb..983e5eb 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/build_omni_tts_csv.py @@ -263,12 +263,12 @@ def mlflow_run_id_for(mlflow_index, run_name, deployment_uuid, concurrency): """Look up a run id from the optional MLflow cache.""" if not mlflow_index: return "" - run_id = mlflow_index.get("by_name", {}).get(run_name, "") - if run_id: - return run_id - return mlflow_index.get("by_uuid_concurrency", {}).get( + run_id = mlflow_index.get("by_uuid_concurrency", {}).get( (deployment_uuid, concurrency), "" ) + if run_id: + return run_id + return mlflow_index.get("by_name", {}).get(run_name, "") def slug(text): diff --git a/omni_dashboard.py b/omni_dashboard.py index ea51ec1..fa44044 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1378,20 +1378,23 @@ def _performance_plots(df: pd.DataFrame): if str(value).strip() } mode_key = "omni_perf_streaming" - if mode_key not in st.session_state: + pref_key = "omni_perf_streaming_pref" + if pref_key not in st.session_state: preferred_streaming = True streaming_param = _query_first("omni_streaming") if streaming_param in ("0", "false", "off"): preferred_streaming = False elif streaming_param in ("1", "true", "on"): preferred_streaming = True + st.session_state[pref_key] = preferred_streaming st.session_state[mode_key] = preferred_streaming - preferred_streaming = st.session_state.get(mode_key, True) + preferred_streaming = st.session_state.get(pref_key, True) selected_mode, toggle_default = _resolve_benchmark_mode( mode_values, preferred_streaming ) - if selected_mode: - st.session_state[mode_key] = toggle_default + st.session_state[mode_key] = ( + toggle_default if selected_mode else preferred_streaming + ) x_label = "Concurrency" x_axis = "concurrency" @@ -1425,6 +1428,8 @@ def _performance_plots(df: pd.DataFrame): key=mode_key, help="Show streaming results (on) or non-streaming results (off).", ) + if "streaming" in mode_values and "non_streaming" in mode_values: + st.session_state[pref_key] = streaming_on with col4: response_format = st.selectbox( "Response format", @@ -1934,13 +1939,20 @@ def _prepare(frame: pd.DataFrame) -> pd.DataFrame: prepared[key] = _normalize_key(prepared[key]) if keys: prepared = prepared[~prepared[keys].eq("n/a").any(axis=1)] + if prepared.empty: + return prepared prepared["_key"] = prepared[keys].astype(str).agg(" | ".join, axis=1) return prepared def _normalize_key(series: pd.Series) -> pd.Series: def _one(value) -> str: + try: + if pd.isna(value): + return "n/a" + except (TypeError, ValueError): + pass text = str(value).strip() - if text.lower() in ("", "nan", "none", "n/a"): + if text.lower() in ("", "nan", "none", "n/a", ""): return "n/a" try: numeric = float(text) diff --git a/tests/test_omni_comparison.py b/tests/test_omni_comparison.py index 61afa3a..c53e28d 100644 --- a/tests/test_omni_comparison.py +++ b/tests/test_omni_comparison.py @@ -66,3 +66,29 @@ def test_different_benchmark_modes_do_not_match(): ) assert table.empty + + +def test_all_unknown_keys_return_empty_instead_of_raising(): + base = _frame([None], ["streaming"], [1.0]) + comparison = _frame([100], ["streaming"], [2.0]) + keys = _comparison_keys(base, comparison) + + table = _comparison_table_for_task( + base, comparison, "request_throughput_rps", "higher", keys + ) + + assert table.empty + + +def test_pd_na_key_is_treated_as_unknown(): + base = _frame([100, None], ["streaming", "streaming"], [1.0, 9.0]) + base["num_prompts"] = pd.array([100, pd.NA], dtype="Int64") + comparison = _frame([100], ["streaming"], [2.0]) + keys = _comparison_keys(base, comparison) + + table = _comparison_table_for_task( + base, comparison, "request_throughput_rps", "higher", keys + ) + + assert len(table) == 1 + assert table.iloc[0]["baseline"] == 1.0 diff --git a/tests/test_omni_mlflow_lookup.py b/tests/test_omni_mlflow_lookup.py new file mode 100644 index 0000000..c9809eb --- /dev/null +++ b/tests/test_omni_mlflow_lookup.py @@ -0,0 +1,52 @@ +"""Tests for the optional MLflow run-id lookup used by the Omni TTS builder.""" + +import importlib.util +import json +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +BUILDER = ROOT / "manual_runs" / "scripts" / "build_omni_tts_csv.py" + + +def _builder_module(): + spec = importlib.util.spec_from_file_location("build_omni_tts_csv", BUILDER) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + + +def test_deployment_lookup_precedes_duplicate_run_name(tmp_path): + runs = { + "runs": [ + { + "info": {"run_id": "run-a"}, + "data": { + "tags": { + "mlflow.runName": "same-name", + "deployment_uuid": "deployment-a", + "concurrency": "1", + }, + "params": {}, + }, + }, + { + "info": {"run_id": "run-b"}, + "data": { + "tags": { + "mlflow.runName": "same-name", + "deployment_uuid": "deployment-b", + "concurrency": "1", + }, + "params": {}, + }, + }, + ] + } + path = tmp_path / "runs.json" + path.write_text(json.dumps(runs)) + module = _builder_module() + index = module.load_mlflow_index(str(path)) + + assert module.mlflow_run_id_for(index, "same-name", "deployment-a", "1") == "run-a" + assert module.mlflow_run_id_for(index, "same-name", "deployment-b", "1") == "run-b" + assert module.mlflow_run_id_for(index, "same-name", "deployment-c", "1") == "run-b" From d0bf026f72aa2eb82675b73e14a67810c6d97549 Mon Sep 17 00:00:00 2001 From: aas008 Date: Wed, 2 Dec 2026 23:20:54 -0500 Subject: [PATCH 68/74] Persist streaming preference via toggle callback Update the preferred mode in an on_change callback before the rerun applies the single-mode fallback, so user toggles are not overwritten. Add an AppTest covering both modes -> single mode -> both modes. Co-Authored-By: Claude Code --- omni_dashboard.py | 10 +++- tests/test_omni_streaming_preference.py | 77 +++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 tests/test_omni_streaming_preference.py diff --git a/omni_dashboard.py b/omni_dashboard.py index fa44044..b8f8748 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1422,14 +1422,20 @@ def _performance_plots(df: pd.DataFrame): col1, col2, col3, col4, col5 = st.columns([1.5, 0.9, 0.8, 1.0, 1.0]) with col1: y_label = st.selectbox("Select Y-Axis", list(metrics), key="omni_perf_y_axis") + + def _remember_streaming_preference(): + if "streaming" in mode_values and "non_streaming" in mode_values: + st.session_state[pref_key] = st.session_state.get( + mode_key, preferred_streaming + ) + with col3: streaming_on = st.toggle( "Streaming", key=mode_key, + on_change=_remember_streaming_preference, help="Show streaming results (on) or non-streaming results (off).", ) - if "streaming" in mode_values and "non_streaming" in mode_values: - st.session_state[pref_key] = streaming_on with col4: response_format = st.selectbox( "Response format", diff --git a/tests/test_omni_streaming_preference.py b/tests/test_omni_streaming_preference.py new file mode 100644 index 0000000..b3d2b93 --- /dev/null +++ b/tests/test_omni_streaming_preference.py @@ -0,0 +1,77 @@ +"""Regression test for Omni streaming-preference persistence.""" + +from pathlib import Path + +from streamlit.testing.v1 import AppTest + +HARNESS = """ +import sys + +sys.path.insert(0, {repo!r}) + +import pandas as pd +import streamlit as st + +from omni_dashboard import _performance_plots + + +def make_df(): + base = {{ + "accelerator": "H200", + "model": "Qwen/Qwen3-TTS-12Hz-1.7B-Base", + "runtime_version": "vllm-omni-3.6.0-ga", + "tp": 1, + "recipe": "default", + "task_type": "voice_clone", + "dataset": "seed-tts", + "response_format": "wav", + "runtime_args": "", + "experiment_phase": "matrix", + "concurrency": 1, + "num_prompts": 1000, + }} + return pd.DataFrame( + [ + {{ + **base, + "benchmark_mode": "streaming", + "deployment_uuid": "uuid-streaming", + "request_throughput_rps": 1.0, + }}, + {{ + **base, + "benchmark_mode": "non_streaming", + "deployment_uuid": "uuid-nonstreaming", + "request_throughput_rps": 2.0, + }}, + ] + ) + + +mode = st.radio("mode", ["both", "streaming_only"], key="mode") +df = make_df() +if mode == "streaming_only": + df = df[df["benchmark_mode"] == "streaming"] +_performance_plots(df) +""" + + +def test_streaming_preference_survives_single_mode_filter(tmp_path): + repo = Path(__file__).resolve().parents[1] + script = tmp_path / "harness.py" + script.write_text(HARNESS.format(repo=str(repo))) + at = AppTest.from_file(str(script), default_timeout=30) + at.run() + assert not at.exception + assert at.toggle(key="omni_perf_streaming").value is True + + at.toggle(key="omni_perf_streaming").set_value(False).run() + assert at.toggle(key="omni_perf_streaming").value is False + + at.radio(key="mode").set_value("streaming_only").run() + assert at.toggle(key="omni_perf_streaming").value is True + assert at.session_state["omni_perf_streaming_pref"] is False + + at.radio(key="mode").set_value("both").run() + assert at.toggle(key="omni_perf_streaming").value is False + assert not at.exception From 37806af5f35d84c88027dc00e9eb2659ba23b7ca Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 3 Dec 2026 13:28:02 -0500 Subject: [PATCH 69/74] Group Omni manual tools under vllm-omni - Move build_omni_tts_csv.py, build_consolidated_omni_csv.py, and extract_mlflow_runs.py into manual_runs/scripts/vllm-omni. - Move the Omni schema templates alongside the scripts and remove the datasets/omni metadata example. - Update defaults, docs, tests, and gitignore paths. - Make builder repo-root detection independent of script depth. Co-Authored-By: Claude Code --- .gitignore | 5 +- README.md | 14 ++-- ...dated_dashboard_omni_metadata.example.json | 27 ------- docs/omni-dashboard.md | 6 +- manual_runs/scripts/vllm-omni/README.md | 70 +++++++++++++++++++ .../build_consolidated_omni_csv.py | 7 +- .../{ => vllm-omni}/build_omni_tts_csv.py | 19 +++-- .../{ => vllm-omni}/extract_mlflow_runs.py | 2 +- .../consolidated_dashboard_omni_template.csv | 0 ...nsolidated_dashboard_omni_tts_template.csv | 0 tests/test_omni_csv.py | 42 ++++++++--- tests/test_omni_mlflow_lookup.py | 7 +- 12 files changed, 141 insertions(+), 58 deletions(-) delete mode 100644 datasets/omni/consolidated_dashboard_omni_metadata.example.json create mode 100644 manual_runs/scripts/vllm-omni/README.md rename manual_runs/scripts/{ => vllm-omni}/build_consolidated_omni_csv.py (99%) rename manual_runs/scripts/{ => vllm-omni}/build_omni_tts_csv.py (98%) rename manual_runs/scripts/{ => vllm-omni}/extract_mlflow_runs.py (99%) rename {datasets/omni => manual_runs/scripts/vllm-omni/templates}/consolidated_dashboard_omni_template.csv (100%) rename {datasets/omni => manual_runs/scripts/vllm-omni/templates}/consolidated_dashboard_omni_tts_template.csv (100%) diff --git a/.gitignore b/.gitignore index 2db951b..5428386 100644 --- a/.gitignore +++ b/.gitignore @@ -16,8 +16,7 @@ __pycache__/ !mlperf-data/mlperf-*.csv !mlperf-data/summaries/*.csv !datasets/summaries/*.csv -!datasets/omni/*.csv -!datasets/omni/*.json +!manual_runs/scripts/vllm-omni/templates/*.csv # Populated local dataset contains deployment/MLflow IDs; keep it out of git. datasets/omni/consolidated_dashboard_omni.csv datasets/omni/consolidated_dashboard_omni.csv.* @@ -219,8 +218,6 @@ gpt-oss-dynamo-llmd/ # Log files *.log logs/ -!datasets/omni/logs/ -!datasets/omni/logs/*.log # Cache directories .cache/ diff --git a/README.md b/README.md index af1328c..18b8963 100644 --- a/README.md +++ b/README.md @@ -280,22 +280,22 @@ When you have code changes: ## Omni Data Management -The Omni dashboard reads `datasets/omni/consolidated_dashboard_omni.csv` locally, or the `S3_KEY_OMNI` object when `S3_BUCKET` is set. Header-only templates and a converter metadata example are included: +The Omni dashboard reads `datasets/omni/consolidated_dashboard_omni.csv` locally, or the `S3_KEY_OMNI` object when `S3_BUCKET` is set. Header-only templates are included: -- `datasets/omni/consolidated_dashboard_omni_template.csv` -- `datasets/omni/consolidated_dashboard_omni_tts_template.csv` -- `datasets/omni/consolidated_dashboard_omni_metadata.example.json` +- `manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_template.csv` +- `manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_tts_template.csv` Build the staged 77-column TTS CSV: ```bash -python manual_runs/scripts/build_omni_tts_csv.py \ +python manual_runs/scripts/vllm-omni/build_omni_tts_csv.py \ --recipe-root ~/omni-perf-benchmark-recipe \ --output datasets/omni/consolidated_dashboard_omni.csv ``` -The older 165-column converter (`build_consolidated_omni_csv.py`) and its -metadata example remain for the legacy schema/template. +The older 165-column converter +(`manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py`) remains for the +legacy schema/template. See `docs/omni-dashboard.md` for the schema, units, dashboard sections, and configuration. diff --git a/datasets/omni/consolidated_dashboard_omni_metadata.example.json b/datasets/omni/consolidated_dashboard_omni_metadata.example.json deleted file mode 100644 index 20b6afa..0000000 --- a/datasets/omni/consolidated_dashboard_omni_metadata.example.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "defaults": { - "schema_version": "1.0", - "source_format": "vllm-omni-bench-json", - "runtime": "vllm-omni", - "runtime_version": "vllm-omni-0.30.0", - "vllm_version": "0.30.0", - "vllm_omni_version": "0.30.0", - "benchmark_tool": "vllm-omni-bench-serve", - "load_generator": "vllm-omni-bench-serve", - "image_tag": "example/vllm-omni:0.30.0", - "cluster": "demo", - "namespace": "demo", - "modality": "audio", - "input_modality": "text", - "output_modality": "audio", - "task_type": "voice_clone", - "dataset": "seed-tts", - "dataset_path": "/data/datasets/seed-tts", - "locale": "en", - "num_warmups": 0, - "prefix_caching": false, - "audio_sample_rate_hz": 24000, - "gpu_count": 1, - "tp": 1 - } -} diff --git a/docs/omni-dashboard.md b/docs/omni-dashboard.md index 437b592..72b5830 100644 --- a/docs/omni-dashboard.md +++ b/docs/omni-dashboard.md @@ -22,7 +22,7 @@ benchmark runner → local result JSON + logs → MLflow ## CSV schema -The staged schema is **77 columns**. The canonical header is in `datasets/omni/consolidated_dashboard_omni_tts_template.csv`; the populated CSV is not committed. +The staged schema is **77 columns**. The canonical header is in `manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_tts_template.csv`; the populated CSV is not committed. | Group | Contents | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | @@ -41,12 +41,12 @@ Notes: - `num_prompts` is **N**, the measured requests per benchmark point, excluding warmups and burn-in. - `short_window` is true when the measured duration is below 30 s. - Stage columns are blank when the bench JSON has no stage durations. -- The legacy 165-column template (`consolidated_dashboard_omni_template.csv`) remains for the older converter. The staged dashboard uses the 77-column template. +- The legacy 165-column template (`manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_template.csv`) remains for the older converter. The staged dashboard uses the 77-column template. ## Build ```bash -python3 manual_runs/scripts/build_omni_tts_csv.py \ +python3 manual_runs/scripts/vllm-omni/build_omni_tts_csv.py \ --recipe-root ~/omni-perf-benchmark-recipe \ --output datasets/omni/consolidated_dashboard_omni.csv ``` diff --git a/manual_runs/scripts/vllm-omni/README.md b/manual_runs/scripts/vllm-omni/README.md new file mode 100644 index 0000000..c135280 --- /dev/null +++ b/manual_runs/scripts/vllm-omni/README.md @@ -0,0 +1,70 @@ +# vLLM-Omni Manual Runs + +Scripts for turning manual vLLM-Omni benchmark artifacts into the Omni +dashboard CSV. + +## Scripts + +| Script | Purpose | +| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `build_omni_tts_csv.py` | Build the staged 77-column TTS dashboard CSV from the 3.5 legacy, 3.6 base, and 3.6 Athena results. | +| `build_consolidated_omni_csv.py` | Build the older 165-column consolidated schema used by the legacy converter. | +| `extract_mlflow_runs.py` | Optional MLflow export/backfill helper. Writes `runs.json` so the CSV builder can attach MLflow links when the benchmark files have no run ID. | + +The dashboard reads the finished CSV; it does not import these scripts. + +## Manual workflow + +```text +1. vllm bench serve -> result JSONs (no MLflow ID) +2. export_athena_csv.py -> raw benchmark CSV (no MLflow ID) +3. log_to_mlflow.py -> MLflow runs (IDs live only in MLflow) +4. extract_mlflow_runs.py -> runs.json (IDs copied locally) +5. build_omni_tts_csv.py -> dashboard CSV (IDs joined into rows) +6. dashboard / S3 -> MLflow links + logs +``` + +`extract_mlflow_runs.py` is kept as executable documentation for the manual +backfill step. Future runs can avoid it by writing the ID mapping during the +MLflow upload step. + +## Build the staged TTS CSV + +```bash +python3 manual_runs/scripts/vllm-omni/build_omni_tts_csv.py \ + --recipe-root ~/omni-perf-benchmark-recipe \ + --output datasets/omni/consolidated_dashboard_omni.csv +``` + +Optional MLflow backfill: + +```bash +python3 manual_runs/scripts/vllm-omni/extract_mlflow_runs.py \ + --experiment-id \ + --name-regex '' \ + --artifact-pattern 'results/*.json' \ + --artifact-pattern 'logs/*.log' \ + --output-dir ~/Downloads/mlflow-extract + +python3 manual_runs/scripts/vllm-omni/build_omni_tts_csv.py \ + --recipe-root ~/omni-perf-benchmark-recipe \ + --mlflow-runs-json ~/Downloads/mlflow-extract/runs.json \ + --output datasets/omni/consolidated_dashboard_omni.csv +``` + +## Build the legacy schema + +```bash +python3 manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py \ + [--metadata-json PATH] \ + --output datasets/omni/consolidated_dashboard_omni_legacy.csv +``` + +See `docs/omni-dashboard.md` for the schema, dashboard sections, and deployment +configuration. + +## Requirements + +- Python 3.9+ +- `mlflow` only for `extract_mlflow_runs.py` +- `pandas`/`streamlit` only for running the dashboard diff --git a/manual_runs/scripts/build_consolidated_omni_csv.py b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py similarity index 99% rename from manual_runs/scripts/build_consolidated_omni_csv.py rename to manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py index 9e92b51..7e0c217 100644 --- a/manual_runs/scripts/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py @@ -6,8 +6,8 @@ fields; the dashboard should filter on modality/task_type. Usage: - python3 build_consolidated_omni_csv.py \ - --metadata-json datasets/omni/consolidated_dashboard_omni_metadata.example.json \ + python3 manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py \ + [--metadata-json PATH] \ --omni-json path/to/omni-json/ \ --legacy-csv path/to/legacy-benchmark_results.csv \ --output datasets/omni/consolidated_dashboard_omni_legacy.csv @@ -790,7 +790,8 @@ def main(): "--output", default="datasets/omni/consolidated_dashboard_omni_legacy.csv" ) ap.add_argument( - "--template", default="datasets/omni/consolidated_dashboard_omni_template.csv" + "--template", + default="manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_template.csv", ) ap.add_argument("--include-calibration", action="store_true") ap.add_argument( diff --git a/manual_runs/scripts/build_omni_tts_csv.py b/manual_runs/scripts/vllm-omni/build_omni_tts_csv.py similarity index 98% rename from manual_runs/scripts/build_omni_tts_csv.py rename to manual_runs/scripts/vllm-omni/build_omni_tts_csv.py index 983e5eb..5651591 100644 --- a/manual_runs/scripts/build_omni_tts_csv.py +++ b/manual_runs/scripts/vllm-omni/build_omni_tts_csv.py @@ -10,13 +10,13 @@ 3. 3.6 Athena -- results/athena/benchmark_results.csv Qwen3-TTS CustomVoice rows Usage: - python3 build_omni_tts_csv.py [--recipe-root PATH] [--output PATH] + python3 manual_runs/scripts/vllm-omni/build_omni_tts_csv.py [--recipe-root PATH] [--output PATH] [--template PATH] [--mlflow-runs-json PATH] Defaults: recipe root ~/omni-perf-benchmark-recipe output /datasets/omni/consolidated_dashboard_omni.csv - template /datasets/omni/consolidated_dashboard_omni_tts_template.csv + template /manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_tts_template.csv --mlflow-runs-json is optional. Pass a saved MLflow runs/search response to fill run IDs that are not present in the local metadata files. @@ -35,7 +35,11 @@ DEFAULT_RECIPE_ROOT = os.path.expanduser("~/omni-perf-benchmark-recipe") TEMPLATE_REL = os.path.join( - "datasets", "omni", "consolidated_dashboard_omni_tts_template.csv" + "manual_runs", + "scripts", + "vllm-omni", + "templates", + "consolidated_dashboard_omni_tts_template.csv", ) OUTPUT_REL = os.path.join("datasets", "omni", "consolidated_dashboard_omni.csv") @@ -922,7 +926,14 @@ def build_athena(recipe_root, header, mlflow_index=None): def dashboard_repo_root(): """Return the dashboard repository root.""" - return os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + path = os.path.dirname(os.path.abspath(__file__)) + while True: + if os.path.isdir(os.path.join(path, "manual_runs", "scripts")): + return path + parent = os.path.dirname(path) + if parent == path: + return os.getcwd() + path = parent def usage(): diff --git a/manual_runs/scripts/extract_mlflow_runs.py b/manual_runs/scripts/vllm-omni/extract_mlflow_runs.py similarity index 99% rename from manual_runs/scripts/extract_mlflow_runs.py rename to manual_runs/scripts/vllm-omni/extract_mlflow_runs.py index 5873858..ebbb072 100644 --- a/manual_runs/scripts/extract_mlflow_runs.py +++ b/manual_runs/scripts/vllm-omni/extract_mlflow_runs.py @@ -7,7 +7,7 @@ export MLFLOW_TRACKING_USERNAME=... export MLFLOW_TRACKING_PASSWORD=... - python manual_runs/scripts/extract_mlflow_runs.py \ + python manual_runs/scripts/vllm-omni/extract_mlflow_runs.py \ --experiment-id \ --name-regex '^my-benchmark-run_.*_c[0-9]+$' \ --artifact-pattern 'results/*.json' \ diff --git a/datasets/omni/consolidated_dashboard_omni_template.csv b/manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_template.csv similarity index 100% rename from datasets/omni/consolidated_dashboard_omni_template.csv rename to manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_template.csv diff --git a/datasets/omni/consolidated_dashboard_omni_tts_template.csv b/manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_tts_template.csv similarity index 100% rename from datasets/omni/consolidated_dashboard_omni_tts_template.csv rename to manual_runs/scripts/vllm-omni/templates/consolidated_dashboard_omni_tts_template.csv diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 89fe82c..795134e 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -9,15 +9,41 @@ import pytest ROOT = Path(__file__).resolve().parents[1] -OMNI_DIR = ROOT / "datasets" / "omni" -TEMPLATE = OMNI_DIR / "consolidated_dashboard_omni_template.csv" -TTS_TEMPLATE = OMNI_DIR / "consolidated_dashboard_omni_tts_template.csv" -METADATA = OMNI_DIR / "consolidated_dashboard_omni_metadata.example.json" -CONVERTER = ROOT / "manual_runs" / "scripts" / "build_consolidated_omni_csv.py" +TEMPLATES_DIR = ROOT / "manual_runs" / "scripts" / "vllm-omni" / "templates" +TEMPLATE = TEMPLATES_DIR / "consolidated_dashboard_omni_template.csv" +TTS_TEMPLATE = TEMPLATES_DIR / "consolidated_dashboard_omni_tts_template.csv" +CONVERTER = ( + ROOT / "manual_runs" / "scripts" / "vllm-omni" / "build_consolidated_omni_csv.py" +) REQUIRED = {"model", "task_type", "benchmark_tool", "load_generator"} +def _metadata_file(tmp_path): + path = tmp_path / "metadata.json" + path.write_text( + json.dumps( + { + "defaults": { + "source_format": "vllm-omni-bench-json", + "runtime": "vllm-omni", + "benchmark_tool": "vllm-omni-bench-serve", + "load_generator": "vllm-omni-bench-serve", + "task_type": "voice_clone", + "dataset": "seed-tts", + "modality": "audio", + "input_modality": "text", + "output_modality": "audio", + "audio_sample_rate_hz": 24000, + "gpu_count": 1, + "tp": 1, + } + } + ) + ) + return path + + def _read_csv(path): with path.open(newline="") as handle: return list(csv.DictReader(handle)) @@ -82,7 +108,7 @@ def test_converter_smoke(tmp_path): "--omni-json", str(json_path), "--metadata-json", - str(METADATA), + str(_metadata_file(tmp_path)), "--output", str(output), "--template", @@ -122,7 +148,7 @@ def test_asr_distinct_measurements_without_run_id(tmp_path): "--asr-csv", str(input_csv), "--metadata-json", - str(METADATA), + str(_metadata_file(tmp_path)), "--output", str(output), "--template", @@ -156,7 +182,7 @@ def test_asr_exact_replays_still_deduplicate(tmp_path): "--asr-csv", str(input_csv), "--metadata-json", - str(METADATA), + str(_metadata_file(tmp_path)), "--output", str(output), "--template", diff --git a/tests/test_omni_mlflow_lookup.py b/tests/test_omni_mlflow_lookup.py index c9809eb..8a81c78 100644 --- a/tests/test_omni_mlflow_lookup.py +++ b/tests/test_omni_mlflow_lookup.py @@ -5,7 +5,7 @@ from pathlib import Path ROOT = Path(__file__).resolve().parents[1] -BUILDER = ROOT / "manual_runs" / "scripts" / "build_omni_tts_csv.py" +BUILDER = ROOT / "manual_runs" / "scripts" / "vllm-omni" / "build_omni_tts_csv.py" def _builder_module(): @@ -15,6 +15,11 @@ def _builder_module(): return module +def test_builder_repo_root(): + module = _builder_module() + assert Path(module.dashboard_repo_root()) == ROOT + + def test_deployment_lookup_precedes_duplicate_run_name(tmp_path): runs = { "runs": [ From dec87c90bfc06e4f004ce6d4d04674413dbe8cd5 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 3 Dec 2026 13:37:55 -0500 Subject: [PATCH 70/74] Fix Omni CSV identity and UI edge cases - Preserve legacy rows by including benchmark_run_id in the dedup key. - Preserve ASR defaults when source columns are absent. - Reject ambiguous MLflow name fallbacks with conflicting deployments. - Read Streamlit's curve_number field for plot selections. - Save chart customization in on_change callbacks. - Clarify README commands and MLflow tracking prerequisites. Co-Authored-By: Claude Code --- manual_runs/scripts/vllm-omni/README.md | 10 ++- .../vllm-omni/build_consolidated_omni_csv.py | 60 ++++++++------ .../scripts/vllm-omni/build_omni_tts_csv.py | 15 +++- omni_dashboard.py | 27 +++++-- tests/test_omni_csv.py | 81 +++++++++++++++++++ tests/test_omni_mlflow_lookup.py | 2 +- 6 files changed, 158 insertions(+), 37 deletions(-) diff --git a/manual_runs/scripts/vllm-omni/README.md b/manual_runs/scripts/vllm-omni/README.md index c135280..764d6f1 100644 --- a/manual_runs/scripts/vllm-omni/README.md +++ b/manual_runs/scripts/vllm-omni/README.md @@ -39,6 +39,11 @@ python3 manual_runs/scripts/vllm-omni/build_omni_tts_csv.py \ Optional MLflow backfill: ```bash +export MLFLOW_TRACKING_URI='' +export MLFLOW_WORKSPACE='' +export MLFLOW_TRACKING_USERNAME='' +export MLFLOW_TRACKING_PASSWORD='' + python3 manual_runs/scripts/vllm-omni/extract_mlflow_runs.py \ --experiment-id \ --name-regex '' \ @@ -56,10 +61,13 @@ python3 manual_runs/scripts/vllm-omni/build_omni_tts_csv.py \ ```bash python3 manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py \ - [--metadata-json PATH] \ + --omni-json path/to/omni-json/ \ + --legacy-csv path/to/legacy-benchmark_results.csv \ --output datasets/omni/consolidated_dashboard_omni_legacy.csv ``` +Add `--metadata-json PATH` when you have defaults or pattern overrides to supply. + See `docs/omni-dashboard.md` for the schema, dashboard sections, and deployment configuration. diff --git a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py index 7e0c217..dd60524 100644 --- a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py @@ -683,52 +683,61 @@ def build_asr_row(r, path, metadata): raise ValueError(f"{relpath(path)}: ASR row missing model or wer") row = dict.fromkeys(CANONICAL_COLUMNS, "") row.update({k: v for k, v in defaults.items() if k in row}) + + def _value(alias, field): + return pick(r, ASR_ALIASES[alias]) or row.get(field, "") + row["schema_version"] = defaults.get("schema_version", SCHEMA_VERSION) row["source_format"] = "asr-csv" row["source_file"] = relpath(path) - row["timestamp_utc"] = pick(r, ASR_ALIASES["timestamp_utc"]) + row["timestamp_utc"] = _value("timestamp_utc", "timestamp_utc") row["repetition"] = "1" row["model"] = model - row["runtime"] = pick(r, ASR_ALIASES["runtime"]) or defaults.get("runtime", "vllm") - row["runtime_version"] = pick(r, ASR_ALIASES["runtime_version"]) - row["image_tag"] = pick(r, ASR_ALIASES["image_tag"]) - row["accelerator"] = pick(r, ASR_ALIASES["accelerator"]) - row["tp"] = fnum(pick(r, ASR_ALIASES["tp"])) + row["runtime"] = _value("runtime", "runtime") or defaults.get("runtime", "vllm") + row["runtime_version"] = _value("runtime_version", "runtime_version") + row["image_tag"] = _value("image_tag", "image_tag") + row["accelerator"] = _value("accelerator", "accelerator") + row["tp"] = fnum(_value("tp", "tp")) row["modality"] = "audio" row["input_modality"] = "audio" row["output_modality"] = "text" row["task_type"] = "asr_transcription" - row["benchmark_tool"] = pick(r, ASR_ALIASES["benchmark_tool"]) or defaults.get( + row["benchmark_tool"] = _value("benchmark_tool", "benchmark_tool") or defaults.get( "benchmark_tool", "" ) - row["benchmark_tool_version"] = pick(r, ASR_ALIASES["benchmark_tool_version"]) + row["benchmark_tool_version"] = _value( + "benchmark_tool_version", "benchmark_tool_version" + ) row["load_generator"] = ( pick(r, ASR_ALIASES["load_generator"]) + or row.get("load_generator") or row["benchmark_tool"] - or defaults.get("load_generator", "") ) - row["dataset"] = pick(r, ASR_ALIASES["dataset"]) - row["dataset_split"] = pick(r, ASR_ALIASES["dataset_split"]) - row["language"] = pick(r, ASR_ALIASES["language"]) - row["num_utterances"] = fnum(pick(r, ASR_ALIASES["num_utterances"])) + row["dataset"] = _value("dataset", "dataset") + row["dataset_split"] = _value("dataset_split", "dataset_split") + row["language"] = _value("language", "language") + row["num_utterances"] = fnum(_value("num_utterances", "num_utterances")) row["wer"] = fnum(wer) - row["wer_ci_lower"] = fnum(pick(r, ASR_ALIASES["wer_ci_lower"])) - row["wer_ci_upper"] = fnum(pick(r, ASR_ALIASES["wer_ci_upper"])) - row["rtfx"] = fnum(pick(r, ASR_ALIASES["rtfx"])) + row["wer_ci_lower"] = fnum(_value("wer_ci_lower", "wer_ci_lower")) + row["wer_ci_upper"] = fnum(_value("wer_ci_upper", "wer_ci_upper")) + row["rtfx"] = fnum(_value("rtfx", "rtfx")) row["transcription_throughput_utterances_s"] = fnum( - pick(r, ASR_ALIASES["transcription_throughput_utterances_s"]) + _value( + "transcription_throughput_utterances_s", + "transcription_throughput_utterances_s", + ) ) row["audio_input_duration_s_total"] = fnum( - pick(r, ASR_ALIASES["audio_input_duration_s_total"]) + _value("audio_input_duration_s_total", "audio_input_duration_s_total") ) - row["normalization"] = pick(r, ASR_ALIASES["normalization"]) - row["duration_s"] = fnum(pick(r, ASR_ALIASES["duration_s"])) + row["normalization"] = _value("normalization", "normalization") + row["duration_s"] = fnum(_value("duration_s", "duration_s")) row["successful_requests"] = row["num_utterances"] - row["cluster"] = pick(r, ASR_ALIASES["cluster"]) - row["namespace"] = pick(r, ASR_ALIASES["namespace"]) - row["deployment_uuid"] = pick(r, ASR_ALIASES["deployment_uuid"]) - row["mlflow_run_id"] = pick(r, ASR_ALIASES["mlflow_run_id"]) - row["mlflow_experiment_id"] = pick(r, ASR_ALIASES["mlflow_experiment_id"]) + row["cluster"] = _value("cluster", "cluster") + row["namespace"] = _value("namespace", "namespace") + row["deployment_uuid"] = _value("deployment_uuid", "deployment_uuid") + row["mlflow_run_id"] = _value("mlflow_run_id", "mlflow_run_id") + row["mlflow_experiment_id"] = _value("mlflow_experiment_id", "mlflow_experiment_id") row["quality_metric"] = "wer" row["quality_value"] = fnum(wer) suffix = row["mlflow_run_id"] or _asr_identity_suffix(row) @@ -855,6 +864,7 @@ def main(): row.get("concurrency", ""), row.get("request_rate", ""), row.get("run_name", ""), + row.get("benchmark_run_id", ""), row.get("repetition", ""), ) if key in seen: diff --git a/manual_runs/scripts/vllm-omni/build_omni_tts_csv.py b/manual_runs/scripts/vllm-omni/build_omni_tts_csv.py index 5651591..1d080f6 100644 --- a/manual_runs/scripts/vllm-omni/build_omni_tts_csv.py +++ b/manual_runs/scripts/vllm-omni/build_omni_tts_csv.py @@ -250,14 +250,14 @@ def _pairs(value): if not run_id: continue name = as_text(tags.get("mlflow.runName")) - if name: - by_name[name] = run_id deployment_uuid = as_text( pick(tags.get("deployment_uuid"), params.get("deployment_uuid")) ) concurrency = concurrency_str( pick(tags.get("concurrency"), params.get("max_concurrency")) ) + if name: + by_name.setdefault(name, []).append((deployment_uuid, run_id)) if deployment_uuid and concurrency: by_uuid_concurrency[(deployment_uuid, concurrency)] = run_id return {"by_name": by_name, "by_uuid_concurrency": by_uuid_concurrency} @@ -272,7 +272,16 @@ def mlflow_run_id_for(mlflow_index, run_name, deployment_uuid, concurrency): ) if run_id: return run_id - return mlflow_index.get("by_name", {}).get(run_name, "") + candidates = [ + candidate_run_id + for candidate_deployment, candidate_run_id in mlflow_index.get( + "by_name", {} + ).get(run_name, []) + if not deployment_uuid + or not candidate_deployment + or candidate_deployment == deployment_uuid + ] + return candidates[0] if len(candidates) == 1 else "" def slug(text): diff --git a/omni_dashboard.py b/omni_dashboard.py index b8f8748..b156e43 100644 --- a/omni_dashboard.py +++ b/omni_dashboard.py @@ -1702,7 +1702,11 @@ def _merge_plot_selection(): points = st.session_state["omni_perf_chart"]["selection"]["points"] merged = set(st.session_state.get("omni_perf_lines", [])) for point in points or []: - curve = point.get("curveNumber") if isinstance(point, dict) else None + curve = ( + point.get("curve_number", point.get("curveNumber")) + if isinstance(point, dict) + else None + ) if curve is not None and 0 <= curve < len(fig.data): merged.add(fig.data[curve].meta or fig.data[curve].name) st.session_state["omni_perf_lines"] = sorted(merged) @@ -1792,13 +1796,25 @@ def _clear_comparison(): selected_series.encode(), usedforsecurity=False ).hexdigest()[:10] ) - selected_color = st.color_picker( + + def _save_custom_color(series=selected_series, key=color_key): + updated = dict(st.session_state.get("omni_perf_custom_colors", {})) + updated[series] = st.session_state[key] + st.session_state["omni_perf_custom_colors"] = updated + + def _save_custom_shape(series=selected_series, key=shape_key): + updated = dict(st.session_state.get("omni_perf_custom_shapes", {})) + updated[series] = st.session_state[key] + st.session_state["omni_perf_custom_shapes"] = updated + + st.color_picker( "Line color", custom_colors.get(selected_series, default_color_map[selected_series]), key=color_key, + on_change=_save_custom_color, ) current_shape = custom_shapes.get(selected_series, "circle") - selected_shape = st.selectbox( + st.selectbox( "Marker shape", MARKER_SYMBOLS, index=( @@ -1807,11 +1823,8 @@ def _clear_comparison(): else 0 ), key=shape_key, + on_change=_save_custom_shape, ) - custom_colors[selected_series] = selected_color - custom_shapes[selected_series] = selected_shape - st.session_state["omni_perf_custom_colors"] = custom_colors - st.session_state["omni_perf_custom_shapes"] = custom_shapes def _concurrency_sort(value: str) -> tuple: diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 795134e..358afb7 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -199,5 +199,86 @@ def test_asr_exact_replays_still_deduplicate(tmp_path): assert rows[0]["run_name"].startswith("asr-example/asr-1b-librispeech-en-") +def _asr_metadata_file(tmp_path): + path = tmp_path / "asr-metadata.json" + path.write_text( + json.dumps( + { + "asr_defaults": { + "runtime_version": "asr-runtime-v1", + "dataset": "librispeech", + "cluster": "hera", + "benchmark_tool": "asr-bench", + "load_generator": "asr-bench", + } + } + ) + ) + return path + + +def test_legacy_distinct_json_files_are_preserved(tmp_path): + legacy_csv = tmp_path / "legacy.csv" + legacy_csv.write_text( + "model,version,concurrency,request_rate,json_file,task_type\n" + "example/tts-1b,v1,1,inf,a.json,voice_clone\n" + "example/tts-1b,v1,1,inf,b.json,voice_clone\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--legacy-csv", + str(legacy_csv), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 2 + assert {row["benchmark_run_id"] for row in rows} == {"a.json", "b.json"} + + +def test_asr_defaults_survive_missing_source_columns(tmp_path): + input_csv = tmp_path / "asr.csv" + input_csv.write_text("model,wer\nexample/asr-1b,10.0\n") + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--asr-csv", + str(input_csv), + "--metadata-json", + str(_asr_metadata_file(tmp_path)), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + row = _read_csv(output)[0] + assert row["runtime_version"] == "asr-runtime-v1" + assert row["dataset"] == "librispeech" + assert row["cluster"] == "hera" + + if __name__ == "__main__": pytest.main([__file__]) diff --git a/tests/test_omni_mlflow_lookup.py b/tests/test_omni_mlflow_lookup.py index 8a81c78..39e60c3 100644 --- a/tests/test_omni_mlflow_lookup.py +++ b/tests/test_omni_mlflow_lookup.py @@ -54,4 +54,4 @@ def test_deployment_lookup_precedes_duplicate_run_name(tmp_path): assert module.mlflow_run_id_for(index, "same-name", "deployment-a", "1") == "run-a" assert module.mlflow_run_id_for(index, "same-name", "deployment-b", "1") == "run-b" - assert module.mlflow_run_id_for(index, "same-name", "deployment-c", "1") == "run-b" + assert module.mlflow_run_id_for(index, "same-name", "deployment-c", "1") == "" From 1c8cb213ab21b6712766c6cc5cf2373a42a8f032 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 3 Dec 2026 13:45:08 -0500 Subject: [PATCH 71/74] Fingerprint legacy rows when json_file is missing Use a stable measurement fingerprint in the fallback run name so distinct legacy measurements are preserved while exact replays still deduplicate. Add regression tests for both cases. Co-Authored-By: Claude Code --- .../vllm-omni/build_consolidated_omni_csv.py | 30 +++++++-- tests/test_omni_csv.py | 63 +++++++++++++++++++ 2 files changed, 89 insertions(+), 4 deletions(-) diff --git a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py index dd60524..dcacfe1 100644 --- a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py @@ -522,6 +522,24 @@ def normalize_task(task): return {"custom_voice": "default_voice"}.get(task, task) +def _legacy_measurement_fingerprint(row): + """Return a stable fingerprint of legacy measurement fields.""" + fields = ( + "timestamp_utc", + "request_throughput_rps", + "audio_throughput_x", + "duration_s", + "successful_requests", + "audio_rtf_mean", + "audio_rtf_p95", + "audio_ttfp_ms_mean", + "audio_duration_s_mean", + "audio_underrun_s_mean", + ) + payload = "|".join(f"{field}={row.get(field, '')}" for field in fields) + return hashlib.sha1(payload.encode("utf-8"), usedforsecurity=False).hexdigest()[:12] + + def build_legacy_row(r, path, metadata): """Build a canonical row from the 3.5 CSV.""" defaults = metadata.get("legacy_defaults", {}) @@ -592,10 +610,14 @@ def build_legacy_row(r, path, metadata): elif legacy_task == "voice_design": row["extra_body_json"] = '{"task_type":"VoiceDesign"}' row["prefix_caching"] = defaults.get("prefix_caching", "false") - row["run_name"] = ( - f"legacy-3.5-{row['model']}-{row['task_type']}-{row['runtime_version']}-c{row['concurrency']}" - ) - row["benchmark_run_id"] = r.get("json_file", "") or row["run_name"] + base_run_name = f"legacy-3.5-{row['model']}-{row['task_type']}-{row['runtime_version']}-c{row['concurrency']}" + json_file = r.get("json_file", "") + if json_file: + row["run_name"] = base_run_name + row["benchmark_run_id"] = json_file + else: + row["run_name"] = f"{base_run_name}-{_legacy_measurement_fingerprint(row)}" + row["benchmark_run_id"] = row["run_name"] row["notes"] = defaults.get("notes", "Imported from legacy benchmark CSV") row["extra_json"] = jdump( { diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 358afb7..1cc031c 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -199,6 +199,69 @@ def test_asr_exact_replays_still_deduplicate(tmp_path): assert rows[0]["run_name"].startswith("asr-example/asr-1b-librispeech-en-") +def test_legacy_distinct_measurements_without_json_file(tmp_path): + legacy_csv = tmp_path / "legacy.csv" + legacy_csv.write_text( + "model,version,concurrency,request_rate,task_type,request_throughput\n" + "example/tts-1b,v1,1,inf,voice_clone,1.0\n" + "example/tts-1b,v1,1,inf,voice_clone,2.0\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--legacy-csv", + str(legacy_csv), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 2 + assert len({row["run_name"] for row in rows}) == 2 + + +def test_legacy_exact_replays_without_json_file_deduplicate(tmp_path): + legacy_csv = tmp_path / "legacy.csv" + legacy_csv.write_text( + "model,version,concurrency,request_rate,task_type,request_throughput\n" + "example/tts-1b,v1,1,inf,voice_clone,1.0\n" + "example/tts-1b,v1,1,inf,voice_clone,1.0\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--legacy-csv", + str(legacy_csv), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 1 + + def _asr_metadata_file(tmp_path): path = tmp_path / "asr-metadata.json" path.write_text( From ab359c7384451a83b75bf39d16aa1cf3d430d363 Mon Sep 17 00:00:00 2001 From: aas008 Date: Thu, 3 Dec 2026 13:49:54 -0500 Subject: [PATCH 72/74] Include all mapped measurements in legacy fingerprint Expand the fallback identity to cover every mapped latency/throughput percentile and add a regression test for a differing audio TTFP P95. Co-Authored-By: Claude Code --- .../vllm-omni/build_consolidated_omni_csv.py | 30 +++++++++++------ tests/test_omni_csv.py | 32 +++++++++++++++++++ 2 files changed, 53 insertions(+), 9 deletions(-) diff --git a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py index dcacfe1..cf9ccc4 100644 --- a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py @@ -524,18 +524,30 @@ def normalize_task(task): def _legacy_measurement_fingerprint(row): """Return a stable fingerprint of legacy measurement fields.""" - fields = ( + fields = [ "timestamp_utc", - "request_throughput_rps", - "audio_throughput_x", + "num_prompts", + "request_rate", "duration_s", "successful_requests", - "audio_rtf_mean", - "audio_rtf_p95", - "audio_ttfp_ms_mean", - "audio_duration_s_mean", - "audio_underrun_s_mean", - ) + "errored_requests", + "request_throughput_rps", + "audio_throughput_x", + "audio_output_duration_s_total", + "audio_sample_rate_hz", + "e2el_ms_min", + "e2el_ms_max", + ] + for prefix in ( + "audio_rtf", + "audio_ttfp_ms", + "e2el_ms", + "ttft_ms", + "audio_duration_s", + "audio_underrun_s", + ): + for stat in ("mean", "median", "std", "p25", "p50", "p75", "p90", "p95", "p99"): + fields.append(f"{prefix}_{stat}") payload = "|".join(f"{field}={row.get(field, '')}" for field in fields) return hashlib.sha1(payload.encode("utf-8"), usedforsecurity=False).hexdigest()[:12] diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 1cc031c..72b660a 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -231,6 +231,38 @@ def test_legacy_distinct_measurements_without_json_file(tmp_path): assert len({row["run_name"] for row in rows}) == 2 +def test_legacy_latency_percentile_distinguishes_rows(tmp_path): + legacy_csv = tmp_path / "legacy.csv" + legacy_csv.write_text( + "model,version,concurrency,request_rate,task_type,audio_ttfp_p95\n" + "example/tts-1b,v1,1,inf,voice_clone,100\n" + "example/tts-1b,v1,1,inf,voice_clone,200\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--legacy-csv", + str(legacy_csv), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 2 + assert len({row["run_name"] for row in rows}) == 2 + + def test_legacy_exact_replays_without_json_file_deduplicate(tmp_path): legacy_csv = tmp_path / "legacy.csv" legacy_csv.write_text( From 675750cc8d78ecb15673ef60d06d92fcc127b2a4 Mon Sep 17 00:00:00 2001 From: aas008 Date: Fri, 4 Dec 2026 13:54:44 -0500 Subject: [PATCH 73/74] Ignore Omni builder outputs and mark offline ASR - Ignore the legacy dashboard CSV, its sidecars, and the local Omni logs. - Use an explicit `offline` load generator for ASR rows without one, instead of falling back to the benchmark tool. - Add a regression test for offline ASR rows. Co-Authored-By: Claude Code --- .gitignore | 5 +++- .../vllm-omni/build_consolidated_omni_csv.py | 4 +-- tests/test_omni_csv.py | 28 +++++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5428386..0234e2e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,9 +17,12 @@ __pycache__/ !mlperf-data/summaries/*.csv !datasets/summaries/*.csv !manual_runs/scripts/vllm-omni/templates/*.csv -# Populated local dataset contains deployment/MLflow IDs; keep it out of git. +# Populated local datasets and builder outputs contain deployment/MLflow IDs; keep them out of git. datasets/omni/consolidated_dashboard_omni.csv datasets/omni/consolidated_dashboard_omni.csv.* +datasets/omni/consolidated_dashboard_omni_legacy.csv +datasets/omni/consolidated_dashboard_omni_legacy.csv.* +datasets/omni/logs/ vllm-cpu-perf-eval/ # Ignore large original dataset files in datasets/ (pkl, parquet, npy) diff --git a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py index cf9ccc4..d68ce30 100644 --- a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py @@ -743,9 +743,7 @@ def _value(alias, field): "benchmark_tool_version", "benchmark_tool_version" ) row["load_generator"] = ( - pick(r, ASR_ALIASES["load_generator"]) - or row.get("load_generator") - or row["benchmark_tool"] + pick(r, ASR_ALIASES["load_generator"]) or row.get("load_generator") or "offline" ) row["dataset"] = _value("dataset", "dataset") row["dataset_split"] = _value("dataset_split", "dataset_split") diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index 72b660a..fffb4ce 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -375,5 +375,33 @@ def test_asr_defaults_survive_missing_source_columns(tmp_path): assert row["cluster"] == "hera" +def test_asr_offline_run_is_not_labeled_as_benchmark_tool(tmp_path): + input_csv = tmp_path / "asr.csv" + input_csv.write_text("model,wer,benchmark_tool\nexample/asr-1b,10.0,asr-bench\n") + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--asr-csv", + str(input_csv), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + row = _read_csv(output)[0] + assert row["benchmark_tool"] == "asr-bench" + assert row["load_generator"] == "offline" + + if __name__ == "__main__": pytest.main([__file__]) From f8ff460d55d628d1e53559d1a8e26c390e3f220e Mon Sep 17 00:00:00 2001 From: aas008 Date: Fri, 4 Dec 2026 14:03:43 -0500 Subject: [PATCH 74/74] Include legacy config in fingerprint and preserve ASR zero - Fingerprint tp, accelerator, and runtime_args so legacy rows with different configurations are not deduplicated together. - Treat numeric zero as a real ASR value instead of replacing it with a default. - Add regression tests for both cases. Co-Authored-By: Claude Code --- .../vllm-omni/build_consolidated_omni_csv.py | 6 +- tests/test_omni_csv.py | 72 +++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) diff --git a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py index d68ce30..f547028 100644 --- a/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py +++ b/manual_runs/scripts/vllm-omni/build_consolidated_omni_csv.py @@ -525,6 +525,9 @@ def normalize_task(task): def _legacy_measurement_fingerprint(row): """Return a stable fingerprint of legacy measurement fields.""" fields = [ + "tp", + "accelerator", + "runtime_args", "timestamp_utc", "num_prompts", "request_rate", @@ -719,7 +722,8 @@ def build_asr_row(r, path, metadata): row.update({k: v for k, v in defaults.items() if k in row}) def _value(alias, field): - return pick(r, ASR_ALIASES[alias]) or row.get(field, "") + value = pick(r, ASR_ALIASES[alias]) + return value if value not in (None, "") else row.get(field, "") row["schema_version"] = defaults.get("schema_version", SCHEMA_VERSION) row["source_format"] = "asr-csv" diff --git a/tests/test_omni_csv.py b/tests/test_omni_csv.py index fffb4ce..9e62106 100644 --- a/tests/test_omni_csv.py +++ b/tests/test_omni_csv.py @@ -403,5 +403,77 @@ def test_asr_offline_run_is_not_labeled_as_benchmark_tool(tmp_path): assert row["load_generator"] == "offline" +def test_legacy_configuration_distinguishes_rows(tmp_path): + legacy_csv = tmp_path / "legacy.csv" + legacy_csv.write_text( + "model,version,concurrency,request_rate,task_type,request_throughput,tp\n" + "example/tts-1b,v1,1,inf,voice_clone,1.0,1\n" + "example/tts-1b,v1,1,inf,voice_clone,1.0,2\n" + ) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--legacy-csv", + str(legacy_csv), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + rows = _read_csv(output) + assert len(rows) == 2 + assert len({row["run_name"] for row in rows}) == 2 + + +def test_asr_numeric_zero_is_not_replaced_by_default(tmp_path): + input_json = tmp_path / "asr.json" + input_json.write_text( + json.dumps( + { + "model": "example/asr-1b", + "wer": 10.0, + "wer_ci_lower": 0, + "wer_ci_upper": 2, + } + ) + ) + metadata = tmp_path / "metadata.json" + metadata.write_text(json.dumps({"asr_defaults": {"wer_ci_lower": 2}})) + output = tmp_path / "consolidated.csv" + template = tmp_path / "template.csv" + + subprocess.run( + [ + sys.executable, + str(CONVERTER), + "--asr-json", + str(input_json), + "--metadata-json", + str(metadata), + "--output", + str(output), + "--template", + str(template), + ], + check=True, + cwd=ROOT, + capture_output=True, + text=True, + ) + + row = _read_csv(output)[0] + assert row["wer_ci_lower"] == "0" + + if __name__ == "__main__": pytest.main([__file__])