lm_polygraph.stat_calculators.greedy_probs_blackbox module
- class lm_polygraph.stat_calculators.greedy_probs_blackbox.BlackboxGreedyTextsCalculator(top_logprobs: int = 5)[source]
Bases:
StatCalculatorA 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).