-
Notifications
You must be signed in to change notification settings - Fork 349
Support newer versions of MedCalc-Bench #3921
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
yifanmai
merged 15 commits into
stanford-crfm:main
from
Pacific-AI-Corp:chakravarthik27/fix_medcalc_bench_dataset
Jan 13, 2026
+62
−9
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3e15251
Add OpenRouterClient implementation and tests
chakravarthik27 ac04b19
updated: add types and HELM convention as per suggested.
chakravarthik27 0cfba1d
updated: removed unnecessary code
chakravarthik27 bc99bbd
updated: to get model name from request.model instead of request.mode…
chakravarthik27 cbd676e
Merge branch 'stanford-crfm:main' into main
chakravarthik27 02120c8
Merge branch 'stanford-crfm:main' into main
chakravarthik27 311bc4e
fix: module error for "shc_privacy_med" and "shc_proxy_med" run specs
chakravarthik27 2925562
Merge branch 'stanford-crfm:main' into main
chakravarthik27 d7d8ceb
Merge branch 'stanford-crfm:main' into main
chakravarthik27 5f30c51
fix: medcalc_bench dataset path from huggingface
chakravarthik27 2283cc2
feat: add MedCalc-Bench v1.0, v1.1, and v1.2 scenarios and update dat…
chakravarthik27 8848304
fix: update MedCalc-Bench dataset link and improve v1.0 description
chakravarthik27 5bb3014
refactor: consolidate MedCalc-Bench scenario versions into a single f…
chakravarthik27 79c8554
fix: update get_medcalc_bench_spec to handle version parameter and ad…
chakravarthik27 9ffc09b
removed: unrelated to this pr
chakravarthik27 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
44 changes: 44 additions & 0 deletions
44
src/helm/benchmark/scenarios/test_medcalc_bench_scenario.py
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,44 @@ | ||
| import pytest | ||
| from tempfile import TemporaryDirectory | ||
|
|
||
| from helm.benchmark.scenarios.medcalc_bench_scenario import MedCalcBenchScenario | ||
|
|
||
|
|
||
| @pytest.mark.scenarios | ||
| def test_medcalc_bench_scenario(): | ||
| with TemporaryDirectory() as tmpdir: | ||
| # Test for the MedCalc-Bench scenario | ||
| scenario = MedCalcBenchScenario() | ||
| instances = scenario.get_instances(tmpdir) | ||
|
|
||
| assert instances[0].split == "test" | ||
|
|
||
|
|
||
| @pytest.mark.scenarios | ||
| def test_medcalc_bench_v1_0_scenario(): | ||
| with TemporaryDirectory() as tmpdir: | ||
| # Test for the MedCalc-Bench scenario | ||
| scenario = MedCalcBenchScenario() | ||
| instances = scenario.get_instances(tmpdir, "v1.0") | ||
|
|
||
| assert instances[0].split == "test" | ||
|
|
||
|
|
||
| @pytest.mark.scenarios | ||
| def test_medcalc_bench_v1_1_scenario(): | ||
| with TemporaryDirectory() as tmpdir: | ||
| # Test for the MedCalc-Bench scenario | ||
| scenario = MedCalcBenchScenario() | ||
| instances = scenario.get_instances(tmpdir, "v1.1") | ||
|
|
||
| assert instances[0].split == "test" | ||
|
|
||
|
|
||
| @pytest.mark.scenarios | ||
| def test_medcalc_bench_v1_2_scenario(): | ||
| with TemporaryDirectory() as tmpdir: | ||
| # Test for the MedCalc-Bench scenario | ||
| scenario = MedCalcBenchScenario() | ||
| instances = scenario.get_instances(tmpdir, "v1.2") | ||
|
|
||
| assert instances[0].split == "test" |
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.
Revert unrelated change.