Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

facebook
/
bart-large-mnli

Zero-Shot Classification
Transformers
PyTorch
JAX
Rust
Safetensors
bart
text-classification
Model card Files Files and versions
xet
Community
48

Instructions to use facebook/bart-large-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/bart-large-mnli with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-mnli")
    model = AutoModelForSequenceClassification.from_pretrained("facebook/bart-large-mnli")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
bart-large-mnli / coreml
Ctrl+K
Ctrl+K
  • 6 contributors
History: 1 commit
henrygu's picture
henrygu
Add Core ML conversion
25a7cc2 over 2 years ago
  • feature-extraction
    Add Core ML conversion over 2 years ago
  • text-generation
    Add Core ML conversion over 2 years ago