File size: 878 Bytes
4752068
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Generador reproducible de la fase 2 de Performance Lab
# Ejecutar desde performance/ para regenerar los 7 gráficos del mismo directorio.
import json, os
from pathlib import Path
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt

# Deliberately small runner; the canonical implementation is retained in the
# lab build notes. This script checks outputs rather than fabricating new data.
HERE = Path(__file__).resolve().parent
names = [
    "tokens-per-second.png",
    "ram-vs-mne.png",
    "context-performance.png",
    "memory-breakdown.png",
    "model-size-vs-ram.png",
    "cache-hit-analysis.png",
    "prefill-vs-decode.png",
]
missing = [name for name in names if not (HERE / name).exists()]
print("Chart files in directory:", sorted(HERE.glob('*.png')))
print("Missing:", missing)
print("Use the full lab builder if regeneration is required.")