Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,21 @@ describe('generateOverlayTooltipContent', () => {
expect(standardZh).toContain('<strong>投机解码:</strong> 关闭');
});

it('labels Kimi-K3 speculative decoding "DSpark" rather than the generic MTP', () => {
const html = generateOverlayTooltipContent(
overlayConfig({
data: pt({
benchmark_type: 'agentic_traces',
model: 'Kimi-K3',
spec_decoding: 'mtp',
}),
}),
);

expect(html).toContain('<strong>Speculative Decoding:</strong> DSpark');
expect(html).not.toContain('<strong>Speculative Decoding:</strong> MTP');
});

it('hides stale CPU cache hits for unofficial overlays without offload', () => {
const html = generateOverlayTooltipContent(
overlayConfig({
Expand Down
12 changes: 12 additions & 0 deletions packages/constants/src/framework-aliases.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,21 @@ describe('MODEL_SPEC_METHOD_LABELS', () => {
it('maps MiniMax-M3 mtp to "M3 EAGLE"', () => {
expect(MODEL_SPEC_METHOD_LABELS['MiniMax-M3']?.mtp).toBe('M3 EAGLE');
});

it('maps Kimi-K3 mtp to "DSpark"', () => {
expect(MODEL_SPEC_METHOD_LABELS['Kimi-K3']?.mtp).toBe('DSpark');
});
});

describe('resolveFrameworkPartLabel', () => {
it('renders M3 mtp as "M3 EAGLE"', () => {
expect(resolveFrameworkPartLabel('MiniMax-M3', 'mtp')).toBe('M3 EAGLE');
});

it('renders K3 mtp as "DSpark"', () => {
expect(resolveFrameworkPartLabel('Kimi-K3', 'mtp')).toBe('DSpark');
});

it('keeps the generic MTP label for other models', () => {
expect(resolveFrameworkPartLabel('DeepSeek-R1-0528', 'mtp')).toBe('MTP');
});
Expand All @@ -46,6 +54,10 @@ describe('resolveFrameworkPartLabel', () => {
expect(resolveFrameworkPartLabel(undefined, 'mtp')).toBe('MTP');
});

it('keeps the generic MTP label for sibling Kimi models', () => {
expect(resolveFrameworkPartLabel('Kimi-K2.5', 'mtp')).toBe('MTP');
});

it('falls back to FRAMEWORK_LABELS for non-overridden parts even for M3', () => {
expect(resolveFrameworkPartLabel('MiniMax-M3', 'vllm')).toBe('vLLM');
});
Expand Down
7 changes: 4 additions & 3 deletions packages/constants/src/framework-aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ export const FRAMEWORK_LABELS: Record<string, string> = {
* Per-model display overrides for hwKey suffix parts (framework / spec_method
* tokens), keyed by frontend display model name → token → label.
*
* M3's speculative-decoding runs are ingested under the generic `mtp` token but
* actually use EAGLE, so for MiniMax-M3 the suffix reads "EAGLE" while every
* other model keeps the generic "MTP" label.
* Some models are ingested under the generic `mtp` token but ship a
* differently-named method: M3 uses EAGLE, and K3 uses DSpark. Those models get
* their own label while every other model keeps the generic "MTP" label.
*/
export const MODEL_SPEC_METHOD_LABELS: Record<string, Record<string, string>> = {
'MiniMax-M3': { mtp: 'M3 EAGLE' },
'Kimi-K3': { mtp: 'DSpark' },
};

/**
Expand Down