david-thrower commited on
Commit
bd1831d
·
verified ·
1 Parent(s): dc74c52

Update app.py

Browse files

Replace model with more capable model.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ import re
9
 
10
  # Load the SmolLM model and tokenizer
11
  # model_name = "HuggingFaceTB/SmolLM2-360M-Instruct"
12
- model_name = "HuggingFaceTB/SmolLM2-1.7B-Instruct"
13
  model = AutoModelForCausalLM.from_pretrained(model_name)
14
  tokenizer = AutoTokenizer.from_pretrained(model_name)
15
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
9
 
10
  # Load the SmolLM model and tokenizer
11
  # model_name = "HuggingFaceTB/SmolLM2-360M-Instruct"
12
+ model_name = "HuggingFaceTB/SmolLM3-3B" # "HuggingFaceTB/SmolLM2-1.7B-Instruct"
13
  model = AutoModelForCausalLM.from_pretrained(model_name)
14
  tokenizer = AutoTokenizer.from_pretrained(model_name)
15
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")