Open nd7141 opened 11 months ago
I just followed this snippet: https://huggingface.co/docs/optimum-neuron/guides/models#text-generation-inference
I had a similar error, I checked the version of optimum package installed on my system.
$ pip list | grep optimum
optimum 1.13.2
optimum-neuron 0.0.13
I noticed that though I had the latest version of optimum, optimum-neuron was pointing to older github release tag. when I compared the code between the release tags, I noticed the code deviations.
So I installed the latest version of optimum-neuron which fixed my issue.
pip index versions optimum-neuron
pip install optimum-neuron==0.0.13
GenerationMode is added in this commit which is available from transformers>=4.32.0
so running pip install "transformers>=4.32.0"
was required.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!
results in