Kevin Fink
commited on
Commit
·
172d00c
1
Parent(s):
c17c736
init
Browse files
app.py
CHANGED
@@ -72,17 +72,17 @@ try:
|
|
72 |
gr.Textbox(label="Model Name (e.g., 'google/t5-efficient-tiny-nh8')"),
|
73 |
gr.Textbox(label="Dataset Name (e.g., 'imdb')"),
|
74 |
gr.Textbox(label="HF hub to push to after training"),
|
75 |
-
gr.Slider(minimum=1, maximum=10,
|
76 |
-
gr.Slider(minimum=1, maximum=16,
|
77 |
-
gr.Slider(minimum=1, maximum=
|
78 |
-
gr.Slider(minimum=1, maximum=100,
|
79 |
],
|
80 |
outputs="text",
|
81 |
title="Fine-Tune Hugging Face Model",
|
82 |
description="This interface allows you to fine-tune a Hugging Face model on a specified dataset."
|
83 |
)
|
|
|
|
|
84 |
except Exception as e:
|
85 |
print(f"An error occurred: {str(e)}, TB: {traceback.format_exc()}")
|
86 |
|
87 |
-
# Launch the interface
|
88 |
-
iface.launch()
|
|
|
72 |
gr.Textbox(label="Model Name (e.g., 'google/t5-efficient-tiny-nh8')"),
|
73 |
gr.Textbox(label="Dataset Name (e.g., 'imdb')"),
|
74 |
gr.Textbox(label="HF hub to push to after training"),
|
75 |
+
gr.Slider(minimum=1, maximum=10, value=3, label="Number of Epochs"),
|
76 |
+
gr.Slider(minimum=1, maximum=16, value=4, label="Batch Size"),
|
77 |
+
gr.Slider(minimum=1, maximum=1000, value=50, label="Learning Rate (e-5)"),
|
78 |
+
gr.Slider(minimum=1, maximum=100, value=1, label="Gradient accumulation (e-1)"),
|
79 |
],
|
80 |
outputs="text",
|
81 |
title="Fine-Tune Hugging Face Model",
|
82 |
description="This interface allows you to fine-tune a Hugging Face model on a specified dataset."
|
83 |
)
|
84 |
+
# Launch the interface
|
85 |
+
iface.launch()
|
86 |
except Exception as e:
|
87 |
print(f"An error occurred: {str(e)}, TB: {traceback.format_exc()}")
|
88 |
|
|
|
|