pszemraj

159 models • 1 total models in database
Sort by:

flan-t5-large-grammar-synthesis

A fine-tuned version of google/flan-t5-large for grammar correction on an expanded version of the JFLEG dataset. Demo on HF spaces. > There's a colab notebook that already has this basic version implemented (click on the Open in Colab button) After `pip install transformers` run the following code: For Batch Inference: see this discussion thread for details, but essentially the dataset consists of several sentences at a time, and so I'd recommend running inference in the same fashion: batches of 64-96 tokens ish (or, 2-3 sentences split with regex) - it is also helpful to first check whether or not a given sentence needs grammar correction before using the text2text model. You can do this with BERT-type models fine-tuned on CoLA like `textattack/roberta-base-CoLA` - I made a notebook demonstrating batch inference here The intent is to create a text2text language model that successfully completes "single-shot grammar correction" on a potentially grammatically incorrect text that could have a lot of mistakes with the important qualifier of it does not semantically change text/information that IS grammatically correct. Compare some of the heavier-error examples on other grammar correction models to see the difference :) This model has been converted to ONNX and can be loaded/used with huggingface's `optimum` library. If trading a slight decrease in grammatical correction quality for faster inference speed makes sense for your use case, check out the base and small checkpoints fine-tuned from the relevant t5 checkpoints. - dataset: `cc-by-nc-sa-4.0` - model: `apache-2.0` - this is still a work-in-progress and while probably useful for "single-shot grammar correction" in a lot of cases, give the outputs a glance for correctness ok? Obviously, this section is quite general as there are many things one can use "general single-shot grammar correction" for. Some ideas or use cases: 1. Correcting highly error-prone LM outputs. Some examples would be audio transcription (ASR) (this is literally some of the examples) or something like handwriting OCR. - To be investigated further, depending on what model/system is used it might be worth it to apply this after OCR on typed characters. 2. Correcting/infilling text generated by text generation models to be cohesive/remove obvious errors that break the conversation immersion. I use this on the outputs of this OPT 2.7B chatbot-esque model of myself. > An example of this model running on CPU with beam search: Note: that I have some other logic that removes any periods at the end of the final sentence in this chatbot setting to avoid coming off as passive aggressive 3. Somewhat related to #2 above, fixing/correcting so-called tortured-phrases that are dead giveaways text was generated by a language model. Note that SOME of these are not fixed, especially as they venture into domain-specific terminology (i.e. irregular timberland instead of Random Forest). If you find this fine-tuned model useful in your work, please consider citing it :)

license:cc-by-nc-sa-4.0
28,012
92

led-large-book-summary

license:apache-2.0
1,482
113

long-t5-tglobal-base-16384-book-summary

license:apache-2.0
1,472
135

pegasus-x-large-book-summary

license:apache-2.0
1,118
36

pythia-31m-KI_v1-2048-scratch

license:apache-2.0
1,068
0

distilgpt2-HC3

license:apache-2.0
1,066
1

pythia-31m-simplepile-lite-2048-scratch-2e

license:apache-2.0
1,053
0

pythia-31m-goodwiki-deduped-2048-scratch

license:apache-2.0
1,052
1

pythia-31m-simplewiki-scratch-bf16

license:apache-2.0
1,036
0

pythia-31m-simplewiki-2048

license:apache-2.0
1,031
1

perSLIMmon-8b-base

NaNK
license:apache-2.0
677
0

mega-ar-350m-v0.13

license:apache-2.0
475
0

led-base-book-summary

license:apache-2.0
426
64

electra-base-discriminator-CoLA

license:apache-2.0
327
0

grammar-synthesis-small

license:cc-by-nc-sa-4.0
320
7

grammar-synthesis-large

license:cc-by-nc-sa-4.0
144
2

flan-t5-large-grammar-synthesis-gguf

license:apache-2.0
107
2

candle-flanUL2-quantized

NaNK
license:apache-2.0
91
0

flan-t5-xl-grammar-synthesis

license:cc-by-nc-sa-4.0
90
10

long-t5-tglobal-base-sci-simplify

license:apache-2.0
87
10

opt-350m-email-generation

81
6

medgemma-4b-it-heretic

NaNK
79
3

long-t5-tglobal-base-synthsumm_direct

license:apache-2.0
75
1

flan-t5-xl-summary-map-reduce-1024

NaNK
license:apache-2.0
71
0

long-t5-tglobal-xl-16384-book-summary

license:apache-2.0
61
19

long-t5-tglobal-base-sci-simplify-elife

license:apache-2.0
61
5

flan-ul2-text-encoder

license:apache-2.0
60
2

opt-125m-email-generation

54
3

long-t5-tglobal-large-pubmed-3k-booksum-16384-WIP

license:apache-2.0
53
1

bigbird-pegasus-large-K-booksum

license:apache-2.0
51
6

mega-ar-525m-v0.07-ultraTBfw

license:apache-2.0
50
0

long-t5-tglobal-base-16384-booksci-summary-v1

license:bsd-3-clause
49
2

mega-ar-small-4096-wikitext-103-raw-v1

license:apache-2.0
48
0

bart-large-summary-map-reduce

NaNK
license:apache-2.0
44
1

flan-t5-small-instructiongen

license:apache-2.0
44
0

pegasus-x-large-book_synthsumm-bf16

license:bsd-3-clause
43
0

tiny-gpt2-magicprompt

42
1

long-t5-tglobal-base-16384-booksum-V11-big_patent-V2

license:apache-2.0
40
2

bart-base-grammar-synthesis

license:cc-by-nc-sa-4.0
40
2

distilgpt2-magicprompt-SD

license:apache-2.0
38
3

stablelm-7b-sft-v7e3-autogptq-4bit-128g

NaNK
license:cc-by-sa-4.0
38
3

mGPT-Peter-2E

license:apache-2.0
38
0

long-t5-tglobal-large-pubmed-3k-booksum-16384-WIP13

license:apache-2.0
38
0

opt-peter-2.7B

NaNK
license:apache-2.0
37
2

distilgpt2-multiprompt

license:apache-2.0
36
1

griffin-c3t-8L-v0.02-fineweb

license:apache-2.0
36
0

opt-peter-1.3B

NaNK
license:apache-2.0
35
0

nougat-small-onnx

license:cc-by-4.0
32
2

mega-ar-small-4096-sw_minipile

NaNK
license:apache-2.0
32
0

granite-4.0-h-7b-heretic

NaNK
license:apache-2.0
30
3

pegasus-x-large-book_synthsumm

license:bsd-3-clause
30
2

mega-ar-large-2048-simplewiki

license:apache-2.0
29
1

t5-v1_1-base-ft-jflAUG

license:cc-by-nc-sa-4.0
29
1

long-t5-tglobal-xl-16384-book-summary-8bit

NaNK
license:apache-2.0
29
0

t5-large-for-lexical-analysis

license:bsd-3-clause
28
3

xtremedistil-l12-h384-uncased-zeroshot-v1.1

license:mit
28
1

long-t5-tglobal-base-16384-booksum-V12

license:apache-2.0
27
4

distilroberta-base-edu-classifier

dataset:HuggingFaceFW/fineweb-edu-llama3-annotations
26
2

gpt-peter-2.7B

NaNK
26
2

mpnet-base-edu-classifier

dataset:HuggingFaceFW/fineweb-edu-llama3-annotations
26
1

beit-large-patch16-512-film-shot-classifier

NaNK
license:apache-2.0
26
1

long-t5-tglobal-large-pubmed-3k-booksum-16384-WIP15

NaNK
license:apache-2.0
26
0

pythia-6.9b-HC3

NaNK
license:apache-2.0
25
2

MiniLMv2-L6-H384_R-fineweb-100k

license:apache-2.0
25
1

distilbert-base-uncased-edu-classifier

dataset:HuggingFaceFW/fineweb-edu-llama3-annotations
25
0

electra-small-discriminator-CoLA

license:apache-2.0
24
0

long-t5-tglobal-large-booksum-WIP

24
0

tFINE-850m-24x24-instruct-L2

NaNK
license:apache-2.0
24
0

t5-base-askscience-lfqa

license:apache-2.0
23
1

mega-small-2048-C1024-MR50-sw_minipile-tk_ema32

NaNK
license:apache-2.0
23
0

jamba-900M-v0.13-KIx2

license:apache-2.0
22
4

xtremedistil-l6-h256-OCR-quality

license:mit
22
1

gpt-neo-125M-magicprompt-SD

license:apache-2.0
22
1

electra-small-discriminator-zeroshot-v1.1

license:apache-2.0
22
1

deberta-v3-xsmall-CoLA

license:mit
22
0

convnextv2-nano-22k-384-boulderspot

NaNK
license:apache-2.0
22
0

dinov2-small-film-shot-classifier

license:apache-2.0
21
1

t5-base-askscience

21
0

Ballpark-Trivia-XL

license:mit
20
0

paraphrase-MiniLM-L12-v2-CoLA

license:apache-2.0
20
0

deberta-v3-small-sp500-edgar-10k

license:mit
20
0

granite-4.0-h-1b-heretic-GGUF

NaNK
llama-cpp
20
0

long-t5-tglobal-xl-sci-simplify-elife

license:apache-2.0
19
2

MiniLMv2-L6-H384_R-OCR-quality

license:apache-2.0
19
0

Mistral-7B-sarcasm-scrolls-v2

NaNK
license:apache-2.0
19
0

led-large-book-summary-continued

license:bsd-3-clause
18
2

bart-large-instructiongen-w-inputs

license:apache-2.0
18
1

bart-base-instructiongen-w-inputs

license:apache-2.0
18
0

bert-L-4_H-128_A-2-OCR-quality

NaNK
license:apache-2.0
18
0

flan-t5-large-instruct-dolly_hhrlhf

license:cc-by-sa-3.0
17
2

distill-pegasus-CompMath

17
1

Mistral-7B-v0.3-prune6

NaNK
license:apache-2.0
17
0

nGPT-enwiki8

license:mit
17
0

xtremedistil-l12-h384-uncased-CoLA

license:mit
17
0

bart-large-code-instructiongen

license:apache-2.0
16
7

granite-4.0-h-small-heretic_hi

license:apache-2.0
16
1

bart-base-open-instructiongen-v1

license:apache-2.0
16
1

gpt2-medium-vaguely-human-dialogue

license:mit
16
0

BL-pythia-31m-simpleRW-lite-2048-scratch

license:apache-2.0
15
1

long-t5-tglobal-large-pubmed-3k-booksum-16384-WIP14

NaNK
license:apache-2.0
15
1

griffin-v0.01-c3t-8layer-simplewiki

license:apache-2.0
15
0

stablelm-4e1t-2b-v0.1

NaNK
license:cc-by-sa-4.0
15
0

Yi-6B-200K-Llama-sharded

NaNK
llama
15
0

flan-t5-xl-instructiongen

license:apache-2.0
14
2

long-t5-tglobal-xl-16384-booksci-summary-v1

license:bsd-3-clause
14
1

karnold-walmer-base-biopapers

license:apache-2.0
14
1

flan-t5-base-instructiongen

license:apache-2.0
14
0

nougat-small-onnx-quant_avx2

license:apache-2.0
14
0

BERTopic-summcomparer-gauntlet-v0p1-all-roberta-large-v1-document_text

license:apache-2.0
14
0

mega-small-2048-C1024-tk_id-simplewiki-MR50

license:apache-2.0
14
0

long-t5-tglobal-xl-qmsum-wip

license:apache-2.0
13
1

tFINE-base-300m

license:apache-2.0
13
0

e5-small-LinkedCringe-setfit-skl-20it-2e

license:apache-2.0
13
0

griffin-1024-llama3t-8layer-simplewiki-silu

license:apache-2.0
13
0

Mistral-7B-v0.3-sarcasm-scrolls-4k

NaNK
license:apache-2.0
13
0

Phi-3-small-8k-prune6

license:mit
12
1

distilroberta-base-CoLA

license:apache-2.0
12
0

bart-base-code-instructiongen

license:apache-2.0
12
0

bigbird-roberta-base-edu-classifier

dataset:HuggingFaceFW/fineweb-edu-llama3-annotations
12
0

roberta-base-unified-mcqa-pairwise

license:mit
12
0

flan-t5-base-instruct-dolly_hhrlhf

license:apache-2.0
12
0

t5_1_1-base-writing-analysis

12
0

bart-large-mnli-dolly_hhrlhf-v1

license:apache-2.0
12
0

tFINE-850m-24x24-1024ctx

license:apache-2.0
12
0

grammar-synthesis-base

license:cc-by-nc-sa-4.0
11
3

gibberish_detector_onnx-quant-avx512_vnni

license:apache-2.0
11
2

GPT-Neo-33M-simplewiki-2048-scratch

license:apache-2.0
11
1

nougat-base-onnx-quant_avx2

license:apache-2.0
11
0

deberta-v3-base-unified-mcqa-2-choice

license:mit
11
0

bart-base-instructiongen

license:apache-2.0
10
4

nanoT5-base-65kBPE-v2

license:apache-2.0
10
2

long-t5-tglobal-large-pubmed-3k-booksum-16384-WIP17

NaNK
license:apache-2.0
10
0

bart-base-instruct-dolly_hhrlhf

license:cc-by-sa-3.0
10
0

griffin-v0.01-c3t-8layer-simplewiki-silu

license:apache-2.0
10
0

granite-4.0-h-small-heretic_lo

license:apache-2.0
10
0

opt-peter-2.7B-sharded

NaNK
license:apache-2.0
10
0

roberta-base-unified-mcqa

license:mit
9
0

granite-4.0-h-small-heretic_med

license:apache-2.0
9
0

BERTopic-summcomparer-gauntlet-v0p1-all-roberta-large-v1-summary

license:apache-2.0
9
0

ModernBERT2Olmo-large_1b-test

NaNK
license:apache-2.0
9
0

BERTopic-summcomparer-gauntlet-v0p1-sentence-t5-xl-summary

license:apache-2.0
8
1

BERTopic-booksum-ngram1-sentence-t5-xl-chapter

license:apache-2.0
8
0

jamba-H1024_L12-v0.07-fineweb-1M-med

license:apache-2.0
8
0

Mistral-7B-sarcasm-scrolls-v2-Q4_K_M-GGUF

NaNK
llama-cpp
7
0

medgemma-27b-text-heretic_med

NaNK
7
0

granite-4.0-h-1b-heretic

NaNK
license:apache-2.0
7
0

long-t5-tglobal-xl-16384-booksci-summary-plos-10k

license:bsd-3-clause
6
0

LFM2-VL-3B-heretic

NaNK
6
0

opt-350m-multiprompt

5
7

opt-350m-magicprompt-SD

4
4

Mistral-7B-v0.3-sarcasm-scrolls-4k-Q4_K_M-GGUF

NaNK
llama-cpp
4
0

mGPT-Peter-mwe

license:apache-2.0
4
0

Olmo-3-7B-Instruct-heretic

NaNK
license:apache-2.0
3
0

griffin-llama3t-8L-v0.02-fineweb

base_model:pszemraj/griffin-1024-llama3t-8layer-simplewiki-silu
2
0

bart-base-instructiongen-LongForm

license:apache-2.0
1
4

Ballpark-Trivia-L

license:mit
1
0

pegasus-large-summary-explain

license:apache-2.0
0
4

neuspell-subwordbert-probwordnoise

license:apache-2.0
0
1

pegasus-large-book-summary

license:apache-2.0
0
1