Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set hyperparameters? #285

Open
hzhz2020 opened this issue Dec 31, 2023 · 0 comments
Open

How to set hyperparameters? #285

hzhz2020 opened this issue Dec 31, 2023 · 0 comments

Comments

@hzhz2020
Copy link

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,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant