dual col options
Browse files
app.py
CHANGED
|
@@ -78,25 +78,27 @@ with demo:
|
|
| 78 |
with gr.TabItem("OPT: Open"):
|
| 79 |
plot_fn = functools.partial(get_plot, "OPT: Open Text Generation")
|
| 80 |
with gr.Row():
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
)
|
|
|
|
|
|
|
| 100 |
# Update plot when any of the inputs change
|
| 101 |
plot_inputs = [gpu_selector, omit_offload]
|
| 102 |
gpu_selector.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
|
|
|
| 78 |
with gr.TabItem("OPT: Open"):
|
| 79 |
plot_fn = functools.partial(get_plot, "OPT: Open Text Generation")
|
| 80 |
with gr.Row():
|
| 81 |
+
with gr.Column():
|
| 82 |
+
gpu_selector = gpu_selector_fn(["3090", "T4", "T4 *2", "A100 (80GB)"])
|
| 83 |
+
with gr.Column():
|
| 84 |
+
omit_offload = omit_offload_fn()
|
| 85 |
+
# Show plot when the gradio app is initialized
|
| 86 |
+
plot = gr.Image(value=plot_fn("A100 (80GB)", "No"))
|
| 87 |
+
gr.Markdown(
|
| 88 |
+
"""
|
| 89 |
+
### Assistant Model
|
| 90 |
+
- `facebook/opt-125m`
|
| 91 |
+
|
| 92 |
+
### Model Names:
|
| 93 |
+
- 1.3B: `facebook/opt-1.3b`
|
| 94 |
+
- 6.7B: `facebook/opt-6.7b`
|
| 95 |
+
- 30B: `facebook/opt-30b`
|
| 96 |
+
- 66B: `facebook/opt-66b`
|
| 97 |
+
|
| 98 |
+
### Dataset used as input prompt:
|
| 99 |
+
- C4 (en, validation set)
|
| 100 |
+
"""
|
| 101 |
+
)
|
| 102 |
# Update plot when any of the inputs change
|
| 103 |
plot_inputs = [gpu_selector, omit_offload]
|
| 104 |
gpu_selector.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|