Recommended parameters for coding tasks?

#56
by kozusenok - opened

What are the best parameters for coding? I've tried the following:
Temperature: 1
Top-K: 64
Top-P: 0.95
Penalty: 1
Min-P: 0

The model then reasons and corrects itself during its response, uses tools more often, but sometimes invents methods and makes typos.

Parameters:
Temperature: 0.1
Top-K: 30
Top-P: 0.3
Penalty: 1
Min-P: 0

The model then writes more accurately (when it writes incorrectly, it doesn't correct its answer), rarely calls tools (it may say it called tools, but in fact it didn't), and sometimes gets stuck in loops.

Are there officially recommended parameters from Google?

"(it may say it called tools, but in fact it didn't)"

Sadly that is a model issue, I have talked about that here: https://huggingface.co/google/gemma-4-26B-A4B-it/discussions/15

Sign up or log in to comment