FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-repe/all_eval_array.sh at main · sanadlab/code-repe · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
sanadlab
/
code-repe
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
code-repe
/
all_eval_array.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (13 loc) · 561 Bytes
Breadcrumbs
code-repe
/
all_eval_array.sh
Copy path
File metadata and controls
16 lines (13 loc) · 561 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!
/bin/bash
#
Script to count configs and echo the sbatch command for a Slurm array job
CONFIGS_PATTERN=
"
eval_configs/bigcodebench/selection_accuracy/bigcodebench/*.json
"
CONFIGS=(
$CONFIGS_PATTERN
)
NUM_CONFIGS=
${
#
CONFIGS[@]}
RESULTS_PARENT=
"
$SCRATCH
/results_
$(
date +%Y%m%d_%H%M%S
)
"
if
[
"
$NUM_CONFIGS
"
-eq
0 ]
;
then
echo
"
No config files found.
"
exit
1
fi
echo
"
Found
$NUM_CONFIGS
config files.
"
echo
"
To submit the array job, run:
"
echo
"
sbatch --array=0-
$((
$NUM_CONFIGS
-
1
))
--export=RESULTS_PARENT=
$RESULTS_PARENT
slurm_array.sh
\"
$CONFIGS_PATTERN
\"
"
Back
|
FazBrowse Home
|
New Git URL