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

KBLab
/
megatron-bert-large-swedish-cased-165-zero-shot

Zero-Shot Classification
Transformers
PyTorch
Safetensors
Swedish
megatron-bert
text-classification
swedish
Model card Files Files and versions
xet
Community
1

Instructions to use KBLab/megatron-bert-large-swedish-cased-165-zero-shot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use KBLab/megatron-bert-large-swedish-cased-165-zero-shot with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-classification", model="KBLab/megatron-bert-large-swedish-cased-165-zero-shot")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("KBLab/megatron-bert-large-swedish-cased-165-zero-shot")
    model = AutoModelForSequenceClassification.from_pretrained("KBLab/megatron-bert-large-swedish-cased-165-zero-shot")
  • Notebooks
  • Google Colab
  • Kaggle
megatron-bert-large-swedish-cased-165-zero-shot
Ctrl+K
Ctrl+K
  • 4 contributors
History: 9 commits
Lauler's picture
Lauler
Update README.md
d30d440 over 2 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    1.9 kB
    Update README.md over 2 years ago
  • config.json
    946 Bytes
    Add model and tokenizer over 3 years ago
  • model.safetensors
    1.48 GB
    xet
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.48 GB
    xet
    Add model and tokenizer over 3 years ago
  • special_tokens_map.json
    173 Bytes
    Add model and tokenizer over 3 years ago
  • tokenizer.json
    1.42 MB
    Add model and tokenizer over 3 years ago
  • tokenizer_config.json
    201 Bytes
    Add model and tokenizer over 3 years ago