Open FrostML opened 1 year ago
Hi, do_sample = true and top_k = 1 should be fine but the correct way to do it is just do_sample = False.
This is weird. I don't this is a bug in the code in this repository.
But will try to give it a shot.
Can you try with just do_sample = False
?
Hi @mayank31398 Sorry for the late reply.
It was ok with do_sample=False
. The results were all the same.
But I still can't figure out why sampling can't work properly. Do you know who or which repo I can turn to for some help?
Refer to https://huggingface.co/blog/how-to-generate. Because sampling is designed to incorporate randomness into picking the next word.
But the k
is 1. There shouldn't be any randomness. @richarddwang
Thank you very much for your work. I got a problem when I ran BLOOM-176B on 8*A100.
I followed the
README.md
and executed the following command. To be specific, I setdo_sample = true
andtop_k = 1
which I thought it was equivalent to greedy search:However, the generated outputs of several forwards were different with the same inputs. This situation happened occasionally.
Do you have any clues or ideas about this?
My env info: