Update README.md
Browse files
README.md
CHANGED
@@ -17,12 +17,8 @@ tags:
|
|
17 |
For model inference, please refer to the following example code:
|
18 |
|
19 |
```python
|
20 |
-
|
21 |
-
|
22 |
-
BitsAndBytesConfig,
|
23 |
-
Trainer,
|
24 |
-
TrainingArguments,
|
25 |
-
pipeline)
|
26 |
|
27 |
model_path = 'yueqingyou/BioQwen-1.8B'
|
28 |
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=True)
|
|
|
17 |
For model inference, please refer to the following example code:
|
18 |
|
19 |
```python
|
20 |
+
import torch
|
21 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
|
|
|
|
|
|
|
22 |
|
23 |
model_path = 'yueqingyou/BioQwen-1.8B'
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=True)
|