akhaliq HF staff leshenj15 commited on
Commit
3289c64
1 Parent(s): e8d64f2

Add Hyperbolic Tab (#5)

Browse files

- Add Hyperbolic Tab (5f3e5aabfe6193872ea947438d75426114d2a149)


Co-authored-by: Lesheng Jin <leshenj15@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +50 -0
app.py CHANGED
@@ -237,6 +237,56 @@ with gr.Blocks(fill_height=True) as demo:
237
  gr.Markdown("""
238
  **Note:** You need a Groq API key to use these models. Get one at [Groq Cloud](https://console.groq.com/).
239
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  with gr.Tab("Qwen"):
241
  with gr.Row():
242
  qwen_model = gr.Dropdown(
 
237
  gr.Markdown("""
238
  **Note:** You need a Groq API key to use these models. Get one at [Groq Cloud](https://console.groq.com/).
239
  """)
240
+ with gr.Tab("Hyperbolic"):
241
+ with gr.Row():
242
+ hyperbolic_model = gr.Dropdown(
243
+ choices=[
244
+ # # Vision Models (TODO)
245
+ # 'Qwen/Qwen2-VL-72B-Instruct', # 32K context
246
+ # 'mistralai/Pixtral-12B-2409', # 32K context
247
+ # 'Qwen/Qwen2-VL-7B-Instruct', # 32K context
248
+ # Large Language Models
249
+ 'Qwen/Qwen2.5-Coder-32B-Instruct', # 131K context
250
+ 'meta-llama/Llama-3.2-3B-Instruct', # 131K context
251
+ 'meta-llama/Meta-Llama-3.1-8B-Instruct', # 131k context
252
+ 'meta-llama/Meta-Llama-3.1-70B-Instruct', # 32K context
253
+ 'meta-llama/Meta-Llama-3-70B-Instruct', # 8K context
254
+ 'NousResearch/Hermes-3-Llama-3.1-70B', # 12K context
255
+ 'Qwen/Qwen2.5-72B-Instruct', # 32K context
256
+ 'deepseek-ai/DeepSeek-V2.5', # 8K context
257
+ 'meta-llama/Meta-Llama-3.1-405B-Instruct', # 8K context
258
+ ],
259
+ value='Qwen/Qwen2.5-Coder-32B-Instruct',
260
+ label="Select Hyperbolic Model",
261
+ interactive=True
262
+ )
263
+
264
+ hyperbolic_interface = gr.load(
265
+ name=hyperbolic_model.value,
266
+ src=hyperbolic_gradio.registry,
267
+ fill_height=True
268
+ )
269
+
270
+ def update_hyperbolic_model(new_model):
271
+ return gr.load(
272
+ name=new_model,
273
+ src=hyperbolic_gradio.registry,
274
+ fill_height=True
275
+ )
276
+
277
+ hyperbolic_model.change(
278
+ fn=update_hyperbolic_model,
279
+ inputs=[hyperbolic_model],
280
+ outputs=[hyperbolic_interface]
281
+ )
282
+
283
+ gr.Markdown("""
284
+ <div>
285
+ <img src="https://storage.googleapis.com/public-arena-asset/hyperbolic_logo.png" alt="Hyperbolic Logo" style="height: 50px; margin-right: 10px;">
286
+ </div>
287
+
288
+ **Note:** This model is supported by Hyperbolic. Build your AI apps at [Hyperbolic](https://app.hyperbolic.xyz/).
289
+ """)
290
  with gr.Tab("Qwen"):
291
  with gr.Row():
292
  qwen_model = gr.Dropdown(