Update README.md
Browse files
README.md
CHANGED
@@ -60,15 +60,15 @@ This model is not meant as a decision support system in the wild, only for educa
|
|
60 |
|
61 |
## How to Get Started with the Model
|
62 |
|
63 |
-
Try it here : [Pseudolab/GaiaMiniMed](https://huggingface.co/spaces/pseudolab/GaiaMiniMed)
|
64 |
|
65 |
-
See the [author's demo](https://huggingface.co/spaces/tonic/gaiaminimed)
|
66 |
|
67 |
-
Use the code below to get started with the model.
|
68 |
|
69 |
```python
|
70 |
|
71 |
-
# Gaia
|
72 |
|
73 |
from transformers import AutoConfig, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, MistralForCausalLM
|
74 |
from peft import PeftModel, PeftConfig
|
@@ -145,11 +145,11 @@ iface.launch()
|
|
145 |
|
146 |
```
|
147 |
|
148 |
-
See the code below for more advanced deployment , including a naive memory store and user controllable parameters:
|
149 |
|
150 |
```Python
|
151 |
|
152 |
-
#
|
153 |
|
154 |
from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM
|
155 |
from peft import PeftModel, PeftConfig
|
@@ -239,14 +239,20 @@ falcon_bot = FalconChatBot()
|
|
239 |
title = "馃憢馃徎Welcome to Tonic's 馃Falcon's Medical馃懆馃徎鈥嶁殨锔廍xpert Chat馃殌"
|
240 |
description = "You can use this Space to test out the GaiaMiniMed model [(Tonic/GaiaMiniMed)](https://huggingface.co/Tonic/GaiaMiniMed) or duplicate this Space and use it locally or on 馃HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
|
241 |
|
242 |
-
examples = [
|
243 |
-
[
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
|
|
|
|
248 |
]
|
249 |
-
]
|
|
|
250 |
|
251 |
|
252 |
additional_inputs=[
|
@@ -295,9 +301,7 @@ iface = gr.Interface(
|
|
295 |
description=description,
|
296 |
examples=examples,
|
297 |
inputs=[
|
298 |
-
gr.inputs.Textbox(label="
|
299 |
-
gr.inputs.Textbox(label="User Message", type="text", lines=3),
|
300 |
-
gr.inputs.Textbox(label="Assistant Message", type="text", lines=2),
|
301 |
] + additional_inputs,
|
302 |
outputs="text",
|
303 |
theme="ParityError/Anime"
|
|
|
60 |
|
61 |
## How to Get Started with the Model
|
62 |
|
63 |
+
- Try it here : [Pseudolab/GaiaMiniMed](https://huggingface.co/spaces/pseudolab/GaiaMiniMed)
|
64 |
|
65 |
+
- See the [author's demo](https://huggingface.co/spaces/tonic/gaiaminimed)
|
66 |
|
67 |
+
- Use the code below to get started with the model.
|
68 |
|
69 |
```python
|
70 |
|
71 |
+
# Gaia MiniMed 鈿曪笍馃 Quick Start
|
72 |
|
73 |
from transformers import AutoConfig, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForCausalLM, MistralForCausalLM
|
74 |
from peft import PeftModel, PeftConfig
|
|
|
145 |
|
146 |
```
|
147 |
|
148 |
+
- See the code below for more advanced deployment , including a naive memory store and user controllable parameters:
|
149 |
|
150 |
```Python
|
151 |
|
152 |
+
# Gaia MiniMed鈿曪笍馃Falcon Chat
|
153 |
|
154 |
from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM
|
155 |
from peft import PeftModel, PeftConfig
|
|
|
239 |
title = "馃憢馃徎Welcome to Tonic's 馃Falcon's Medical馃懆馃徎鈥嶁殨锔廍xpert Chat馃殌"
|
240 |
description = "You can use this Space to test out the GaiaMiniMed model [(Tonic/GaiaMiniMed)](https://huggingface.co/Tonic/GaiaMiniMed) or duplicate this Space and use it locally or on 馃HuggingFace. [Join me on Discord to build together](https://discord.gg/VqTxc76K3u)."
|
241 |
|
242 |
+
examples = [
|
243 |
+
[
|
244 |
+
{
|
245 |
+
"user_message": "Hi there, I have a question!",
|
246 |
+
"assistant_message": "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
|
247 |
+
"history": [],
|
248 |
+
"temperature": 0.4,
|
249 |
+
"max_new_tokens": 700,
|
250 |
+
"top_p": 0.90,
|
251 |
+
"repetition_penalty": 1.9,
|
252 |
+
}
|
253 |
]
|
254 |
+
]
|
255 |
+
|
256 |
|
257 |
|
258 |
additional_inputs=[
|
|
|
301 |
description=description,
|
302 |
examples=examples,
|
303 |
inputs=[
|
304 |
+
gr.inputs.Textbox(label="Input Parameters", type="text", lines=5),
|
|
|
|
|
305 |
] + additional_inputs,
|
306 |
outputs="text",
|
307 |
theme="ParityError/Anime"
|