Question Answering
PEFT
English
medical
Tonic commited on
Commit
30204fd
1 Parent(s): 46d1540

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -16
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 Mini Med Quick Start
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
- # Welcome to a more advanced implementation of Gaia Mini Med - Falcon Chat
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👨🏻‍⚕️Expert 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
- "Assistant is a public health and medical expert named Gaia ready to help the user.",
245
- "Hi there, I have a question!",
246
- "My name is Gaia, I'm a health and sanitation expert ready to answer your medical questions.",
247
- "Assistant is a medical and sanitation question expert trained to answer medical questions", 0.4, 700, 0.90, 1.9
 
 
 
 
 
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="System Prompt", type="text", lines=2),
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👨🏻‍⚕️Expert 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"