anas-awadalla commited on
Commit
8cb1584
1 Parent(s): 590a3ee
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -131,8 +131,12 @@ def generate(
131
  vision_x=vision_x,
132
  lang_x=input_ids,
133
  attention_mask=attention_mask,
134
- max_new_tokens=100,
135
- num_beams=1,
 
 
 
 
136
  )
137
 
138
  gen_text = tokenizer.decode(
 
131
  vision_x=vision_x,
132
  lang_x=input_ids,
133
  attention_mask=attention_mask,
134
+ max_new_tokens=50,
135
+ num_beams=3,
136
+ do_sample=True,
137
+ top_p=0.9,
138
+ top_k=0,
139
+ no_repeat_ngram_size=3,
140
  )
141
 
142
  gen_text = tokenizer.decode(