bghira commited on
Commit
6ba6997
·
verified ·
1 Parent(s): f084c4c

Publish MOSS-Image experiment recipes, adapter checkpoints, and validation previews

Browse files
README.md CHANGED
@@ -48,5 +48,5 @@ the JSON runs use the shared schema implementation from [PR #3273](https://githu
48
  | [base-1024](https://huggingface.co/SimpleTuner/moss-image-base-domokun-1024) | 10,000 / 10,000 | [10,000](https://huggingface.co/SimpleTuner/moss-image-base-domokun-1024/tree/main/checkpoint-10000) | completed |
49
  | [sft-512](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-512) | 10,000 / 10,000 | [10,000](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-512/tree/main/checkpoint-10000) | completed |
50
  | [sft-1024](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-1024) | 10,000 / 10,000 | [10,000](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-1024/tree/main/checkpoint-10000) | completed |
51
- | [json-base-512](https://huggingface.co/SimpleTuner/moss-image-base-domokun-json-512) | 0 / 10,000 | — | queued |
52
- | [json-sft-512](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-json-512) | 0 / 10,000 | — | queued |
 
48
  | [base-1024](https://huggingface.co/SimpleTuner/moss-image-base-domokun-1024) | 10,000 / 10,000 | [10,000](https://huggingface.co/SimpleTuner/moss-image-base-domokun-1024/tree/main/checkpoint-10000) | completed |
49
  | [sft-512](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-512) | 10,000 / 10,000 | [10,000](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-512/tree/main/checkpoint-10000) | completed |
50
  | [sft-1024](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-1024) | 10,000 / 10,000 | [10,000](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-1024/tree/main/checkpoint-10000) | completed |
51
+ | [json-base-512](https://huggingface.co/SimpleTuner/moss-image-base-domokun-json-512) | 0 / 10,000 | — | failed |
52
+ | [json-sft-512](https://huggingface.co/SimpleTuner/moss-image-sft-domokun-json-512) | 0 / 10,000 | — | starting |
manifest.json CHANGED
@@ -290,20 +290,20 @@
290
  "repo_id": "SimpleTuner/moss-image-base-domokun-json-512",
291
  "flavour": "base",
292
  "resolution": 512,
293
- "status": "queued",
294
  "observed_step": 0,
295
  "checkpoints": {},
296
- "revision": "7cf3b4db55906c5449ba74f89ef18f8cdd1b72b2"
297
  },
298
  {
299
  "name": "json-sft-512",
300
  "repo_id": "SimpleTuner/moss-image-sft-domokun-json-512",
301
  "flavour": "sft",
302
  "resolution": 512,
303
- "status": "queued",
304
  "observed_step": 0,
305
  "checkpoints": {},
306
- "revision": "3ee4ed803eb4cdfd2eac4391e8e724c698f8893d"
307
  }
308
  ]
309
  }
 
290
  "repo_id": "SimpleTuner/moss-image-base-domokun-json-512",
291
  "flavour": "base",
292
  "resolution": 512,
293
+ "status": "failed",
294
  "observed_step": 0,
295
  "checkpoints": {},
296
+ "revision": "fe45b3f2f86a8d4c61720e6df18581732843dd3b"
297
  },
298
  {
299
  "name": "json-sft-512",
300
  "repo_id": "SimpleTuner/moss-image-sft-domokun-json-512",
301
  "flavour": "sft",
302
  "resolution": 512,
303
+ "status": "starting",
304
  "observed_step": 0,
305
  "checkpoints": {},
306
+ "revision": "240b8e70c9acce7c951377684eec4ff793b84e05"
307
  }
308
  ]
309
  }
recipes/json-base-512/dataloader.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "domokun",
4
+ "type": "local",
5
+ "dataset_type": "image",
6
+ "instance_data_dir": "datasets/domokun",
7
+ "caption_strategy": "textfile",
8
+ "resolution": 0.262144,
9
+ "resolution_type": "area",
10
+ "crop": false,
11
+ "minimum_image_size": 0,
12
+ "repeats": 10,
13
+ "cache_dir_vae": "cache/json-base-512/vae",
14
+ "text_embeds": "text"
15
+ },
16
+ {
17
+ "id": "text",
18
+ "type": "local",
19
+ "dataset_type": "text_embeds",
20
+ "default": true,
21
+ "cache_dir": "cache/json-base-512/text"
22
+ }
23
+ ]
recipes/json-base-512/prompts.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "studio": "A studio photograph of 🟫 standing on a wooden table, soft window light, with the entire character visible against a pale gray background.",
3
+ "garden": "A photograph of 🟫 standing in a sunny garden surrounded by flowers, natural colors and a softly blurred background.",
4
+ "astronaut": "An illustration of 🟫 wearing a white astronaut suit on the surface of the moon, Earth visible in the sky.",
5
+ "retention": "A photograph of a cobalt blue ceramic teapot on a wooden table beside a window, soft natural light."
6
+ }
recipes/json-base-512/training_config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model_precision": "no_change",
3
+ "caption_dropout_probability": 0.0,
4
+ "checkpoint_step_interval": 500,
5
+ "checkpoints_total_limit": 20,
6
+ "compress_disk_cache": false,
7
+ "data_backend_config": "dataloader.json",
8
+ "disable_benchmark": true,
9
+ "disable_bucket_pruning": true,
10
+ "gradient_checkpointing": true,
11
+ "hub_model_id": "SimpleTuner/moss-image-base-domokun-json-512",
12
+ "strict_epoch_limit": false,
13
+ "learning_rate": 0.0001,
14
+ "lora_alpha": 32,
15
+ "lora_rank": 32,
16
+ "lora_type": "standard",
17
+ "lr_scheduler": "constant_with_warmup",
18
+ "lr_warmup_steps": 25,
19
+ "max_grad_norm": 1.0,
20
+ "max_train_steps": 10000,
21
+ "minimum_image_size": 0,
22
+ "mixed_precision": "bf16",
23
+ "model_family": "moss_image",
24
+ "model_flavour": "base",
25
+ "model_type": "lora",
26
+ "num_train_epochs": 0,
27
+ "optimizer": "adamw_bf16",
28
+ "output_dir": "output/json-base-512",
29
+ "push_checkpoints_to_hub": false,
30
+ "push_to_hub": false,
31
+ "report_to": "none",
32
+ "resolution": 512,
33
+ "resolution_type": "pixel_area",
34
+ "seed": 42,
35
+ "skip_file_discovery": false,
36
+ "tracker_project_name": "lora-training",
37
+ "tracker_run_name": "moss-domokun-json-base-512",
38
+ "train_batch_size": 4,
39
+ "use_ema": false,
40
+ "vae_batch_size": 1,
41
+ "validation_guidance": 3.0,
42
+ "validation_guidance_rescale": 0.0,
43
+ "validation_lycoris_strength": 1.0,
44
+ "validation_num_inference_steps": 50,
45
+ "validation_prompt_library": false,
46
+ "validation_resolution": "512x512",
47
+ "validation_seed": 42,
48
+ "validation_guidance_real": 3.0,
49
+ "user_prompt_library": "prompts.json",
50
+ "dynamo_backend": "inductor",
51
+ "dynamo_mode": "default",
52
+ "dynamo_use_regional_compilation": true,
53
+ "validation_disable_unconditional": true,
54
+ "validation_negative_prompt": "",
55
+ "gradient_checkpointing_interval": 2,
56
+ "gradient_accumulation_steps": 1,
57
+ "grad_clip_method": "norm",
58
+ "lora_dropout": 0.0,
59
+ "vae_enable_tiling": false,
60
+ "num_validation_images": 1,
61
+ "dynamo_dynamic": true,
62
+ "crepa_enabled": true,
63
+ "crepa_block_index": 8,
64
+ "crepa_lambda": 0.5,
65
+ "crepa_encoder_image_size": 518,
66
+ "crepa_adjacent_distance": 0,
67
+ "crepa_spatial_align": true,
68
+ "crepa_encoder": "dinov2_vitg14",
69
+ "data_backend_sampling": "uniform",
70
+ "aspect_bucket_alignment": 16,
71
+ "dataloader_prefetch": false,
72
+ "flow_schedule_auto_shift": false,
73
+ "flow_schedule_shift": 1.0,
74
+ "validation_step_interval": 500,
75
+ "resume_from_checkpoint": "",
76
+ "vae_dtype": "fp32",
77
+ "tokenizer_max_length": 4096,
78
+ "train_text_encoder": false,
79
+ "moss_image_validation_shift": 5.0,
80
+ "moss_image_uncond_skip_layers": [
81
+ 22
82
+ ],
83
+ "gradient_checkpointing_backend": "torch",
84
+ "gradient_checkpointing_offload_attention": false,
85
+ "pretrained_model_name_or_path": "OpenMOSS-Team/MOSS-Image-Base",
86
+ "model_card_base_model": "OpenMOSS-Team/MOSS-Image-Base",
87
+ "validation_on_startup": true,
88
+ "disable_assistant_lora": true,
89
+ "attention_mechanism": "kohaku-fa-auto",
90
+ "moss_image_auto_json": true,
91
+ "moss_image_prompt_upsample": false,
92
+ "revision": "1ceede80badddd6a7812069619edaa5633587192"
93
+ }
recipes/json-sft-512/dataloader.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "domokun",
4
+ "type": "local",
5
+ "dataset_type": "image",
6
+ "instance_data_dir": "datasets/domokun",
7
+ "caption_strategy": "textfile",
8
+ "resolution": 0.262144,
9
+ "resolution_type": "area",
10
+ "crop": false,
11
+ "minimum_image_size": 0,
12
+ "repeats": 10,
13
+ "cache_dir_vae": "cache/json-sft-512/vae",
14
+ "text_embeds": "text"
15
+ },
16
+ {
17
+ "id": "text",
18
+ "type": "local",
19
+ "dataset_type": "text_embeds",
20
+ "default": true,
21
+ "cache_dir": "cache/json-sft-512/text"
22
+ }
23
+ ]
recipes/json-sft-512/prompts.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "studio": "A studio photograph of 🟫 standing on a wooden table, soft window light, with the entire character visible against a pale gray background.",
3
+ "garden": "A photograph of 🟫 standing in a sunny garden surrounded by flowers, natural colors and a softly blurred background.",
4
+ "astronaut": "An illustration of 🟫 wearing a white astronaut suit on the surface of the moon, Earth visible in the sky.",
5
+ "retention": "A photograph of a cobalt blue ceramic teapot on a wooden table beside a window, soft natural light."
6
+ }
recipes/json-sft-512/training_config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model_precision": "no_change",
3
+ "caption_dropout_probability": 0.0,
4
+ "checkpoint_step_interval": 500,
5
+ "checkpoints_total_limit": 20,
6
+ "compress_disk_cache": false,
7
+ "data_backend_config": "dataloader.json",
8
+ "disable_benchmark": true,
9
+ "disable_bucket_pruning": true,
10
+ "gradient_checkpointing": true,
11
+ "hub_model_id": "SimpleTuner/moss-image-sft-domokun-json-512",
12
+ "strict_epoch_limit": false,
13
+ "learning_rate": 0.0001,
14
+ "lora_alpha": 32,
15
+ "lora_rank": 32,
16
+ "lora_type": "standard",
17
+ "lr_scheduler": "constant_with_warmup",
18
+ "lr_warmup_steps": 25,
19
+ "max_grad_norm": 1.0,
20
+ "max_train_steps": 10000,
21
+ "minimum_image_size": 0,
22
+ "mixed_precision": "bf16",
23
+ "model_family": "moss_image",
24
+ "model_flavour": "sft",
25
+ "model_type": "lora",
26
+ "num_train_epochs": 0,
27
+ "optimizer": "adamw_bf16",
28
+ "output_dir": "output/json-sft-512",
29
+ "push_checkpoints_to_hub": false,
30
+ "push_to_hub": false,
31
+ "report_to": "none",
32
+ "resolution": 512,
33
+ "resolution_type": "pixel_area",
34
+ "seed": 42,
35
+ "skip_file_discovery": false,
36
+ "tracker_project_name": "lora-training",
37
+ "tracker_run_name": "moss-domokun-json-sft-512",
38
+ "train_batch_size": 4,
39
+ "use_ema": false,
40
+ "vae_batch_size": 1,
41
+ "validation_guidance": 3.0,
42
+ "validation_guidance_rescale": 0.0,
43
+ "validation_lycoris_strength": 1.0,
44
+ "validation_num_inference_steps": 50,
45
+ "validation_prompt_library": false,
46
+ "validation_resolution": "512x512",
47
+ "validation_seed": 42,
48
+ "validation_guidance_real": 3.0,
49
+ "user_prompt_library": "prompts.json",
50
+ "dynamo_backend": "inductor",
51
+ "dynamo_mode": "default",
52
+ "dynamo_use_regional_compilation": true,
53
+ "validation_disable_unconditional": true,
54
+ "validation_negative_prompt": "",
55
+ "gradient_checkpointing_interval": 2,
56
+ "gradient_accumulation_steps": 1,
57
+ "grad_clip_method": "norm",
58
+ "lora_dropout": 0.0,
59
+ "vae_enable_tiling": false,
60
+ "num_validation_images": 1,
61
+ "dynamo_dynamic": true,
62
+ "crepa_enabled": true,
63
+ "crepa_block_index": 8,
64
+ "crepa_lambda": 0.5,
65
+ "crepa_encoder_image_size": 518,
66
+ "crepa_adjacent_distance": 0,
67
+ "crepa_spatial_align": true,
68
+ "crepa_encoder": "dinov2_vitg14",
69
+ "data_backend_sampling": "uniform",
70
+ "aspect_bucket_alignment": 16,
71
+ "dataloader_prefetch": false,
72
+ "flow_schedule_auto_shift": false,
73
+ "flow_schedule_shift": 1.0,
74
+ "validation_step_interval": 500,
75
+ "resume_from_checkpoint": "",
76
+ "vae_dtype": "fp32",
77
+ "tokenizer_max_length": 4096,
78
+ "train_text_encoder": false,
79
+ "moss_image_validation_shift": 5.0,
80
+ "moss_image_uncond_skip_layers": [
81
+ 22
82
+ ],
83
+ "gradient_checkpointing_backend": "torch",
84
+ "gradient_checkpointing_offload_attention": false,
85
+ "pretrained_model_name_or_path": "OpenMOSS-Team/MOSS-Image-SFT",
86
+ "model_card_base_model": "OpenMOSS-Team/MOSS-Image-SFT",
87
+ "validation_on_startup": true,
88
+ "disable_assistant_lora": true,
89
+ "attention_mechanism": "kohaku-fa-auto",
90
+ "moss_image_auto_json": true,
91
+ "moss_image_prompt_upsample": false,
92
+ "revision": "fc5de0d56fc910cbca6f6625a70f5f582b26deb1"
93
+ }