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

allenai
/
longformer-base-4096

Transformers
PyTorch
google-tensorflow TensorFlow
Rust
English
longformer
Model card Files Files and versions
xet
Community
9

Instructions to use allenai/longformer-base-4096 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use allenai/longformer-base-4096 with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("allenai/longformer-base-4096", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Adding License file to repository

#9 opened about 2 years ago by
iamankit

how to optimize this model to run faster on CPU?

1
#8 opened about 2 years ago by
priyank-m

Adding `safetensors` variant of this model

#7 opened about 2 years ago by
SFconvertbot

Adds missing tokenizer configuration file

#6 opened about 2 years ago by
lysandre

Longformer from RoBERTa

#3 opened over 3 years ago by
vitvit

Text Classification of documents with high variance in lengths

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