Update README.md
Browse files
README.md
CHANGED
@@ -22,8 +22,8 @@ This model is optimized for plant science by continuing pertaining on over 1.5 m
|
|
22 |
from transformers import LlamaTokenizer, LlamaForCausalLM
|
23 |
import torch
|
24 |
|
25 |
-
tokenizer = LlamaTokenizer.from_pretrained("Xianjun/PLLaMa-
|
26 |
-
model = LlamaForCausalLM.from_pretrained("Xianjun/PLLaMa-
|
27 |
|
28 |
instruction = "How to ..."
|
29 |
batch = tokenizer(instruction, return_tensors="pt", add_special_tokens=False).to("cuda")
|
|
|
22 |
from transformers import LlamaTokenizer, LlamaForCausalLM
|
23 |
import torch
|
24 |
|
25 |
+
tokenizer = LlamaTokenizer.from_pretrained("Xianjun/PLLaMa-13b-base")
|
26 |
+
model = LlamaForCausalLM.from_pretrained("Xianjun/PLLaMa-13b-base").half().to("cuda")
|
27 |
|
28 |
instruction = "How to ..."
|
29 |
batch = tokenizer(instruction, return_tensors="pt", add_special_tokens=False).to("cuda")
|