mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 16:18:10 +08:00
use default arg for freeze tuning
Former-commit-id: a38fd7c8b39cb59fb61c26fdf80aaa6f2d0623b9
This commit is contained in:
parent
f37d481c5d
commit
48846676d8
@ -116,7 +116,7 @@ def create_train_tab(engine: "Engine") -> Dict[str, "Component"]:
|
|||||||
with gr.Accordion(label="Freeze config", open=False) as freeze_tab:
|
with gr.Accordion(label="Freeze config", open=False) as freeze_tab:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
num_layer_trainable = gr.Slider(value=3, minimum=1, maximum=128, step=1, scale=2)
|
num_layer_trainable = gr.Slider(value=3, minimum=1, maximum=128, step=1, scale=2)
|
||||||
name_module_trainable = gr.Textbox(scale=3)
|
name_module_trainable = gr.Textbox(value="all", scale=3)
|
||||||
|
|
||||||
input_elems.update({num_layer_trainable, name_module_trainable})
|
input_elems.update({num_layer_trainable, name_module_trainable})
|
||||||
elem_dict.update(
|
elem_dict.update(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user