usamaehsan/klein-4b-lora-lab
Research only: train and test a LoRA on FLUX.2 klein 4B (Apache 2.0) edit pairs in one run.
Run usamaehsan/klein-4b-lora-lab with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| train_zip |
string
|
Zip of training pairs (NNN_src.jpg, NNN_tgt.jpg, prompts.json)
|
|
| test_zip |
string
|
Zip of test inputs (NNN_src.jpg, prompts.json)
|
|
| steps |
integer
|
1200
Max: 4000 |
Training steps (0 = no training, base only)
|
| rank |
integer
|
32
Min: 4 Max: 128 |
None
|
| lr |
number
|
0.0001
|
None
|
| train_width |
integer
|
768
|
None
|
| train_height |
integer
|
576
|
None
|
| test_width |
integer
|
1024
|
None
|
| test_height |
integer
|
768
|
None
|
| lora_scales |
string
|
1.0,0.6
|
Comma list of LoRA scales for the test edits
|
| seed |
integer
|
42
|
None
|
| train_on |
string
(enum)
|
base
Options: base, distilled |
None
|
{
"type": "object",
"title": "Input",
"required": [
"test_zip"
],
"properties": {
"lr": {
"type": "number",
"title": "Lr",
"default": 0.0001,
"x-order": 4
},
"rank": {
"type": "integer",
"title": "Rank",
"default": 32,
"maximum": 128,
"minimum": 4,
"x-order": 3
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 42,
"x-order": 10
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 1200,
"maximum": 4000,
"minimum": 0,
"x-order": 2,
"description": "Training steps (0 = no training, base only)"
},
"test_zip": {
"type": "string",
"title": "Test Zip",
"format": "uri",
"x-order": 1,
"description": "Zip of test inputs (NNN_src.jpg, prompts.json)"
},
"train_on": {
"enum": [
"base",
"distilled"
],
"type": "string",
"title": "train_on",
"default": "base",
"x-order": 11
},
"train_zip": {
"type": "string",
"title": "Train Zip",
"format": "uri",
"x-order": 0,
"description": "Zip of training pairs (NNN_src.jpg, NNN_tgt.jpg, prompts.json)"
},
"test_width": {
"type": "integer",
"title": "Test Width",
"default": 1024,
"x-order": 7
},
"lora_scales": {
"type": "string",
"title": "Lora Scales",
"default": "1.0,0.6",
"x-order": 9,
"description": "Comma list of LoRA scales for the test edits"
},
"test_height": {
"type": "integer",
"title": "Test Height",
"default": 768,
"x-order": 8
},
"train_width": {
"type": "integer",
"title": "Train Width",
"default": 768,
"x-order": 5
},
"train_height": {
"type": "integer",
"title": "Train Height",
"default": 576,
"x-order": 6
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}