-
Notifications
You must be signed in to change notification settings - Fork 85
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
How to use Model to get transaction embeddings? #16
Comments
Hey, did you solve the problem? |
Not yet. |
Hi @bjchaudhari29 / @sevstafiev : Apologies for not getting back on this earlier. I know why you are seeing the issue is! I will try to get back on this later this week, when I get time, and share some code snippet to show how to load it properly. However, if you can't wait until then, please look at the branch gpt_cc_user_eval which does exactly same thing that you are attempting to but on GPT model. |
It would be amazing if you share code snippet for bert model! Thanks. |
Hi @ink-pad , |
My bad - I have fixed the link now! |
Hi @ink-pad , Thank you. |
Hi , inferencer = tab_net.model.from_pretrained('/content/drive/MyDrive/TabFormer/checkpoint-500', vocab=dataset.vocab).to(device) File "/usr/local/lib/python3.7/dist-packages/transformers/modeling_utils.py", line 844, in from_pretrained |
@bjchaudhari29
|
Hi @ink-pad , Thanks for open-sourcing the code. I have a question, Do we need to change the line 118 in tabformer_bert.py, |
Any update on this issue? |
Hi @kekayan , Have you found the correct way to get the row embeddings for each row? I want to reproduce the results on Fraud Detection Task and have the same problem. Thanks for your help! |
Hi, I have the same query. Any update on how to obtain the row embeddings for each row? Some code level guidance would help :) |
Hi Team,
Thanx a lot for sharing the code.
I was able to train Bert model on card dataset but I am facing issue while loading saved model to generate embeddings. Can you please let me know the way to load model weights and way to generate embedding for transaction.
After creating instance of class TabFormerBertLM I am trying to load weights by following command.
tab_net.from_pretrained('/content/drive/MyDrive/TabFormer/checkpoint-500/pytorch_model.bin')
After running this I am getting the following error.
AttributeError: 'TabFormerBertLM' object has no attribute 'from_pretrained'
It will be very helpful if you can guide me to solve this problem.
Thank you.
The text was updated successfully, but these errors were encountered: