I found out this which may help to control the temp and top_p at the same time for the code generation purpose: