Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import torch
|
|
3 |
import os
|
4 |
import gradio as gr
|
5 |
import sentencepiece
|
|
|
|
|
6 |
|
7 |
model_id = "TheBloke/Yi-34B-200K-Llamafied-GPTQ"
|
8 |
|
@@ -11,7 +13,7 @@ gptq_config = GPTQConfig(
|
|
11 |
exllama_config={"version": 2},
|
12 |
disable_exllama=True
|
13 |
)
|
14 |
-
tokenizer =
|
15 |
model = AutoModelForCausalLM.from_pretrained(
|
16 |
model_id,
|
17 |
device_map="auto",
|
|
|
3 |
import os
|
4 |
import gradio as gr
|
5 |
import sentencepiece
|
6 |
+
from tokenization_yi import YiTokenizer
|
7 |
+
|
8 |
|
9 |
model_id = "TheBloke/Yi-34B-200K-Llamafied-GPTQ"
|
10 |
|
|
|
13 |
exllama_config={"version": 2},
|
14 |
disable_exllama=True
|
15 |
)
|
16 |
+
tokenizer = YiTokenizer.from_pretrained("./")
|
17 |
model = AutoModelForCausalLM.from_pretrained(
|
18 |
model_id,
|
19 |
device_map="auto",
|