@@ -102,17 +102,23 @@ const formatChangelogDescription = (desc: string | string[]): React.JSX.Element
102102
103103const CHART_MARGIN = { top : 24 , right : 10 , bottom : 60 , left : 60 } ;
104104
105- // Derive a readable label from a hwKey using the HARDWARE_CONFIG source of truth
106- const parseHwKeyToLabel = ( hwKey : string ) : { name : string ; label : string } => {
107- const config = getHardwareConfig ( hwKey ) ;
105+ // Derive a readable label from a hwKey using the HARDWARE_CONFIG source of truth.
106+ // `model` (display name) enables per-model suffix overrides (e.g. M3 MTP → EAGLE).
107+ const parseHwKeyToLabel = ( hwKey : string , model ?: string ) : { name : string ; label : string } => {
108+ const config = getHardwareConfig ( hwKey , model ) ;
108109 return { name : config . label , label : getDisplayLabel ( config ) } ;
109110} ;
110111
111112// Line-label text for a curve. When more than one precision is shown, each curve
112113// is its own line, so append the precision (e.g. "B200 (vLLM) FP8") to keep the
113114// FP4 and FP8 curves of the same hardware distinguishable.
114- const lineLabelText = ( hwKey : string , precision : string , includePrecision : boolean ) : string => {
115- const base = parseHwKeyToLabel ( hwKey ) . label ;
115+ const lineLabelText = (
116+ hwKey : string ,
117+ precision : string ,
118+ includePrecision : boolean ,
119+ model ?: string ,
120+ ) : string => {
121+ const base = parseHwKeyToLabel ( hwKey , model ) . label ;
116122 return includePrecision ? `${ base } ${ getPrecisionLabel ( precision as Precision ) } ` : base ;
117123} ;
118124
@@ -366,7 +372,7 @@ const ScatterGraph = React.memo(
366372 const visiblePoints = [ ...filteredData , ...visibleOverlayPoints ] ;
367373 return matchKnownConfigIssues ( modelLabel , visiblePoints ) . map ( ( issue ) => ( {
368374 issue,
369- label : parseHwKeyToLabel ( issue . hwKey ) . label ,
375+ label : parseHwKeyToLabel ( issue . hwKey , modelLabel ) . label ,
370376 color : getCssColor ( resolveColor ( issue . hwKey ) ) ,
371377 points : visiblePoints
372378 . filter ( ( p ) => pointMatchesIssue ( issue , p ) )
@@ -1065,7 +1071,7 @@ const ScatterGraph = React.memo(
10651071 placeLabel (
10661072 entry . key ,
10671073 entry . hw ,
1068- lineLabelText ( entry . hw , entry . precision , multiPrecision ) ,
1074+ lineLabelText ( entry . hw , entry . precision , multiPrecision , modelLabel ) ,
10691075 getCssColor ( resolveColor ( entry . hw ) ) ,
10701076 entry . points ,
10711077 ) ;
@@ -1079,7 +1085,7 @@ const ScatterGraph = React.memo(
10791085 lineLabels . push ( {
10801086 key : entry . key ,
10811087 hw : entry . hw ,
1082- label : lineLabelText ( entry . hw , entry . precision , multiPrecision ) ,
1088+ label : lineLabelText ( entry . hw , entry . precision , multiPrecision , modelLabel ) ,
10831089 color : getCssColor ( resolveColor ( entry . hw ) ) ,
10841090 x : xScale ( entry . points [ 0 ] . x ) ,
10851091 y : yScale ( entry . points [ 0 ] . y ) ,
@@ -1101,7 +1107,7 @@ const ScatterGraph = React.memo(
11011107 const info = unofficialRunInfos [ runIndex ] ;
11021108 const base = info
11031109 ? `✕ ${ info . branch || `run ${ info . id } ` } `
1104- : parseHwKeyToLabel ( hwKey ) . label ;
1110+ : parseHwKeyToLabel ( hwKey , modelLabel ) . label ;
11051111 return multiPrecision
11061112 ? `${ base } ${ getPrecisionLabel ( precision as Precision ) } `
11071113 : base ;
@@ -1144,7 +1150,7 @@ const ScatterGraph = React.memo(
11441150 lineLabels . push ( {
11451151 key : entry . key ,
11461152 hw : entry . hw ,
1147- label : lineLabelText ( entry . hw , entry . precision , multiPrecision ) ,
1153+ label : lineLabelText ( entry . hw , entry . precision , multiPrecision , modelLabel ) ,
11481154 color : getCssColor ( resolveColor ( entry . hw ) ) ,
11491155 x : xScale ( pt . x ) ,
11501156 y : yScale ( pt . y ) ,
@@ -1158,7 +1164,7 @@ const ScatterGraph = React.memo(
11581164 const info = unofficialRunInfos [ group . runIndex ] ;
11591165 const branchOrHw = info
11601166 ? `✕ ${ info . branch || `run ${ info . id } ` } `
1161- : parseHwKeyToLabel ( group . hwKey ) . label ;
1167+ : parseHwKeyToLabel ( group . hwKey , modelLabel ) . label ;
11621168 const labelText = multiPrecision
11631169 ? `${ branchOrHw } ${ getPrecisionLabel ( ( group . points [ 0 ] ?. precision ?? '' ) as Precision ) } `
11641170 : branchOrHw ;
0 commit comments