You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for the exciting work! I am new to this topic, but is fascinated by your work, and try to understand it better.
In your provided example, how do i set the max_new_tokens and num_beams? How does this value affect the output quality?
Dear Author,
thank you for the exciting work! I am new to this topic, but is fascinated by your work, and try to understand it better.
In your provided example, how do i set the max_new_tokens and num_beams? How does this value affect the output quality?
Step 4: Generate text
"""
generated_text = model.generate(
vision_x=vision_x,
lang_x=lang_x["input_ids"],
attention_mask=lang_x["attention_mask"],
max_new_tokens=20,
num_beams=3,
)
The text was updated successfully, but these errors were encountered: