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

apple
/
ane-distilbert-base-uncased-finetuned-sst-2-english

Text Classification
Transformers
PyTorch
Core ML
English
distilbert
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community
4

Instructions to use apple/ane-distilbert-base-uncased-finetuned-sst-2-english with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use apple/ane-distilbert-base-uncased-finetuned-sst-2-english with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="apple/ane-distilbert-base-uncased-finetuned-sst-2-english", trust_remote_code=True)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("apple/ane-distilbert-base-uncased-finetuned-sst-2-english", trust_remote_code=True)
    model = AutoModelForSequenceClassification.from_pretrained("apple/ane-distilbert-base-uncased-finetuned-sst-2-english", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
ane-distilbert-base-uncased-finetuned-sst-2-english
Ctrl+K
Ctrl+K
  • 4 contributors
History: 9 commits
Matthijs's picture
Matthijs
albertvillanova's picture
albertvillanova HF Staff
Fix sst2 dataset name (#2)
b610778 about 4 years ago
  • DistilBERT_fp16.mlpackage
    add Core ML model about 4 years ago
  • .gitattributes
    1.17 kB
    initial commit about 4 years ago
  • README.md
    2.33 kB
    Fix sst2 dataset name (#2) about 4 years ago
  • config.json
    890 Bytes
    add model about 4 years ago
  • configuration_distilbert_ane.py
    205 Bytes
    add model about 4 years ago
  • modeling_distilbert_ane.py
    23.2 kB
    add model about 4 years ago
  • pytorch_model.bin
    268 MB
    xet
    add model about 4 years ago
  • special_tokens_map.json
    125 Bytes
    add tokenizer about 4 years ago
  • tokenizer.json
    712 kB
    add tokenizer about 4 years ago
  • tokenizer_config.json
    436 Bytes
    add tokenizer about 4 years ago
  • vocab.txt
    232 kB
    add tokenizer about 4 years ago