Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

tasksource
/
ModernBERT-base-nli

Zero-Shot Classification
Transformers
Safetensors
English
modernbert
text-classification
instruct
natural-language-inference
nli
mnli
Model card Files Files and versions
xet
Community
1

Instructions to use tasksource/ModernBERT-base-nli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use tasksource/ModernBERT-base-nli with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-classification", model="tasksource/ModernBERT-base-nli")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("tasksource/ModernBERT-base-nli")
    model = AutoModelForSequenceClassification.from_pretrained("tasksource/ModernBERT-base-nli")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
ModernBERT-base-nli
602 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 27 commits
sileod's picture
sileod
Update README.md
de4ab7e verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    10.4 kB
    Update README.md over 1 year ago
  • config.json
    5.54 kB
    Upload ModernBertForSequenceClassification over 1 year ago
  • model.safetensors
    598 MB
    xet
    Upload ModernBertForSequenceClassification over 1 year ago
  • special_tokens_map.json
    694 Bytes
    Upload tokenizer over 1 year ago
  • tokenizer.json
    3.58 MB
    Upload tokenizer over 1 year ago
  • tokenizer_config.json
    20.9 kB
    Upload tokenizer over 1 year ago