aixsatoshi
commited on
Commit
•
b70d51d
1
Parent(s):
fc627cf
Update app.py
Browse files
app.py
CHANGED
@@ -6,22 +6,19 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStream
|
|
6 |
import gradio as gr
|
7 |
from threading import Thread
|
8 |
|
9 |
-
model_id = "
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
11 |
model = AutoModelForCausalLM.from_pretrained(
|
12 |
model_id,
|
13 |
torch_dtype=torch.float16,
|
14 |
device_map="auto",
|
15 |
-
trust_remote_code=True,
|
16 |
use_flash_attention_2=True,
|
17 |
-
#offload_folder="offload", # オフロードフォルダの指定
|
18 |
-
#offload_state_dict=True # 必要に応じてstate_dictをオフロード
|
19 |
)
|
20 |
|
21 |
-
TITLE = "<h1><center>
|
22 |
|
23 |
DESCRIPTION = """
|
24 |
-
<h3>MODEL: <a href="https://huggingface.co/
|
25 |
<center>
|
26 |
<p>This model is designed for conversational interactions.</p>
|
27 |
</center>
|
|
|
6 |
import gradio as gr
|
7 |
from threading import Thread
|
8 |
|
9 |
+
model_id = "sudy-super/Yamase-12B"
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
11 |
model = AutoModelForCausalLM.from_pretrained(
|
12 |
model_id,
|
13 |
torch_dtype=torch.float16,
|
14 |
device_map="auto",
|
|
|
15 |
use_flash_attention_2=True,
|
|
|
|
|
16 |
)
|
17 |
|
18 |
+
TITLE = "<h1><center>sudy-super/Yamase-12B Chat webui</center></h1>"
|
19 |
|
20 |
DESCRIPTION = """
|
21 |
+
<h3>MODEL: <a href="https://huggingface.co/sudy-super/Yamase-12B">sudy-super/Yamase-12B</a></h3>
|
22 |
<center>
|
23 |
<p>This model is designed for conversational interactions.</p>
|
24 |
</center>
|