Adversarial-Deep-Learning / Adversarial-Deep-Learning/code-soup

Wrapper for Hugging Face models

Abierto
#97 0 comentarios 0 reacciones 0 asignados Ver en GitHub
good first issue Priority:Medium
Lenguaje dominante
Jupyter Notebook
Estrellas
17
Forks
17
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.