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(create): mark style training as Beta

purplec71c86ed5822
diff --git a/src/components/create/experimental/SpecialIntentControls.tsx b/src/components/create/experimental/SpecialIntentControls.tsx
index f4a9150e..e3487d8e 100644
--- a/src/components/create/experimental/SpecialIntentControls.tsx
+++ b/src/components/create/experimental/SpecialIntentControls.tsx
@@ -39,6 +39,7 @@ import { galleryLabelShort } from '../../../lib/render/gallery-label'
import { TRAIN_VRAM_PRESETS, LOW_VRAM_NOTE, trainStepsNote, trainVramSuggestion, type TrainVramPreset } from '../../../lib/trainer-presets'
import { STYLE_MODE_NOTE, STYLE_NAME_PLACEHOLDER, STYLE_TRIGGER_HINT_OFF, STYLE_TRIGGER_HINT_ON, STYLE_TRIGGER_LABEL, TRAIN_KINDS, trainPresetsFor, type TrainKind } from '../../../lib/train-kind'
import { useGraphicsCardGb } from '../../../hooks/useGraphicsMemory'
+import { BetaMark } from '../../ui/BetaMark'
import { trainerPathPlaceholder } from '../../../lib/trainer-path-placeholder'
import { trainerRootHint } from '../../../lib/trainer-root-hint'
import { useCreateExp } from './CreateContext'
@@ -445,13 +446,17 @@ function TrainKindPicker() {
const isGenerating = useCreateStore((s) => s.isGenerating)
return (
<div className="flex flex-col items-center gap-1" data-testid="train-kind">
- <Segmented
- size="sm"
- layoutId="train-kind"
- value={trainKind}
- onChange={(v) => { if (!isGenerating) setTrainKind(v as TrainKind) }}
- options={TRAIN_KINDS.map((k) => ({ value: k.value, label: k.label }))}
- />
+ <div className="flex items-center gap-1.5">
+ <Segmented
+ size="sm"
+ layoutId="train-kind"
+ value={trainKind}
+ onChange={(v) => { if (!isGenerating) setTrainKind(v as TrainKind) }}
+ options={TRAIN_KINDS.map((k) => ({ value: k.value, label: k.label }))}
+ />
+ {/* Beta stands for the style mode only (lib/beta.ts). */}
+ <BetaMark feature="style-training" />
+ </div>
{trainKind === 'style' && (
<>
<div className="t-label text-gray-500 max-w-[560px] text-center" data-testid="style-mode-note">{STYLE_MODE_NOTE}</div>
diff --git a/src/components/create/experimental/__tests__/train-kind-oberflaeche.test.tsx b/src/components/create/experimental/__tests__/train-kind-oberflaeche.test.tsx
index 84b88010..3bf3a5ca 100644
--- a/src/components/create/experimental/__tests__/train-kind-oberflaeche.test.tsx
+++ b/src/components/create/experimental/__tests__/train-kind-oberflaeche.test.tsx
@@ -19,6 +19,7 @@ vi.mock('../../../../api/mlx-train', async (orig) => ({
import { SpecialControls } from '../SpecialIntentControls'
import { useCreateStore } from '../../../../stores/createStore'
import { STYLE_MODE_NOTE, STYLE_TRIGGER_HINT_OFF } from '../../../../lib/train-kind'
+import { BETA_FEATURES } from '../../../../lib/beta'
function arrange() {
useCreateStore.setState({ backend: 'local', error: null, triggerWord: '', trainImages: [], trainKind: 'character', trainSteps: 1200, trainStyleTrigger: true } as never)
@@ -39,6 +40,15 @@ describe('the Style / concept mode in the Train tab', () => {
expect(screen.getByTestId('mac-train-hint').textContent).toMatch(/Standard, 1200 steps.*The character lands/)
})
+ it('the switch carries the Beta mark of the style mode (David, 29.10.2026)', async () => {
+ arrange()
+ render(<SpecialControls intent="character" />)
+ await screen.findByRole('radio', { name: 'Style / concept' })
+ const mark = screen.getByTestId('train-kind').querySelector('[data-beta="style-training"]')
+ expect(mark?.textContent).toBe('Beta')
+ expect(mark?.getAttribute('title')).toBe(BETA_FEATURES['style-training'])
+ })
+
it('switching says what it is for, renames the field and takes its own steps', async () => {
arrange()
render(<SpecialControls intent="character" />)
diff --git a/src/lib/__tests__/beta-marks.test.ts b/src/lib/__tests__/beta-marks.test.ts
index 55c09b22..294307f0 100644
--- a/src/lib/__tests__/beta-marks.test.ts
+++ b/src/lib/__tests__/beta-marks.test.ts
@@ -41,6 +41,10 @@ const PLACES: Record<BetaFeature, string[]> = {
// One mark on the head of the group, none on the rows.
'components/models/CloudModelPicker.tsx',
],
+ 'style-training': [
+ // Next to the Character | Style / concept switch of the local trainer.
+ 'components/create/experimental/SpecialIntentControls.tsx',
+ ],
}
function sources(dir: string, out: string[] = []): string[] {
@@ -56,8 +60,8 @@ function sources(dir: string, out: string[] = []): string[] {
const FILES = sources(SRC).map((path) => ({ file: relative(SRC, path).split('\\').join('/'), text: readFileSync(path, 'utf8') }))
describe('the Beta list', () => {
- it('names exactly the features that ship as Beta in 3.0.6', () => {
- expect(Object.keys(BETA_FEATURES).sort()).toEqual(['computer-control', 'create-in-chat', 'direct-models', 'voice'])
+ it('names exactly the features that ship as Beta', () => {
+ expect(Object.keys(BETA_FEATURES).sort()).toEqual(['computer-control', 'create-in-chat', 'direct-models', 'style-training', 'voice'])
})
it('says one word, and every sentence starts with it', () => {
diff --git a/src/lib/beta.ts b/src/lib/beta.ts
index a977c4f3..64fcd218 100644
--- a/src/lib/beta.ts
+++ b/src/lib/beta.ts
@@ -14,7 +14,7 @@
* The sentence is the hover text of the mark. It says what Beta means for
* this feature, in plain words, and what the customer should do about it.
*/
-export type BetaFeature = 'computer-control' | 'voice' | 'create-in-chat' | 'direct-models'
+export type BetaFeature = 'computer-control' | 'voice' | 'create-in-chat' | 'direct-models' | 'style-training'
export const BETA_LABEL = 'Beta'
@@ -27,6 +27,10 @@ export const BETA_FEATURES: Partial<Record<BetaFeature, string>> = {
'Beta: Create in chat is new. A small chat model often gets an order wrong, so read the order before you press Start.',
'direct-models':
'Beta: these models are new in LU Cloud. How they hold up when many people use them at once is not measured yet.',
+ // 3.0.9 P8 (David, 29.10.2026): the style mode runs, but a short run did
+ // not learn a clear style in our test. More steps are not measured yet.
+ 'style-training':
+ 'Beta: style training is new. A short run may change the look only a little, so try Standard or Thorough and compare with the LoRA off.',
}
/** The hover sentence of a feature that is still Beta, null once it is not. */