Skip to content

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.

feat(neuron): three steps to add a GGUF file, in the empty state and in Help

purpleeebf9c3163fa
diff --git a/src/components/neuron/NeuronView.tsx b/src/components/neuron/NeuronView.tsx
index 294adbd5..eedc31d6 100644
--- a/src/components/neuron/NeuronView.tsx
+++ b/src/components/neuron/NeuronView.tsx
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Download, FilePlus, Loader2, RotateCcw, Search, Sliders, Trash2 } from 'lucide-react'
import { Hinweis } from '../ui/Hinweis'
import { HINWEIS_TEXT } from '../../lib/hinweis'
+import { HOWTO } from '../../lib/howto'
import { ICON_SM } from '../ui/icon-size'
import { openExternal } from '../../api/backend'
import { addGgufFile, listBundledModels, bundledEngineStatus, isEmbeddingGgufName, type BundledModel } from '../../api/engine'
@@ -28,6 +29,7 @@ import type { BuiltinEngineTuning } from '../../types/settings'
const APPLY_DELAY_MS = 700
const NO_CHAT_MODEL = 'The tweaker works on chat models the LU Engine runs. Download one, or use a GGUF file you already have. An embedding model (the one Document Chat uses) cannot be tweaked.'
+const GGUF_STEPS = HOWTO['gguf-file'].films[0].steps
/** Why a model the user already has in Ollama or LM Studio is not offered. */
const OTHER_APPS = 'Models in Ollama or LM Studio do not show up here: those programs take no control vectors, so the sliders cannot reach them.'
@@ -370,7 +372,7 @@ function NoModel({ onDownload, onAddFile, error, onDismissError }: {
return (
<div className="h-full overflow-y-auto scrollbar-thin flex items-center justify-center px-6 py-8" data-testid="neuron-view">
<div className="max-w-md flex flex-col items-center text-center gap-3" data-testid="neuron-empty">
- <Sliders size={32} className="text-gray-400 dark:text-gray-500" aria-hidden />
+ <Sliders size={28} className="text-gray-400 dark:text-gray-500" aria-hidden />
<h1 className="t-title text-gray-900 dark:text-white">No chat model for the LU Engine yet</h1>
<p className="t-body text-gray-600 dark:text-gray-300" data-testid="neuron-no-chat-model">{NO_CHAT_MODEL}</p>
<p className={`t-body ${HINWEIS_TEXT.ruhig}`} data-testid="neuron-other-apps">{OTHER_APPS}</p>
@@ -378,7 +380,15 @@ function NoModel({ onDownload, onAddFile, error, onDismissError }: {
<button className="lu-tonal" onClick={onDownload} data-testid="neuron-get-model">
<Download size={ICON_SM} /> Get a model for the LU Engine
</button>
- <button className="lu-control" onClick={onAddFile} data-testid="neuron-add-gguf" title="Use a GGUF file from your drive as a chat model on the LU Engine">
+ </div>
+ {/* A file the user already has, in three steps (David, 30.10.2026).
+ The lines are the how-to's, so Help and this state say the same. */}
+ <div className="mt-3 w-full text-left rounded-lg border border-gray-200 dark:border-white/[0.06] px-4 py-3" data-testid="neuron-gguf-steps">
+ <p className="t-body font-semibold text-gray-900 dark:text-white mb-1.5">Already have a GGUF file?</p>
+ <ol className="t-body text-gray-600 dark:text-gray-300 space-y-1 list-decimal pl-5">
+ {GGUF_STEPS.map((s) => <li key={s.from}>{s.text}</li>)}
+ </ol>
+ <button className="lu-control mt-2.5" onClick={onAddFile} data-testid="neuron-add-gguf" title="Use a GGUF file from your drive as a chat model on the LU Engine">
<FilePlus size={ICON_SM} /> GGUF file
</button>
</div>
diff --git a/src/components/neuron/__tests__/neuron-view-steers-the-engine.test.tsx b/src/components/neuron/__tests__/neuron-view-steers-the-engine.test.tsx
index e28e3328..d79ddd24 100644
--- a/src/components/neuron/__tests__/neuron-view-steers-the-engine.test.tsx
+++ b/src/components/neuron/__tests__/neuron-view-steers-the-engine.test.tsx
@@ -65,9 +65,11 @@ import { useNeuronStore } from '../../../stores/neuronStore'
import { useSettingsStore } from '../../../stores/settingsStore'
import { useChatStore } from '../../../stores/chatStore'
import { useUIStore } from '../../../stores/uiStore'
+import { HOWTO } from '../../../lib/howto'
import type { Persona } from '../../../types/settings'
beforeEach(() => {
+ addGgufFile.mockClear()
apply.mockClear()
buildPreset.mockClear()
vectors.length = 0
@@ -199,6 +201,23 @@ describe('Neuron tweaker view', () => {
expect(useModelStore.getState().activeModel).toBe('llama3:8b')
})
+ // David, 30.10.2026: how to bring a GGUF file in, in three short steps,
+ // with the button that opens exactly that dialog. The lines are the
+ // how-to's (lib/howto.ts 'gguf-file'), so Help says the same.
+ it('says in three steps how a GGUF file becomes an LU Engine model, next to its button', async () => {
+ disk.models = []
+ render(createElement(NeuronView))
+ const box = await screen.findByTestId('neuron-gguf-steps')
+ const lines = [...box.querySelectorAll('ol > li')].map((li) => li.textContent)
+ expect(lines).toEqual(HOWTO['gguf-file'].films[0].steps.map((st) => st.text))
+ expect(lines[0]).toMatch(/GGUF file/)
+ const button = screen.getByTestId('neuron-add-gguf')
+ expect(box.contains(button)).toBe(true)
+ expect(button.textContent).toMatch(/GGUF file/)
+ fireEvent.click(button)
+ await waitFor(() => expect(addGgufFile).toHaveBeenCalledTimes(1))
+ })
+
it('its GGUF file button adds a file and the tweaker opens on it', async () => {
disk.models = []
addGgufFile.mockImplementationOnce(async () => { disk.models = [QWEN]; return QWEN.name })
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsx
index 75322d20..1bd3e943 100644
--- a/src/components/settings/SettingsPage.tsx
+++ b/src/components/settings/SettingsPage.tsx
@@ -2299,6 +2299,7 @@ export function SettingsPage() {
<Section title="Storage">
<HowtoRow topic="storage" />
+ <HowtoRow topic="gguf-file" />
{/* Discord "Storage Management": one folder for the models, the
gallery and the runtime, and a safe move of what is there. The
rows below place each part on its own. Desktop only. */}
diff --git a/src/lib/__tests__/howto-lines-follow-the-film.test.ts b/src/lib/__tests__/howto-lines-follow-the-film.test.ts
index b26cca29..a6d71070 100644
--- a/src/lib/__tests__/howto-lines-follow-the-film.test.ts
+++ b/src/lib/__tests__/howto-lines-follow-the-film.test.ts
@@ -1,4 +1,6 @@
import { describe, expect, it } from 'vitest'
+import { readFileSync } from 'node:fs'
+import { resolve } from 'node:path'
import { HOWTO, HOWTO_GUIDE_BASE, HOWTO_VIDEO_BASE, howtoGuideUrl, howtoLineAt, howtoVideoUrl, stageHowtoTopic } from '../howto'
import { INTENTS } from '../../components/create/experimental/intents'
@@ -59,4 +61,16 @@ describe('how it works', () => {
expect(stageHowtoTopic('lipsync', 'local', true)).toBe('mac-lipsync')
expect(stageHowtoTopic('animate', 'local', true)).toBeNull()
})
+
+ // P11 (David, 30.10.2026): how a GGUF file the user already has becomes an
+ // LU Engine model, in Help (Settings, Storage) and in the Neuron tweaker.
+ it('explains in two or three steps how to add a GGUF file, under Storage too', () => {
+ const steps = HOWTO['gguf-file'].films[0].steps
+ expect(steps.length).toBeGreaterThanOrEqual(2)
+ expect(steps.length).toBeLessThanOrEqual(3)
+ expect(steps[0].text).toMatch(/GGUF file/)
+ expect(steps.map((s) => s.text).join(' ')).toMatch(/LU Engine/)
+ const settings = readFileSync(resolve(__dirname, '../../components/settings/SettingsPage.tsx'), 'utf8')
+ expect(settings).toContain('<HowtoRow topic="gguf-file" />')
+ })
})
diff --git a/src/lib/howto.ts b/src/lib/howto.ts
index c4c1db72..8e8fc3d7 100644
--- a/src/lib/howto.ts
+++ b/src/lib/howto.ts
@@ -234,6 +234,15 @@ export const HOWTO: Record<string, HowtoTopic> = {
},
],
},
+ // P11 (David, 30.10.2026): a GGUF the user already has becomes an LU
+ // Engine model, which is what the Neuron tweaker needs. The same three
+ // lines stand in the tweaker's empty state, next to the button they name.
+ // No film is online yet; until it is, the card shows these lines as a list.
+ 'gguf-file': one('How to add a GGUF file', 'gguf-file', [
+ { from: 0, text: 'Press GGUF file and pick a .gguf chat model on your drive.' },
+ { from: 3, text: 'LU links it into the LU Engine folder, without a copy. File and folder must be on one drive.' },
+ { from: 6, text: 'It shows up in Neurons and under Models, Installed, where Use starts a chat with it.' },
+ ], '/guide/storage/'),
remote: one('How remote access works', 'remote', [
{ from: 0, text: 'Remote access starts in the Remote tab of the sidebar.' },
{ from: 1.58, text: 'Dispatch splits in two: LAN for your own network, Internet for anywhere.' },