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

MoritzLaurer
/
policy-distilbert-7d

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

Instructions to use MoritzLaurer/policy-distilbert-7d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MoritzLaurer/policy-distilbert-7d with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="MoritzLaurer/policy-distilbert-7d")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("MoritzLaurer/policy-distilbert-7d")
    model = AutoModelForSequenceClassification.from_pretrained("MoritzLaurer/policy-distilbert-7d")
  • Notebooks
  • Google Colab
  • Kaggle
policy-distilbert-7d
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
MoritzLaurer's picture
MoritzLaurer
different api example
dd0868b over 5 years ago
  • .gitattributes
    345 Bytes
    initial commit over 5 years ago
  • README.md
    5.22 kB
    different api example over 5 years ago
  • config.json
    948 Bytes
    update of label names over 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    268 MB
    xet
    from Google Colab over 5 years ago
  • special_tokens_map.json
    112 Bytes
    from Google Colab over 5 years ago
  • tokenizer_config.json
    258 Bytes
    from Google Colab over 5 years ago
  • trainer_state.json
    42.7 kB
    from Google Colab over 5 years ago
  • training_args.bin

    Detected Pickle imports (3)

    • "transformers.trainer_utils.EvaluationStrategy",
    • "torch.device",
    • "transformers.training_args.TrainingArguments"

    How to fix it?

    1.9 kB
    xet
    from Google Colab over 5 years ago
  • vocab.txt
    232 kB
    from Google Colab over 5 years ago