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

Finetuning for SQuAD task #35

Closed
kisacats opened this issue Oct 25, 2023 · 2 comments
Closed

Finetuning for SQuAD task #35

kisacats opened this issue Oct 25, 2023 · 2 comments

Comments

@kisacats
Copy link

Hello,

First of all thank you for your labour for creating this work. I have pretrained crammed bert model with custom data and I want to know is it possible to use it for QA task. I tried register it as modified architecture of ScriptableLMForTokenClassification but I could not. Do you have any suggestion to finetune for QA taskespecially using as HF model?

@JonasGeiping
Copy link
Owner

Declaring it as AutoModelForTokenClassification should work. What's the error?

@kisacats
Copy link
Author

Declaring it as AutoModelForTokenClassification should work. What's the error?

When declared it as AutoModelForTokenClassification it throws AttributeError: 'ScriptableLMForTokenClassification' object has no attribute 'num_labels'. After setting num_labels as two manually, the error becomes RuntimeError: mat1 and mat2 shapes cannot be multiplied (512x768 and 1024x1)

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