Downloads · 30 days
187
6% of all-time downloads
deliciouscat/kf-deberta-base-cross-nli
kf-deberta-base-cross-nli is a zero-shot classification model from deliciouscat. Use it when you need labels you did not train the model on. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
187
6% of all-time downloads
All-time downloads
3.1K
Public
Parameters
186M
744 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors744 MB · 99%
From the Hugging Face model README
kor-nli 및 klue-nli로 학습하였습니다.
test accuracy(KLUE-NLI): 0.889667
model_name = 'deliciouscat/kf-deberta-base-cross-nli'
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=3).to(device)
def encode(examples):
return tokenizer(examples['premise'], examples['hypothesis'], truncation=True, padding='max_length', max_length=128)