reasoning-machines / pal

PaL: Program-Aided Language Models (ICML 2023)
https://reasonwithpal.com
Apache License 2.0
462 stars 58 forks source link

Implementing majority@k #2

Closed urialon closed 1 year ago

urialon commented 1 year ago

Implementing majority@k, from the Self-Consistency paper.

I added the flags --majority_at K and --temperature X to the gsm_eval.py script.

Note that this leads to more predicted tokens, and thus uses the tokens-per-minute rate limits quicker.