lm_polygraph.stat_calculators.greedy_probs_blackbox module

class lm_polygraph.stat_calculators.greedy_probs_blackbox.BlackboxGreedyTextsCalculator(top_logprobs: int = 5)[source]

Bases: StatCalculator

A calculator that handles both blackbox and greybox model generation. If the model supports logprobs, it provides full greybox functionality (texts, logprobs, etc.). Otherwise, it falls back to basic blackbox functionality (texts only).

static meta_info() Tuple[List[str], List[str]][source]

Returns the statistics and dependencies for the calculator.