joaogante HF staff commited on
Commit
3faca10
1 Parent(s): dbdfda7

dual col options

Browse files
Files changed (1) hide show
  1. app.py +21 -19
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
- gpu_selector = gpu_selector_fn(["3090", "T4", "T4 *2", "A100 (80GB)"])
82
- omit_offload = omit_offload_fn()
83
- # Show plot when the gradio app is initialized
84
- plot = gr.Image(value=plot_fn("A100 (80GB)", "No"))
85
- gr.Markdown(
86
- """
87
- ### Assistant Model
88
- - `facebook/opt-125m`
89
-
90
- ### Model Names:
91
- - 1.3B: `facebook/opt-1.3b`
92
- - 6.7B: `facebook/opt-6.7b`
93
- - 30B: `facebook/opt-30b`
94
- - 66B: `facebook/opt-66b`
95
-
96
- ### Dataset used as input prompt:
97
- - C4 (en, validation set)
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)