sharaddition / paraphrase-gpt

T5 model fine tuned on GPT-3.5 generated paraphrase corpus of 6.3 million unique sentences.

  • Public
  • 4.3K runs
  • CPU
  • GitHub

Input

*string
Shift + Return to add a new line

Prompt to send to FLAN-T5.

integer
(minimum: 1)

Maximum number of tokens to generate. A word is generally 2-3 tokens

Default: 50

number
(minimum: 0.01, maximum: 5)

Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.

Default: 0.75

number
(minimum: 0.01, maximum: 1)

When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens

Default: 1

integer
(minimum: 1, maximum: 5)

Number of output sequences to generate

Default: 5

integer
(minimum: 1, maximum: 5)

Number of output sequences to generate

Default: 5

integer
(minimum: 1, maximum: 5)

Number of output sequences to generate

Default: 5

number
(minimum: 0.01, maximum: 15)

Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it.

Default: 10

number
(minimum: 0.01, maximum: 5)

Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it.

Default: 3

integer
(minimum: 0.01, maximum: 5)

No repeat n_gram size.

Default: 2

Output

[ "According to Rohit Kumar Singh, the Union consumer affairs secretary, 'dark patterns' are unfair trade practices that fall under the Consumer Protection Act and can be punished.", "Rohit Kumar Singh, the Union consumer affairs secretary, has stated that 'dark patterns' are unfair trade practices and fall under the Consumer Protection Act, which is punishable by law.", "The 'dark patterns' are unfair trade practices that fall under the scope of the Consumer Protection Act and can be punished, as stated by Union consumer affairs secretary Rohit Kumar Singh.", "Union consumer affairs secretary Rohit Kumar Singh has stated that 'dark patterns' are unfair trade practices, which fall under the scope of the Consumer Protection Act and can be punished.", "'Dark patterns,’ also known as unfair trade practices, are covered by the Consumer Protection Act and can result in punishment, according to Union consumer affairs secretary Rohit Kumar Singh." ]
Generated in

Run time and cost

This model costs approximately $0.00031 to run on Replicate, or 3225 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on CPU hardware. Predictions typically complete within 4 seconds.

Readme

This model generates Human like Paraphrases.

Model description

T5-Base model fine tuned on GPT-3.5 generated paraphrase corpus of 6.3 million unique sentences.

Intended use

Generates paraphrases of any sentence/question while retaining the meaning, and could be used by teachers to prepare unique question paper, content writers to enhance their creativity, etc.

Ethical considerations

One should not misuse/abuse such tools to cheat in any kind of events where AI/ML tools are not fair play.

Caveats and recommendations

If you wish to improve the model, then I would recommend to fine-tune better version of T5 i.e. Flan-T5 on the same dataset, it’s simplified version can be found here.