Closed jeffhataws closed 9 months ago
Thanks for reporting. For this tutorial please install the older version of transformers-neuronx as GPT-J has not changed since then. pip install git+https://github.com/aws-neuron/transformers-neuronx.git@v0.4.0 transformers -U We will have a fix soon for this.
The following change will also work, to install the 2.12 released transformers-neuronx pip wheel:
pip install transformers-neuronx transformers -U
Will update the example notebooks with this change.
Tutorial has been update to install transformers-neuronx pip wheel instead of from github.
With latest 0.5 version and Neuron SDK 2.12, some tutorials like this https://github.com/aws-neuron/aws-neuron-samples/blob/master/torch-neuronx/transformers-neuronx/inference/gpt-j-6b-sampling.ipynb is hitting error "RuntimeError: init() expected at most 3 argument(s) but received 5 argument(s)":