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

Wrapper for Hugging Face models

未關閉
#97 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
good first issue Priority:Medium
主要語言
Jupyter Notebook
星號
17
分支
17
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。