Wh1plashR commited on
Commit
5a1c016
Β·
verified Β·
1 Parent(s): ad27687

added tokenizer

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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