Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ For more information, visit our GitHub repository.
|
|
| 30 |
# <span>Usage</span>
|
| 31 |
You can use FineMedLM in the same way as `Llama-3.1-8B-Instruct`:
|
| 32 |
|
| 33 |
-
(⚠️**Note**: Please use the system prompt we provide to achieve better
|
| 34 |
```python
|
| 35 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 36 |
|
|
@@ -38,7 +38,6 @@ main_model_name = "hongzhouyu/FineMedLM"
|
|
| 38 |
model = AutoModelForCausalLM.from_pretrained(main_model_name, device_map="auto")
|
| 39 |
tokenizer = AutoTokenizer.from_pretrained(main_model_name)
|
| 40 |
|
| 41 |
-
# 构造输入
|
| 42 |
prompt = (
|
| 43 |
"""The following are multiple choice questions (with answers) about health. Think step by step and then finish your answer with "the answer is (X)" where X is the correct letter choice.
|
| 44 |
|
|
|
|
| 30 |
# <span>Usage</span>
|
| 31 |
You can use FineMedLM in the same way as `Llama-3.1-8B-Instruct`:
|
| 32 |
|
| 33 |
+
(⚠️**Note**: Please use the system prompt we provide to achieve better inference results)
|
| 34 |
```python
|
| 35 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 36 |
|
|
|
|
| 38 |
model = AutoModelForCausalLM.from_pretrained(main_model_name, device_map="auto")
|
| 39 |
tokenizer = AutoTokenizer.from_pretrained(main_model_name)
|
| 40 |
|
|
|
|
| 41 |
prompt = (
|
| 42 |
"""The following are multiple choice questions (with answers) about health. Think step by step and then finish your answer with "the answer is (X)" where X is the correct letter choice.
|
| 43 |
|