Alan Joshua commited on
Commit
6b122bc
·
verified ·
1 Parent(s): 50ed05a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -7
README.md CHANGED
@@ -9,19 +9,22 @@ tags:
9
  - unsloth
10
  ---
11
 
12
- # Model Card for Model ID
13
 
14
- <!-- Provide a quick summary of what the model is/does. -->
 
15
 
 
16
 
 
17
 
18
- ## Model Details
19
-
20
- ### Model Description
21
-
22
- <!-- Provide a longer summary of what this model is. -->
23
 
 
 
24
 
 
25
 
26
  - **Developed by:** Alan Joshua
27
  - **Model type:** Text-Generation
@@ -30,6 +33,11 @@ tags:
30
  - **Finetuned from model:** unsloth/mistral-7b-bnb-4bit
31
  - **Dataset:** ruslanmv/ai-medical-chatbot
32
 
 
 
 
 
 
33
  ### Model Sources [optional]
34
 
35
  <!-- Provide the basic links for the model. -->
 
9
  - unsloth
10
  ---
11
 
12
+ ## Use this model
13
 
14
+ ```python
15
+ !pip install -q --upgrade bitsandbytes transformers accelerate
16
 
17
+ from transformers import pipeline
18
 
19
+ pipe = pipeline("text-generation", model="alanjoshua2005/alan-mistral-finetuned")
20
 
21
+ prompt = "<s>[INST] What are the common symptoms of hypothyroidism? [/INST]"
22
+ result = pipe(prompt, max_new_tokens=200, do_sample=True, temperature=0.7, top_p=0.9)
 
 
 
23
 
24
+ print(result[0]["generated_text"])
25
+ ```
26
 
27
+ ## Model Details
28
 
29
  - **Developed by:** Alan Joshua
30
  - **Model type:** Text-Generation
 
33
  - **Finetuned from model:** unsloth/mistral-7b-bnb-4bit
34
  - **Dataset:** ruslanmv/ai-medical-chatbot
35
 
36
+
37
+ ### Model Description
38
+
39
+ <!-- Provide a longer summary of what this model is. -->
40
+
41
  ### Model Sources [optional]
42
 
43
  <!-- Provide the basic links for the model. -->