Adversarial-Deep-Learning / Adversarial-Deep-Learning/code-soup
Wrapper for Hugging Face models
Ouverte
good first issue
Priority:Medium
- Langage dominant
- Jupyter Notebook
- Étoiles
- 17
- Forks
- 17
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.