Repository Public MIT Research preview
1% CE01-F11 — Coût de la génération selon la longueur de l'entrée, avec et sans cache KV.2% Question : que coûte l'absence de cache, et comment ce coût évolue-t-il avec la longueur ?3% DONNÉES : CE01-F11-donnees.tex — gauche : multiplications EXACTES du modèle jouet (formes closes vérifiées) ;4% droite : temps MESURÉ SUR CETTE MACHINE (relevé daté, data/mesures/temps-modele-jouet.json).5\input{CE01-F11-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 \begin{axis}[atlas axis, width=70mm, height=52mm, xmode=log, log basis x=2, ymode=log, xmin=12, xmax=340, ymin=5e5, ymax=6e8,8 xlabel={longueur T de l'entrée (jetons)}, ylabel={multiplications scalaires},9 xtick={16,32,64,128,256}, xticklabels={16,32,64,128,256}, ymajorgrids, axis lines=left, clip=false,10 title={Opérations (exactes), \CEFonzeSortieOps\ jetons produits}, title style={yshift=-1mm}]11 \addplot[ce courbe d] coordinates {\CEFonzeSans};12 \addplot[ce courbe b] coordinates {\CEFonzeAvec};13 \node[atlas note, anchor=south east, text=atlasHazard] at (axis cs:58,7e7) {sans cache};14 \node[ce nature, anchor=south east] at (rel axis cs:1,.03) {modèle jouet · calcul exact};15 \node[atlas note, anchor=south west, text=atlasValid] at (axis cs:14,2.6e6) {avec cache KV};16 \end{axis}17 \begin{axis}[atlas axis, at={(77mm,0)}, width=70mm, height=52mm, xmode=log, log basis x=2, ymode=log, xmin=12, xmax=170, ymin=5, ymax=2500,18 xlabel={longueur T de l'entrée (jetons)}, ylabel={temps total (ms)},19 xtick={16,32,64,128}, xticklabels={16,32,64,128}, ymajorgrids, axis lines=left, clip=false,20 title={Temps mesuré, \CEFonzeSortieTemps\ jetons produits}, title style={yshift=-1mm}]21 \addplot[ce courbe d] coordinates {\CEFonzeTempsSans};22 \addplot[ce courbe b] coordinates {\CEFonzeTempsAvec};23 \node[atlas note, anchor=south east, text=atlasHazard] at (axis cs:52,450) {sans cache};24 \node[ce nature, anchor=south east] at (rel axis cs:1,.03) {mesuré sur cette machine};25 \node[atlas note, anchor=south west, text=atlasValid] at (axis cs:14,24) {avec cache KV};26 \end{axis}27\end{tikzpicture}28