- perf_stats aggregator lives in eval/, not model/: the import failed silently and EVERY perf column was empty (not just ttft). Now warns on stderr instead of swallowing. - repeats > 1 get their own checkpoint key (:rep2, :rep3, ...): repeat 2 previously restored repeat 1's predictions and finished instantly with identical scores. rep1 keeps the legacy key (existing checkpoints still resume). - repeats summary: report the MEAN score and aggregate time/tokens over ALL runs (was: last run only). - README: six-benchmark command as the primary example. Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
540 B
Python
17 lines
540 B
Python
"""Optional runtime progress renderers.
|
|
|
|
Degrades to None when rich is absent so callers fall back to plain-text
|
|
progress (the CLI stays dependency-free in its fallback path).
|
|
"""
|
|
|
|
from .plain import PROGRESS_REGISTRY, register_progress # noqa: F401 (re-export)
|
|
|
|
try:
|
|
from .rich_terminal import RichTerminalProgress
|
|
except ImportError: # rich not installed
|
|
RichTerminalProgress = None
|
|
else:
|
|
PROGRESS_REGISTRY.register('rich', RichTerminalProgress)
|
|
|
|
__all__ = ["RichTerminalProgress", "PROGRESS_REGISTRY", "register_progress"]
|