Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
The model page and first-run page show the engine's own pick for this PC (memory tiers, Gyro-M as the other choice); the fit counts the draft layer (F)
Niko1221f2345ebd664c
diff --git a/apps/host/src/components/GuidedSetup.tsx b/apps/host/src/components/GuidedSetup.tsxindex 3697fdb7a..fa91bbb64 100644--- a/apps/host/src/components/GuidedSetup.tsx+++ b/apps/host/src/components/GuidedSetup.tsx@@ -16,7 +16,7 @@ import { installProgress, installStage, stageText, useDownloadEta } from '../libimport { VersionPicker } from './VersionPicker';import { DownloadParts } from './DownloadParts';import { EngineWarning } from './EngineWarning';-import { recommendedVersions } from '../lib/native-fit';+import { OTHER_NOTE, PICK_NOTE, recommendedVersions } from '../lib/native-fit';import { nativeCatalogModels, catalogVersionLabel } from '../lib/native-catalog';type Choices = NonNullable<NonNullable<SetupState['choices']>['onboarding']>;function radioKeys(event: KeyboardEvent<HTMLDivElement>) { if (!['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key))@@ -165,12 +165,14 @@ export function GuidedSetup() {} });return () => { cancelled = true; };}, [step, plan, preparing, native?.available, version?.id, context, directory]);- const recommendedCards = recommendedVersions(selectedFamily?.sizes ?? []).map(x => x.v);+ const recommendedRows = recommendedVersions(selectedFamily?.sizes ?? [], native?.catalog?.recommendation);+ const recommendedCards = recommendedRows.map(x => x.v);+ const pickNote = (v: { id: string }) => recommendedRows.find(x => x.v.id === v.id && [PICK_NOTE, OTHER_NOTE].includes(x.r.note))?.r.note ?? '';// The recommended four first, then a list with every other version (the Models page's version list); a family without a recommended set shows them all.const cards = recommendedCards.length ? recommendedCards : selectedFamily?.sizes ?? [];const others = recommendedCards.length ? (selectedFamily?.sizes ?? []).filter(v => !recommendedCards.includes(v)) : [];const readyIds = new Set((native?.installed?.models ?? []).filter(m => m.ready).map(m => m.model));- const versionCard = (v: NonNullable<typeof version>) => <button key={v.id} type="button" role="radio" tabIndex={version?.id === v.id ? 0 : -1} aria-checked={version?.id === v.id} data-selected={version?.id === v.id} onClick={() => { setSize(v.id); setPlan(null); }}><span className="onboard-version-top"><span className="onboard-version-copy"><strong>{tr(catalogVersionLabel(v))}</strong><small>{tr(v.model)}</small></span><span className="onboard-version-radio">{tr(version?.id === v.id ? <Icon name="check" size={12}/> : null)}</span></span><span className="onboard-version-bottom"><span className="onboard-version-size"><Icon name="download" size={15}/>{tr(v.download_gb.toFixed(1))} <small>{tr("GB")}</small></span><span className="onboard-version-fit">{tr(v.on_this_pc === 'does not fit' || v.on_this_pc === 'tight' || v.on_this_pc?.includes('slower') || v.on_this_pc?.startsWith('experimental:') ? <><Icon name="clock" size={13}/>{tr("May run slower")}</> : v.installed ? <><Icon name="check" size={13}/>{tr("On this computer")}</> : <>{tr("Download size")}</>)}</span></span></button>;+ const versionCard = (v: NonNullable<typeof version>) => <button key={v.id} type="button" role="radio" tabIndex={version?.id === v.id ? 0 : -1} aria-checked={version?.id === v.id} data-selected={version?.id === v.id} onClick={() => { setSize(v.id); setPlan(null); }}><span className="onboard-version-top"><span className="onboard-version-copy"><strong>{tr(catalogVersionLabel(v))}</strong><small>{tr(v.model)}{tr(pickNote(v) ? <> · {tr(pickNote(v))}</> : null)}</small></span><span className="onboard-version-radio">{tr(version?.id === v.id ? <Icon name="check" size={12}/> : null)}</span></span><span className="onboard-version-bottom"><span className="onboard-version-size"><Icon name="download" size={15}/>{tr(v.download_gb.toFixed(1))} <small>{tr("GB")}</small></span><span className="onboard-version-fit">{tr(v.on_this_pc === 'does not fit' || v.on_this_pc === 'tight' || v.on_this_pc?.includes('slower') || v.on_this_pc?.startsWith('experimental:') ? <><Icon name="clock" size={13}/>{tr("May run slower")}</> : v.installed ? <><Icon name="check" size={13}/>{tr("On this computer")}</> : <>{tr("Download size")}</>)}</span></span></button>;const counter = downloadCounter(plan?.plan?.download_gb ?? version?.download_gb, progress, preparing);const eta = useDownloadEta(preparing ? progress : undefined, installJob?.id);const title = step === 1 ? 'State of the art. At home.' : step === 2 ? 'Select the model you want to run.' : step === 3 ? 'Downloading the model...' : tuneJob?.state === 'running' ? 'A little tuning. A better fit.' : 'How you would like to work with Strata?';diff --git a/apps/host/src/components/NativeModels.tsx b/apps/host/src/components/NativeModels.tsxindex 454c90038..da5f786aa 100644--- a/apps/host/src/components/NativeModels.tsx+++ b/apps/host/src/components/NativeModels.tsx@@ -172,7 +172,7 @@ export function NativeModels({ onOtherModels, onReady, onImport, onConnectEngine{tr(selectedSize ? <><div className="native-choice__head"><span className="native-choice__label">{tr("Version")}</span><span className="native-choice__tools"><NativePresets values={values} onApply={v => { const f = families.find(f => f.family === v.family || f.sizes.some(s => s.sourceFamily === v.family)); if (!f)return; presetPending.current = true; setFamily(f.family); setSize(f.sizes.find(s => s.model === v.model && (s.sourceFamily === v.family || f.family === v.family))?.id ?? ''); setContext(v.context ?? 32768); setVision(v.vision ?? 'no'); setKv(v.kv ?? 'int8'); setLowRam(v.low_ram ?? 'auto'); }}/><Btn icon="models" onClick={() => setManage(true)}>{tr("Manage models")}</Btn></span></div>- <div className="native-version"><VersionPicker versions={allSizes} selectedId={selectedSize.id} hardware={fitHardware} downloaded={readyIds} onSelect={id => { const f = families.find(f => f.sizes.some(s => s.id === id)); if (f) { setFamily(f.family); setSize(id); setError(''); } }} onOwnGguf={() => (onImport ?? onOtherModels)()}/></div>+ <div className="native-version"><VersionPicker pick={native?.catalog?.recommendation} versions={allSizes} selectedId={selectedSize.id} hardware={fitHardware} downloaded={readyIds} onSelect={id => { const f = families.find(f => f.sizes.some(s => s.id === id)); if (f) { setFamily(f.family); setSize(id); setError(''); } }} onOwnGguf={() => (onImport ?? onOtherModels)()}/></div>{tr(noFit ? <p className="small muted native-spill-note"><Icon name="disk" size={16}/>{tr("May run slower \u00B7 Model data can be read from SSD.")}</p> : null)}<div className="native-choice__row"><div className="native-choice__col"><span className="native-choice__label">{tr("Conversation context")}</span><Select ariaLabel={tr("Conversation context")} value={String(context)} options={contextChoices(native?.catalog?.contexts ?? [8192, 32768, 65536, 131072, 262144], context).map(n => ({ value: String(n), label: n % 1024 === 0 ? `${n / 1024}K` : `${n.toLocaleString()} tokens` }))} onChange={n => setContext(Number(n))}/></div>diff --git a/apps/host/src/components/VersionPicker.tsx b/apps/host/src/components/VersionPicker.tsxindex c0b9e726c..dd5fbd00a 100644--- a/apps/host/src/components/VersionPicker.tsx+++ b/apps/host/src/components/VersionPicker.tsx@@ -5,7 +5,7 @@ import { FloatingMenu } from './FloatingMenu';import { cx } from '../lib/format';import { versionNote, type CatalogVersion } from '../lib/native-catalog';import { nvfp4Version } from '../lib/native-names';-import { VERSION_GROUPS, fitOn, groupOpen, recommendedVersions, type FitHardware } from '../lib/native-fit';+import { VERSION_GROUPS, fitOn, groupOpen, recommendedVersions, type FitHardware, type PcPick } from '../lib/native-fit';/** The name a version goes by in the list: the quantization, with the maker where the quantization alone is ambiguous. */export function versionName(v: CatalogVersion, withMaker = false): string {@@ -26,7 +26,7 @@ const gb = (n: number) => `${Number.isInteger(n) ? n : n.toFixed(1)} GB`;* which stays on the SSD, is not in it); the download size is secondary. "Uses SSD N GB" appears only where this computer would read* part of the model from its SSD. The first group is a fixed list of four; the rest fold away.*/-export function VersionPicker({ versions, selectedId, hardware, onSelect, onOwnGguf, downloaded, showRecommended = true, moreLabel }: {+export function VersionPicker({ versions, selectedId, hardware, onSelect, onOwnGguf, downloaded, showRecommended = true, moreLabel, pick }: {versions: CatalogVersion[];selectedId: string;hardware: FitHardware | null | undefined;@@ -38,13 +38,15 @@ export function VersionPicker({ versions, selectedId, hardware, onSelect, onOwnGshowRecommended?: boolean;/** What the button says while the selected version is one of the recommended four shown elsewhere. */moreLabel?: string;+ /** The engine's own pick for this PC (catalog.recommendation); it comes first in the Recommended group. */+ pick?: PcPick | null;}) {const trigger = useRef<HTMLButtonElement>(null);const [open, setOpen] = useState(false);// A group is open when the person opened it; until they touch it, only the group that holds the selected version is open.const [opened, setOpened] = useState<Record<string, boolean>>({});const selected = versions.find(v => v.id === selectedId);- const recommended = recommendedVersions(versions);+ const recommended = recommendedVersions(versions, pick);// Where the recommended four are shown outside the menu, the menu holds only the others.const apart = new Set(showRecommended ? [] : recommended.map(x => x.v.id));const rest = versions.filter(v => !apart.has(v.id));diff --git a/apps/host/src/lib/native-fit.ts b/apps/host/src/lib/native-fit.tsindex 8a72c1058..39cfc4e24 100644--- a/apps/host/src/lib/native-fit.ts+++ b/apps/host/src/lib/native-fit.ts@@ -20,6 +20,8 @@ export interface Fit {}const DENSE_GB = 5, SYSTEM_ROOM_GB = 10, DENSE_EXTRA_GB = 1;+/** The draft layer (MTP) takes about 1 GB of graphics memory (786 MiB of files + the draft head's ~218 MiB); it comes out of the expert cache while MTP is on (setup.py MTP_VRAM_GB). */+export const MTP_VRAM_GB = 1;const round1 = (n: number) => Math.round(n * 10) / 10;export function memoryNeeded(v: FitInput): number {@@ -28,16 +30,16 @@ export function memoryNeeded(v: FitInput): number {return round1((v.experts_gb ?? v.ram_needed_gb ?? 0) + DENSE_EXTRA_GB);}-export function fitOn(v: FitInput, hw: FitHardware | null | undefined): Fit {+export function fitOn(v: FitInput, hw: FitHardware | null | undefined, mtp = true): Fit {const memoryGb = memoryNeeded(v);const ram = Number(hw?.ram_gb), vram = Number(hw?.vram_gb) || 0;if (!Number.isFinite(ram) || ram <= 0) return { memoryGb, vramUseGb: 0, ramUseGb: 0, spillGb: 0, known: false };const experts = Math.max(0, memoryNeeded(v) - DENSE_EXTRA_GB);- const onGpu = Math.max(0, Math.min(experts, vram - DENSE_GB));+ const onGpu = Math.max(0, Math.min(experts, vram - DENSE_GB - (mtp && vram > 0 ? MTP_VRAM_GB : 0)));const ramRoom = Math.max(0, ram - SYSTEM_ROOM_GB);const spillGb = Math.max(0, experts - onGpu - ramRoom);const inRam = Math.max(0, experts - onGpu - spillGb);- const vramUseGb = vram > 0 ? Math.min(vram, DENSE_GB + onGpu) : 0;+ const vramUseGb = vram > 0 ? Math.min(vram, DENSE_GB + (mtp ? MTP_VRAM_GB : 0) + onGpu) : 0;return { memoryGb, vramUseGb: round1(vramUseGb), ramUseGb: round1(inRam + DENSE_EXTRA_GB * (vram > 0 ? 0 : 1)), spillGb: round1(spillGb), known: true };}@@ -62,7 +64,28 @@ export const RECOMMENDED: { family: string; model: string; note: string }[] = [* (the running version's group used to stay open whatever was clicked). */export const groupOpen = (opened: Record<string, boolean>, id: string, containsSelected: boolean): boolean => opened[id] ?? containsSelected;-/** The recommended four, found in a version list (a version the catalog does not offer is skipped). */-export function recommendedVersions<V extends { sourceFamily: string; model: string }>(versions: V[]): { r: typeof RECOMMENDED[number]; v: V }[] {- return RECOMMENDED.map(r => ({ r, v: versions.find(v => v.sourceFamily === r.family && v.model === r.model) })).filter((x): x is { r: typeof RECOMMENDED[number]; v: V } => !!x.v);+/** What the engine's own pick for this PC is (catalog.recommendation: the memory tiers of setup.py and tools/strata_mcp.py, the same answer `strata launch` shows). */+export interface PcPick { family?: string | null; model?: string | null; why?: string }+export const PICK_NOTE = 'the pick for this PC';+export const OTHER_NOTE = 'the other choice';++/**+ * The recommended set, found in a version list (a version the catalog does not offer is skipped). The four fixed cards are only a display list;+ * the pick comes from the engine's own recommendation for this PC (RAM + VRAM tiers: 40 GB Swift 1.5 IQ2_XS, 48 GB IQ3_XXS, 64 GB and up IQ3_S), so+ * the page and `strata launch` agree. The pick comes first and is marked; when the engine names Gyro-M as the other choice (40 GB tier, NVIDIA and AMD only,+ * which the engine decides) that card follows it. Without a pick the list is the fixed four.+ */+export function recommendedVersions<V extends { sourceFamily: string; model: string }>(versions: V[], pick?: PcPick | null): { r: typeof RECOMMENDED[number]; v: V }[] {+ type Row = { r: typeof RECOMMENDED[number]; v: V };+ const find = (family: string, model: string) => versions.find(v => v.sourceFamily === family && v.model === model);+ const rows: Row[] = RECOMMENDED.map(r => ({ r, v: find(r.family, r.model) })).filter((x): x is Row => !!x.v);+ if (!rows.length || !pick?.family || !pick.model) return rows;+ const chosen = find(pick.family, pick.model);+ if (!chosen) return rows;+ const rest = rows.filter(x => x.v !== chosen);+ const first: Row = { r: { family: pick.family, model: pick.model, note: PICK_NOTE }, v: chosen };+ const out: Row[] = [first];+ const gyroM = /Gyro-M/.test(pick.why ?? '') ? find('gyro', 'Gyro-M') : undefined;+ if (gyroM) out.push({ r: { family: 'gyro', model: 'Gyro-M', note: OTHER_NOTE }, v: gyroM });+ return [...out, ...rest.filter(x => x.v !== gyroM)];}diff --git a/apps/host/src/locales/de.json b/apps/host/src/locales/de.jsonindex e0c6df114..b2dff0d92 100644--- a/apps/host/src/locales/de.json+++ b/apps/host/src/locales/de.json@@ -3279,5 +3279,7 @@"s7338": "Es ist kein Modell geladen. Lade zuerst eines unter Modelle.","s7339": "Der Assistent startet…","s7340": "Der Assistent konnte nicht starten. Versuche es gleich noch einmal.",- "s7341": "Arbeitet am Ziel…"+ "s7341": "Arbeitet am Ziel…",+ "s8001": "die Wahl für diesen PC",+ "s8002": "die andere Möglichkeit"}diff --git a/apps/host/src/locales/en.json b/apps/host/src/locales/en.jsonindex 34b391fd1..cb097027f 100644--- a/apps/host/src/locales/en.json+++ b/apps/host/src/locales/en.json@@ -3279,5 +3279,7 @@"s7338": "No model is loaded. Load one in Models first.","s7339": "Starting the assistant…","s7340": "The assistant could not start. Try again in a moment.",- "s7341": "Working on the goal…"+ "s7341": "Working on the goal…",+ "s8001": "the pick for this PC",+ "s8002": "the other choice"}diff --git a/apps/host/src/locales/es.json b/apps/host/src/locales/es.jsonindex 44929bb37..870884b2c 100644--- a/apps/host/src/locales/es.json+++ b/apps/host/src/locales/es.json@@ -3279,5 +3279,7 @@"s7338": "No hay ningún modelo cargado. Carga uno primero en Modelos.","s7339": "Iniciando el asistente…","s7340": "El asistente no pudo iniciarse. Inténtalo de nuevo en un momento.",- "s7341": "Trabajando en el objetivo…"+ "s7341": "Trabajando en el objetivo…",+ "s8001": "la opción para este PC",+ "s8002": "la otra opción"}diff --git a/apps/host/src/locales/ja.json b/apps/host/src/locales/ja.jsonindex 2d84814ef..b80e7530e 100644--- a/apps/host/src/locales/ja.json+++ b/apps/host/src/locales/ja.json@@ -3279,5 +3279,7 @@"s7338": "モデルが読み込まれていません。先に「モデル」で読み込んでください。","s7339": "アシスタントを起動しています…","s7340": "アシスタントを起動できませんでした。しばらくしてからもう一度お試しください。",- "s7341": "目標に取り組んでいます…"+ "s7341": "目標に取り組んでいます…",+ "s8001": "このPCへのおすすめ",+ "s8002": "もう一つの選択肢"}diff --git a/apps/host/src/locales/ko.json b/apps/host/src/locales/ko.jsonindex 2c431c7d9..154c5c531 100644--- a/apps/host/src/locales/ko.json+++ b/apps/host/src/locales/ko.json@@ -3279,5 +3279,7 @@"s7338": "불러온 모델이 없습니다. 먼저 모델 화면에서 하나를 불러오세요.","s7339": "어시스턴트를 시작하는 중…","s7340": "어시스턴트를 시작하지 못했습니다. 잠시 후 다시 시도하세요.",- "s7341": "목표를 진행하는 중…"+ "s7341": "목표를 진행하는 중…",+ "s8001": "이 PC에 추천",+ "s8002": "다른 선택지"}diff --git a/apps/host/src/locales/pt.json b/apps/host/src/locales/pt.jsonindex 34f1c7d13..dcb7068be 100644--- a/apps/host/src/locales/pt.json+++ b/apps/host/src/locales/pt.json@@ -3279,5 +3279,7 @@"s7338": "Nenhum modelo está carregado. Carregue um em Modelos primeiro.","s7339": "Iniciando o assistente…","s7340": "Não foi possível iniciar o assistente. Tente novamente em instantes.",- "s7341": "Trabalhando no objetivo…"+ "s7341": "Trabalhando no objetivo…",+ "s8001": "a escolha para este PC",+ "s8002": "a outra opção"}diff --git a/apps/host/src/locales/ru.json b/apps/host/src/locales/ru.jsonindex 014ad75d4..b27b80889 100644--- a/apps/host/src/locales/ru.json+++ b/apps/host/src/locales/ru.json@@ -3279,5 +3279,7 @@"s7338": "Модель не загружена. Сначала загрузите её в разделе «Модели».","s7339": "Запуск ассистента…","s7340": "Не удалось запустить ассистента. Повторите попытку через минуту.",- "s7341": "Работа над целью…"+ "s7341": "Работа над целью…",+ "s8001": "выбор для этого ПК",+ "s8002": "другой вариант"}diff --git a/apps/host/src/locales/zh.json b/apps/host/src/locales/zh.jsonindex 245ceed6a..66a6b937b 100644--- a/apps/host/src/locales/zh.json+++ b/apps/host/src/locales/zh.json@@ -3279,5 +3279,7 @@"s7338": "尚未加载模型。请先在“模型”中加载一个。","s7339": "正在启动助手…","s7340": "助手未能启动。请稍后再试。",- "s7341": "正在处理目标…"+ "s7341": "正在处理目标…",+ "s8001": "适合这台电脑的选择",+ "s8002": "另一个选择"}diff --git a/apps/host/tests/native-fit.test.mjs b/apps/host/tests/native-fit.test.mjsindex cabab07ac..b09e2b2d2 100644--- a/apps/host/tests/native-fit.test.mjs+++ b/apps/host/tests/native-fit.test.mjs@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';import { transform } from 'esbuild';const { code } = await transform(await readFile(new URL('../src/lib/native-fit.ts', import.meta.url), 'utf8'), { loader: 'ts', format: 'esm' });-const { fitOn, memoryNeeded, RECOMMENDED, VERSION_GROUPS, groupOpen } = await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);+const { fitOn, memoryNeeded, RECOMMENDED, VERSION_GROUPS, groupOpen, recommendedVersions, PICK_NOTE, OTHER_NOTE, MTP_VRAM_GB } = await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);const swift = { ram_needed_gb: 48, experts_gb: 35.5 };const gyroS = { ram_needed_gb: 27.6, experts_gb: 25.8, mem_total: true };@@ -24,8 +24,9 @@ test('a PC with room reads nothing from the SSD', () => {});test('a PC without room reads the rest from the SSD, and the amount is real', () => {- const f = fitOn(q4, { ram_gb: 64, vram_gb: 12 }); // 77 GB of experts: 7 on the card, 54 in RAM, 16 from the SSD- assert.equal(f.spillGb, 16);+ const f = fitOn(q4, { ram_gb: 64, vram_gb: 12 }); // 77 GB of experts: 6 on the card (the draft layer takes 1 GB), 54 in RAM, 17 from the SSD+ assert.equal(f.spillGb, 17);+ assert.equal(fitOn(q4, { ram_gb: 64, vram_gb: 12 }, false).spillGb, 16, 'with the draft layer off the card holds 1 GB more');assert.equal(fitOn(q4, { ram_gb: 192, vram_gb: 24 }).spillGb, 0);assert.ok(fitOn(gyroS, { ram_gb: 16, vram_gb: 8 }).spillGb > 10, 'a small PC spills a lot');});@@ -51,3 +52,34 @@ test('the group of the running version can be collapsed (Gyro-M running, the Gyropened = { ...opened, gyro: !groupOpen(opened, 'gyro', true) };assert.equal(groupOpen(opened, 'gyro', true), true, 'and one more opens it again');});++test('the draft layer (MTP) counts about 1 GB of the card', () => {+ assert.equal(MTP_VRAM_GB, 1);+ const on = fitOn(swift, { ram_gb: 40, vram_gb: 12 }), off = fitOn(swift, { ram_gb: 40, vram_gb: 12 }, false);+ assert.equal(Math.round((on.vramUseGb - off.vramUseGb) * 10) / 10, 0, 'the card is full either way here; the experts it cannot hold move to RAM');+ assert.equal(Math.round((on.ramUseGb - off.ramUseGb) * 10) / 10, 1);+ assert.equal(fitOn(swift, { ram_gb: 40, vram_gb: 0 }).vramUseGb, 0, 'no card, no draft layer on it');+});++const v = (sourceFamily, model) => ({ sourceFamily, model, id: sourceFamily + '-' + model });+const all = [v('qwen', 'Q2_0'), v('gyro', 'Gyro-S'), v('gyro', 'Gyro-M'), v('swift', 'IQ2_XS'), v('qwen', 'IQ3_XXS'), v('qwen', 'IQ3_S'), v('unsloth', 'UD-Q4_K_XL')];++test('the page shows the own pick of the engine for this PC first (the same one strata launch prints), per memory tier', () => {+ const names = rows => rows.map(x => x.v.model + (x.r.note === PICK_NOTE ? '*' : x.r.note === OTHER_NOTE ? '+' : ''));+ assert.deepEqual(names(recommendedVersions(all)), ['Gyro-S', 'IQ2_XS', 'IQ3_S', 'UD-Q4_K_XL'], 'no pick: the fixed list');+ const t40 = { family: 'swift', model: 'IQ2_XS', why: '40 GB tier: Swift 1.5 IQ2_XS; Gyro-M (35 GB) is the other choice there' };+ assert.deepEqual(names(recommendedVersions(all, t40)), ['IQ2_XS*', 'Gyro-M+', 'Gyro-S', 'IQ3_S', 'UD-Q4_K_XL']);+ assert.deepEqual(names(recommendedVersions(all, { family: 'swift', model: 'IQ2_XS', why: 'the 40 GB tier' })), ['IQ2_XS*', 'Gyro-S', 'IQ3_S', 'UD-Q4_K_XL'], 'no Gyro-M when the engine does not name it (Intel, Mac)');+ assert.deepEqual(names(recommendedVersions(all, { family: 'qwen', model: 'IQ3_XXS', why: '48 GB tier' })), ['IQ3_XXS*', 'Gyro-S', 'IQ2_XS', 'IQ3_S', 'UD-Q4_K_XL']);+ assert.deepEqual(names(recommendedVersions(all, { family: 'qwen', model: 'IQ3_S', why: '64 GB tier' })), ['IQ3_S*', 'Gyro-S', 'IQ2_XS', 'UD-Q4_K_XL']);+ assert.deepEqual(names(recommendedVersions(all, { family: null, model: null })), ['Gyro-S', 'IQ2_XS', 'IQ3_S', 'UD-Q4_K_XL']);+});++test('the tiers of the engine are 40 GB Swift IQ2_XS, 48 GB IQ3_XXS, 64 GB IQ3_S in both Python places the page and strata launch read', async () => {+ for (const file of ['../../../setup.py', '../../../tools/strata_mcp.py']) {+ const text = await readFile(new URL(file, import.meta.url), 'utf8');+ const m = /^MEMORY_TIERS\s*=\s*(.*)$/m.exec(text);+ assert.ok(m, file);+ assert.deepEqual([...m[1].matchAll(/\(([\d.]+),\s*"(\w+)",\s*"(\w+)"\)/g)].map(x => [Number(x[1]), x[2], x[3]]), [[62, 'qwen', 'IQ3_S'], [46, 'qwen', 'IQ3_XXS'], [38, 'swift', 'IQ2_XS']], file);+ }+});