Skip to content
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

ValueError: decoder_start_token_id or bos_token_id has to be defined for encoder-decoder generation, cant get Chronos to run today #76

Closed
emitby opened this issue May 18, 2024 · 3 comments

Comments

@emitby
Copy link

emitby commented May 18, 2024

Yesterday Chronos was working great, today for some reason its throwing this error, even with the sample code with the airline passenger data:

ValueError: decoder_start_token_id or bos_token_id has to be defined for encoder-decoder generation

Chronos is throwing the same error for both AWS Sagemaker in Jupyter Lab and also ML-Azure, so the error seems to be platform independent.

thanks,

@lostella
Copy link
Contributor

Hi @emitby, thanks for opening the issue. This seems a problem with the recent transformers 4.41. Solution is to downgrade to 4.40 for now, while we look into this deeper.

lostella added a commit that referenced this issue May 18, 2024
*Issue #, if available:* #76

*Description of changes:* transformers 4.41 broke something for us, we
need to look into it deeper


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
@lostella
Copy link
Contributor

@emitby #77 fixed this. On a fresh environment, the README instructions will now work. On existing environments, one should ensure to have transformers<4.41 (e.g. pip install transformers<4.41).

@abdulfatir
Copy link
Contributor

Opened an issue in transformers: huggingface/transformers#30892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants