YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

πŸ“˜ DocNLI-BERT (Finetuned for Natural Language Inference)

Hugging Face
License: Apache-2.0


🧾 Model Overview

This model is a BERT-based sequence classification model finetuned on a Document NLI (Natural Language Inference) dataset.

Task:
Given a premise and a hypothesis, the model predicts whether the hypothesis is entailed by the premise or not.

  • Base model: bert-base-uncased
  • Fine-tuned head: Sequence classification head with 2 labels (entailment, not_entailment)

πŸ“Š Training Details

  • Framework: Hugging Face Transformers + PEFT (LoRA)
  • Optimizer: AdamW
  • Learning rate: 5e-5
  • Batch size: 16
  • Epochs: 6
  • Loss function: CrossEntropyLoss
  • Best checkpoint selection: Based on validation accuracy

πŸš€ Usage

Load model & tokenizer

from transformers import AutoTokenizer, AutoModelForSequenceClassification

model_name = "ProdD/docnli-bert-finetuned" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForSequenceClassification.from_pretrained(model_name)

Downloads last month
2
Safetensors
Model size
67M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support