-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
TypeError: Sampler.__call__() got an unexpected keyword argument 'end_token_id' #1840
Labels
Comments
This is how I fixed it for my code. I highly suspect there's a better way to fix this, but in short three things needed to be fixed:
(Note, I extended mine from Spanish only to French, so my encoders are named "fr_..." instead of "spa_")
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type
Bug
Source
binary
Keras Version
3.2.1
Custom Code
No
OS Platform and Distribution
Colab
Python version
3.10.12
GPU model and memory
Colab T4 GPU
Current Behavior?
I've been trying to run the English-to-Spanish translation with KerasNLP but I get stuck at the prediction/eval part:
The model trains successfully, though.
Standalone code to reproduce the issue or tutorial link
Relevant log output
The text was updated successfully, but these errors were encountered: