We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I modify .lm.s ---> lm it can run.But have a new issue.
/usr/local/lib/python3.10/dist-packages/hfppl/distributions/lmcontext.py in sample(self) 24 async def sample(self): 25 probs = np.exp(self.ctx.next_token_logprobs) ---> 26 token_id = np.random.choice(len(probs), p=(probs)) 27 self.ctx.tokens.append(token_id) 28 logprob = self.ctx.next_token_logprobs[token_id]
mtrand.pyx in numpy.random.mtrand.RandomState.choice()
ValueError: probabilities do not sum to 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I modify .lm.s ---> lm it can run.But have a new issue.
/usr/local/lib/python3.10/dist-packages/hfppl/distributions/lmcontext.py in sample(self)
24 async def sample(self):
25 probs = np.exp(self.ctx.next_token_logprobs)
---> 26 token_id = np.random.choice(len(probs), p=(probs))
27 self.ctx.tokens.append(token_id)
28 logprob = self.ctx.next_token_logprobs[token_id]
mtrand.pyx in numpy.random.mtrand.RandomState.choice()
ValueError: probabilities do not sum to 1
The text was updated successfully, but these errors were encountered: