Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
d01d11a
1
Parent(s):
8aa0a51
fix the ctrl tuff maybe
Browse files
ui/src/app/jobs/new/SimplifiedJob.tsx
CHANGED
|
@@ -22,7 +22,16 @@ const ACCEPTED_FILE_TYPES = {
|
|
| 22 |
'text/*': ['.txt'],
|
| 23 |
};
|
| 24 |
|
| 25 |
-
const FOUR_BATCH_ARCHES = new Set([
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
const resolveBatchSettings = (arch: string) =>
|
| 28 |
FOUR_BATCH_ARCHES.has(arch)
|
|
@@ -256,16 +265,6 @@ export default function SimplifiedJob({
|
|
| 256 |
}
|
| 257 |
}, [jobConfig.config.name, trainDatasetNameTouched, controlDatasetNameTouched]);
|
| 258 |
|
| 259 |
-
useEffect(() => {
|
| 260 |
-
const { batchSize, learningRate } = resolveBatchSettings(process.model.arch);
|
| 261 |
-
if (process.train.batch_size !== batchSize) {
|
| 262 |
-
setJobConfig(batchSize, 'config.process[0].train.batch_size');
|
| 263 |
-
}
|
| 264 |
-
if (process.train.lr !== learningRate) {
|
| 265 |
-
setJobConfig(learningRate, 'config.process[0].train.lr');
|
| 266 |
-
}
|
| 267 |
-
}, [process.model.arch, process.train.batch_size, process.train.lr, setJobConfig]);
|
| 268 |
-
|
| 269 |
const ensureDataset = useCallback(
|
| 270 |
async (
|
| 271 |
datasetName: string,
|
|
|
|
| 22 |
'text/*': ['.txt'],
|
| 23 |
};
|
| 24 |
|
| 25 |
+
const FOUR_BATCH_ARCHES = new Set([
|
| 26 |
+
'flux',
|
| 27 |
+
'flux_kontext',
|
| 28 |
+
'flex1',
|
| 29 |
+
'flex2',
|
| 30 |
+
'wan21:1b',
|
| 31 |
+
'qwen_image',
|
| 32 |
+
'qwen_image_edit',
|
| 33 |
+
'qwen_image_edit_plus',
|
| 34 |
+
]);
|
| 35 |
|
| 36 |
const resolveBatchSettings = (arch: string) =>
|
| 37 |
FOUR_BATCH_ARCHES.has(arch)
|
|
|
|
| 265 |
}
|
| 266 |
}, [jobConfig.config.name, trainDatasetNameTouched, controlDatasetNameTouched]);
|
| 267 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
const ensureDataset = useCallback(
|
| 269 |
async (
|
| 270 |
datasetName: string,
|
ui/src/app/jobs/new/jobConfig.ts
CHANGED
|
@@ -53,7 +53,7 @@ export const defaultJobConfig: JobConfig = {
|
|
| 53 |
},
|
| 54 |
datasets: [defaultDatasetConfig],
|
| 55 |
train: {
|
| 56 |
-
batch_size:
|
| 57 |
bypass_guidance_embedding: true,
|
| 58 |
steps: 1200,
|
| 59 |
gradient_accumulation: 1,
|
|
@@ -69,7 +69,7 @@ export const defaultJobConfig: JobConfig = {
|
|
| 69 |
},
|
| 70 |
unload_text_encoder: false,
|
| 71 |
cache_text_embeddings: false,
|
| 72 |
-
lr: 0.
|
| 73 |
ema_config: {
|
| 74 |
use_ema: false,
|
| 75 |
ema_decay: 0.99,
|
|
|
|
| 53 |
},
|
| 54 |
datasets: [defaultDatasetConfig],
|
| 55 |
train: {
|
| 56 |
+
batch_size: 4,
|
| 57 |
bypass_guidance_embedding: true,
|
| 58 |
steps: 1200,
|
| 59 |
gradient_accumulation: 1,
|
|
|
|
| 69 |
},
|
| 70 |
unload_text_encoder: false,
|
| 71 |
cache_text_embeddings: false,
|
| 72 |
+
lr: 0.0003,
|
| 73 |
ema_config: {
|
| 74 |
use_ema: false,
|
| 75 |
ema_decay: 0.99,
|
ui/src/app/jobs/new/options.ts
CHANGED
|
@@ -369,7 +369,7 @@ export const modelArchs: ModelArch[] = [
|
|
| 369 |
'config.process[0].train.lr': [0.0003, 0.0001],
|
| 370 |
},
|
| 371 |
disableSections: ['network.conv', 'train.unload_text_encoder'],
|
| 372 |
-
additionalSections: ['datasets.
|
| 373 |
accuracyRecoveryAdapters: {
|
| 374 |
'3 bit with ARA': 'uint3|ostris/accuracy_recovery_adapters/qwen_image_edit_2509_torchao_uint3.safetensors',
|
| 375 |
},
|
|
|
|
| 369 |
'config.process[0].train.lr': [0.0003, 0.0001],
|
| 370 |
},
|
| 371 |
disableSections: ['network.conv', 'train.unload_text_encoder'],
|
| 372 |
+
additionalSections: ['datasets.control_path', 'sample.ctrl_img', 'model.low_vram'],
|
| 373 |
accuracyRecoveryAdapters: {
|
| 374 |
'3 bit with ARA': 'uint3|ostris/accuracy_recovery_adapters/qwen_image_edit_2509_torchao_uint3.safetensors',
|
| 375 |
},
|