added tokenizer
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import torch
|
|
4 |
|
5 |
# ββ Choose the Mistralβ7BβInstruct checkpoint βββββββββββββββββββββββββββββββββββ
|
6 |
model_name = "mistralai/Mistral-7B-Instruct-v0.1"
|
|
|
7 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
8 |
model = torch.compile(model)
|
9 |
|
|
|
4 |
|
5 |
# ββ Choose the Mistralβ7BβInstruct checkpoint βββββββββββββββββββββββββββββββββββ
|
6 |
model_name = "mistralai/Mistral-7B-Instruct-v0.1"
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
9 |
model = torch.compile(model)
|
10 |
|