Tonic commited on
Commit
0bc1500
Β·
verified Β·
1 Parent(s): ce518ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder
11
 
12
  model_name = "allenai/OLMo-7B"
13
  tokenizer = AutoTokenizer.from_pretrained(model_name)
14
- model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, load_in_8bit=True)
15
  # model = AutoModelForCausalLM.from_pretrained(model_name)
16
 
17
  def generate_text(prompt, max_new_tokens, top_k, top_p, do_sample):
 
11
 
12
  model_name = "allenai/OLMo-7B"
13
  tokenizer = AutoTokenizer.from_pretrained(model_name)
14
+ model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16)
15
  # model = AutoModelForCausalLM.from_pretrained(model_name)
16
 
17
  def generate_text(prompt, max_new_tokens, top_k, top_p, do_sample):