Skip to content

Commit d4c49a4

Browse files
committedMay 6, 2024·
update hbwtasks
1 parent 3a9d5b3 commit d4c49a4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed
 

‎hbw/scripts/hbwtasks.sh

+9-6
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ hbw_reduction_status(){
8686
law run cf.CalibrateEventsWrapper --version $version --datasets $datasets --print-status "0" $@
8787
}
8888

89-
ml_model="dense_default"
90-
9189
hbw_ml_training(){
9290
law run cf.MLTraining --version $version --workers 20 \
93-
--ml-model $ml_model \
9491
--workflow htcondor \
9592
--htcondor-gpus 1 \
9693
--htcondor-memory 40000 \
9794
--max-runtime 48h \
95+
--hbw.MLPreTraining-workflow htcondor \
96+
--hbw.MLPreTraining-htcondor-memory 4000 \
97+
--hbw.MLPreTraining-max-runtime 3h \
9898
--cf.MergeMLEvents-workflow htcondor \
9999
--cf.MergeMLEvents-htcondor-gpus 0 \
100100
--cf.MergeMLEvents-htcondor-memory 4000 \
@@ -111,15 +111,16 @@ hbw_ml_training(){
111111
$@
112112
}
113113

114-
inference_model="rates_only"
115114

116115
hbw_datacards(){
117116
law run cf.CreateDatacards --version $version --workers 20 \
118-
--inference-model $inference_model \
119117
--pilot --workflow htcondor \
120118
--cf.MLTraining-htcondor-gpus 1 \
121119
--cf.MLTraining-htcondor-memory 40000 \
122120
--cf.MLTraining-max-runtime 48h \
121+
--hbw.MLPreTraining-workflow htcondor \
122+
--hbw.MLPreTraining-htcondor-memory 4000 \
123+
--hbw.MLPreTraining-max-runtime 3h \
123124
--cf.MergeMLEvents-workflow htcondor \
124125
--cf.MergeMLEvents-htcondor-gpus 0 \
125126
--cf.MergeMLEvents-htcondor-memory 4000 \
@@ -139,11 +140,13 @@ hbw_datacards(){
139140
hbw_rebin_datacards(){
140141
# same as `hbw_datacards`, but also runs the rebinning task
141142
law run hbw.ModifyDatacardsFlatRebin --version $version --workers 20 \
142-
--inference-model $inference_model \
143143
--pilot --workflow htcondor \
144144
--cf.MLTraining-htcondor-gpus 1 \
145145
--cf.MLTraining-htcondor-memory 40000 \
146146
--cf.MLTraining-max-runtime 48h \
147+
--hbw.MLPreTraining-workflow htcondor \
148+
--hbw.MLPreTraining-htcondor-memory 4000 \
149+
--hbw.MLPreTraining-max-runtime 3h \
147150
--cf.MergeMLEvents-workflow htcondor \
148151
--cf.MergeMLEvents-htcondor-gpus 0 \
149152
--cf.MergeMLEvents-htcondor-memory 4000 \

0 commit comments

Comments
 (0)
Please sign in to comment.