Downloads · 30 days
345
1% of all-time downloads
khalidalt/DeBERTa-v3-large-mnli
DeBERTa-v3-large-mnli is a text classification model from khalidalt. Use it when you need a label for a piece of text. It is set up for transformers.
This model was trained on the Multi-Genre Natural Language Inference ( MultiNLI ) dataset, which consists of 433k sentence pairs textual entailment information.
Downloads · 30 days
345
1% of all-time downloads
All-time downloads
40.6K
Public
Repo size
3.5 GB
Likes
6
Public
Click a slice to open those files.
.bin1.7 GB · 100%
From the Hugging Face model README
This model was trained on the Multi-Genre Natural Language Inference ( MultiNLI ) dataset, which consists of 433k sentence pairs textual entailment information.
The model used is DeBERTa-v3-large from Microsoft. The v3 DeBERTa outperforms the result of Bert and RoBERTa in majority of NLU benchmarks by using disentangled attention and enhanced mask decoder. More information about the orginal model is on official repository and the paper
premise = "The Movie have been criticized for the story. However, I think it is a great movie."
hypothesis = "I liked the movie."
input = tokenizer(premise, hypothesis, truncation=True, return_tensors="pt")
output = model(input["input_ids"].to(device)) # device = "cuda:0" or "cpu"
prediction = torch.softmax(output["logits"][0], -1)
label_names = ["entailment", "neutral", "contradiction"]
print(label_names[prediction.argmax(0).tolist()])
This model was trained on the MultiNLI dataset, which consists of 392K sentence textual entitlement.
DeBERTa-v3-large-mnli was trained using the Hugging Face trainer with the following hyperparameters.
train_args = TrainingArguments(
learning_rate=2e-5,
per_device_train_batch_size=8,
per_device_eval_batch_size=8,
num_train_epochs=3,
warmup_ratio=0.06,
weight_decay=0.1,
fp16=True,
seed=42,
)
Please cite the DeBERTa paper and MultiNLI Dataset if you use this model and include this Huggingface hub.