-
Notifications
You must be signed in to change notification settings - Fork 163
Add AudioBench and Librispeech-PC benchmarks for speech and audio language models #1043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f77e2ab
Add AudioBench benchmark for speech and audio language models
Jorjeous 0a600d4
update prepare.py for audiobench
Jorjeous f23e8ce
Fix on mmau-pro prepare.py
Jorjeous e734aab
add absolute path's to prepare.py
Jorjeous 47122b4
update names
Jorjeous 325868e
update destination for downloading
Jorjeous c48c7b8
Placeholder for proof verification paper (#1037)
smahdavi4 460f3e6
Converting ICPC25 to ICPC evaluation (#1045)
mehrzads 83b3f7f
LibriSpeech PC Benchmark Evaluation
melllinia 09dae53
Testline
Jorjeous 5e787a5
revert
Jorjeous ffbfc0f
upd strtucture
Jorjeous 88f72b7
Change judge config to align with Audiobench's
Jorjeous 0a87820
upd __init__ files
Jorjeous 232c5e4
changed organization of sets + minor additions
Jorjeous 311f638
Revert "Converting ICPC25 to ICPC evaluation (#1045)"
Jorjeous 2990929
Revert "Placeholder for proof verification paper (#1037)"
Jorjeous b8981f4
linter
Jorjeous 90cec88
update .gitignore
Jorjeous be2cd1a
add LS-PnC
Jorjeous aaf7814
Add LibriSpeech-PC documentation and fix jiwer import
melllinia a3a1169
Improving mmau-pro metric calculation
melllinia 771f2e6
Merge remote-tracking branch 'origin/main' into librispeech-pc-eval
melllinia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """AudioBench: A comprehensive benchmark for speech and audio language models. | ||
|
|
||
| AudioBench evaluates models across multiple tasks: | ||
| - ASR (Automatic Speech Recognition) | ||
| - Translation (speech-to-text translation) | ||
| - Speech QA (question answering based on audio) | ||
| - Audio understanding (emotion, gender, accent recognition, etc.) | ||
|
|
||
| The benchmark is organized into two main categories: | ||
| - nonjudge: Tasks evaluated with automatic metrics (WER, BLEU) | ||
| - judge: Tasks requiring LLM-as-a-judge evaluation | ||
| """ | ||
|
|
||
| DATASET_GROUP = "speechlm" | ||
| IS_BENCHMARK_GROUP = True | ||
| SCORE_MODULE = "nemo_skills.evaluation.metrics.speechlm_metrics" | ||
|
|
||
| # Top-level benchmarks: evaluate all judge or all nonjudge datasets | ||
| BENCHMARKS = { | ||
| "audiobench.nonjudge": {}, | ||
| "audiobench.judge": {}, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """AudioBench judge tasks dataset configuration. | ||
|
|
||
| This dataset includes tasks that require LLM-based evaluation such as: | ||
| - Audio captioning | ||
| - Spoken question answering | ||
| - Audio understanding and reasoning | ||
|
|
||
| These tasks require an LLM judge for evaluation, matching MMAU-Pro evaluation setup. | ||
| """ | ||
|
|
||
| # Dataset configuration - CRITICAL: needed for audio to work | ||
| DATASET_GROUP = "speechlm" | ||
| METRICS_TYPE = "speechlm" | ||
| DEFAULT_SPLIT = "test" | ||
| GENERATION_ARGS = "++prompt_format=openai " | ||
|
|
||
| # Judge configuration matching AudioBench official implementation | ||
| # Using Llama-3.1-70B with vllm (can be overridden in run scripts) | ||
| JUDGE_PIPELINE_ARGS = { | ||
| "model": "meta-llama/Meta-Llama-3.1-70B-Instruct", | ||
| "server_type": "vllm", | ||
| "server_gpus": 8, | ||
| "server_args": "--max-model-len 8192 --gpu-memory-utilization 0.95", | ||
| } | ||
| JUDGE_ARGS = "++prompt_config=judge/audiobench ++generation_key=judgement" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """AudioBench non-judge tasks dataset configuration. | ||
|
|
||
| This dataset includes ASR, translation, and other tasks that use | ||
| automatic metrics (WER, BLEU, WER-PC) instead of judge evaluation. | ||
|
|
||
| NO JUDGE REQUIRED - Metrics computed automatically from model outputs. | ||
| """ | ||
|
|
||
| # Dataset configuration - CRITICAL: needed for audio to work | ||
| DATASET_GROUP = "speechlm" | ||
| METRICS_TYPE = "speechlm" | ||
|
|
||
| # Evaluation settings | ||
| EVAL_ARGS = "++eval_type=audiobench " | ||
|
|
||
| # Generation settings - OpenAI format for audio-language models | ||
| GENERATION_ARGS = "++prompt_format=openai " |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to add NVIDIA deployed model instead from this link and check if it works: https://build.nvidia.com/meta/llama-3_1-70b-instruct