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

Wrapper for Hugging Face models #97

Open
abheesht17 opened this issue Oct 16, 2021 · 0 comments
Open

Wrapper for Hugging Face models #97

abheesht17 opened this issue Oct 16, 2021 · 0 comments
Labels
good first issue Good for newcomers Priority:Medium Medium Priority

Comments

@abheesht17
Copy link
Contributor

abheesht17 commented Oct 16, 2021

Make a wrapper class for Hugging Face models. The class will initialise the model (and the tokeniser). Perform a forward pass on an input list of text. We need functions like get_grad() too, since some attacks require grads.

Reference: https://github.com/QData/TextAttack/blob/master/textattack/models/wrappers/huggingface_model_wrapper.py

@abheesht17 abheesht17 added good first issue Good for newcomers Priority:Medium Medium Priority labels Oct 16, 2021
This was referenced Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Priority:Medium Medium Priority
Projects
None yet
Development

No branches or pull requests

1 participant