Spaces:
Sleeping
Sleeping
add olmo
Browse files
app.py
CHANGED
@@ -97,6 +97,8 @@ def respond(
|
|
97 |
_model_name = "Qwen/Qwen1.5-72B"
|
98 |
elif model_name == "Yi-34B":
|
99 |
_model_name = "zero-one-ai/Yi-34B"
|
|
|
|
|
100 |
else:
|
101 |
raise ValueError("Invalid model name")
|
102 |
# _model_name = "meta-llama/Llama-3-8b-hf"
|
@@ -168,12 +170,12 @@ with gr.Blocks(gr.themes.Soft(), js=js_code_label) as demo:
|
|
168 |
|
169 |
**Talk with __BASE__ LLMs which are not fine-tuned at all.**
|
170 |
""")
|
171 |
-
model_name = gr.Radio(["Llama-3-8B", "Llama-3-70B", "Mistral-7B-v0.1", "Mixtral-8x22B", "Yi-34B", "Llama-2-7B", "Llama-2-70B"], value="Llama-3-8B", label="Base LLM name")
|
172 |
with gr.Column():
|
173 |
together_api_key = gr.Textbox(label="🔑 Together APIKey", placeholder="Enter your Together API Key. Leave it blank if you want to use the default API key.", type="password", elem_id="api_key")
|
174 |
with gr.Column():
|
175 |
with gr.Row():
|
176 |
-
max_tokens = gr.Textbox(value=
|
177 |
temperature = gr.Textbox(value=0.5, label="Temperature")
|
178 |
# with gr.Column():
|
179 |
# with gr.Row():
|
|
|
97 |
_model_name = "Qwen/Qwen1.5-72B"
|
98 |
elif model_name == "Yi-34B":
|
99 |
_model_name = "zero-one-ai/Yi-34B"
|
100 |
+
elif model_name == "OLMO":
|
101 |
+
_model_name = "allenai/OLMo-7B"
|
102 |
else:
|
103 |
raise ValueError("Invalid model name")
|
104 |
# _model_name = "meta-llama/Llama-3-8b-hf"
|
|
|
170 |
|
171 |
**Talk with __BASE__ LLMs which are not fine-tuned at all.**
|
172 |
""")
|
173 |
+
model_name = gr.Radio(["Llama-3-8B", "Llama-3-70B", "Mistral-7B-v0.1", "Mixtral-8x22B", "Yi-34B", "Llama-2-7B", "Llama-2-70B", "OLMO"], value="Llama-3-8B", label="Base LLM name")
|
174 |
with gr.Column():
|
175 |
together_api_key = gr.Textbox(label="🔑 Together APIKey", placeholder="Enter your Together API Key. Leave it blank if you want to use the default API key.", type="password", elem_id="api_key")
|
176 |
with gr.Column():
|
177 |
with gr.Row():
|
178 |
+
max_tokens = gr.Textbox(value=256, label="Max tokens")
|
179 |
temperature = gr.Textbox(value=0.5, label="Temperature")
|
180 |
# with gr.Column():
|
181 |
# with gr.Row():
|