replicate/flan-t5-xl ✓🔢📝 → 📝

▶️ 151.1K runs 📅 Mar 2023 ⚙️ Cog 0.7.0-beta17 🔗 GitHub 📄 Paper ⚖️ License
document-summarization question-answering summarization text-generation text-translation

About

A language model by Google for tasks like classification, summarization, and more

Example Output

Prompt:

"Answer the following yes/no question by reasoning step by step. Can a dog drive a car?"

Output

Dogs do not have a drivers license nor can they operate a car. Therefore, the final answer is no.

Performance Metrics

2.88s Prediction Time
271.68s Total Time
All Input Parameters
{
  "top_p": "0.95",
  "prompt": "Answer the following yes/no question by reasoning step by step. Can a dog drive a car?",
  "max_length": 50,
  "temperature": "0.7",
  "repetition_penalty": 1
}
Input Parameters
debug Type: booleanDefault: false
provide debugging output in logs
top_p Type: numberDefault: 1Range: 0.01 - 1
When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
prompt (required) Type: string
Prompt to send to FLAN-T5.
max_length Type: integerDefault: 50Range: 1 - ∞
Maximum number of tokens to generate. A word is generally 2-3 tokens
temperature Type: numberDefault: 0.75Range: 0.01 - 5
Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.
repetition_penalty Type: numberDefault: 1Range: 0.01 - 5
Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it.
Output Schema

Output

Type: arrayItems Type: string

Version Details
Version ID
eec2f71c986dfa3b7a5d842d22e1130550f015720966bec48beaae059b19ef4c
Version Created
April 17, 2023
Run on Replicate →