-
Notifications
You must be signed in to change notification settings - Fork 163
Adding clan PR with AudioBench and Librispeech PC. #1103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f0ae98e
Adding clan PR with AudioBench and Librispeech PC, already based on u…
Jorjeous eb9112d
upd to multiscore and rabbit considerations
Jorjeous 2894e7e
pre commit fix
Jorjeous af4d5b9
Revritten prepare.py to avoid using cloned repo
Jorjeous 2885824
address rabbit comments
Jorjeous d5edeb8
update prepare.py for librispeech to address rabbit comments
Jorjeous f0f473b
Merge branch 'main' into add-audiobench-librispeech
Jorjeous 9ad76ae
pre commit run
Jorjeous e6e9f4e
add asr leaderboard
Jorjeous 63805be
Merge branch 'main' into add-audiobench-librispeech
Jorjeous b2e82f2
adding to exclude list as set is large
Jorjeous 88eefb2
upd prep for ls
Jorjeous 66ae86b
data dir for librispeech
Jorjeous 3609ba5
upd librispeechpc init
Jorjeous c5e4a3c
exclude librispeech
Jorjeous 48c8be0
pre commit
Jorjeous File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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.audio_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,40 @@ | ||
| # 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 = "audio" | ||
| DEFAULT_SPLIT = "test" | ||
| GENERATION_ARGS = "++prompt_format=openai " | ||
| EVAL_ARGS = "++eval_type=audio " | ||
|
|
||
| # 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 = "audio" | ||
|
|
||
| # Evaluation settings | ||
| EVAL_ARGS = "++eval_type=audio " | ||
|
|
||
| # Generation settings - OpenAI format for audio-language models | ||
| GENERATION_ARGS = "++prompt_format=openai " |
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.
Uh oh!
There was an error while loading. Please reload this page.