Repository Public MIT Research preview
1% S02-F02 — Entraînement et inférence : deux moments distincts de la vie d'un modèle (figure phare 3).2% Idée : les poids ne sont modifiés que pendant l'entraînement (préentraînement, ajustement aux3% instructions, alignement). Pendant l'inférence, ils sont seulement lus : le modèle n'apprend pas en répondant.4% Schéma conceptuel, sans référence à un produit particulier. Aucune quantité.5\begin{tikzpicture}[x=1mm, y=1mm]6 % ---------- Couloir du haut : entraînement ----------7 \draw[atlas region, fill=atlasPanel, fill opacity=.35] (0,36) rectangle (142,52);8 \node[atlas tag=atlasUncertain, anchor=west] at (4,52) {ENTRAÎNEMENT : avant la mise en service, les poids changent};9 \pic[atlasMuted, scale=.5] at (6.5,44.6) {atlas doc};10 \node[atlas label] at (6.5,38.8) {textes};11 \node[atlas block uncertain, text width=35mm, minimum height=9.6mm] (pre) at (33.25,43)12 {\textbf{Préentraînement}\\ prédire le jeton suivant};13 \node[atlas block uncertain, text width=46mm, minimum height=9.6mm] (ins) at (80.25,43)14 {\textbf{Ajustement aux instructions}\\ exemples de consignes suivies};15 \node[atlas block uncertain, text width=29mm, minimum height=9.6mm] (ali) at (124.5,43)16 {\textbf{Alignement}\\ conduites souhaitées};17 \draw[atlas arrow] (10.5,43) -- (pre.west);18 \draw[atlas arrow] (pre) -- (ins);19 \draw[atlas arrow] (ins) -- (ali);20 % ---------- Poids : écrits en haut, lus en bas ----------21 \node[atlas block strong, minimum width=33mm, minimum height=6.2mm, inner ysep=2.2pt] (w) at (53,26.8) {\hskip 5mm\textbf{Poids du modèle}};22 \pic[atlasFlow, scale=.34] at (40.6,26.8) {atlas db};23 \draw[atlasUncertain, line width=1.1pt] (pre.south) -- (pre.south |- 0,33.6) -- (ali.south |- 0,33.6) -- (ali.south);24 \draw[atlasUncertain, line width=1.1pt] (ins.south) -- (ins.south |- 0,33.6);25 \draw[atlas arrow, draw=atlasUncertain] (53,33.6) -- (w.north);26 \node[atlas note, anchor=west] at (72.5,26.8) {chaque phase de l'entraînement corrige les poids};27 % ---------- Couloir du bas : inférence ----------28 \draw[atlas region, fill=atlasPanel, fill opacity=.35] (0,0) rectangle (142,19.5);29 \node[atlas tag=atlasFlow, anchor=east] at (138,19.5) {INFÉRENCE : à chaque requête, poids figés};30 \pic[atlasFlow, scale=.5] at (6.5,12.4) {atlas speech};31 \node[atlas label] at (6.5,6.6) {requête};32 \node[atlas block, text width=17mm, minimum height=9.6mm] (tok) at (25,11.6) {découper en jetons};33 \node[atlas block strong, text width=20mm, minimum height=9.6mm] (mod) at (53,11.6) {\textbf{Modèle}\\ poids figés};34 \node[atlas block, text width=23mm, minimum height=9.6mm] (pro) at (84,11.6) {probabilités du jeton suivant};35 \node[atlas block, text width=13mm, minimum height=9.6mm] (tir) at (111.5,11.6) {tirer un jeton};36 \node[atlas token valid, font=\AtlasSizeLabel\bfseries] (rep) at (133,11.6) {texte};37 \draw[atlas arrow] (11.5,11.6) -- (tok.west);38 \draw[atlas arrow] (tok) -- (mod);39 \draw[atlas arrow] (mod) -- (pro);40 \draw[atlas arrow] (pro) -- (tir);41 \draw[atlas arrow valid] (tir) -- (rep);42 \draw[atlas arrow] (tir.south) -- ++(0,-2.9) -| (mod.south);43 \node[atlas note, anchor=north] at (82.5,3.6) {le jeton tiré rejoint le contexte, et l'on recommence};44 \draw[atlas arrow] (w.south) -- node[atlas note, right, pos=.3] {lecture seule} (mod.north);45\end{tikzpicture}46