Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
from transformers import AutoTokenizer, AutoModelForCausalLM, TextIteratorStreamer
|
7 |
import time
|
8 |
|
9 |
-
model_id = "google/gemma-2-
|
10 |
assistant_id = "google/gemma-2-2b-it"
|
11 |
|
12 |
model = AutoModelForCausalLM.from_pretrained(model_id, attn_implementation="eager").to(dtype=torch.bfloat16, device="cuda")
|
|
|
6 |
from transformers import AutoTokenizer, AutoModelForCausalLM, TextIteratorStreamer
|
7 |
import time
|
8 |
|
9 |
+
model_id = "google/gemma-2-9b-it"
|
10 |
assistant_id = "google/gemma-2-2b-it"
|
11 |
|
12 |
model = AutoModelForCausalLM.from_pretrained(model_id, attn_implementation="eager").to(dtype=torch.bfloat16, device="cuda")
|