π Flan T5 SmallΒΆ
metrics.perplexity_a.flan_t5_small
Perplexity(
model_name="google/flan-t5-small",
source_template="Generate an answer based on the given content: {reference}",
target_template="{prediction}",
)
[source]Explanation about PerplexityΒΆ
Computes perplexity of generating target text given source context.
Range: [1, β) (lower is better) Measures how well a language model predicts the target sequence.
Reference: https://en.wikipedia.org/wiki/Perplexity
Read more about catalog usage here.