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

vesteinn
/
DanskBERT

Fill-Mask
Transformers
PyTorch
Safetensors
Danish
xlm-roberta
roberta
danish
masked-lm
Model card Files Files and versions
xet
Community
3

Instructions to use vesteinn/DanskBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use vesteinn/DanskBERT with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="vesteinn/DanskBERT")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("vesteinn/DanskBERT")
    model = AutoModelForMaskedLM.from_pretrained("vesteinn/DanskBERT")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Max positional embedding causes error when exceeding 512.

1
#3 opened almost 3 years ago by
KennethEnevoldsen
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs