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
generate
Can we directly pass the input_embeds to the generate function? Just like the following used in the pytorch transformers
generated_ids = self.model.generate( inputs_embeds=input_token_embedding, do_sample=True, max_length=max_length, pad_token_id=self.pad_token_id, eos_token_id=self.eos_target_id, temperature=temperature, top_k=top_k, top_p=top_p, repetition_penalty=repeat_penalty, min_new_tokens=50, )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can we directly pass the input_embeds to the
generate
function? Just like the following used in the pytorch transformersThe text was updated successfully, but these errors were encountered: