Spaces:
Sleeping
Sleeping
Sunrusojsis
commited on
Commit
•
467c48d
1
Parent(s):
56d14f1
Updated to mamba
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ from huggingface_hub import InferenceClient
|
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
6 |
"""
|
7 |
|
8 |
-
client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct")
|
9 |
# client = InferenceClient("Xenova/gpt-4o")
|
10 |
-
|
11 |
# client = InferenceClient("deepseek-ai/DeepSeek-Coder-V2-Instruct")
|
12 |
|
13 |
|
@@ -49,7 +49,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
49 |
demo = gr.ChatInterface(
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
-
gr.Textbox(value="You are a
|
53 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
54 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
55 |
gr.Slider(
|
|
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
6 |
"""
|
7 |
|
8 |
+
#client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct")
|
9 |
# client = InferenceClient("Xenova/gpt-4o")
|
10 |
+
client = InferenceClient("mistralai/mamba-codestral-7B-v0.1")
|
11 |
# client = InferenceClient("deepseek-ai/DeepSeek-Coder-V2-Instruct")
|
12 |
|
13 |
|
|
|
49 |
demo = gr.ChatInterface(
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
+
gr.Textbox(value="You are a helpful assistant ", label="System message"),
|
53 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
54 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
55 |
gr.Slider(
|