ai-agi commited on
Commit
f1ca299
1 Parent(s): 690fb80

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -5
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
- state_dict = torch.load('model_weights.pth')
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