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

zedfum
/
arman-longformer-8k

Summarization
Transformers
PyTorch
Persian
pegasus
text-generation
Model card Files Files and versions
xet
Community
1

Instructions to use zedfum/arman-longformer-8k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use zedfum/arman-longformer-8k with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "summarization" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("summarization", model="zedfum/arman-longformer-8k")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("zedfum/arman-longformer-8k")
    model = AutoModelForSeq2SeqLM.from_pretrained("zedfum/arman-longformer-8k")
  • Notebooks
  • Google Colab
  • Kaggle
arman-longformer-8k
1.21 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
hofarah's picture
hofarah
Update README.md
4427614 almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    573 Bytes
    Update README.md almost 3 years ago
  • config.json
    1.76 kB
    Upload LongformerEncoderDecoderForConditionalGeneration almost 3 years ago
  • generation_config.json
    255 Bytes
    Upload LongformerEncoderDecoderForConditionalGeneration almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    1.2 GB
    xet
    Upload LongformerEncoderDecoderForConditionalGeneration almost 3 years ago
  • special_tokens_map.json
    1.77 kB
    Upload tokenizer almost 3 years ago
  • spiece.model
    2.24 MB
    xet
    Upload tokenizer almost 3 years ago
  • tokenizer.json
    6.93 MB
    Upload tokenizer almost 3 years ago
  • tokenizer_config.json
    1.95 kB
    Upload tokenizer almost 3 years ago