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

textattack
/
distilbert-base-uncased-ag-news

Text Classification
Transformers
PyTorch
distilbert
Model card Files Files and versions
xet
Community
2

Instructions to use textattack/distilbert-base-uncased-ag-news with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use textattack/distilbert-base-uncased-ag-news with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="textattack/distilbert-base-uncased-ag-news")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("textattack/distilbert-base-uncased-ag-news")
    model = AutoModelForSequenceClassification.from_pretrained("textattack/distilbert-base-uncased-ag-news")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
distilbert-base-uncased-ag-news
268 MB
Ctrl+K
Ctrl+K
History: 30 commits
system's picture
system HF Staff
Update README.md
52ee64d almost 6 years ago
  • .gitattributes
    345 Bytes
    initial commit almost 6 years ago
  • README.md
    630 Bytes
    Update README.md almost 6 years ago
  • config.json
    680 Bytes
    Update config.json almost 6 years ago
  • log.txt
    1.69 kB
    Update log.txt almost 6 years ago
  • pytorch_model.bin
    268 MB
    xet
    Update pytorch_model.bin almost 6 years ago
  • special_tokens_map.json
    112 Bytes
    Update special_tokens_map.json almost 6 years ago
  • tokenizer_config.json
    48 Bytes
    Update tokenizer_config.json almost 6 years ago
  • train_args.json
    776 Bytes
    Update train_args.json almost 6 years ago
  • vocab.txt
    232 kB
    Update vocab.txt almost 6 years ago