Parameters

#9
by Fujiao - opened

Hello,

Thanks for your great work! I am wondering how we can change the parameters, like temperature, top p, top k, etc. There is only do_sample=False. Thanks

Hey @Fujiao , you can add the parameters when calling the 'model.generate()' function like this:

model.generate(**inputs, do_sample=False, max_new_tokens=100, temperature=0, top_p=0, top_k=0)

Hope that solves your question!

Thanks for your reply. It helps a lot. I did not think that it follows the same way :) @aryan835-datainflexion

Google org

Hi @Fujiao ,

Could you please confirm if issue is resolved feel free to close this issue . or if you have any concerns let us know will assist you.

Thank you.

Fujiao changed discussion status to closed
Fujiao changed discussion status to open

Yeah, it is resolved. Thanks

Fujiao changed discussion status to closed
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment