ONNX Model Zoo

pszemraj/t5-large-for-lexical-analysis

By pszemraj · ↓ 8 · ♥ 3 · Updated 2025-12-29

What's in this repo

This page lists the files in pszemraj/t5-large-for-lexical-analysis, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 445 files, including 4 .json, 2 .bin, 1 .md, 1 .safetensors, 1 .onnx, 1 .weight
  • Last updated 2025-12-29

ONNX files

File Size Download
onnx/model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

T5-large for Lexical Analysis

  • This model was trained a text-to-text task with input text as a summary of a chapter, and the output text as the analysis of that chapter on the booksum dataset.
  • it has somewhat learned how to complete literary analysis on an arbitrary input text.
  • NOTE: this is fairly intensive computationally and recommended to be run on GPU. please see example usage in this demo notebook
    • The API is set to return max 64 tokens to avoid timeouts on CPU.

Example

  • PROMPT:

Carmen: We're kids, not monsters. Dr. Romero: What's the difference?

  • OUTPUT:

Commentary on Act IV, scenes i-ii In these scenes, we see Dracula's transformation of the children into "monstrous" creatures. Doctor Romero says, "We're kidnapped, but not monsters." This is an important question for the audience to ask: Is there a difference between childhood and adulthood?

longer examples are available in both the demo notebook and at the bottom of this README.

checkpoints

Model description

  • automatic literary analysis on arbitrary text
  • booksum is a dataset created primarily for long-range summarization. It's excellent at that, and usually, this is done with the chapter and summary_text columns. However, there is a summary_analysis column as well, containing literary analysis on the passage in question :eyes:
  • this model was trained on text-to-text with summary_text as the input and summary_analysis as the output, so it will analyze whatever text for deeper meaning.

Intended uses & limitations

  • given the absence of more specific info, the analysis will reference authors/titles from the training data in the context of the analysis.

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • train_batch_size: 4
  • eval_batch_size: 4
  • seed: 42
  • distributed_type: multi-GPU
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: cosine
  • num_epochs: 4

Training results

Framework versions

  • Transformers 4.16.2
  • Pytorch 1.10.0+cu111
  • Datasets 1.18.3
  • Tokenizers 0.11.0

Extended Examples

the below responses from the model are unedited.

A prose passage from The Lord of the Rings

Far above the Ephel Duath in the West the night-sky was still dim and pale. There, peering among the cloud-wrack above a dark tor high up in the mountains, Sam saw a white star twinkle for a while. The beauty of it smote his heart, as he looked up out of the forsaken land, and hope returned to him. For like a shaft, clear and cold, the thought pierced him that in the end the Shadow was only a small and passing thing: there was light and high beauty for ever beyond its reach.

analysis:

Notes Sam's encounter with the white star is one of the most memorable scenes in the novel. It was a moment of great relief for him to see that there was light beyond his reach, and he had been longing for it all along. He looked up into the heavens at the sight of it: "It was as if I were looking out through the window of my own soul" . In this chapter, however, we are reminded of another scene from the Book of Eliot, when Sam saw the White Star twinkled for the first time since the book began. The night-sky still shrouded by clouds and cloud-wreck on the mountain tops, but now the darkness has begun to darken the whole world. When Sam looks up above the dusk over the mountains, which pierces his heart, Sam realizes that the Shadow will not last forever.

the rick and morty copypasta

Notes This is a very long post, but it's important to remember that this is the first of many posts on this site. It will take some time for me to get over the fact that I don't have an incredibly high iq to appreciate all of the humor in the show. In other words, people who dislike the series are idiots- they have no idea what these jokes mean or why they're funny at all. The only way to truly appreciate them is to be one of their diehard fans. If you do not like them, you'll end up making fools out of your own stupidity. For example, Dan Harmon writes: "I hated him because I loved him so much" . He was also extremely intelligent, and he would never have been able to fully appreciate the depth of his humour. That said, however, is that if you did not love him, then you should go ahead and make fun of him. And yet another reason why Morty dislikes him is partly due to his lack of narcissism rather than any kind of self-delusion. But there is something special about Mr. Moriarty himself- despite his lowly wittedness, which makes him seem almost superstitious. His attitude towards life seems to stem from his belief that nothing can ever be good enough to save the world. However, as noted above, Dickens says, "Life is full of paradoxes and contradictions... Life is more complex than anything else." Indeed, most critics have pointed out that even those with lower IQ points could possibly be seen as being subversive; indeed, readers might find it hard to sympathize with such simpletons. Of course, Stevenson has made it clear that we need to look beyond the surface level of normalcy in order to understand the absurdity of modern society. There are several examples of this sort of hypocrisy going on in contemporary literature. One of my favorite books is Fathers Sons, written by Alexander Nevsky, published in 1897. These books were published around 18 years before the novel was published. They were serialised in serial format, meaning that they were produced in 1921. Their publication dates back to 1864, when they appeared in London during the late eighteenth century England. At the time of its publication date, it was released in November 1793. When it came out in December, the book had already been published after 1859.

Model info

text-generation transformers
transformers pytorch onnx safetensors t5 text2text-generation analysis book notes en dataset:kmfoda/booksum arxiv:2105.08209
↓ 8 ♥ 3

Created: 2022-03-02

Updated: 2025-12-29

View on Hugging Face

Files (445)

.gitattributes
README.md
config.json
model.safetensors
onnx/model.onnx ONNX
onnx/onnx__MatMul_7345
onnx/onnx__MatMul_7355
onnx/onnx__MatMul_7356
onnx/onnx__MatMul_7359
onnx/onnx__MatMul_7360
onnx/onnx__MatMul_7361
onnx/onnx__MatMul_7362
onnx/onnx__MatMul_7363
onnx/onnx__MatMul_7373
onnx/onnx__MatMul_7374
onnx/onnx__MatMul_7377
onnx/onnx__MatMul_7378
onnx/onnx__MatMul_7379
onnx/onnx__MatMul_7380
onnx/onnx__MatMul_7381
onnx/onnx__MatMul_7391
onnx/onnx__MatMul_7392
onnx/onnx__MatMul_7395
onnx/onnx__MatMul_7396
onnx/onnx__MatMul_7397
onnx/onnx__MatMul_7398
onnx/onnx__MatMul_7399
onnx/onnx__MatMul_7409
onnx/onnx__MatMul_7410
onnx/onnx__MatMul_7413
onnx/onnx__MatMul_7414
onnx/onnx__MatMul_7415
onnx/onnx__MatMul_7416
onnx/onnx__MatMul_7417
onnx/onnx__MatMul_7427
onnx/onnx__MatMul_7428
onnx/onnx__MatMul_7431
onnx/onnx__MatMul_7432
onnx/onnx__MatMul_7433
onnx/onnx__MatMul_7434
onnx/onnx__MatMul_7435
onnx/onnx__MatMul_7445
onnx/onnx__MatMul_7446
onnx/onnx__MatMul_7449
onnx/onnx__MatMul_7450
onnx/onnx__MatMul_7451
onnx/onnx__MatMul_7452
onnx/onnx__MatMul_7453
onnx/onnx__MatMul_7463
onnx/onnx__MatMul_7464
onnx/onnx__MatMul_7467
onnx/onnx__MatMul_7468
onnx/onnx__MatMul_7469
onnx/onnx__MatMul_7470
onnx/onnx__MatMul_7471
onnx/onnx__MatMul_7481
onnx/onnx__MatMul_7482
onnx/onnx__MatMul_7485
onnx/onnx__MatMul_7486
onnx/onnx__MatMul_7487
onnx/onnx__MatMul_7488
onnx/onnx__MatMul_7489
onnx/onnx__MatMul_7499
onnx/onnx__MatMul_7500
onnx/onnx__MatMul_7503
onnx/onnx__MatMul_7504
onnx/onnx__MatMul_7505
onnx/onnx__MatMul_7506
onnx/onnx__MatMul_7507
onnx/onnx__MatMul_7517
onnx/onnx__MatMul_7518
onnx/onnx__MatMul_7521
onnx/onnx__MatMul_7522
onnx/onnx__MatMul_7523
onnx/onnx__MatMul_7524
onnx/onnx__MatMul_7525
onnx/onnx__MatMul_7535
onnx/onnx__MatMul_7536
onnx/onnx__MatMul_7539
onnx/onnx__MatMul_7540
onnx/onnx__MatMul_7541
onnx/onnx__MatMul_7542
onnx/onnx__MatMul_7543
onnx/onnx__MatMul_7553
onnx/onnx__MatMul_7554
onnx/onnx__MatMul_7557
onnx/onnx__MatMul_7558
onnx/onnx__MatMul_7559
onnx/onnx__MatMul_7560
onnx/onnx__MatMul_7561
onnx/onnx__MatMul_7571
onnx/onnx__MatMul_7572
onnx/onnx__MatMul_7575
onnx/onnx__MatMul_7576
onnx/onnx__MatMul_7577
onnx/onnx__MatMul_7578
onnx/onnx__MatMul_7579
onnx/onnx__MatMul_7589
onnx/onnx__MatMul_7590
onnx/onnx__MatMul_7593
onnx/onnx__MatMul_7594
onnx/onnx__MatMul_7595
onnx/onnx__MatMul_7596
onnx/onnx__MatMul_7597
onnx/onnx__MatMul_7607
onnx/onnx__MatMul_7608
onnx/onnx__MatMul_7611
onnx/onnx__MatMul_7612
onnx/onnx__MatMul_7613
onnx/onnx__MatMul_7614
onnx/onnx__MatMul_7615
onnx/onnx__MatMul_7625
onnx/onnx__MatMul_7626
onnx/onnx__MatMul_7629
onnx/onnx__MatMul_7630
onnx/onnx__MatMul_7631
onnx/onnx__MatMul_7632
onnx/onnx__MatMul_7633
onnx/onnx__MatMul_7643
onnx/onnx__MatMul_7644
onnx/onnx__MatMul_7647
onnx/onnx__MatMul_7648
onnx/onnx__MatMul_7649
onnx/onnx__MatMul_7650
onnx/onnx__MatMul_7651
onnx/onnx__MatMul_7661
onnx/onnx__MatMul_7662
onnx/onnx__MatMul_7665
onnx/onnx__MatMul_7666
onnx/onnx__MatMul_7667
onnx/onnx__MatMul_7668
onnx/onnx__MatMul_7669
onnx/onnx__MatMul_7679
onnx/onnx__MatMul_7680
onnx/onnx__MatMul_7683
onnx/onnx__MatMul_7684
onnx/onnx__MatMul_7685
onnx/onnx__MatMul_7686
onnx/onnx__MatMul_7687
onnx/onnx__MatMul_7697
onnx/onnx__MatMul_7698
onnx/onnx__MatMul_7701
onnx/onnx__MatMul_7702
onnx/onnx__MatMul_7703
onnx/onnx__MatMul_7704
onnx/onnx__MatMul_7705
onnx/onnx__MatMul_7715
onnx/onnx__MatMul_7716
onnx/onnx__MatMul_7719
onnx/onnx__MatMul_7720
onnx/onnx__MatMul_7721
onnx/onnx__MatMul_7722
onnx/onnx__MatMul_7723
onnx/onnx__MatMul_7733
onnx/onnx__MatMul_7734
onnx/onnx__MatMul_7737
onnx/onnx__MatMul_7738
onnx/onnx__MatMul_7739
onnx/onnx__MatMul_7740
onnx/onnx__MatMul_7741
onnx/onnx__MatMul_7751
onnx/onnx__MatMul_7752
onnx/onnx__MatMul_7755
onnx/onnx__MatMul_7756
onnx/onnx__MatMul_7757
onnx/onnx__MatMul_7758
onnx/onnx__MatMul_7759
onnx/onnx__MatMul_7769
onnx/onnx__MatMul_7770
onnx/onnx__MatMul_7773
onnx/onnx__MatMul_7774
onnx/onnx__MatMul_7775
onnx/onnx__MatMul_7776
onnx/onnx__MatMul_7780
onnx/onnx__MatMul_7790
onnx/onnx__MatMul_7791
onnx/onnx__MatMul_7794
onnx/onnx__MatMul_7795
onnx/onnx__MatMul_7805
onnx/onnx__MatMul_7806
onnx/onnx__MatMul_7811
onnx/onnx__MatMul_7812
onnx/onnx__MatMul_7813
onnx/onnx__MatMul_7814
onnx/onnx__MatMul_7815
onnx/onnx__MatMul_7825
onnx/onnx__MatMul_7826
onnx/onnx__MatMul_7829
onnx/onnx__MatMul_7830
onnx/onnx__MatMul_7840
onnx/onnx__MatMul_7841
onnx/onnx__MatMul_7844
onnx/onnx__MatMul_7845
onnx/onnx__MatMul_7846
onnx/onnx__MatMul_7847
onnx/onnx__MatMul_7848
onnx/onnx__MatMul_7858
onnx/onnx__MatMul_7859
onnx/onnx__MatMul_7862
onnx/onnx__MatMul_7863
onnx/onnx__MatMul_7873
onnx/onnx__MatMul_7874
onnx/onnx__MatMul_7877
onnx/onnx__MatMul_7878
onnx/onnx__MatMul_7879
onnx/onnx__MatMul_7880
onnx/onnx__MatMul_7881
onnx/onnx__MatMul_7891
onnx/onnx__MatMul_7892
onnx/onnx__MatMul_7895
onnx/onnx__MatMul_7896
onnx/onnx__MatMul_7906
onnx/onnx__MatMul_7907
onnx/onnx__MatMul_7910
onnx/onnx__MatMul_7911
onnx/onnx__MatMul_7912
onnx/onnx__MatMul_7913
onnx/onnx__MatMul_7914
onnx/onnx__MatMul_7924
onnx/onnx__MatMul_7925
onnx/onnx__MatMul_7928
onnx/onnx__MatMul_7929
onnx/onnx__MatMul_7939
onnx/onnx__MatMul_7940
onnx/onnx__MatMul_7943
onnx/onnx__MatMul_7944
onnx/onnx__MatMul_7945
onnx/onnx__MatMul_7946
onnx/onnx__MatMul_7947
onnx/onnx__MatMul_7957
onnx/onnx__MatMul_7958
onnx/onnx__MatMul_7961
onnx/onnx__MatMul_7962
onnx/onnx__MatMul_7972
onnx/onnx__MatMul_7973
onnx/onnx__MatMul_7976
onnx/onnx__MatMul_7977
onnx/onnx__MatMul_7978
onnx/onnx__MatMul_7979
onnx/onnx__MatMul_7980
onnx/onnx__MatMul_7990
onnx/onnx__MatMul_7991
onnx/onnx__MatMul_7994
onnx/onnx__MatMul_7995
onnx/onnx__MatMul_8005
onnx/onnx__MatMul_8006
onnx/onnx__MatMul_8009
onnx/onnx__MatMul_8010
onnx/onnx__MatMul_8011
onnx/onnx__MatMul_8012
onnx/onnx__MatMul_8013
onnx/onnx__MatMul_8023
onnx/onnx__MatMul_8024
onnx/onnx__MatMul_8027
onnx/onnx__MatMul_8028
onnx/onnx__MatMul_8038
onnx/onnx__MatMul_8039
onnx/onnx__MatMul_8042
onnx/onnx__MatMul_8043
onnx/onnx__MatMul_8044
onnx/onnx__MatMul_8045
onnx/onnx__MatMul_8046
onnx/onnx__MatMul_8056
onnx/onnx__MatMul_8057
onnx/onnx__MatMul_8060
onnx/onnx__MatMul_8061
onnx/onnx__MatMul_8071
onnx/onnx__MatMul_8072
onnx/onnx__MatMul_8075
onnx/onnx__MatMul_8076
onnx/onnx__MatMul_8077
onnx/onnx__MatMul_8078
onnx/onnx__MatMul_8079
onnx/onnx__MatMul_8089
onnx/onnx__MatMul_8090
onnx/onnx__MatMul_8093
onnx/onnx__MatMul_8094
onnx/onnx__MatMul_8104
onnx/onnx__MatMul_8105
onnx/onnx__MatMul_8108
onnx/onnx__MatMul_8109
onnx/onnx__MatMul_8110
onnx/onnx__MatMul_8111
onnx/onnx__MatMul_8112
onnx/onnx__MatMul_8122
onnx/onnx__MatMul_8123
onnx/onnx__MatMul_8126
onnx/onnx__MatMul_8127
onnx/onnx__MatMul_8137
onnx/onnx__MatMul_8138
onnx/onnx__MatMul_8141
onnx/onnx__MatMul_8142
onnx/onnx__MatMul_8143
onnx/onnx__MatMul_8144
onnx/onnx__MatMul_8145
onnx/onnx__MatMul_8155
onnx/onnx__MatMul_8156
onnx/onnx__MatMul_8159
onnx/onnx__MatMul_8160
onnx/onnx__MatMul_8170
onnx/onnx__MatMul_8171
onnx/onnx__MatMul_8174
onnx/onnx__MatMul_8175
onnx/onnx__MatMul_8176
onnx/onnx__MatMul_8177
onnx/onnx__MatMul_8178
onnx/onnx__MatMul_8188
onnx/onnx__MatMul_8189
onnx/onnx__MatMul_8192
onnx/onnx__MatMul_8193
onnx/onnx__MatMul_8203
onnx/onnx__MatMul_8204
onnx/onnx__MatMul_8207
onnx/onnx__MatMul_8208
onnx/onnx__MatMul_8209
onnx/onnx__MatMul_8210
onnx/onnx__MatMul_8211
onnx/onnx__MatMul_8221
onnx/onnx__MatMul_8222
onnx/onnx__MatMul_8225
onnx/onnx__MatMul_8226
onnx/onnx__MatMul_8236
onnx/onnx__MatMul_8237
onnx/onnx__MatMul_8240
onnx/onnx__MatMul_8241
onnx/onnx__MatMul_8242
onnx/onnx__MatMul_8243
onnx/onnx__MatMul_8244
onnx/onnx__MatMul_8254
onnx/onnx__MatMul_8255
onnx/onnx__MatMul_8258
onnx/onnx__MatMul_8259
onnx/onnx__MatMul_8269
onnx/onnx__MatMul_8270
onnx/onnx__MatMul_8273
onnx/onnx__MatMul_8274
onnx/onnx__MatMul_8275
onnx/onnx__MatMul_8276
onnx/onnx__MatMul_8277
onnx/onnx__MatMul_8287
onnx/onnx__MatMul_8288
onnx/onnx__MatMul_8291
onnx/onnx__MatMul_8292
onnx/onnx__MatMul_8302
onnx/onnx__MatMul_8303
onnx/onnx__MatMul_8306
onnx/onnx__MatMul_8307
onnx/onnx__MatMul_8308
onnx/onnx__MatMul_8309
onnx/onnx__MatMul_8310
onnx/onnx__MatMul_8320
onnx/onnx__MatMul_8321
onnx/onnx__MatMul_8324
onnx/onnx__MatMul_8325
onnx/onnx__MatMul_8335
onnx/onnx__MatMul_8336
onnx/onnx__MatMul_8339
onnx/onnx__MatMul_8340
onnx/onnx__MatMul_8341
onnx/onnx__MatMul_8342
onnx/onnx__MatMul_8343
onnx/onnx__MatMul_8353
onnx/onnx__MatMul_8354
onnx/onnx__MatMul_8357
onnx/onnx__MatMul_8358
onnx/onnx__MatMul_8368
onnx/onnx__MatMul_8369
onnx/onnx__MatMul_8372
onnx/onnx__MatMul_8373
onnx/onnx__MatMul_8374
onnx/onnx__MatMul_8375
onnx/onnx__MatMul_8376
onnx/onnx__MatMul_8386
onnx/onnx__MatMul_8387
onnx/onnx__MatMul_8390
onnx/onnx__MatMul_8391
onnx/onnx__MatMul_8401
onnx/onnx__MatMul_8402
onnx/onnx__MatMul_8405
onnx/onnx__MatMul_8406
onnx/onnx__MatMul_8407
onnx/onnx__MatMul_8408
onnx/onnx__MatMul_8409
onnx/onnx__MatMul_8419
onnx/onnx__MatMul_8420
onnx/onnx__MatMul_8423
onnx/onnx__MatMul_8424
onnx/onnx__MatMul_8434
onnx/onnx__MatMul_8435
onnx/onnx__MatMul_8438
onnx/onnx__MatMul_8439
onnx/onnx__MatMul_8440
onnx/onnx__MatMul_8441
onnx/onnx__MatMul_8442
onnx/onnx__MatMul_8452
onnx/onnx__MatMul_8453
onnx/onnx__MatMul_8456
onnx/onnx__MatMul_8457
onnx/onnx__MatMul_8467
onnx/onnx__MatMul_8468
onnx/onnx__MatMul_8471
onnx/onnx__MatMul_8472
onnx/onnx__MatMul_8473
onnx/onnx__MatMul_8474
onnx/onnx__MatMul_8475
onnx/onnx__MatMul_8485
onnx/onnx__MatMul_8486
onnx/onnx__MatMul_8489
onnx/onnx__MatMul_8490
onnx/onnx__MatMul_8500
onnx/onnx__MatMul_8501
onnx/onnx__MatMul_8504
onnx/onnx__MatMul_8505
onnx/onnx__MatMul_8506
onnx/onnx__MatMul_8507
onnx/onnx__MatMul_8508
onnx/onnx__MatMul_8518
onnx/onnx__MatMul_8519
onnx/onnx__MatMul_8522
onnx/onnx__MatMul_8523
onnx/onnx__MatMul_8533
onnx/onnx__MatMul_8534
onnx/onnx__MatMul_8537
onnx/onnx__MatMul_8538
onnx/onnx__MatMul_8539
onnx/onnx__MatMul_8540
onnx/onnx__MatMul_8541
onnx/onnx__MatMul_8551
onnx/onnx__MatMul_8552
onnx/onnx__MatMul_8555
onnx/onnx__MatMul_8556
onnx/onnx__MatMul_8566
onnx/onnx__MatMul_8567
onnx/onnx__MatMul_8570
onnx/onnx__MatMul_8571
onnx/onnx__MatMul_8572
onnx/onnx__MatMul_8573
onnx/onnx__MatMul_8574
onnx/shared.weight
pytorch_model.bin
special_tokens_map.json
spiece.model
tokenizer.json
tokenizer_config.json
training_args.bin

Related models