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

Games.emb-llama-td.npy #13

Open
cxjtju opened this issue Jul 23, 2024 · 3 comments
Open

Games.emb-llama-td.npy #13

cxjtju opened this issue Jul 23, 2024 · 3 comments

Comments

@cxjtju
Copy link

cxjtju commented Jul 23, 2024

Games.emb-llama-td.npy 请问这个文件是怎么得到的?

@cxjtju
Copy link
Author

cxjtju commented Jul 23, 2024

使用data_process/amazon_text_emb.py 处理Games数据集时,报错RuntimeError: The expanded size of the tensor (735) must match the existing size (512) at non-singleton dimension 1. Target sizes: [1, 735]. Tensor sizes: [1, 512],使用的plm_checkpoint是bert-base-uncased。
image

@zhengbw0324
Copy link
Collaborator

@cxjtju 在使用bert时应该将max_sent_len设置为512,我猜测是这个原因, 您可以试试。

@cxjtju
Copy link
Author

cxjtju commented Jul 24, 2024

可以了,十分感谢!

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

2 participants