Spaces:
Runtime error
Runtime error
Modified defaults
Browse files- .gitignore +1 -0
- app.py +6 -6
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
__pycache__/
|
app.py
CHANGED
@@ -173,8 +173,8 @@ def generate_text(
|
|
173 |
|
174 |
with gr.Blocks() as demo:
|
175 |
gr.Markdown("""
|
176 |
-
## Cerebras GPT-2.7B Alpcaca-Shortprompt LoRA
|
177 |
-
This is a very fast and relatively coherent chatbot. It uses the [Cerebras-GPT-2.7B](https://huggingface.co/cerebras/Cerebras-GPT-2.7B), with a LoRA finetuned on the [Alpcaca Dataset]) dataset using a shorter prompt. The
|
178 |
""")
|
179 |
with gr.Row():
|
180 |
with gr.Column():
|
@@ -188,11 +188,11 @@ with gr.Blocks() as demo:
|
|
188 |
do_sample = gr.Checkbox(True, label="do_sample")
|
189 |
with gr.Row():
|
190 |
with gr.Column():
|
191 |
-
temperature = gr.Slider(0, 2, 0.
|
192 |
-
top_p = gr.Slider(0, 1, 0.
|
193 |
-
top_k = gr.Slider(0, 100,
|
194 |
with gr.Column():
|
195 |
-
repetition_penalty = gr.Slider(0, 10, 1.
|
196 |
typical_p = gr.Slider(0, 1, 1, step=0.01, label="typical_p")
|
197 |
num_beams = gr.Slider(0, 10, 1, step=1, label="num_beams")
|
198 |
|
|
|
173 |
|
174 |
with gr.Blocks() as demo:
|
175 |
gr.Markdown("""
|
176 |
+
## 🐺🦙 Cerebras GPT-2.7B Alpcaca-Shortprompt LoRA Chatbot
|
177 |
+
This is a very fast and relatively coherent (but hallucinating) chatbot. It uses the [Cerebras-GPT-2.7B](https://huggingface.co/cerebras/Cerebras-GPT-2.7B), with a LoRA finetuned on the [Alpcaca Dataset](https://github.com/tloen/alpaca-lora/blob/main/alpaca_data_cleaned.json) dataset using a shorter prompt. The chatbot keeps a very short conversation context of 4 entries. It's the fastest chatbot in the west!
|
178 |
""")
|
179 |
with gr.Row():
|
180 |
with gr.Column():
|
|
|
188 |
do_sample = gr.Checkbox(True, label="do_sample")
|
189 |
with gr.Row():
|
190 |
with gr.Column():
|
191 |
+
temperature = gr.Slider(0, 2, 0.1, step=0.01, label="temperature")
|
192 |
+
top_p = gr.Slider(0, 1, 0.8, step=0.01, label="top_p")
|
193 |
+
top_k = gr.Slider(0, 100, 35, step=1, label="top_k")
|
194 |
with gr.Column():
|
195 |
+
repetition_penalty = gr.Slider(0, 10, 1.1, step=0.01, label="repetition_penalty")
|
196 |
typical_p = gr.Slider(0, 1, 1, step=0.01, label="typical_p")
|
197 |
num_beams = gr.Slider(0, 10, 1, step=1, label="num_beams")
|
198 |
|