Chickaboo commited on
Commit
c4fa1e9
·
verified ·
1 Parent(s): ad09b33

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -4
README.md CHANGED
@@ -13,8 +13,8 @@ code expert,- **beowolx/CodeNinja-1.0-OpenChat-7B**
13
  math expert,- **meta-math/MetaMath-Mistral-7B**
14
 
15
  ### Usage
16
- ```
17
- from transformers import AutoModelForCausalLM, AutoTokenizer
18
 
19
  model_id = "mistral-community/Mixtral-8x22B-v0.1"
20
  tokenizer = AutoTokenizer.from_pretrained(model_id)
@@ -25,5 +25,4 @@ text = "Hello my name is"
25
  inputs = tokenizer(text, return_tensors="pt")
26
 
27
  outputs = model.generate(**inputs, max_new_tokens=20)
28
- print(tokenizer.decode(outputs[0], skip_special_tokens=True))
29
- ```
 
13
  math expert,- **meta-math/MetaMath-Mistral-7B**
14
 
15
  ### Usage
16
+
17
+ ```from transformers import AutoModelForCausalLM, AutoTokenizer
18
 
19
  model_id = "mistral-community/Mixtral-8x22B-v0.1"
20
  tokenizer = AutoTokenizer.from_pretrained(model_id)
 
25
  inputs = tokenizer(text, return_tensors="pt")
26
 
27
  outputs = model.generate(**inputs, max_new_tokens=20)
28
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))```