not-lain commited on
Commit
d6a7434
β€’
1 Parent(s): 9e8835a

switch to 2b model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  import os
3
  from transformers import AutoTokenizer, AutoModelForCausalLM, TextStreamer
4
  token = os.environ["HF_TOKEN"]
5
- tokenizer = AutoTokenizer.from_pretrained("google/gemma-7b",token=token)
6
- model = AutoModelForCausalLM.from_pretrained("google/gemma-7b",token=token)
7
  streamer = TextStreamer(tokenizer,skip_prompt=True)
8
 
9
 
 
2
  import os
3
  from transformers import AutoTokenizer, AutoModelForCausalLM, TextStreamer
4
  token = os.environ["HF_TOKEN"]
5
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b",token=token)
6
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b",token=token)
7
  streamer = TextStreamer(tokenizer,skip_prompt=True)
8
 
9