Update README.md
Browse files
README.md
CHANGED
@@ -35,11 +35,9 @@ You can find more details in the [technical report](https://arxiv.org/abs/2310.1
|
|
35 |
import torch
|
36 |
from transformers import AutoTokenizer, AutoModelForCausalLM, MistralForCausalLM
|
37 |
|
38 |
-
model = MistralForCausalLM.from_pretrained("ai-agi/neural-zephyr", use_cache=False, torch_dtype=torch.bfloat16, device_map="auto")
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
model.load_state_dict(state_dict)
|
43 |
|
44 |
tokenizer = AutoTokenizer.from_pretrained("ai-agi/neural-zephyr", use_fast=True)
|
45 |
|
|
|
35 |
import torch
|
36 |
from transformers import AutoTokenizer, AutoModelForCausalLM, MistralForCausalLM
|
37 |
|
38 |
+
model = MistralForCausalLM.from_pretrained("ai-agi/neural-zephyr", use_cache=False, torch_dtype=torch.bfloat16, device_map="auto") \
|
39 |
+
state_dict = torch.load('model_weights.pth') \
|
40 |
+
model.load_state_dict(state_dict) \
|
|
|
|
|
41 |
|
42 |
tokenizer = AutoTokenizer.from_pretrained("ai-agi/neural-zephyr", use_fast=True)
|
43 |
|