as-cle-bert commited on
Commit
33a6536
·
verified ·
1 Parent(s): 14bb3cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ model_checkpoint = "HuggingFaceTB/SmolLM-1.7B"
8
  model = AutoModelForCausalLM.from_pretrained(model_checkpoint)
9
  tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
10
 
11
- pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, repetition_penalty=1.5, temperature=0)
12
 
13
 
14
  abs_path = Path(__file__).parent
 
8
  model = AutoModelForCausalLM.from_pretrained(model_checkpoint)
9
  tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
10
 
11
+ pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, repetition_penalty=1.5, temperature=0.5, device="cuda")
12
 
13
 
14
  abs_path = Path(__file__).parent