-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add more baselines (ModernBERT, CodeSage) and CodeNet fixes #58
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
6 commits
Select commit
Hold shift + click to select a range
7f060dc
chore: add vanilla ModernBERT-base as downstream baseline
EYH0602 e94acba
fix: update CodeNet download URL after IBM DAX CDN retirement
EYH0602 05d36d6
fix: correct `ouput_file_path` typo in CodeNet dataset scripts
EYH0602 b7748c8
chore: add CodeSage-small as downstream baseline
EYH0602 7ad2ed2
chore: add per-task launcher scripts for CodeSage baseline
EYH0602 5f42687
fix: patch Conv1D import for CodeSage compat with transformers >=4.45
EYH0602 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
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
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
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
14 changes: 14 additions & 0 deletions
14
experiments_downstream/Clone-detection-BigCloneBench/clone-bcb_modernbert.sh
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,14 @@ | ||
| #!/bin/bash | ||
| # Downstream evaluation: Clone-detection-BigCloneBench with modernbert | ||
| set -euo pipefail | ||
|
|
||
| # Parse CUDA device argument (default: 0) | ||
| CUDA_DEVICE="${1:-0}" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
|
|
||
| export CUDA_VISIBLE_DEVICES="$CUDA_DEVICE" | ||
|
|
||
| cd "$ROOT_DIR/downstream/Clone-detection-BigCloneBench" | ||
| ./run.sh answerdotai/ModernBERT-base "$ROOT_DIR/results/modernbert/Clone-detection-BigCloneBench" | ||
14 changes: 14 additions & 0 deletions
14
experiments_downstream/Clone-detection-CodeNet/clone-codenet_C++1400_codesage.sh
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,14 @@ | ||
| #!/bin/bash | ||
| # Downstream evaluation: Clone-detection-CodeNet (C++1400) with codesage | ||
| set -euo pipefail | ||
|
|
||
| # Parse CUDA device argument (default: 0) | ||
| CUDA_DEVICE="${1:-0}" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
|
|
||
| export CUDA_VISIBLE_DEVICES="$CUDA_DEVICE" | ||
|
|
||
| cd "$ROOT_DIR/downstream/Clone-detection-CodeNet" | ||
| ./run.sh codesage/codesage-small "$ROOT_DIR/results/codesage/Clone-detection-CodeNet" C++1400 codesage codesage/codesage-small |
14 changes: 14 additions & 0 deletions
14
experiments_downstream/Clone-detection-CodeNet/clone-codenet_C++1400_modernbert.sh
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,14 @@ | ||
| #!/bin/bash | ||
| # Downstream evaluation: Clone-detection-CodeNet (C++1400) with modernbert | ||
| set -euo pipefail | ||
|
|
||
| # Parse CUDA device argument (default: 0) | ||
| CUDA_DEVICE="${1:-0}" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
|
|
||
| export CUDA_VISIBLE_DEVICES="$CUDA_DEVICE" | ||
|
|
||
| cd "$ROOT_DIR/downstream/Clone-detection-CodeNet" | ||
| ./run.sh answerdotai/ModernBERT-base "$ROOT_DIR/results/modernbert/Clone-detection-CodeNet" C++1400 modernbert answerdotai/ModernBERT-base |
14 changes: 14 additions & 0 deletions
14
experiments_downstream/Clone-detection-CodeNet/clone-codenet_Java250_codesage.sh
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,14 @@ | ||
| #!/bin/bash | ||
| # Downstream evaluation: Clone-detection-CodeNet (Java250) with codesage | ||
| set -euo pipefail | ||
|
|
||
| # Parse CUDA device argument (default: 0) | ||
| CUDA_DEVICE="${1:-0}" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
|
|
||
| export CUDA_VISIBLE_DEVICES="$CUDA_DEVICE" | ||
|
|
||
| cd "$ROOT_DIR/downstream/Clone-detection-CodeNet" | ||
| ./run.sh codesage/codesage-small "$ROOT_DIR/results/codesage/Clone-detection-CodeNet" Java250 codesage codesage/codesage-small |
14 changes: 14 additions & 0 deletions
14
experiments_downstream/Clone-detection-CodeNet/clone-codenet_Java250_modernbert.sh
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,14 @@ | ||
| #!/bin/bash | ||
| # Downstream evaluation: Clone-detection-CodeNet (Java250) with modernbert | ||
| set -euo pipefail | ||
|
|
||
| # Parse CUDA device argument (default: 0) | ||
| CUDA_DEVICE="${1:-0}" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" | ||
|
|
||
| export CUDA_VISIBLE_DEVICES="$CUDA_DEVICE" | ||
|
|
||
| cd "$ROOT_DIR/downstream/Clone-detection-CodeNet" | ||
| ./run.sh answerdotai/ModernBERT-base "$ROOT_DIR/results/modernbert/Clone-detection-CodeNet" Java250 modernbert answerdotai/ModernBERT-base |
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.
This launcher only passes
<model_path> <output_dir>, butdownstream/Clone-detection-BigCloneBench/run.shhard-codes--model_type=robertaand--tokenizer_name=roberta-basewhen invokingcode/run.py. When users run this*_modernbert.shscript, they are not actually evaluating a ModernBERT setup (and may get bad/incompatible weight loading), which can invalidate baseline results for this task.Useful? React with 👍 / 👎.