Avinash109 commited on
Commit
db59c38
·
verified ·
1 Parent(s): 1425108

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,8 +14,8 @@ import torch
14
  # Initialize model and tokenizer globally
15
  @st.cache_resource
16
  def load_model_and_tokenizer():
17
- tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
18
- model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
19
  if torch.cuda.is_available():
20
  model = model.to("cuda")
21
  return model, tokenizer
 
14
  # Initialize model and tokenizer globally
15
  @st.cache_resource
16
  def load_model_and_tokenizer():
17
+ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
18
+ model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
19
  if torch.cuda.is_available():
20
  model = model.to("cuda")
21
  return model, tokenizer