readme: ---
  license:
  - apache-2.0
  - bsd-3-clause
  tags:
  - summarization
  - summary
  - booksum
  - long-document
  - long-form
  - tglobal-xl
  - XL
  datasets:
  - kmfoda/booksum
  metrics:
  - rouge
  inference: false
  model-index:
  - name: pszemraj/long-t5-tglobal-xl-16384-book-summary
    results:
    - task:
        type: summarization
        name: Summarization
      dataset:
        name: multi_news
        type: multi_news
        config: default
        split: test
      metrics:
      - type: rouge
        value: 36.2043
        name: ROUGE-1
        verified: true
        verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYzRmMmUyOTVjMmJmZTRiZDcyYzY3MTQ1MmUyNDA5NjVhYzEzYzBiNzcxYTRhMDQ3OTlhMGZjYmJlNDM1M2NjYyIsInZlcnNpb24iOjF9._uArOQ1_0znXDPXMq7unA1OHB-XbgqzzKRbFRcVUzTUJdWk26LiSa2pEEVNNmJPg6Uo7CAvONmhpEswLvl9TAg
      - type: rouge
        value: 8.424
        name: ROUGE-2
        verified: true
        verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzg0MzljYjVjYWQ3MmRkZDBlOGI5M2RiMGU0M2UwZGUzMDg2NTU0NjcwMTNiN2ZmODEzNTQ0MmEwNDA3NDA5MSIsInZlcnNpb24iOjF9.Dzj85ld6TjosQ8KyUdoadzicMLedEFrICC6Q-08O3qx28d9B9Uke1zw-VWabiuesPEDTRGbWuBgPA5vxYWUZAw
      - type: rouge
        value: 17.3721
        name: ROUGE-L
        verified: true
        verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNDA3ZjZmODAwMTNlM2RlZmJlMDI5MGVkMGRkMTBjMTYzNDk5ZjFiNTY5MWE1MDUwNWI2MDE4ZDA2YWMwMmI2NCIsInZlcnNpb24iOjF9.MOV_nId0XAK1eMQssG5GN9DsitZaTrxl4jdCJnOg9EZ0-vAw227ln599YV5YfZ1OPJnWwek6rneqqyONiHn9AQ
      - type: rouge
        value: 32.3994
        name: ROUGE-LSUM
        verified: true
        verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZmY3MDMwOTZjNWI0YTk1MDgwMzJkYTFiN2U5YWU0Mzc0MWRiMzc1NzZlMDhjMWUwMmY2ODI2MjI5ODBkYWUxOSIsInZlcnNpb24iOjF9._BwGIZbcA4pUBkEAL0cW-JPPta0KSoGug4Z7vogHacUz-AEhIOI5ICUldZh0pt9OK67MpUSzpShJOu3rSt5YDQ
      - type: loss
        value: 2.0843334197998047
        name: loss
        verified: true
        verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOWFhMmE5ZjA3ODM4YmVjMDMyMjk5YjNlMjA1MGMzOWY0NTRlYzk1YjZiMzQxMDMxOTMwMjFkNTdmNjM1NDcyMyIsInZlcnNpb24iOjF9.3wbXV4CIIgnfXAnnRztdOR12PwsWsEfiglQQ09K-C1EgW4gai4x9l-wTE2OZ7CTWkuk_tr4tL_uqOCXLZRMtCQ
      - type: gen_len
        value: 248.3572
        name: gen_len
        verified: true
        verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMWZhOGMwMDJjNGU2MzA2YzI1OWU1ZDY5N2NjZmM1YTA5NDg1MzUwNmU1YTBhNjQyNWYwYzA3OGNmODFjMmE2NSIsInZlcnNpb24iOjF9.Rc9u89zCdbFnjsnmq65l_JvCtUwOX_ZWapKJpTZ-rC8HxcUVfi2Ash2QfvvvxHH_YWhwklxxdnNa0HCm46qLAA
    - task:
        type: summarization
        name: Summarization
      dataset:
        name: billsum
        type: billsum
        config: default
        split: test
      metrics:
      - name: ROUGE-1
        type: rouge
        value: 41.3645
        verified: true
      - name: ROUGE-2
        type: rouge
        value: 16.144
        verified: true
      - name: ROUGE-L
        type: rouge
        value: 24.2981
        verified: true
      - name: ROUGE-LSUM
        type: rouge
        value: 35.3234
        verified: true
      - name: loss
        type: loss
        value: 1.282260775566101
        verified: true
      - name: gen_len
        type: gen_len
        value: 291.8158
        verified: true
    - task:
        type: summarization
        name: Summarization
      dataset:
        name: ccdv/arxiv-summarization
        type: ccdv/arxiv-summarization
        config: document
        split: test
      metrics:
      - name: ROUGE-1
        type: rouge
        value: 36.3225
        verified: true
      - name: ROUGE-2
        type: rouge
        value: 9.3743
        verified: true
      - name: ROUGE-L
        type: rouge
        value: 19.8396
        verified: true
      - name: ROUGE-LSUM
        type: rouge
        value: 32.2532
        verified: true
      - name: loss
        type: loss
        value: 2.146871566772461
        verified: true
      - name: gen_len
        type: gen_len
        value: 186.2966
        verified: true
  ---
  
  # long-t5-tglobal-xl + BookSum
  
  <a href="https://colab.research.google.com/gist/pszemraj/c19e32baf876deb866c31cd46c86e893/long-t5-xl-accelerate-test.ipynb">
    <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
  </a>
  
  Summarize long text and get a SparkNotes-like summary of any topic!
  
  - Generalizes reasonably well to academic & narrative text.
  - This is the XL checkpoint, which **produces even better summaries [from a human evaluation perspective](https://long-t5-xl-book-summary-examples.netlify.app/)**.
  
  A simple example/use case with [the base model](https://huggingface.co/pszemraj/long-t5-tglobal-base-16384-book-summary) on ASR is [here](https://longt5-booksum-example.netlify.app/).
  
  ## Cheeky Proof-of-Concept
  
  A summary of the [infamous navy seals copypasta](https://knowyourmeme.com/memes/navy-seal-copypasta):
  
  > In this chapter, the monster explains how he intends to exact revenge on "the little b\*\*\*\*" who insulted him. He tells the kiddo that he is a highly trained and experienced killer who will use his arsenal of weapons--including his access to the internet--to exact justice on th