Update README.md
Browse files
README.md
CHANGED
@@ -23,11 +23,11 @@ Panacea is trained from [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistr
|
|
23 |
|
24 |
Load the model in the following way (same as Mistral):
|
25 |
|
26 |
-
```
|
27 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
28 |
import torch
|
29 |
|
30 |
model_id = 'linjc16/Panacea-7B-Chat'
|
31 |
|
32 |
-
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto"
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
|
23 |
|
24 |
Load the model in the following way (same as Mistral):
|
25 |
|
26 |
+
```python
|
27 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
28 |
import torch
|
29 |
|
30 |
model_id = 'linjc16/Panacea-7B-Chat'
|
31 |
|
32 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|