Spaces:
Running
Running
File size: 1,463 Bytes
dc36c09 5b60a88 faefe1e f09a1d9 faefe1e f09a1d9 b4b7b9f f09a1d9 9fd12f1 f09a1d9 faefe1e f09a1d9 faefe1e 9fd12f1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import gradio as gr
import sambanova_gradio
with gr.Blocks(fill_height=True,theme=gr.themes.Ocean()) as demo:
with gr.Tab("1B"):
gr.load("Meta-Llama-3.2-1B-Instruct",
src=sambanova_gradio.registry,
examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
with gr.Tab("3B"):
gr.load("Meta-Llama-3.2-3B-Instruct",
src=sambanova_gradio.registry,
examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
with gr.Tab("8B"):
gr.load("Meta-Llama-3.1-8B-Instruct",
src=sambanova_gradio.registry,
examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
with gr.Tab("70B"):
gr.load('Meta-Llama-3.1-70B-Instruct-8k',
src=sambanova_gradio.registry,
examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
with gr.Tab("405B"):
gr.load('Meta-Llama-3.1-405B-Instruct',
src=sambanova_gradio.registry,
examples=["Explain quantum gravity to a 5-year old.", "How many R are there in the word Strawberry? Think step by step."])
demo.launch() |