-
Notifications
You must be signed in to change notification settings - Fork 14
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
Inference #1
Comments
Did you finally find the way? |
Hi, sorry for late reply. I added a simple interact script. Try the following command: |
Thank you for sharing the code. But got this error while running the interact.py code TypeError: 'Transformer_experts' object is not subscriptable Requirements are installed. Thanks and regards |
Hi, can you share the full error message? |
Please find the message.loading weights Thanks and regards |
What command did you run? Did you give the correct model checkpoint? python3 interact.py --model experts --label_smoothing --noam --emb_dim 300 --hidden_dim 300 --hop 1 --heads 2 --topk 5 --cuda --pretrain_emb --softmax --basic_learner --save_path save/checkpoint |
Yes. It worked. Thank you very much. |
Dear Authors,
Thank you for providing code.
I want to use the trained model to generate responses for a new text. Is there is a way to do the inference part for a new text.
The text was updated successfully, but these errors were encountered: