You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @pytest.mark.skip() # remove when it's clear why diff val_step_loss values are observed in diff runs on existing code (even without PR #478 changes)
144
-
@pytest.mark.cli
145
-
@pytest.mark.on_qaic
146
-
@pytest.mark.finetune
147
-
@pytest.mark.parametrize(
148
-
"model_name,task_mode,max_eval_step,max_train_step,dataset_name,data_path,intermediate_step_save,context_length,run_validation,use_peft,device,scenario_key", # This parameter will be used to look up reference data
149
-
configs,
150
-
)
151
-
deftest_finetune(
143
+
deftrain_function(
152
144
model_name,
153
145
task_mode,
154
146
max_eval_step,
@@ -211,93 +203,191 @@ def test_finetune(
211
203
download_alpaca()
212
204
213
205
results=finetune(**kwargs)
206
+
all_ref_metrices= {
207
+
"ref_train_losses": ref_train_losses,
208
+
"ref_eval_losses": ref_eval_losses,
209
+
"ref_train_metrics": ref_train_metrics,
210
+
"ref_eval_metrics": ref_eval_metrics,
211
+
}
214
212
215
-
# Assertions for step-level values using the helper function
@pytest.mark.skip() # remove when it's clear why diff val_step_loss values are observed in diff runs on existing code (even without PR #478 changes)
231
+
@pytest.mark.cli
232
+
@pytest.mark.on_qaic
233
+
@pytest.mark.finetune
234
+
@pytest.mark.parametrize(
235
+
"model_name,task_mode,max_eval_step,max_train_step,dataset_name,data_path,intermediate_step_save,context_length,run_validation,use_peft,device,scenario_key", # This parameter will be used to look up reference data
@pytest.mark.skip() # remove when it's clear why diff val_step_loss values are observed in diff runs on existing code (even without PR #478 changes)
315
+
@pytest.mark.cli
316
+
@pytest.mark.on_qaic
317
+
@pytest.mark.finetune
318
+
@pytest.mark.parametrize(
319
+
"model_name,task_mode,max_eval_step,max_train_step,dataset_name,data_path,intermediate_step_save,context_length,run_validation,use_peft,device,scenario_key", # This parameter will be used to look up reference data
0 commit comments