Spaces:
Runtime error
Runtime error
zetavg
commited on
Commit
•
890373d
1
Parent(s):
02c87a8
update finetune_ui
Browse files
llama_lora/ui/finetune/finetune_ui.py
CHANGED
@@ -1043,14 +1043,14 @@ def finetune_ui():
|
|
1043 |
with gr.Column(variant="panel", elem_id="finetune_additional_training_arguments_box"):
|
1044 |
gr.Textbox(
|
1045 |
label="Additional Training Arguments",
|
1046 |
-
info="Additional training arguments to be passed to the Trainer
|
1047 |
elem_id="finetune_additional_training_arguments_textbox_for_label_display"
|
1048 |
)
|
1049 |
additional_training_arguments = gr.Code(
|
1050 |
-
|
1051 |
language="json",
|
1052 |
value="",
|
1053 |
-
|
1054 |
elem_id="finetune_additional_training_arguments")
|
1055 |
|
1056 |
with gr.Column():
|
@@ -1136,14 +1136,14 @@ def finetune_ui():
|
|
1136 |
with gr.Column(variant="panel", elem_id="finetune_additional_lora_config_box"):
|
1137 |
gr.Textbox(
|
1138 |
label="Additional LoRA Config",
|
1139 |
-
info="Additional LoraConfig
|
1140 |
elem_id="finetune_additional_lora_config_textbox_for_label_display"
|
1141 |
)
|
1142 |
additional_lora_config = gr.Code(
|
1143 |
-
|
1144 |
language="json",
|
1145 |
value="",
|
1146 |
-
|
1147 |
elem_id="finetune_additional_lora_config")
|
1148 |
|
1149 |
gr.HTML(elem_classes="flex_vertical_grow_area no_limit")
|
|
|
1043 |
with gr.Column(variant="panel", elem_id="finetune_additional_training_arguments_box"):
|
1044 |
gr.Textbox(
|
1045 |
label="Additional Training Arguments",
|
1046 |
+
info="Additional training arguments to be passed to the Trainer. Note that this can override ALL other arguments set elsewhere. See https://bit.ly/hf20-transformers-training-arguments for more details.",
|
1047 |
elem_id="finetune_additional_training_arguments_textbox_for_label_display"
|
1048 |
)
|
1049 |
additional_training_arguments = gr.Code(
|
1050 |
+
label="JSON",
|
1051 |
language="json",
|
1052 |
value="",
|
1053 |
+
lines=2,
|
1054 |
elem_id="finetune_additional_training_arguments")
|
1055 |
|
1056 |
with gr.Column():
|
|
|
1136 |
with gr.Column(variant="panel", elem_id="finetune_additional_lora_config_box"):
|
1137 |
gr.Textbox(
|
1138 |
label="Additional LoRA Config",
|
1139 |
+
info="Additional LoraConfig. Note that this can override ALL other arguments set elsewhere.",
|
1140 |
elem_id="finetune_additional_lora_config_textbox_for_label_display"
|
1141 |
)
|
1142 |
additional_lora_config = gr.Code(
|
1143 |
+
label="JSON",
|
1144 |
language="json",
|
1145 |
value="",
|
1146 |
+
lines=2,
|
1147 |
elem_id="finetune_additional_lora_config")
|
1148 |
|
1149 |
gr.HTML(elem_classes="flex_vertical_grow_area no_limit")
|
llama_lora/ui/finetune/style.css
CHANGED
@@ -188,6 +188,21 @@
|
|
188 |
min-width: 60px;
|
189 |
}
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
#finetune_save_total_limit,
|
192 |
#finetune_save_steps,
|
193 |
#finetune_logging_steps {
|
@@ -206,6 +221,9 @@
|
|
206 |
padding: 4px 8px;
|
207 |
}
|
208 |
|
|
|
|
|
|
|
209 |
#finetune_advanced_options_checkboxes > * > * {
|
210 |
min-width: auto;
|
211 |
}
|
|
|
188 |
min-width: 60px;
|
189 |
}
|
190 |
|
191 |
+
#finetune_advance_lora_options_accordion > *:last-child:not(.label-wrap) > *:first-child {
|
192 |
+
margin-top: 8px;
|
193 |
+
}
|
194 |
+
#finetune_advance_lora_options_accordion #finetune_lora_modules_to_save,
|
195 |
+
#finetune_advance_lora_options_accordion #finetune_lora_modules_to_save_add_box {
|
196 |
+
padding: var(--spacing-lg);
|
197 |
+
background: var(--panel-background-fill);
|
198 |
+
border: 0;
|
199 |
+
}
|
200 |
+
#finetune_advance_lora_options_accordion #finetune_lora_modules_to_save_box > .form,
|
201 |
+
#finetune_advance_lora_options_accordion #finetune_lora_modules_to_save,
|
202 |
+
#finetune_advance_lora_options_accordion #finetune_lora_modules_to_save_add_box {
|
203 |
+
border: 0;
|
204 |
+
}
|
205 |
+
|
206 |
#finetune_save_total_limit,
|
207 |
#finetune_save_steps,
|
208 |
#finetune_logging_steps {
|
|
|
221 |
padding: 4px 8px;
|
222 |
}
|
223 |
|
224 |
+
#finetune_advance_options_accordion > *:last-child:not(.label-wrap) > *:first-child {
|
225 |
+
margin-top: 8px;
|
226 |
+
}
|
227 |
#finetune_advanced_options_checkboxes > * > * {
|
228 |
min-width: auto;
|
229 |
}
|