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

Wrapper for Hugging Face models

Đang mở
#97 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
good first issue Priority:Medium
Ngôn ngữ chính
Jupyter Notebook
Star
17
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.