@civitai/orchestration-client 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/index.d.ts +34 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +15 -1
- package/dist/generated/sdk.gen.js +15 -1
- package/dist/generated/services.gen.d.ts +3414 -0
- package/dist/generated/services.gen.js +405 -0
- package/dist/generated/types.gen.d.ts +689 -358
- package/dist/generated/types.gen.js +7 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/services.d.ts +31 -0
- package/dist/utils/services.js +36 -0
- package/package.json +2 -2
|
@@ -48,6 +48,22 @@ export type AiToolkitTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
48
48
|
* You can change the learning rate in the middle of learning. A scheduler is a setting for how to change the learning rate.
|
|
49
49
|
*/
|
|
50
50
|
lrScheduler?: 'constant' | 'constant_with_warmup' | 'cosine' | 'linear' | 'step';
|
|
51
|
+
/**
|
|
52
|
+
* Warmup steps for constant learning rate, up to the total training steps. Omit to keep the scheduler default.
|
|
53
|
+
*/
|
|
54
|
+
lrWarmupSteps?: null | number;
|
|
55
|
+
/**
|
|
56
|
+
* Chance of training without a caption, from 0 to 1. Omit to keep the model default.
|
|
57
|
+
*/
|
|
58
|
+
captionDropoutRate?: null | number;
|
|
59
|
+
/**
|
|
60
|
+
* LoRA rank dropout probability, from 0 (off) to less than 1. Defaults to off.
|
|
61
|
+
*/
|
|
62
|
+
rankDropout?: null | number;
|
|
63
|
+
/**
|
|
64
|
+
* Enable AI Toolkit's eligible convolution adapters at rank 16. Omit to keep the model default.
|
|
65
|
+
*/
|
|
66
|
+
trainConv?: null | boolean;
|
|
51
67
|
/**
|
|
52
68
|
* The optimizer determines how to update the neural net weights during training.
|
|
53
69
|
* Various methods have been proposed for smart learning, but the most commonly used in LoRA learning is "adamw8bit".
|
|
@@ -1575,6 +1591,67 @@ export type ComfyErnieTurboImageGenInput = Omit<
|
|
|
1575
1591
|
ecosystem: 'ernie';
|
|
1576
1592
|
engine: 'comfy';
|
|
1577
1593
|
};
|
|
1594
|
+
export type ComfyFibo2DevCreateImageInput = Omit<
|
|
1595
|
+
ComfyFibo2DevImageGenInput,
|
|
1596
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
1597
|
+
> & {
|
|
1598
|
+
operation: 'createImage';
|
|
1599
|
+
model: 'dev';
|
|
1600
|
+
ecosystem: 'fibo2';
|
|
1601
|
+
engine: 'comfy';
|
|
1602
|
+
};
|
|
1603
|
+
export type ComfyFibo2DevImageGenInput = Omit<
|
|
1604
|
+
ComfyFibo2ImageGenInput,
|
|
1605
|
+
'engine' | 'ecosystem' | 'model'
|
|
1606
|
+
> & {
|
|
1607
|
+
operation: null | string;
|
|
1608
|
+
model: 'dev';
|
|
1609
|
+
ecosystem: 'fibo2';
|
|
1610
|
+
engine: 'comfy';
|
|
1611
|
+
};
|
|
1612
|
+
export type ComfyFibo2EditTurboEditImageInput = Omit<
|
|
1613
|
+
ComfyFibo2EditTurboImageGenInput,
|
|
1614
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
1615
|
+
> & {
|
|
1616
|
+
images: Array<string>;
|
|
1617
|
+
operation: 'editImage';
|
|
1618
|
+
model: 'editTurbo';
|
|
1619
|
+
ecosystem: 'fibo2';
|
|
1620
|
+
engine: 'comfy';
|
|
1621
|
+
};
|
|
1622
|
+
export type ComfyFibo2EditTurboImageGenInput = Omit<
|
|
1623
|
+
ComfyFibo2ImageGenInput,
|
|
1624
|
+
'engine' | 'ecosystem' | 'model'
|
|
1625
|
+
> & {
|
|
1626
|
+
operation: null | string;
|
|
1627
|
+
steps?: number;
|
|
1628
|
+
cfgScale?: number;
|
|
1629
|
+
model: 'editTurbo';
|
|
1630
|
+
ecosystem: 'fibo2';
|
|
1631
|
+
engine: 'comfy';
|
|
1632
|
+
};
|
|
1633
|
+
export type ComfyFibo2ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1634
|
+
model: null | string;
|
|
1635
|
+
prompt: string;
|
|
1636
|
+
negativePrompt?: null | string;
|
|
1637
|
+
width?: number;
|
|
1638
|
+
height?: number;
|
|
1639
|
+
seed?: null | number;
|
|
1640
|
+
quantity?: number;
|
|
1641
|
+
steps?: number;
|
|
1642
|
+
cfgScale?: number;
|
|
1643
|
+
sampler?: ComfySampler;
|
|
1644
|
+
scheduler?: ComfyScheduler;
|
|
1645
|
+
loras?: {
|
|
1646
|
+
[key: string]: number;
|
|
1647
|
+
};
|
|
1648
|
+
/**
|
|
1649
|
+
* Compatible Fibo 2.0 diffusion checkpoint AIR. Omit or set null to use the selected model's int8 checkpoint; the int8 text encoder and VAE remain unchanged.
|
|
1650
|
+
*/
|
|
1651
|
+
diffusionModel?: null | string;
|
|
1652
|
+
ecosystem: 'fibo2';
|
|
1653
|
+
engine: 'comfy';
|
|
1654
|
+
};
|
|
1578
1655
|
export type ComfyFlux1CreateImageGenInput = Omit<
|
|
1579
1656
|
ComfyFlux1ImageGenInput,
|
|
1580
1657
|
'engine' | 'ecosystem' | 'operation'
|
|
@@ -2630,6 +2707,44 @@ export type ComfyMiniMaxH3ControlVideoInput = Omit<
|
|
|
2630
2707
|
operation: 'controlVideo';
|
|
2631
2708
|
engine: 'minimax-h3-comfy';
|
|
2632
2709
|
};
|
|
2710
|
+
export type ComfyMiniMaxH3CreateImageInput = Omit<
|
|
2711
|
+
ComfyMiniMaxH3ImageGenInput,
|
|
2712
|
+
'engine' | 'ecosystem' | 'operation'
|
|
2713
|
+
> & {
|
|
2714
|
+
operation: 'createImage';
|
|
2715
|
+
ecosystem: 'h3-image';
|
|
2716
|
+
engine: 'comfy';
|
|
2717
|
+
};
|
|
2718
|
+
export type ComfyMiniMaxH3EditImageInput = Omit<
|
|
2719
|
+
ComfyMiniMaxH3ImageGenInput,
|
|
2720
|
+
'engine' | 'ecosystem' | 'operation'
|
|
2721
|
+
> & {
|
|
2722
|
+
images: Array<string>;
|
|
2723
|
+
operation: 'editImage';
|
|
2724
|
+
ecosystem: 'h3-image';
|
|
2725
|
+
engine: 'comfy';
|
|
2726
|
+
};
|
|
2727
|
+
export type ComfyMiniMaxH3ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
2728
|
+
operation: null | string;
|
|
2729
|
+
prompt: string;
|
|
2730
|
+
width?: number;
|
|
2731
|
+
height?: number;
|
|
2732
|
+
seed?: null | number;
|
|
2733
|
+
quantity?: number;
|
|
2734
|
+
loras?: {
|
|
2735
|
+
[key: string]: number;
|
|
2736
|
+
};
|
|
2737
|
+
/**
|
|
2738
|
+
* Compatible six-step MiniMax H3 Image checkpoint AIR. Omit or set null for pruned INT8; the NVFP4 text encoder and image VAE are unchanged.
|
|
2739
|
+
*/
|
|
2740
|
+
diffusionModel?: null | string;
|
|
2741
|
+
steps?: number;
|
|
2742
|
+
cfgScale?: number;
|
|
2743
|
+
sampler?: ComfySampler;
|
|
2744
|
+
scheduler?: ComfyScheduler;
|
|
2745
|
+
ecosystem: 'h3-image';
|
|
2746
|
+
engine: 'comfy';
|
|
2747
|
+
};
|
|
2633
2748
|
/**
|
|
2634
2749
|
* Text-to-video or first/last-frame video using the FL2VA weights.
|
|
2635
2750
|
*/
|
|
@@ -2683,6 +2798,10 @@ export type ComfyMiniMaxH3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
2683
2798
|
[key: string]: number;
|
|
2684
2799
|
};
|
|
2685
2800
|
turbo?: boolean;
|
|
2801
|
+
/**
|
|
2802
|
+
* Refine draft latents in three steps to a 2560-pixel long edge (2560x1440 for widescreen), preserving draft audio. Width and height describe the draft.
|
|
2803
|
+
*/
|
|
2804
|
+
upscale?: boolean;
|
|
2686
2805
|
engine: 'minimax-h3-comfy';
|
|
2687
2806
|
};
|
|
2688
2807
|
export type ComfyMossImageBaseCreateImageInput = Omit<
|
|
@@ -3212,6 +3331,22 @@ export type ComfyTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
|
3212
3331
|
* You can change the learning rate in the middle of learning. A scheduler is a setting for how to change the learning rate.
|
|
3213
3332
|
*/
|
|
3214
3333
|
lrScheduler?: 'constant' | 'constant_with_warmup' | 'cosine' | 'linear' | 'step';
|
|
3334
|
+
/**
|
|
3335
|
+
* Warmup steps for constant learning rate, up to the total training steps. Omit to keep the scheduler default.
|
|
3336
|
+
*/
|
|
3337
|
+
lrWarmupSteps?: null | number;
|
|
3338
|
+
/**
|
|
3339
|
+
* Chance of training without a caption, from 0 to 1. Omit to keep the model default.
|
|
3340
|
+
*/
|
|
3341
|
+
captionDropoutRate?: null | number;
|
|
3342
|
+
/**
|
|
3343
|
+
* LoRA rank dropout probability, from 0 (off) to less than 1. Defaults to off.
|
|
3344
|
+
*/
|
|
3345
|
+
rankDropout?: null | number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Enable AI Toolkit's eligible convolution adapters at rank 16. Omit to keep the model default.
|
|
3348
|
+
*/
|
|
3349
|
+
trainConv?: null | boolean;
|
|
3215
3350
|
/**
|
|
3216
3351
|
* The optimizer determines how to update the neural net weights during training.
|
|
3217
3352
|
* Various methods have been proposed for smart learning, but the most commonly used in LoRA learning is "adamw8bit".
|
|
@@ -3807,6 +3942,15 @@ export type FalPolyGenInput = Omit<PolyGenInput, 'engine'> & {
|
|
|
3807
3942
|
model: string;
|
|
3808
3943
|
engine: 'fal';
|
|
3809
3944
|
};
|
|
3945
|
+
export type Fibo2AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
3946
|
+
readonly defaultSteps: number;
|
|
3947
|
+
ecosystem: 'fibo2';
|
|
3948
|
+
engine: 'ai-toolkit';
|
|
3949
|
+
/**
|
|
3950
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
3951
|
+
*/
|
|
3952
|
+
batchSize?: null | number;
|
|
3953
|
+
};
|
|
3810
3954
|
export declare const FileFormat: {
|
|
3811
3955
|
readonly UNKNOWN: 'unknown';
|
|
3812
3956
|
readonly SAFE_TENSOR: 'safeTensor';
|
|
@@ -4669,6 +4813,7 @@ export type GeminiImageGenInput = Omit<ImageGenInput, 'engine'> & {
|
|
|
4669
4813
|
};
|
|
4670
4814
|
export declare const GeminiOmniModel: {
|
|
4671
4815
|
readonly '1_1_FLASH': '1.1-flash';
|
|
4816
|
+
readonly '1_2_FLASH': '1.2-flash';
|
|
4672
4817
|
};
|
|
4673
4818
|
export type GeminiOmniModel = (typeof GeminiOmniModel)[keyof typeof GeminiOmniModel];
|
|
4674
4819
|
export declare const GeminiOmniResolution: {
|
|
@@ -4683,6 +4828,10 @@ export type GeminiOmniVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
4683
4828
|
aspectRatio?: '16:9' | '9:16';
|
|
4684
4829
|
resolution?: GeminiOmniResolution;
|
|
4685
4830
|
images?: Array<string>;
|
|
4831
|
+
/**
|
|
4832
|
+
* Output length in seconds for 1.2 Flash; defaults to 10. First/last-frame generation supports at most 10 seconds.
|
|
4833
|
+
*/
|
|
4834
|
+
duration?: null | number;
|
|
4686
4835
|
readonly maxBillableSeconds: number;
|
|
4687
4836
|
engine: 'gemini-omni';
|
|
4688
4837
|
};
|
|
@@ -5327,6 +5476,19 @@ export type Ideogram4AiToolkitTrainingInput = Omit<
|
|
|
5327
5476
|
*/
|
|
5328
5477
|
batchSize?: null | number;
|
|
5329
5478
|
};
|
|
5479
|
+
export type IdolComfyPolyGenInput = Omit<ComfyPolyGenInput, 'engine' | 'model'> & {
|
|
5480
|
+
imageUrl: string;
|
|
5481
|
+
diffusionModel?: null | string;
|
|
5482
|
+
seed?: null | number;
|
|
5483
|
+
steps?: number;
|
|
5484
|
+
cfgScale?: number;
|
|
5485
|
+
mode?: 'synthetic' | 'real';
|
|
5486
|
+
numGaussians?: number;
|
|
5487
|
+
minOpacity?: number;
|
|
5488
|
+
removeBackground?: boolean;
|
|
5489
|
+
model: 'idol';
|
|
5490
|
+
engine: 'comfy';
|
|
5491
|
+
};
|
|
5330
5492
|
export declare const ImageBackgroundRemovalFormat: {
|
|
5331
5493
|
readonly PNG: 'png';
|
|
5332
5494
|
readonly WEBP: 'webp';
|
|
@@ -5394,6 +5556,8 @@ export declare const ImageGenOutputFormat: {
|
|
|
5394
5556
|
readonly JPEG: 'jpeg';
|
|
5395
5557
|
readonly PNG: 'png';
|
|
5396
5558
|
readonly WEB_P: 'webP';
|
|
5559
|
+
readonly GIF: 'gif';
|
|
5560
|
+
readonly SVG: 'svg';
|
|
5397
5561
|
};
|
|
5398
5562
|
export type ImageGenOutputFormat = (typeof ImageGenOutputFormat)[keyof typeof ImageGenOutputFormat];
|
|
5399
5563
|
/**
|
|
@@ -5530,6 +5694,10 @@ export type ImageScanningInput = {
|
|
|
5530
5694
|
* Image to scan. URLs are imported into orchestrator blob storage before the job is queued.
|
|
5531
5695
|
*/
|
|
5532
5696
|
image: string;
|
|
5697
|
+
/**
|
|
5698
|
+
* Omit for SigLIP PG–XXX ratings. radio-alpha returns experimental S/V axes without changing the image's stored moderation verdict.
|
|
5699
|
+
*/
|
|
5700
|
+
'rater-model'?: 'siglip' | 'radio-alpha';
|
|
5533
5701
|
};
|
|
5534
5702
|
export type ImageScanningJointAgeClassification = {
|
|
5535
5703
|
status: string;
|
|
@@ -5569,6 +5737,9 @@ export type ImageScanningLabelScore = {
|
|
|
5569
5737
|
score: number;
|
|
5570
5738
|
};
|
|
5571
5739
|
export type ImageScanningOutput = {
|
|
5740
|
+
/**
|
|
5741
|
+
* Legacy PG–XXX rating. NA for RADIO; use RatingV2 instead.
|
|
5742
|
+
*/
|
|
5572
5743
|
nsfwLevel: NsfwLevel;
|
|
5573
5744
|
score: number;
|
|
5574
5745
|
topK: Array<ImageScanningLabelScore>;
|
|
@@ -5582,12 +5753,36 @@ export type ImageScanningOutput = {
|
|
|
5582
5753
|
* Why the image would be refused as input to other workflows; null when it passes.
|
|
5583
5754
|
*/
|
|
5584
5755
|
blockedReason?: null | string;
|
|
5756
|
+
/**
|
|
5757
|
+
* Experimental RADIO axes and routing decision; independent of the legacy NSFW scale.
|
|
5758
|
+
*/
|
|
5759
|
+
ratingV2?: ImageScanningRatingV2;
|
|
5585
5760
|
};
|
|
5586
5761
|
export type ImageScanningPersonMask = {
|
|
5587
5762
|
width: number;
|
|
5588
5763
|
height: number;
|
|
5589
5764
|
pngBase64: string;
|
|
5590
5765
|
};
|
|
5766
|
+
export type ImageScanningRatingAxis = {
|
|
5767
|
+
label: string;
|
|
5768
|
+
score: number;
|
|
5769
|
+
scores: {
|
|
5770
|
+
[key: string]: number;
|
|
5771
|
+
};
|
|
5772
|
+
topK?: null | Array<ImageScanningLabelScore>;
|
|
5773
|
+
logits?: null | Array<number>;
|
|
5774
|
+
};
|
|
5775
|
+
export type ImageScanningRatingV2 = {
|
|
5776
|
+
status: string;
|
|
5777
|
+
modelRef: string;
|
|
5778
|
+
checkpointSha256: string;
|
|
5779
|
+
sexual: ImageScanningRatingAxis;
|
|
5780
|
+
violence: ImageScanningRatingAxis;
|
|
5781
|
+
restricted: boolean;
|
|
5782
|
+
restrictedScore: number;
|
|
5783
|
+
restrictedThreshold: number;
|
|
5784
|
+
routingRule: string;
|
|
5785
|
+
};
|
|
5591
5786
|
export type ImageScanningRecognition = {
|
|
5592
5787
|
label: string;
|
|
5593
5788
|
score: number;
|
|
@@ -6001,81 +6196,139 @@ export type KlingVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
6001
6196
|
sourceImage?: null | string;
|
|
6002
6197
|
engine: 'kling';
|
|
6003
6198
|
};
|
|
6004
|
-
export type
|
|
6199
|
+
export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
6200
|
+
/**
|
|
6201
|
+
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
|
|
6202
|
+
*/
|
|
6203
|
+
model: string;
|
|
6005
6204
|
/**
|
|
6006
|
-
*
|
|
6205
|
+
* Number of saved checkpoints across the training run.
|
|
6007
6206
|
*/
|
|
6008
|
-
maxTrainEpochs
|
|
6207
|
+
maxTrainEpochs: number;
|
|
6009
6208
|
/**
|
|
6010
|
-
*
|
|
6209
|
+
* Number of times each training image is repeated per dataset epoch.
|
|
6011
6210
|
*/
|
|
6012
|
-
numRepeats
|
|
6211
|
+
numRepeats: number;
|
|
6013
6212
|
/**
|
|
6014
|
-
*
|
|
6213
|
+
* Images per optimizer step.
|
|
6015
6214
|
*/
|
|
6016
|
-
trainBatchSize
|
|
6215
|
+
trainBatchSize: number;
|
|
6017
6216
|
/**
|
|
6018
|
-
*
|
|
6217
|
+
* Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
|
|
6019
6218
|
*/
|
|
6020
6219
|
resolution?: null | number;
|
|
6021
6220
|
/**
|
|
6022
|
-
*
|
|
6221
|
+
* Group images into aspect-ratio buckets.
|
|
6023
6222
|
*/
|
|
6024
|
-
enableBucket
|
|
6223
|
+
enableBucket: boolean;
|
|
6025
6224
|
/**
|
|
6026
|
-
*
|
|
6225
|
+
* Shuffle comma-separated caption tokens during training.
|
|
6027
6226
|
*/
|
|
6028
|
-
shuffleCaption
|
|
6227
|
+
shuffleCaption: boolean;
|
|
6029
6228
|
/**
|
|
6030
|
-
*
|
|
6229
|
+
* Leading caption tokens kept in place while shuffling.
|
|
6031
6230
|
*/
|
|
6032
|
-
keepTokens
|
|
6231
|
+
keepTokens: number;
|
|
6033
6232
|
/**
|
|
6034
|
-
*
|
|
6233
|
+
* CLIP layer skip for SD1.5; other families use 1.
|
|
6035
6234
|
*/
|
|
6036
|
-
clipSkip
|
|
6235
|
+
clipSkip: number;
|
|
6037
6236
|
/**
|
|
6038
|
-
*
|
|
6237
|
+
* Random horizontal image flips.
|
|
6039
6238
|
*/
|
|
6040
|
-
flipAugmentation
|
|
6239
|
+
flipAugmentation: boolean;
|
|
6041
6240
|
/**
|
|
6042
|
-
*
|
|
6241
|
+
* Learning rate for the diffusion model LoRA.
|
|
6043
6242
|
*/
|
|
6044
|
-
unetLR
|
|
6243
|
+
unetLR: number;
|
|
6045
6244
|
/**
|
|
6046
|
-
*
|
|
6245
|
+
* Learning rate for text encoder LoRA modules.
|
|
6047
6246
|
*/
|
|
6048
|
-
textEncoderLR
|
|
6247
|
+
textEncoderLR: number;
|
|
6049
6248
|
/**
|
|
6050
|
-
*
|
|
6249
|
+
* Learning-rate schedule over the total optimizer-step budget.
|
|
6051
6250
|
*/
|
|
6052
|
-
lrScheduler
|
|
6251
|
+
lrScheduler:
|
|
6252
|
+
| 'constant'
|
|
6253
|
+
| 'constant_with_warmup'
|
|
6254
|
+
| 'cosine'
|
|
6255
|
+
| 'cosine_with_restarts'
|
|
6256
|
+
| 'linear'
|
|
6257
|
+
| 'polynomial';
|
|
6053
6258
|
/**
|
|
6054
|
-
*
|
|
6259
|
+
* Number of cycles used by cosine_with_restarts; ignored by other schedulers.
|
|
6055
6260
|
*/
|
|
6056
|
-
lrSchedulerNumCycles
|
|
6261
|
+
lrSchedulerNumCycles: number;
|
|
6057
6262
|
/**
|
|
6058
|
-
*
|
|
6263
|
+
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
6059
6264
|
*/
|
|
6060
6265
|
minSnrGamma?: null | number;
|
|
6061
6266
|
/**
|
|
6062
|
-
*
|
|
6267
|
+
* LoRA rank; must match ContinueFrom weights.
|
|
6063
6268
|
*/
|
|
6064
|
-
networkDim
|
|
6269
|
+
networkDim: number;
|
|
6065
6270
|
/**
|
|
6066
|
-
*
|
|
6067
|
-
* equal values leave it unchanged.
|
|
6271
|
+
* LoRA alpha; must match ContinueFrom weights.
|
|
6068
6272
|
*/
|
|
6069
|
-
networkAlpha
|
|
6273
|
+
networkAlpha: number;
|
|
6070
6274
|
/**
|
|
6071
|
-
*
|
|
6275
|
+
* Noise offset for SD training; flow models require 0.
|
|
6072
6276
|
*/
|
|
6073
|
-
noiseOffset
|
|
6277
|
+
noiseOffset: number;
|
|
6074
6278
|
/**
|
|
6075
|
-
* Optimizer
|
|
6279
|
+
* Optimizer used for the LoRA parameters; names are case-insensitive.
|
|
6076
6280
|
*/
|
|
6077
|
-
optimizerType
|
|
6078
|
-
|
|
6281
|
+
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
6282
|
+
/**
|
|
6283
|
+
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
6284
|
+
*/
|
|
6285
|
+
trainTextEncoder?: null | boolean;
|
|
6286
|
+
/**
|
|
6287
|
+
* Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
|
|
6288
|
+
*/
|
|
6289
|
+
steps?: null | number;
|
|
6290
|
+
/**
|
|
6291
|
+
* Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
|
|
6292
|
+
*/
|
|
6293
|
+
continueFrom?: null | string;
|
|
6294
|
+
/**
|
|
6295
|
+
* Optional FLUX CLIP-L resource override.
|
|
6296
|
+
*/
|
|
6297
|
+
clipLModel?: null | string;
|
|
6298
|
+
/**
|
|
6299
|
+
* Optional FLUX or Chroma T5 text encoder resource override.
|
|
6300
|
+
*/
|
|
6301
|
+
textEncoderModel?: null | string;
|
|
6302
|
+
/**
|
|
6303
|
+
* Optional VAE resource override.
|
|
6304
|
+
*/
|
|
6305
|
+
vaeModel?: null | string;
|
|
6306
|
+
/**
|
|
6307
|
+
* Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
|
|
6308
|
+
*/
|
|
6309
|
+
fp8Base?: null | boolean;
|
|
6310
|
+
/**
|
|
6311
|
+
* Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
|
|
6312
|
+
*/
|
|
6313
|
+
blocksToSwap?: null | number;
|
|
6314
|
+
/**
|
|
6315
|
+
* Random seed for training and generated samples.
|
|
6316
|
+
*/
|
|
6317
|
+
seed: number;
|
|
6318
|
+
/**
|
|
6319
|
+
* What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
|
|
6320
|
+
* while the job runs.
|
|
6321
|
+
*/
|
|
6322
|
+
trace: TrainingTraceMode;
|
|
6323
|
+
/**
|
|
6324
|
+
* Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
|
|
6325
|
+
*/
|
|
6326
|
+
vParameterization?: null | boolean;
|
|
6327
|
+
/**
|
|
6328
|
+
* Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
|
|
6329
|
+
*/
|
|
6330
|
+
zeroTerminalSnr?: null | boolean;
|
|
6331
|
+
readonly usesStepPricing: boolean;
|
|
6079
6332
|
engine: 'kohya';
|
|
6080
6333
|
};
|
|
6081
6334
|
export type Krea2AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
@@ -6449,6 +6702,23 @@ export type LoadingResourceAvailability = Omit<ResourceAvailability, 'status'> &
|
|
|
6449
6702
|
rateLimitBytesPerSecond?: null | number;
|
|
6450
6703
|
status: 'loading';
|
|
6451
6704
|
};
|
|
6705
|
+
export type LoraEvidence = {
|
|
6706
|
+
name: string;
|
|
6707
|
+
sha256: string;
|
|
6708
|
+
verdict: string;
|
|
6709
|
+
expectedStrength: number;
|
|
6710
|
+
fittedStrength?: null | number;
|
|
6711
|
+
verificationStrength?: null | number;
|
|
6712
|
+
partialCosine?: null | number;
|
|
6713
|
+
signalToRounding?: null | number;
|
|
6714
|
+
supportingLayers: number;
|
|
6715
|
+
resolvableLayers: number;
|
|
6716
|
+
matchedLayers: number;
|
|
6717
|
+
totalLayers: number;
|
|
6718
|
+
unmappedLayers: Array<string>;
|
|
6719
|
+
baseSha256?: null | string;
|
|
6720
|
+
adapterKinds?: null | Array<string>;
|
|
6721
|
+
};
|
|
6452
6722
|
export type Ltx23AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
6453
6723
|
readonly defaultSteps: number;
|
|
6454
6724
|
readonly storageBuzzPerEpoch: number;
|
|
@@ -6893,6 +7163,15 @@ export declare const MergeReducer: {
|
|
|
6893
7163
|
* How a merge field combines its values. Null values are skipped, except by `any` and `all`, which count them as false.
|
|
6894
7164
|
*/
|
|
6895
7165
|
export type MergeReducer = (typeof MergeReducer)[keyof typeof MergeReducer];
|
|
7166
|
+
export type MergeReport = {
|
|
7167
|
+
baseSha256: string;
|
|
7168
|
+
checkpointSha256: string;
|
|
7169
|
+
explainedFraction?: null | number;
|
|
7170
|
+
expectedExplainedFraction: number;
|
|
7171
|
+
verificationSamples: number;
|
|
7172
|
+
candidates: Array<LoraEvidence>;
|
|
7173
|
+
warnings: Array<string>;
|
|
7174
|
+
};
|
|
6896
7175
|
/**
|
|
6897
7176
|
* Merge
|
|
6898
7177
|
*/
|
|
@@ -7143,12 +7422,24 @@ export type MiniMaxH3AiToolkitTrainingInput = Omit<
|
|
|
7143
7422
|
*/
|
|
7144
7423
|
batchSize?: null | number;
|
|
7145
7424
|
};
|
|
7146
|
-
export type
|
|
7147
|
-
|
|
7148
|
-
'engine' | '
|
|
7425
|
+
export type MiniMaxH3ImageAiToolkitTrainingInput = Omit<
|
|
7426
|
+
AiToolkitTrainingInput,
|
|
7427
|
+
'engine' | 'ecosystem'
|
|
7149
7428
|
> & {
|
|
7429
|
+
readonly defaultSteps: number;
|
|
7430
|
+
ecosystem: 'minimaxh3image';
|
|
7431
|
+
engine: 'ai-toolkit';
|
|
7150
7432
|
/**
|
|
7151
|
-
*
|
|
7433
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
7434
|
+
*/
|
|
7435
|
+
batchSize?: null | number;
|
|
7436
|
+
};
|
|
7437
|
+
export type MiniMaxH3MaxImageToVideoInput = Omit<
|
|
7438
|
+
MiniMaxH3MaxVideoGenInput,
|
|
7439
|
+
'engine' | 'operation'
|
|
7440
|
+
> & {
|
|
7441
|
+
/**
|
|
7442
|
+
* Optional first frame. If omitted, the last frame sets the canvas. With neither, FAL generates from text at 16:9.
|
|
7152
7443
|
*/
|
|
7153
7444
|
firstFrameImage?: null | string;
|
|
7154
7445
|
/**
|
|
@@ -7379,6 +7670,43 @@ export type Model3dPreviewStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
7379
7670
|
input: Model3dPreviewInput;
|
|
7380
7671
|
$type: 'model3DPreview';
|
|
7381
7672
|
};
|
|
7673
|
+
export type ModelAnalysisInput = {
|
|
7674
|
+
/**
|
|
7675
|
+
* The exact original checkpoint, pinned to a safetensors model version/file.
|
|
7676
|
+
*/
|
|
7677
|
+
baseModel: string;
|
|
7678
|
+
checkpoint: string;
|
|
7679
|
+
loras: Array<ModelAnalysisLora>;
|
|
7680
|
+
};
|
|
7681
|
+
export type ModelAnalysisLora = {
|
|
7682
|
+
model: string;
|
|
7683
|
+
/**
|
|
7684
|
+
* Optional expected merge strength. The actual strength is fitted independently.
|
|
7685
|
+
*/
|
|
7686
|
+
strength?: number;
|
|
7687
|
+
};
|
|
7688
|
+
export type ModelAnalysisOutput = {
|
|
7689
|
+
report: MergeReport;
|
|
7690
|
+
blob: Blob;
|
|
7691
|
+
};
|
|
7692
|
+
/**
|
|
7693
|
+
* Check a checkpoint for evidence of specified merged LoRAs.
|
|
7694
|
+
*/
|
|
7695
|
+
export type ModelAnalysisStep = Omit<WorkflowStep, '$type'> & {
|
|
7696
|
+
input: ModelAnalysisInput;
|
|
7697
|
+
output?: ModelAnalysisOutput;
|
|
7698
|
+
$type: 'modelAnalysis';
|
|
7699
|
+
};
|
|
7700
|
+
/**
|
|
7701
|
+
* Check a checkpoint for evidence of specified merged LoRAs.
|
|
7702
|
+
*/
|
|
7703
|
+
export type ModelAnalysisStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
7704
|
+
/**
|
|
7705
|
+
* Input for the ModelAnalysisStep step.
|
|
7706
|
+
*/
|
|
7707
|
+
input: ModelAnalysisInput;
|
|
7708
|
+
$type: 'modelAnalysis';
|
|
7709
|
+
};
|
|
7382
7710
|
export type ModelClamScanInput = {
|
|
7383
7711
|
model: string;
|
|
7384
7712
|
};
|
|
@@ -7401,6 +7729,8 @@ export declare const ModelClamScanStatus: {
|
|
|
7401
7729
|
readonly INFECTED: 'infected';
|
|
7402
7730
|
readonly TIMEOUT: 'timeout';
|
|
7403
7731
|
readonly ERROR: 'error';
|
|
7732
|
+
readonly ENCRYPTED: 'encrypted';
|
|
7733
|
+
readonly LIMITS_EXCEEDED: 'limitsExceeded';
|
|
7404
7734
|
};
|
|
7405
7735
|
export type ModelClamScanStatus = (typeof ModelClamScanStatus)[keyof typeof ModelClamScanStatus];
|
|
7406
7736
|
/**
|
|
@@ -7992,6 +8322,116 @@ export type OpenAiGpt25SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engin
|
|
|
7992
8322
|
model: 'gpt-image-2.5-sunburst';
|
|
7993
8323
|
engine: 'openai';
|
|
7994
8324
|
};
|
|
8325
|
+
export type OpenAiGpt26FlareCreateImageInput = Omit<
|
|
8326
|
+
OpenAiGpt26FlareImageGenInput,
|
|
8327
|
+
'engine' | 'model' | 'operation'
|
|
8328
|
+
> & {
|
|
8329
|
+
operation: 'createImage';
|
|
8330
|
+
model: 'gpt-image-2.6-flare';
|
|
8331
|
+
engine: 'openai';
|
|
8332
|
+
};
|
|
8333
|
+
export type OpenAiGpt26FlareEditImageInput = Omit<
|
|
8334
|
+
OpenAiGpt26FlareImageGenInput,
|
|
8335
|
+
'engine' | 'model' | 'operation'
|
|
8336
|
+
> & {
|
|
8337
|
+
images: Array<string>;
|
|
8338
|
+
/**
|
|
8339
|
+
* White marks regions to edit; black marks regions to keep.
|
|
8340
|
+
*/
|
|
8341
|
+
mask?: null | string;
|
|
8342
|
+
/**
|
|
8343
|
+
* Transparent PNG annotations matching the first image. Cannot be combined with mask.
|
|
8344
|
+
*/
|
|
8345
|
+
markupImage?: null | string;
|
|
8346
|
+
/**
|
|
8347
|
+
* Set both dimensions or leave both null to infer the output size.
|
|
8348
|
+
*/
|
|
8349
|
+
width?: null | number;
|
|
8350
|
+
height?: null | number;
|
|
8351
|
+
operation: 'editImage';
|
|
8352
|
+
model: 'gpt-image-2.6-flare';
|
|
8353
|
+
engine: 'openai';
|
|
8354
|
+
};
|
|
8355
|
+
export type OpenAiGpt26FlareImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8356
|
+
operation: string;
|
|
8357
|
+
prompt: string;
|
|
8358
|
+
width?: null | number;
|
|
8359
|
+
height?: null | number;
|
|
8360
|
+
quantity?: number;
|
|
8361
|
+
quality?: 'auto' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8362
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
8363
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
8364
|
+
outputCompression?: null | number;
|
|
8365
|
+
/**
|
|
8366
|
+
* GIF frames, from 2 to 16. Defaults to 9; all frames share the 8,294,400-pixel budget.
|
|
8367
|
+
*/
|
|
8368
|
+
frameCount?: null | number;
|
|
8369
|
+
/**
|
|
8370
|
+
* GIF frame duration in milliseconds, rounded to 10 ms. Defaults to 200.
|
|
8371
|
+
*/
|
|
8372
|
+
frameDurationMs?: null | number;
|
|
8373
|
+
/**
|
|
8374
|
+
* Vector conversion model for SVG generation. Defaults to gpt-6-astra.
|
|
8375
|
+
*/
|
|
8376
|
+
svgModel?: null | 'gpt-6-astra' | 'gpt-5.5' | 'gpt-5.4' | 'gpt-5.6-terra' | 'gpt-6-luna';
|
|
8377
|
+
model: 'gpt-image-2.6-flare';
|
|
8378
|
+
engine: 'openai';
|
|
8379
|
+
};
|
|
8380
|
+
export type OpenAiGpt26SunburstCreateImageInput = Omit<
|
|
8381
|
+
OpenAiGpt26SunburstImageGenInput,
|
|
8382
|
+
'engine' | 'model' | 'operation'
|
|
8383
|
+
> & {
|
|
8384
|
+
operation: 'createImage';
|
|
8385
|
+
model: 'gpt-image-2.6-sunburst';
|
|
8386
|
+
engine: 'openai';
|
|
8387
|
+
};
|
|
8388
|
+
export type OpenAiGpt26SunburstEditImageInput = Omit<
|
|
8389
|
+
OpenAiGpt26SunburstImageGenInput,
|
|
8390
|
+
'engine' | 'model' | 'operation'
|
|
8391
|
+
> & {
|
|
8392
|
+
images: Array<string>;
|
|
8393
|
+
/**
|
|
8394
|
+
* White marks regions to edit; black marks regions to keep.
|
|
8395
|
+
*/
|
|
8396
|
+
mask?: null | string;
|
|
8397
|
+
/**
|
|
8398
|
+
* Transparent PNG annotations matching the first image. Cannot be combined with mask.
|
|
8399
|
+
*/
|
|
8400
|
+
markupImage?: null | string;
|
|
8401
|
+
/**
|
|
8402
|
+
* Set both dimensions or leave both null to infer the output size.
|
|
8403
|
+
*/
|
|
8404
|
+
width?: null | number;
|
|
8405
|
+
height?: null | number;
|
|
8406
|
+
operation: 'editImage';
|
|
8407
|
+
model: 'gpt-image-2.6-sunburst';
|
|
8408
|
+
engine: 'openai';
|
|
8409
|
+
};
|
|
8410
|
+
export type OpenAiGpt26SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8411
|
+
operation: string;
|
|
8412
|
+
prompt: string;
|
|
8413
|
+
width?: null | number;
|
|
8414
|
+
height?: null | number;
|
|
8415
|
+
quantity?: number;
|
|
8416
|
+
quality?: 'auto' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8417
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
8418
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
8419
|
+
outputCompression?: null | number;
|
|
8420
|
+
/**
|
|
8421
|
+
* GIF frames, from 2 to 16. Defaults to 9; all frames share the 8,294,400-pixel budget.
|
|
8422
|
+
*/
|
|
8423
|
+
frameCount?: null | number;
|
|
8424
|
+
/**
|
|
8425
|
+
* GIF frame duration in milliseconds, rounded to 10 ms. Defaults to 200.
|
|
8426
|
+
*/
|
|
8427
|
+
frameDurationMs?: null | number;
|
|
8428
|
+
/**
|
|
8429
|
+
* Vector conversion model for SVG generation. Defaults to gpt-6-astra.
|
|
8430
|
+
*/
|
|
8431
|
+
svgModel?: null | 'gpt-6-astra' | 'gpt-5.5' | 'gpt-5.4' | 'gpt-5.6-terra' | 'gpt-6-luna';
|
|
8432
|
+
model: 'gpt-image-2.6-sunburst';
|
|
8433
|
+
engine: 'openai';
|
|
8434
|
+
};
|
|
7995
8435
|
export type OpenAiGpt2CreateImageInput = Omit<
|
|
7996
8436
|
OpenAiGpt2ImageGenInput,
|
|
7997
8437
|
'engine' | 'model' | 'operation'
|
|
@@ -8063,7 +8503,7 @@ export type PolyGenInput = {
|
|
|
8063
8503
|
};
|
|
8064
8504
|
export type PolyGenOutput = {
|
|
8065
8505
|
/**
|
|
8066
|
-
* Generated
|
|
8506
|
+
* Generated model in GLB format, or a Gaussian splat in PLY format for Idol. Null for FBX-only output.
|
|
8067
8507
|
*/
|
|
8068
8508
|
model?: Model3dBlob;
|
|
8069
8509
|
/**
|
|
@@ -9289,6 +9729,7 @@ export declare const SeedreamVersion: {
|
|
|
9289
9729
|
readonly V4_5: 'v4.5';
|
|
9290
9730
|
readonly V5_0_LITE: 'v5.0-lite';
|
|
9291
9731
|
readonly V5_0_PRO: 'v5.0-pro';
|
|
9732
|
+
readonly V5_5: 'v5.5';
|
|
9292
9733
|
};
|
|
9293
9734
|
export type SeedreamVersion = (typeof SeedreamVersion)[keyof typeof SeedreamVersion];
|
|
9294
9735
|
export type ServiceHistory = {
|
|
@@ -9703,7 +10144,7 @@ export type TrainingInputSamples = {
|
|
|
9703
10144
|
prompts?: Array<string>;
|
|
9704
10145
|
negativePrompt?: null | string;
|
|
9705
10146
|
/**
|
|
9706
|
-
*
|
|
10147
|
+
* One source image per edit-LoRA preview, in prompt order. Repeated when there are fewer images than prompts.
|
|
9707
10148
|
*/
|
|
9708
10149
|
sourceImages?: Array<string>;
|
|
9709
10150
|
/**
|
|
@@ -10414,12 +10855,13 @@ export type VideoMetadataStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
10414
10855
|
export type VideoUpscalerInput = {
|
|
10415
10856
|
video: string;
|
|
10416
10857
|
scaleFactor?: number;
|
|
10858
|
+
model?: 'flashvsr' | 'relayvsr';
|
|
10417
10859
|
};
|
|
10418
10860
|
export type VideoUpscalerOutput = {
|
|
10419
10861
|
video?: VideoBlob;
|
|
10420
10862
|
};
|
|
10421
10863
|
/**
|
|
10422
|
-
* Upscale videos using FlashVSR
|
|
10864
|
+
* Upscale videos using FlashVSR or RelayVSR.
|
|
10423
10865
|
*/
|
|
10424
10866
|
export type VideoUpscalerStep = Omit<WorkflowStep, '$type'> & {
|
|
10425
10867
|
input: VideoUpscalerInput;
|
|
@@ -10427,7 +10869,7 @@ export type VideoUpscalerStep = Omit<WorkflowStep, '$type'> & {
|
|
|
10427
10869
|
$type: 'videoUpscaler';
|
|
10428
10870
|
};
|
|
10429
10871
|
/**
|
|
10430
|
-
* Upscale videos using FlashVSR
|
|
10872
|
+
* Upscale videos using FlashVSR or RelayVSR.
|
|
10431
10873
|
*/
|
|
10432
10874
|
export type VideoUpscalerStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
10433
10875
|
/**
|
|
@@ -11548,6 +11990,7 @@ export type WorkflowStepWarning = {
|
|
|
11548
11990
|
export declare const WorkflowStepWarningCode: {
|
|
11549
11991
|
readonly MODEL_DEPRECATED: 'modelDeprecated';
|
|
11550
11992
|
readonly FIELD_DEPRECATED: 'fieldDeprecated';
|
|
11993
|
+
readonly FIELD_IGNORED: 'fieldIgnored';
|
|
11551
11994
|
};
|
|
11552
11995
|
export type WorkflowStepWarningCode =
|
|
11553
11996
|
(typeof WorkflowStepWarningCode)[keyof typeof WorkflowStepWarningCode];
|
|
@@ -11825,7 +12268,7 @@ export type YuE2Input = {
|
|
|
11825
12268
|
*/
|
|
11826
12269
|
style: string;
|
|
11827
12270
|
/**
|
|
11828
|
-
* Lyrics with section markers
|
|
12271
|
+
* Lyrics with section markers. Empty lyrics select instrumental generation.
|
|
11829
12272
|
*/
|
|
11830
12273
|
lyrics: string;
|
|
11831
12274
|
seed: number;
|
|
@@ -11855,6 +12298,10 @@ export type YuE2Input = {
|
|
|
11855
12298
|
loras: {
|
|
11856
12299
|
[key: string]: number;
|
|
11857
12300
|
};
|
|
12301
|
+
/**
|
|
12302
|
+
* Generate an instrumental score without sung lyrics. Score planning is required.
|
|
12303
|
+
*/
|
|
12304
|
+
instrumental?: boolean;
|
|
11858
12305
|
};
|
|
11859
12306
|
export type YuE2Output = {
|
|
11860
12307
|
blob: AudioBlob;
|
|
@@ -11997,141 +12444,6 @@ export declare const ZoeDepthEnvironment: {
|
|
|
11997
12444
|
readonly OUTDOOR: 'outdoor';
|
|
11998
12445
|
};
|
|
11999
12446
|
export type ZoeDepthEnvironment = (typeof ZoeDepthEnvironment)[keyof typeof ZoeDepthEnvironment];
|
|
12000
|
-
export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
12001
|
-
/**
|
|
12002
|
-
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
|
|
12003
|
-
*/
|
|
12004
|
-
model: string;
|
|
12005
|
-
/**
|
|
12006
|
-
* Number of saved checkpoints across the training run.
|
|
12007
|
-
*/
|
|
12008
|
-
maxTrainEpochs: number;
|
|
12009
|
-
/**
|
|
12010
|
-
* Number of times each training image is repeated per dataset epoch.
|
|
12011
|
-
*/
|
|
12012
|
-
numRepeats: number;
|
|
12013
|
-
/**
|
|
12014
|
-
* Images per optimizer step.
|
|
12015
|
-
*/
|
|
12016
|
-
trainBatchSize: number;
|
|
12017
|
-
/**
|
|
12018
|
-
* Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
|
|
12019
|
-
*/
|
|
12020
|
-
resolution?: null | number;
|
|
12021
|
-
/**
|
|
12022
|
-
* Group images into aspect-ratio buckets.
|
|
12023
|
-
*/
|
|
12024
|
-
enableBucket: boolean;
|
|
12025
|
-
/**
|
|
12026
|
-
* Shuffle comma-separated caption tokens during training.
|
|
12027
|
-
*/
|
|
12028
|
-
shuffleCaption: boolean;
|
|
12029
|
-
/**
|
|
12030
|
-
* Leading caption tokens kept in place while shuffling.
|
|
12031
|
-
*/
|
|
12032
|
-
keepTokens: number;
|
|
12033
|
-
/**
|
|
12034
|
-
* CLIP layer skip for SD1.5; other families use 1.
|
|
12035
|
-
*/
|
|
12036
|
-
clipSkip: number;
|
|
12037
|
-
/**
|
|
12038
|
-
* Random horizontal image flips.
|
|
12039
|
-
*/
|
|
12040
|
-
flipAugmentation: boolean;
|
|
12041
|
-
/**
|
|
12042
|
-
* Learning rate for the diffusion model LoRA.
|
|
12043
|
-
*/
|
|
12044
|
-
unetLR: number;
|
|
12045
|
-
/**
|
|
12046
|
-
* Learning rate for text encoder LoRA modules.
|
|
12047
|
-
*/
|
|
12048
|
-
textEncoderLR: number;
|
|
12049
|
-
/**
|
|
12050
|
-
* Learning-rate schedule over the total optimizer-step budget.
|
|
12051
|
-
*/
|
|
12052
|
-
lrScheduler:
|
|
12053
|
-
| 'constant'
|
|
12054
|
-
| 'constant_with_warmup'
|
|
12055
|
-
| 'cosine'
|
|
12056
|
-
| 'cosine_with_restarts'
|
|
12057
|
-
| 'linear'
|
|
12058
|
-
| 'polynomial';
|
|
12059
|
-
/**
|
|
12060
|
-
* Number of cycles used by cosine_with_restarts; ignored by other schedulers.
|
|
12061
|
-
*/
|
|
12062
|
-
lrSchedulerNumCycles: number;
|
|
12063
|
-
/**
|
|
12064
|
-
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
12065
|
-
*/
|
|
12066
|
-
minSnrGamma?: null | number;
|
|
12067
|
-
/**
|
|
12068
|
-
* LoRA rank; must match ContinueFrom weights.
|
|
12069
|
-
*/
|
|
12070
|
-
networkDim: number;
|
|
12071
|
-
/**
|
|
12072
|
-
* LoRA alpha; must match ContinueFrom weights.
|
|
12073
|
-
*/
|
|
12074
|
-
networkAlpha: number;
|
|
12075
|
-
/**
|
|
12076
|
-
* Noise offset for SD training; flow models require 0.
|
|
12077
|
-
*/
|
|
12078
|
-
noiseOffset: number;
|
|
12079
|
-
/**
|
|
12080
|
-
* Optimizer used for the LoRA parameters; names are case-insensitive.
|
|
12081
|
-
*/
|
|
12082
|
-
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
12083
|
-
/**
|
|
12084
|
-
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
12085
|
-
*/
|
|
12086
|
-
trainTextEncoder?: null | boolean;
|
|
12087
|
-
/**
|
|
12088
|
-
* Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
|
|
12089
|
-
*/
|
|
12090
|
-
steps?: null | number;
|
|
12091
|
-
/**
|
|
12092
|
-
* Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
|
|
12093
|
-
*/
|
|
12094
|
-
continueFrom?: null | string;
|
|
12095
|
-
/**
|
|
12096
|
-
* Optional FLUX CLIP-L resource override.
|
|
12097
|
-
*/
|
|
12098
|
-
clipLModel?: null | string;
|
|
12099
|
-
/**
|
|
12100
|
-
* Optional FLUX or Chroma T5 text encoder resource override.
|
|
12101
|
-
*/
|
|
12102
|
-
textEncoderModel?: null | string;
|
|
12103
|
-
/**
|
|
12104
|
-
* Optional VAE resource override.
|
|
12105
|
-
*/
|
|
12106
|
-
vaeModel?: null | string;
|
|
12107
|
-
/**
|
|
12108
|
-
* Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
|
|
12109
|
-
*/
|
|
12110
|
-
fp8Base?: null | boolean;
|
|
12111
|
-
/**
|
|
12112
|
-
* Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
|
|
12113
|
-
*/
|
|
12114
|
-
blocksToSwap?: null | number;
|
|
12115
|
-
/**
|
|
12116
|
-
* Random seed for training and generated samples.
|
|
12117
|
-
*/
|
|
12118
|
-
seed: number;
|
|
12119
|
-
/**
|
|
12120
|
-
* What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
|
|
12121
|
-
* while the job runs.
|
|
12122
|
-
*/
|
|
12123
|
-
trace: TrainingTraceMode;
|
|
12124
|
-
/**
|
|
12125
|
-
* Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
|
|
12126
|
-
*/
|
|
12127
|
-
vParameterization?: null | boolean;
|
|
12128
|
-
/**
|
|
12129
|
-
* Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
|
|
12130
|
-
*/
|
|
12131
|
-
zeroTerminalSnr?: null | boolean;
|
|
12132
|
-
readonly usesStepPricing: boolean;
|
|
12133
|
-
engine: 'kohya';
|
|
12134
|
-
};
|
|
12135
12447
|
export type AiToolkitTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
|
|
12136
12448
|
ecosystem: string;
|
|
12137
12449
|
/**
|
|
@@ -12165,6 +12477,22 @@ export type AiToolkitTrainingInputWritable = Omit<TrainingInputWritable2, 'engin
|
|
|
12165
12477
|
* You can change the learning rate in the middle of learning. A scheduler is a setting for how to change the learning rate.
|
|
12166
12478
|
*/
|
|
12167
12479
|
lrScheduler?: 'constant' | 'constant_with_warmup' | 'cosine' | 'linear' | 'step';
|
|
12480
|
+
/**
|
|
12481
|
+
* Warmup steps for constant learning rate, up to the total training steps. Omit to keep the scheduler default.
|
|
12482
|
+
*/
|
|
12483
|
+
lrWarmupSteps?: null | number;
|
|
12484
|
+
/**
|
|
12485
|
+
* Chance of training without a caption, from 0 to 1. Omit to keep the model default.
|
|
12486
|
+
*/
|
|
12487
|
+
captionDropoutRate?: null | number;
|
|
12488
|
+
/**
|
|
12489
|
+
* LoRA rank dropout probability, from 0 (off) to less than 1. Defaults to off.
|
|
12490
|
+
*/
|
|
12491
|
+
rankDropout?: null | number;
|
|
12492
|
+
/**
|
|
12493
|
+
* Enable AI Toolkit's eligible convolution adapters at rank 16. Omit to keep the model default.
|
|
12494
|
+
*/
|
|
12495
|
+
trainConv?: null | boolean;
|
|
12168
12496
|
/**
|
|
12169
12497
|
* The optimizer determines how to update the neural net weights during training.
|
|
12170
12498
|
* Various methods have been proposed for smart learning, but the most commonly used in LoRA learning is "adamw8bit".
|
|
@@ -12499,6 +12827,22 @@ export type ComfyTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
|
|
|
12499
12827
|
* You can change the learning rate in the middle of learning. A scheduler is a setting for how to change the learning rate.
|
|
12500
12828
|
*/
|
|
12501
12829
|
lrScheduler?: 'constant' | 'constant_with_warmup' | 'cosine' | 'linear' | 'step';
|
|
12830
|
+
/**
|
|
12831
|
+
* Warmup steps for constant learning rate, up to the total training steps. Omit to keep the scheduler default.
|
|
12832
|
+
*/
|
|
12833
|
+
lrWarmupSteps?: null | number;
|
|
12834
|
+
/**
|
|
12835
|
+
* Chance of training without a caption, from 0 to 1. Omit to keep the model default.
|
|
12836
|
+
*/
|
|
12837
|
+
captionDropoutRate?: null | number;
|
|
12838
|
+
/**
|
|
12839
|
+
* LoRA rank dropout probability, from 0 (off) to less than 1. Defaults to off.
|
|
12840
|
+
*/
|
|
12841
|
+
rankDropout?: null | number;
|
|
12842
|
+
/**
|
|
12843
|
+
* Enable AI Toolkit's eligible convolution adapters at rank 16. Omit to keep the model default.
|
|
12844
|
+
*/
|
|
12845
|
+
trainConv?: null | boolean;
|
|
12502
12846
|
/**
|
|
12503
12847
|
* The optimizer determines how to update the neural net weights during training.
|
|
12504
12848
|
* Various methods have been proposed for smart learning, but the most commonly used in LoRA learning is "adamw8bit".
|
|
@@ -12605,15 +12949,26 @@ export type ErnieAiToolkitTrainingInputWritable = Omit<
|
|
|
12605
12949
|
*/
|
|
12606
12950
|
batchSize?: null | number;
|
|
12607
12951
|
};
|
|
12608
|
-
export type
|
|
12952
|
+
export type Fibo2AiToolkitTrainingInputWritable = Omit<
|
|
12609
12953
|
AiToolkitTrainingInputWritable,
|
|
12610
12954
|
'engine' | 'ecosystem'
|
|
12611
12955
|
> & {
|
|
12612
|
-
|
|
12613
|
-
ecosystem: 'flux1';
|
|
12956
|
+
ecosystem: 'fibo2';
|
|
12614
12957
|
engine: 'ai-toolkit';
|
|
12958
|
+
/**
|
|
12959
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
12960
|
+
*/
|
|
12961
|
+
batchSize?: null | number;
|
|
12615
12962
|
};
|
|
12616
|
-
export type
|
|
12963
|
+
export type Flux1AiToolkitTrainingInputWritable = Omit<
|
|
12964
|
+
AiToolkitTrainingInputWritable,
|
|
12965
|
+
'engine' | 'ecosystem'
|
|
12966
|
+
> & {
|
|
12967
|
+
modelVariant: string;
|
|
12968
|
+
ecosystem: 'flux1';
|
|
12969
|
+
engine: 'ai-toolkit';
|
|
12970
|
+
};
|
|
12971
|
+
export type Flux1DevAiToolkitTrainingInputWritable = Omit<
|
|
12617
12972
|
Flux1AiToolkitTrainingInputWritable,
|
|
12618
12973
|
'engine' | 'ecosystem' | 'modelVariant'
|
|
12619
12974
|
> & {
|
|
@@ -12723,6 +13078,10 @@ export type GeminiOmniVideoGenInputWritable = Omit<VideoGenInputWritable, 'engin
|
|
|
12723
13078
|
aspectRatio?: '16:9' | '9:16';
|
|
12724
13079
|
resolution?: GeminiOmniResolution;
|
|
12725
13080
|
images?: Array<string>;
|
|
13081
|
+
/**
|
|
13082
|
+
* Output length in seconds for 1.2 Flash; defaults to 10. First/last-frame generation supports at most 10 seconds.
|
|
13083
|
+
*/
|
|
13084
|
+
duration?: null | number;
|
|
12726
13085
|
engine: 'gemini-omni';
|
|
12727
13086
|
};
|
|
12728
13087
|
export type HiDreamO1AiToolkitTrainingInputWritable = Omit<
|
|
@@ -12747,83 +13106,138 @@ export type Ideogram4AiToolkitTrainingInputWritable = Omit<
|
|
|
12747
13106
|
*/
|
|
12748
13107
|
batchSize?: null | number;
|
|
12749
13108
|
};
|
|
12750
|
-
export type
|
|
12751
|
-
ImageResourceTrainingInputWritable,
|
|
12752
|
-
'engine'
|
|
12753
|
-
> & {
|
|
13109
|
+
export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
|
|
12754
13110
|
/**
|
|
12755
|
-
*
|
|
13111
|
+
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
|
|
12756
13112
|
*/
|
|
12757
|
-
|
|
13113
|
+
model: string;
|
|
12758
13114
|
/**
|
|
12759
|
-
*
|
|
13115
|
+
* Number of saved checkpoints across the training run.
|
|
12760
13116
|
*/
|
|
12761
|
-
|
|
13117
|
+
maxTrainEpochs: number;
|
|
12762
13118
|
/**
|
|
12763
|
-
*
|
|
13119
|
+
* Number of times each training image is repeated per dataset epoch.
|
|
12764
13120
|
*/
|
|
12765
|
-
|
|
13121
|
+
numRepeats: number;
|
|
12766
13122
|
/**
|
|
12767
|
-
*
|
|
13123
|
+
* Images per optimizer step.
|
|
13124
|
+
*/
|
|
13125
|
+
trainBatchSize: number;
|
|
13126
|
+
/**
|
|
13127
|
+
* Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
|
|
12768
13128
|
*/
|
|
12769
13129
|
resolution?: null | number;
|
|
12770
13130
|
/**
|
|
12771
|
-
*
|
|
13131
|
+
* Group images into aspect-ratio buckets.
|
|
12772
13132
|
*/
|
|
12773
|
-
enableBucket
|
|
13133
|
+
enableBucket: boolean;
|
|
12774
13134
|
/**
|
|
12775
|
-
*
|
|
13135
|
+
* Shuffle comma-separated caption tokens during training.
|
|
12776
13136
|
*/
|
|
12777
|
-
shuffleCaption
|
|
13137
|
+
shuffleCaption: boolean;
|
|
12778
13138
|
/**
|
|
12779
|
-
*
|
|
13139
|
+
* Leading caption tokens kept in place while shuffling.
|
|
12780
13140
|
*/
|
|
12781
|
-
keepTokens
|
|
13141
|
+
keepTokens: number;
|
|
12782
13142
|
/**
|
|
12783
|
-
*
|
|
13143
|
+
* CLIP layer skip for SD1.5; other families use 1.
|
|
12784
13144
|
*/
|
|
12785
|
-
clipSkip
|
|
13145
|
+
clipSkip: number;
|
|
12786
13146
|
/**
|
|
12787
|
-
*
|
|
13147
|
+
* Random horizontal image flips.
|
|
12788
13148
|
*/
|
|
12789
|
-
flipAugmentation
|
|
13149
|
+
flipAugmentation: boolean;
|
|
12790
13150
|
/**
|
|
12791
|
-
*
|
|
13151
|
+
* Learning rate for the diffusion model LoRA.
|
|
12792
13152
|
*/
|
|
12793
|
-
unetLR
|
|
13153
|
+
unetLR: number;
|
|
12794
13154
|
/**
|
|
12795
|
-
*
|
|
13155
|
+
* Learning rate for text encoder LoRA modules.
|
|
12796
13156
|
*/
|
|
12797
|
-
textEncoderLR
|
|
13157
|
+
textEncoderLR: number;
|
|
12798
13158
|
/**
|
|
12799
|
-
*
|
|
13159
|
+
* Learning-rate schedule over the total optimizer-step budget.
|
|
12800
13160
|
*/
|
|
12801
|
-
lrScheduler
|
|
13161
|
+
lrScheduler:
|
|
13162
|
+
| 'constant'
|
|
13163
|
+
| 'constant_with_warmup'
|
|
13164
|
+
| 'cosine'
|
|
13165
|
+
| 'cosine_with_restarts'
|
|
13166
|
+
| 'linear'
|
|
13167
|
+
| 'polynomial';
|
|
12802
13168
|
/**
|
|
12803
|
-
*
|
|
13169
|
+
* Number of cycles used by cosine_with_restarts; ignored by other schedulers.
|
|
12804
13170
|
*/
|
|
12805
|
-
lrSchedulerNumCycles
|
|
13171
|
+
lrSchedulerNumCycles: number;
|
|
12806
13172
|
/**
|
|
12807
|
-
*
|
|
13173
|
+
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
12808
13174
|
*/
|
|
12809
13175
|
minSnrGamma?: null | number;
|
|
12810
13176
|
/**
|
|
12811
|
-
*
|
|
13177
|
+
* LoRA rank; must match ContinueFrom weights.
|
|
12812
13178
|
*/
|
|
12813
|
-
networkDim
|
|
13179
|
+
networkDim: number;
|
|
12814
13180
|
/**
|
|
12815
|
-
*
|
|
12816
|
-
* equal values leave it unchanged.
|
|
13181
|
+
* LoRA alpha; must match ContinueFrom weights.
|
|
12817
13182
|
*/
|
|
12818
|
-
networkAlpha
|
|
13183
|
+
networkAlpha: number;
|
|
12819
13184
|
/**
|
|
12820
|
-
*
|
|
13185
|
+
* Noise offset for SD training; flow models require 0.
|
|
12821
13186
|
*/
|
|
12822
|
-
noiseOffset
|
|
13187
|
+
noiseOffset: number;
|
|
12823
13188
|
/**
|
|
12824
|
-
* Optimizer
|
|
13189
|
+
* Optimizer used for the LoRA parameters; names are case-insensitive.
|
|
12825
13190
|
*/
|
|
12826
|
-
optimizerType
|
|
13191
|
+
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
13192
|
+
/**
|
|
13193
|
+
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
13194
|
+
*/
|
|
13195
|
+
trainTextEncoder?: null | boolean;
|
|
13196
|
+
/**
|
|
13197
|
+
* Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
|
|
13198
|
+
*/
|
|
13199
|
+
steps?: null | number;
|
|
13200
|
+
/**
|
|
13201
|
+
* Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
|
|
13202
|
+
*/
|
|
13203
|
+
continueFrom?: null | string;
|
|
13204
|
+
/**
|
|
13205
|
+
* Optional FLUX CLIP-L resource override.
|
|
13206
|
+
*/
|
|
13207
|
+
clipLModel?: null | string;
|
|
13208
|
+
/**
|
|
13209
|
+
* Optional FLUX or Chroma T5 text encoder resource override.
|
|
13210
|
+
*/
|
|
13211
|
+
textEncoderModel?: null | string;
|
|
13212
|
+
/**
|
|
13213
|
+
* Optional VAE resource override.
|
|
13214
|
+
*/
|
|
13215
|
+
vaeModel?: null | string;
|
|
13216
|
+
/**
|
|
13217
|
+
* Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
|
|
13218
|
+
*/
|
|
13219
|
+
fp8Base?: null | boolean;
|
|
13220
|
+
/**
|
|
13221
|
+
* Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
|
|
13222
|
+
*/
|
|
13223
|
+
blocksToSwap?: null | number;
|
|
13224
|
+
/**
|
|
13225
|
+
* Random seed for training and generated samples.
|
|
13226
|
+
*/
|
|
13227
|
+
seed: number;
|
|
13228
|
+
/**
|
|
13229
|
+
* What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
|
|
13230
|
+
* while the job runs.
|
|
13231
|
+
*/
|
|
13232
|
+
trace: TrainingTraceMode;
|
|
13233
|
+
/**
|
|
13234
|
+
* Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
|
|
13235
|
+
*/
|
|
13236
|
+
vParameterization?: null | boolean;
|
|
13237
|
+
/**
|
|
13238
|
+
* Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
|
|
13239
|
+
*/
|
|
13240
|
+
zeroTerminalSnr?: null | boolean;
|
|
12827
13241
|
engine: 'kohya';
|
|
12828
13242
|
};
|
|
12829
13243
|
export type Krea2AiToolkitTrainingInputWritable = Omit<
|
|
@@ -12903,6 +13317,17 @@ export type MiniMaxH3AiToolkitTrainingInputWritable = Omit<
|
|
|
12903
13317
|
*/
|
|
12904
13318
|
batchSize?: null | number;
|
|
12905
13319
|
};
|
|
13320
|
+
export type MiniMaxH3ImageAiToolkitTrainingInputWritable = Omit<
|
|
13321
|
+
AiToolkitTrainingInputWritable,
|
|
13322
|
+
'engine' | 'ecosystem'
|
|
13323
|
+
> & {
|
|
13324
|
+
ecosystem: 'minimaxh3image';
|
|
13325
|
+
engine: 'ai-toolkit';
|
|
13326
|
+
/**
|
|
13327
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
13328
|
+
*/
|
|
13329
|
+
batchSize?: null | number;
|
|
13330
|
+
};
|
|
12906
13331
|
export type MossImageAiToolkitTrainingInputWritable = Omit<
|
|
12907
13332
|
AiToolkitTrainingInputWritable,
|
|
12908
13333
|
'engine' | 'ecosystem'
|
|
@@ -13627,140 +14052,6 @@ export type ZImageTurboAiToolkitTrainingInputWritable = Omit<
|
|
|
13627
14052
|
*/
|
|
13628
14053
|
batchSize?: null | number;
|
|
13629
14054
|
};
|
|
13630
|
-
export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
|
|
13631
|
-
/**
|
|
13632
|
-
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
|
|
13633
|
-
*/
|
|
13634
|
-
model: string;
|
|
13635
|
-
/**
|
|
13636
|
-
* Number of saved checkpoints across the training run.
|
|
13637
|
-
*/
|
|
13638
|
-
maxTrainEpochs: number;
|
|
13639
|
-
/**
|
|
13640
|
-
* Number of times each training image is repeated per dataset epoch.
|
|
13641
|
-
*/
|
|
13642
|
-
numRepeats: number;
|
|
13643
|
-
/**
|
|
13644
|
-
* Images per optimizer step.
|
|
13645
|
-
*/
|
|
13646
|
-
trainBatchSize: number;
|
|
13647
|
-
/**
|
|
13648
|
-
* Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
|
|
13649
|
-
*/
|
|
13650
|
-
resolution?: null | number;
|
|
13651
|
-
/**
|
|
13652
|
-
* Group images into aspect-ratio buckets.
|
|
13653
|
-
*/
|
|
13654
|
-
enableBucket: boolean;
|
|
13655
|
-
/**
|
|
13656
|
-
* Shuffle comma-separated caption tokens during training.
|
|
13657
|
-
*/
|
|
13658
|
-
shuffleCaption: boolean;
|
|
13659
|
-
/**
|
|
13660
|
-
* Leading caption tokens kept in place while shuffling.
|
|
13661
|
-
*/
|
|
13662
|
-
keepTokens: number;
|
|
13663
|
-
/**
|
|
13664
|
-
* CLIP layer skip for SD1.5; other families use 1.
|
|
13665
|
-
*/
|
|
13666
|
-
clipSkip: number;
|
|
13667
|
-
/**
|
|
13668
|
-
* Random horizontal image flips.
|
|
13669
|
-
*/
|
|
13670
|
-
flipAugmentation: boolean;
|
|
13671
|
-
/**
|
|
13672
|
-
* Learning rate for the diffusion model LoRA.
|
|
13673
|
-
*/
|
|
13674
|
-
unetLR: number;
|
|
13675
|
-
/**
|
|
13676
|
-
* Learning rate for text encoder LoRA modules.
|
|
13677
|
-
*/
|
|
13678
|
-
textEncoderLR: number;
|
|
13679
|
-
/**
|
|
13680
|
-
* Learning-rate schedule over the total optimizer-step budget.
|
|
13681
|
-
*/
|
|
13682
|
-
lrScheduler:
|
|
13683
|
-
| 'constant'
|
|
13684
|
-
| 'constant_with_warmup'
|
|
13685
|
-
| 'cosine'
|
|
13686
|
-
| 'cosine_with_restarts'
|
|
13687
|
-
| 'linear'
|
|
13688
|
-
| 'polynomial';
|
|
13689
|
-
/**
|
|
13690
|
-
* Number of cycles used by cosine_with_restarts; ignored by other schedulers.
|
|
13691
|
-
*/
|
|
13692
|
-
lrSchedulerNumCycles: number;
|
|
13693
|
-
/**
|
|
13694
|
-
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
13695
|
-
*/
|
|
13696
|
-
minSnrGamma?: null | number;
|
|
13697
|
-
/**
|
|
13698
|
-
* LoRA rank; must match ContinueFrom weights.
|
|
13699
|
-
*/
|
|
13700
|
-
networkDim: number;
|
|
13701
|
-
/**
|
|
13702
|
-
* LoRA alpha; must match ContinueFrom weights.
|
|
13703
|
-
*/
|
|
13704
|
-
networkAlpha: number;
|
|
13705
|
-
/**
|
|
13706
|
-
* Noise offset for SD training; flow models require 0.
|
|
13707
|
-
*/
|
|
13708
|
-
noiseOffset: number;
|
|
13709
|
-
/**
|
|
13710
|
-
* Optimizer used for the LoRA parameters; names are case-insensitive.
|
|
13711
|
-
*/
|
|
13712
|
-
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
13713
|
-
/**
|
|
13714
|
-
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
13715
|
-
*/
|
|
13716
|
-
trainTextEncoder?: null | boolean;
|
|
13717
|
-
/**
|
|
13718
|
-
* Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
|
|
13719
|
-
*/
|
|
13720
|
-
steps?: null | number;
|
|
13721
|
-
/**
|
|
13722
|
-
* Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
|
|
13723
|
-
*/
|
|
13724
|
-
continueFrom?: null | string;
|
|
13725
|
-
/**
|
|
13726
|
-
* Optional FLUX CLIP-L resource override.
|
|
13727
|
-
*/
|
|
13728
|
-
clipLModel?: null | string;
|
|
13729
|
-
/**
|
|
13730
|
-
* Optional FLUX or Chroma T5 text encoder resource override.
|
|
13731
|
-
*/
|
|
13732
|
-
textEncoderModel?: null | string;
|
|
13733
|
-
/**
|
|
13734
|
-
* Optional VAE resource override.
|
|
13735
|
-
*/
|
|
13736
|
-
vaeModel?: null | string;
|
|
13737
|
-
/**
|
|
13738
|
-
* Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
|
|
13739
|
-
*/
|
|
13740
|
-
fp8Base?: null | boolean;
|
|
13741
|
-
/**
|
|
13742
|
-
* Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
|
|
13743
|
-
*/
|
|
13744
|
-
blocksToSwap?: null | number;
|
|
13745
|
-
/**
|
|
13746
|
-
* Random seed for training and generated samples.
|
|
13747
|
-
*/
|
|
13748
|
-
seed: number;
|
|
13749
|
-
/**
|
|
13750
|
-
* What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
|
|
13751
|
-
* while the job runs.
|
|
13752
|
-
*/
|
|
13753
|
-
trace: TrainingTraceMode;
|
|
13754
|
-
/**
|
|
13755
|
-
* Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
|
|
13756
|
-
*/
|
|
13757
|
-
vParameterization?: null | boolean;
|
|
13758
|
-
/**
|
|
13759
|
-
* Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
|
|
13760
|
-
*/
|
|
13761
|
-
zeroTerminalSnr?: null | boolean;
|
|
13762
|
-
engine: 'kohya';
|
|
13763
|
-
};
|
|
13764
14055
|
export type TrainingInputWritable2 = {
|
|
13765
14056
|
engine: string;
|
|
13766
14057
|
trainingData: TrainingData;
|
|
@@ -15644,6 +15935,46 @@ export type InvokeModel3dPreviewStepTemplateResponses = {
|
|
|
15644
15935
|
};
|
|
15645
15936
|
export type InvokeModel3dPreviewStepTemplateResponse =
|
|
15646
15937
|
InvokeModel3dPreviewStepTemplateResponses[keyof InvokeModel3dPreviewStepTemplateResponses];
|
|
15938
|
+
export type InvokeModelAnalysisStepTemplateData = {
|
|
15939
|
+
body?: ModelAnalysisInput;
|
|
15940
|
+
path?: never;
|
|
15941
|
+
query?: {
|
|
15942
|
+
experimental?: boolean;
|
|
15943
|
+
allowMatureContent?: boolean;
|
|
15944
|
+
whatif?: boolean;
|
|
15945
|
+
ephemeral?: boolean;
|
|
15946
|
+
/**
|
|
15947
|
+
* How a workflow is paid for.
|
|
15948
|
+
*/
|
|
15949
|
+
tier?: WorkflowTier;
|
|
15950
|
+
tags?: Array<string>;
|
|
15951
|
+
};
|
|
15952
|
+
url: '/v2/consumer/recipes/modelAnalysis';
|
|
15953
|
+
};
|
|
15954
|
+
export type InvokeModelAnalysisStepTemplateErrors = {
|
|
15955
|
+
/**
|
|
15956
|
+
* Bad Request
|
|
15957
|
+
*/
|
|
15958
|
+
400: ProblemDetails;
|
|
15959
|
+
/**
|
|
15960
|
+
* Unauthorized
|
|
15961
|
+
*/
|
|
15962
|
+
401: ProblemDetails;
|
|
15963
|
+
/**
|
|
15964
|
+
* Forbidden
|
|
15965
|
+
*/
|
|
15966
|
+
403: ProblemDetails;
|
|
15967
|
+
};
|
|
15968
|
+
export type InvokeModelAnalysisStepTemplateError =
|
|
15969
|
+
InvokeModelAnalysisStepTemplateErrors[keyof InvokeModelAnalysisStepTemplateErrors];
|
|
15970
|
+
export type InvokeModelAnalysisStepTemplateResponses = {
|
|
15971
|
+
/**
|
|
15972
|
+
* OK
|
|
15973
|
+
*/
|
|
15974
|
+
200: ModelAnalysisOutput;
|
|
15975
|
+
};
|
|
15976
|
+
export type InvokeModelAnalysisStepTemplateResponse =
|
|
15977
|
+
InvokeModelAnalysisStepTemplateResponses[keyof InvokeModelAnalysisStepTemplateResponses];
|
|
15647
15978
|
export type InvokeModelClamScanStepTemplateData = {
|
|
15648
15979
|
body?: ModelClamScanInput;
|
|
15649
15980
|
path?: never;
|