Elijahbodden commited on
Commit
dd76a1e
·
verified ·
1 Parent(s): 0edb841

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,8 +62,8 @@ presets = {
62
 
63
 
64
  def custom_lp_logits_processor(ids, logits, lp_start, lp_decay):
65
- if (len(ids) > lp_start):
66
- logits[tokenizer.eos_token_id] *= pow(lp_decay, len(ids)-lp_start)
67
  return logits
68
 
69
  def respond(
 
62
 
63
 
64
  def custom_lp_logits_processor(ids, logits, lp_start, lp_decay):
65
+ # if (len(ids) > lp_start):
66
+ # logits[tokenizer.eos_token_id] *= pow(lp_decay, len(ids)-lp_start)
67
  return logits
68
 
69
  def respond(