t5e-mini-nl24-flan / README.md
pszemraj's picture
Update README.md
3a2791e verified
|
raw
history blame
652 Bytes
metadata
license: apache-2.0
base_model: google/t5-efficient-mini-nl24
datasets:
  - Open-Orca/FLAN
language:
  - en
library_name: transformers
pipeline_tag: text2text-generation

t5e-mini-nl24-flan

25k steps on FLAN as an initial test/validation that code works. Not practically useful.

from transformers import pipeline

pipe = pipeline(
    "text2text-generation",
    model="pszemraj/t5e-mini-nl24-flan",
)
res = pipe(
    Why do they call it a pair of pants when it's just one item?",
    top_k=4,
    penalty_alpha=0.6,
    max_new_tokens=128,
)
print(res[0]["generated_text"])