We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f2b80 commit 5c20efeCopy full SHA for 5c20efe
1 file changed
webui/app.py
@@ -477,7 +477,7 @@ def sum_tokens(client):
477
)
478
ece_unit_sampling = gr.Radio(
479
label=_("Unit Sampling Strategy"),
480
- choices=["random", "max_loss", "min_loss"],
+ choices=["random"],
481
value="random",
482
interactive=True,
483
info=_("Unit Sampling Strategy Info"),
@@ -590,6 +590,19 @@ def toggle_partition_params(method):
590
],
591
592
593
+ if_trainee_model.change(
594
+ lambda on: (
595
+ gr.update(
596
+ choices=["random"]
597
+ if not on
598
+ else ["random", "max_loss", "min_loss"],
599
+ value="random",
600
+ )
601
+ ),
602
+ inputs=if_trainee_model,
603
+ outputs=ece_unit_sampling,
604
605
+
606
upload_file.change(
607
preview_file, inputs=upload_file, outputs=[preview_code, preview_df]
608
).then(
0 commit comments