Run this model with HF Jobs

Run nikotang/span-nli-bert-large on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/nikotang/span-nli-bert-large. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/nikotang/span-nli-bert-large on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="nikotang/span-nli-bert-large")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, BertForIdentificationClassification

tokenizer = AutoTokenizer.from_pretrained("nikotang/span-nli-bert-large")
model = BertForIdentificationClassification.from_pretrained("nikotang/span-nli-bert-large", device_map="auto")
Quick Links

Span NLI BERT (large)

This is a BERT-large model (bert-large-uncased-whole-word-masking) fine-tuned on the ContractNLI dataset (non-disclosure agreements) with the Span NLI BERT model architecture, from ContractNLI: A Dataset for Document-level Natural Language Inference for Contracts (Koreeda and Manning, 2021).

For a hypothesis, the Span NLI BERT model predicts NLI labels and identifies evidence for documents as premises. Spans of documents should be pre-annotated; evidence is always full sentences or items in an enumerated list in the document.

For details of the architecture and usage of the relevant training/testing scripts, check out the paper and their Github repo. This model is fine-tuned according to the recommended hyperparameters in the Appendix of the paper, some of which differ from the hyperparameters in data/conf_large.yml in their repo.

ArXiv: https://arxiv.org/abs/2110.01799

Downloads last month
18
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for nikotang/span-nli-bert-large