promptbench icon indicating copy to clipboard operation
promptbench copied to clipboard

LLaMa 2 inference

Open jubick1337 opened this issue 1 year ago • 2 comments

I tried to benchmark LLaMa 2 chat model from HuggingFace and got a ValueError: ValueError: temperature(=0) has to be a strictly positive float, otherwise your next token scores will be invalid. It is caused by this line

jubick1337 avatar Nov 03 '23 11:11 jubick1337

Hi @jubick1337 , we are rewriting the code for PromptBench to support more models and make the code easier to use. Check the dev branch: https://github.com/microsoft/promptbench/tree/dev

jindongwang avatar Nov 06 '23 05:11 jindongwang

Hi Jubick,

To address this issue, you can adjust the temperature setting to an extremely small value, such as temp=0.000001. This should be sufficient for the required adjustments :)

Immortalise avatar Nov 06 '23 08:11 Immortalise

Stale issue message

github-actions[bot] avatar Jan 06 '24 06:01 github-actions[bot]