The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
Use a verified 7B onboarding starter with honest memory guidance
Davidc06dc3a27b59
diff --git a/e2e/builtin-ctx.spec.ts b/e2e/builtin-ctx.spec.tsindex b34216de..81dd690e 100644--- a/e2e/builtin-ctx.spec.ts+++ b/e2e/builtin-ctx.spec.ts@@ -60,7 +60,7 @@ async function completeBuiltinOnboarding(page: Page) {await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible()await page.getByRole('button', { name: /Skip for now/i }).click()await expect(page.getByRole('heading', { name: /Pick a starter model/i })).toBeVisible()- await page.getByRole('button', { name: /Qwen 2\.5 0\.5B/i }).click()+ await page.getByRole('button', { name: /Qwen 2\.5 7B/i }).click()await page.getByRole('button', { name: /Install \d+ model/i }).click()await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible({ timeout: 30_000 })await page.getByRole('button', { name: /Skip for now/i }).click()diff --git a/e2e/chat-delete-discoverable.spec.ts b/e2e/chat-delete-discoverable.spec.tsindex 11430bfb..6864393a 100644--- a/e2e/chat-delete-discoverable.spec.ts+++ b/e2e/chat-delete-discoverable.spec.ts@@ -65,7 +65,7 @@ async function bootWithTwoChats(page: Page) {await page.getByRole('button', { name: /Continue/i }).click()await page.getByRole('button', { name: /Skip for now/i }).click()await expect(page.getByRole('heading', { name: /Pick a starter model/i })).toBeVisible()- await page.getByRole('button', { name: /Qwen 2\.5 0\.5B/i }).click()+ await page.getByRole('button', { name: /Qwen 2\.5 7B/i }).click()await page.getByRole('button', { name: /Install \d+ model/i }).click()await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible({ timeout: 30_000 })await page.getByRole('button', { name: /Skip for now/i }).click()diff --git a/e2e/discover-split-download.spec.ts b/e2e/discover-split-download.spec.tsindex b6428781..06e81a3f 100644--- a/e2e/discover-split-download.spec.ts+++ b/e2e/discover-split-download.spec.ts@@ -65,7 +65,7 @@ async function bootThroughBuiltinOnboarding(page: Page) {await page.getByRole('button', { name: /Continue/i }).click()await page.getByRole('button', { name: /Skip for now/i }).click()await expect(page.getByRole('heading', { name: /Pick a starter model/i })).toBeVisible()- await page.getByRole('button', { name: /Qwen 2\.5 0\.5B/i }).click()+ await page.getByRole('button', { name: /Qwen 2\.5 7B/i }).click()await page.getByRole('button', { name: /Install \d+ model/i }).click()await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible({ timeout: 30_000 })await page.getByRole('button', { name: /Skip for now/i }).click()@@ -75,7 +75,7 @@ async function bootThroughBuiltinOnboarding(page: Page) {// only set once the async model list lands. Prove the managed engine is// live before touching Discover, or a slow machine tests the wrong branch.await openNewChat(page)- await expect(page.getByText(/qwen2\.5-0\.5b/i).first()).toBeVisible()+ await expect(page.getByText(/qwen2\.5-7b/i).first()).toBeVisible()}test('0731 card resolves the real shard set, confirms 3 parts, starts all downloads into one dir', async ({ page }) => {diff --git a/e2e/document-chat-builtin.spec.ts b/e2e/document-chat-builtin.spec.tsindex c5e28dce..4351667c 100644--- a/e2e/document-chat-builtin.spec.ts+++ b/e2e/document-chat-builtin.spec.ts@@ -39,7 +39,7 @@ test('document chat embeds via the bundled server, never Ollama', async ({ page// models — install the starter GGUF, auto-advances to embeddingsawait expect(page.getByRole('heading', { name: /Pick a starter model/i })).toBeVisible()- await page.getByRole('button', { name: /Qwen 2\.5 0\.5B/i }).click()+ await page.getByRole('button', { name: /Qwen 2\.5 7B/i }).click()await page.getByRole('button', { name: /Install \d+ model/i }).click()// embeddings — install on the built-in path (84 MB GGUF, not the 274 MBdiff --git a/e2e/kontextfenster-wird-nicht-abgeschnitten.spec.ts b/e2e/kontextfenster-wird-nicht-abgeschnitten.spec.tsindex 30750cfe..616ddbc2 100644--- a/e2e/kontextfenster-wird-nicht-abgeschnitten.spec.ts+++ b/e2e/kontextfenster-wird-nicht-abgeschnitten.spec.ts@@ -36,7 +36,7 @@ async function completeBuiltinOnboarding(page: Page) {await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible()await page.getByRole('button', { name: /Skip for now/i }).click()await expect(page.getByRole('heading', { name: /Pick a starter model/i })).toBeVisible()- await page.getByRole('button', { name: /Qwen 2\.5 0\.5B/i }).click()+ await page.getByRole('button', { name: /Qwen 2\.5 7B/i }).click()await page.getByRole('button', { name: /Install \d+ model/i }).click()await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible({ timeout: 30_000 })await page.getByRole('button', { name: /Skip for now/i }).click()diff --git a/e2e/onboarding-builtin.spec.ts b/e2e/onboarding-builtin.spec.tsindex b1bfdafe..9c5d401c 100644--- a/e2e/onboarding-builtin.spec.ts+++ b/e2e/onboarding-builtin.spec.ts@@ -21,6 +21,26 @@ async function installMock(page: Page) {})}+test('small GPU keeps the 7B starter visible with a memory advisory', async ({ page }) => {+ await installMock(page)+ await page.addInitScript(() => {+ const bridge = (window as unknown as { __TAURI_INTERNALS__: { invoke: (command: string, args: { url?: string }) => Promise<unknown> } }).__TAURI_INTERNALS__+ const invoke = bridge.invoke+ bridge.invoke = (command, args) => command === 'proxy_localhost' && args?.url?.includes('/system_stats')+ ? Promise.resolve(JSON.stringify({ devices: [{ name: 'Test GPU', type: 'cuda', vram_total: 2 * 1024 ** 3 }] }))+ : invoke(command, args)+ })+ await page.goto('/')+ await page.getByRole('button', { name: /Get Started/i }).click()+ await page.getByRole('button', { name: /Continue/i }).click()+ await page.getByRole('button', { name: /Skip for now/i }).click()+ const starter = page.getByRole('button', { name: /Qwen 2\.5 7B/i })+ await expect(starter).toBeVisible()+ await expect(starter).toContainText('Full GPU offload may not fit.')+ await expect(page.getByRole('button', { name: /0\.5B/i })).toHaveCount(0)+ await expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible()+})+test('fresh onboarding boots the built-in engine and answers a chat', async ({ page }) => {await installMock(page)await page.goto('/')@@ -40,13 +60,19 @@ test('fresh onboarding boots the built-in engine and answers a chat', async ({ p// models — select the starter GGUF, then install. The step auto-advances to// embeddings once the (mocked) download completes and the engine boots.await expect(page.getByRole('heading', { name: /Pick a starter model/i })).toBeVisible()- await page.getByRole('button', { name: /Qwen 2\.5 0\.5B/i }).click()+ await page.getByRole('button', { name: /Qwen 2\.5 7B/i }).click()const installBtn = page.getByRole('button', { name: /Install \d+ model/i })await expect(installBtn).toBeVisible()await installBtn.click()// embeddings — skip; onboarding is Ollama-free on the built-in pathawait expect(page.getByRole('button', { name: /Skip for now/i })).toBeVisible({ timeout: 30_000 })+ const downloads = await page.evaluate(() => (window as unknown as { __E2E_DL_CALLS__: unknown[] }).__E2E_DL_CALLS__)+ expect(downloads).toContainEqual(expect.objectContaining({+ filename: 'Qwen2.5-7B-Instruct-Q4_K_M.gguf',+ expectedBytes: 4683074240,+ expectedSha256: '65b8fcd92af6b4fefa935c625d1ac27ea29dcb6ee14589c55a8f115ceaaa1423',+ }))await page.getByRole('button', { name: /Skip for now/i }).click()// done — finish sets onboardingDone and reveals the chat UIdiff --git a/e2e/support/tauri-mock.ts b/e2e/support/tauri-mock.tsindex 05d47585..d68e1be9 100644--- a/e2e/support/tauri-mock.ts+++ b/e2e/support/tauri-mock.ts@@ -89,7 +89,7 @@ export interface TauriMockOptions {}export const DEFAULT_ASSISTANT_REPLY = 'PONG_BUILTIN_OK the built-in engine answered.'-export const DEFAULT_MODEL_NAME = 'qwen2.5-0.5b-instruct-q4_k_m'+export const DEFAULT_MODEL_NAME = 'qwen2.5-7b-instruct-q4_k_m'/*** The function body below is serialized and runs in the PAGE context — it must@@ -295,6 +295,7 @@ export function tauriMockInit(opts: TauriMockOptions) {destDir: args?.destDir,filename: fn,expectedBytes: args?.expectedBytes,+ expectedSha256: args?.expectedSha256,})return Promise.resolve({ status: 'started', id: `dl-${fn}` })}diff --git a/src/components/onboarding/ModelsStep.tsx b/src/components/onboarding/ModelsStep.tsxindex bd53f986..ac896b11 100644--- a/src/components/onboarding/ModelsStep.tsx+++ b/src/components/onboarding/ModelsStep.tsx@@ -79,7 +79,7 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, set// Default the active sub-tab to whichever category actually has entries.// The previous fixed 'uncensored' default broke the onboarding starter card// entirely once P4 trimmed ONBOARDING_MODELS down to a single mainstream- // entry (Qwen 2.5 0.5B): the tab switcher hides itself when only one+ // entry: the tab switcher hides itself when only one// category is populated, but the filter at render time still rejected every// mainstream model — leaving the user on an empty list with only "Skip for// now". This computed initial value keeps the switcher useful when both@@ -216,8 +216,8 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, set// dir directly. We await completion here (not fire-and-forget) so the// engine starts on a fully-downloaded file and the first chat works.dlStore.getState().setMeta(model.filename, model.downloadUrl, 'gguf', destDir!)- const expectedBytes = model.sizeGB ? Math.round(model.sizeGB * 1_073_741_824) : undefined- await startModelDownloadToPath(model.downloadUrl, destDir!, model.filename, expectedBytes)+ const expectedBytes = model.expectedBytes ?? (model.sizeGB ? Math.round(model.sizeGB * 1_073_741_824) : undefined)+ await startModelDownloadToPath(model.downloadUrl, destDir!, model.filename, expectedBytes, model.sha256)dlStore.getState().startPolling()await awaitDownloadComplete(model.filename)// Same door as the Models page (lib/bundled-download-activation):@@ -237,8 +237,8 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, setconst subdir = hfUrlToLmStudioSubdir(model.downloadUrl)const targetDir = subdir ? `${destDir}/${subdir}` : destDir!dlStore.getState().setMeta(model.filename, model.downloadUrl, 'gguf', targetDir)- const expectedBytes = model.sizeGB ? Math.round(model.sizeGB * 1_073_741_824) : undefined- await startModelDownloadToPath(model.downloadUrl, targetDir, model.filename, expectedBytes)+ const expectedBytes = model.expectedBytes ?? (model.sizeGB ? Math.round(model.sizeGB * 1_073_741_824) : undefined)+ await startModelDownloadToPath(model.downloadUrl, targetDir, model.filename, expectedBytes, model.sha256)dlStore.getState().startPolling()}setPulledModels(prev => [...prev, name])@@ -253,13 +253,8 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, setsetStep('embeddings')}- // Detect system VRAM for model filtering.- //- // Level (a): silent on purpose. systemVRAM is only ever read as- // `if (systemVRAM && m.vramGB > systemVRAM) return false`, so a failed- // probe means the recommendation list is not narrowed — the user sees MORE- // models, not fewer, and every card still states its own VRAM need. There- // is no action to offer, and nothing was lost.+ // Detect VRAM for a memory advisory. Failed probes leave the model visible+ // with its stated requirements; they never imply that the model will fit.useEffect(() => { getSystemVRAM().then(v => setSystemVRAM(v)).catch(() => {}) }, [])// Die CHATFAEHIGEN Modelle, die der Nutzer schon hat, mit Namen und nicht@@ -467,8 +462,8 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, set// Filter by tabif (modelSubTab === 'uncensored' && !m.uncensored) return falseif (modelSubTab === 'mainstream' && m.uncensored) return false- // Filter by VRAM if known- if (systemVRAM && m.vramGB > systemVRAM) return false+ // Keep the chat starter visible on small GPUs; explain the memory+ // requirement instead of replacing it with a sub-7B default.return true}).map((model) => {const selected = selectedModels.includes(model.name)@@ -497,6 +492,9 @@ export function ModelsStep({ skin, scan, fleet, step, setStep, pulledModels, set)}</div><p className={`text-[0.6rem] mt-0.5 ${isDark ? 'text-gray-400' : 'text-gray-500'}`}>{model.description}</p>+ {systemVRAM !== null && systemVRAM < model.vramGB && (+ <p className="text-xs mt-1 text-gray-500 dark:text-gray-400">Full GPU offload may not fit. Use CPU/offload settings or skip local setup.</p>+ )}<p className={`text-[0.55rem] mt-0.5 ${isDark ? 'text-gray-500' : 'text-gray-400'}`}>{model.size} · VRAM: {model.vram}</p>diff --git a/src/lib/__tests__/onboarding-chat-minimum.test.ts b/src/lib/__tests__/onboarding-chat-minimum.test.tsnew file mode 100644index 00000000..0d504862--- /dev/null+++ b/src/lib/__tests__/onboarding-chat-minimum.test.ts@@ -0,0 +1,16 @@+import { expect, it } from 'vitest'+import { ONBOARDING_MODELS } from '../constants'+import { getMainstreamTextModels } from '../../api/discover'++it('uses an existing catalog model meeting the 7B minimum with exact download integrity', () => {+ expect(ONBOARDING_MODELS).toHaveLength(1)+ const starter = ONBOARDING_MODELS[0]+ const catalog = getMainstreamTextModels().find(model => model.filename === starter.filename)+ expect(catalog).toBeDefined()+ expect(catalog!.tags).toContain('7B')+ expect(starter.downloadUrl).toBe(catalog!.downloadUrl)+ expect(starter.expectedBytes).toBe(4683074240)+ expect(starter.sha256).toBe('65b8fcd92af6b4fefa935c625d1ac27ea29dcb6ee14589c55a8f115ceaaa1423')+ expect(Math.round(starter.sizeGB * 1_073_741_824)).toBe(starter.expectedBytes)+ expect(starter.description).not.toMatch(/runs on anything|instant|30 seconds/i)+})diff --git a/src/lib/constants.ts b/src/lib/constants.tsindex 188c9774..c833f01d 100644--- a/src/lib/constants.ts+++ b/src/lib/constants.ts@@ -325,6 +325,8 @@ export interface OnboardingModel {downloadUrl: string // HuggingFace GGUF download URLfilename: string // GGUF filenamesizeGB: number // Download size in GB+ expectedBytes?: number+ sha256?: string}const HF_OB = (repo: string, file: string) => `https://huggingface.co/${repo}/resolve/main/${file}`@@ -340,11 +342,7 @@ export const ONBOARDING_EMBED_MODEL = {}export const ONBOARDING_MODELS: OnboardingModel[] = [- // P4 / LU-Aufgaben: ONBOARDING shows exactly ONE model, the tiny ~400 MB- // Qwen 2.5 0.5B starter. The previous list of 22 entries (5 to 42 GB) was- // pure noise on first launch. Discoverability for everything else lives- // in the Model Manager → Get new tab (curated list + HuggingFace- // search). Onboarding is "give the user a working chat in 30 seconds";- // anything heavier comes after they've made it past the wizard.- { name: 'qwen2.5-0.5b', label: 'Qwen 2.5 0.5B (Starter)', description: 'Tiny instant-chat model, 400 MB, runs on anything. Great to verify your setup; pick bigger models from the Get new tab once you\'re in.', size: '0.4 GB', vram: '1 GB', vramGB: 1, recommended: true, agent: false, downloadUrl: HF_OB('bartowski/Qwen2.5-0.5B-Instruct-GGUF', 'Qwen2.5-0.5B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-0.5B-Instruct-Q4_K_M.gguf', sizeGB: 0.4 },+ // One chat starter meeting the 7B minimum. Download integrity comes from+ // the published LFS metadata, not the rounded display size.+ { name: 'qwen2.5-7b', label: 'Qwen 2.5 7B (Starter)', description: '7B chat model, Q4_K_M. Allow additional memory for context and the operating system. Download time and response speed depend on your hardware.', size: '4.4 GiB', vram: 'about 6 GB for GPU offload, context-dependent', vramGB: 6, recommended: true, agent: false, downloadUrl: HF_OB('bartowski/Qwen2.5-7B-Instruct-GGUF', 'Qwen2.5-7B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-7B-Instruct-Q4_K_M.gguf', sizeGB: 4683074240 / 1_073_741_824, expectedBytes: 4683074240, sha256: '65b8fcd92af6b4fefa935c625d1ac27ea29dcb6ee14589c55a8f115ceaaa1423' },]