AdwolfCzar commited on
Commit
fe1572e
·
verified ·
1 Parent(s): 01bf0b9

Upload checkpoints/step-00500 (k2_apex_ctx)

Browse files
checkpoints/step-00500/adapter_config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": null,
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": false,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 64,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.0,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "monteclora_config": null,
27
+ "peft_type": "LORA",
28
+ "peft_version": "0.20.0",
29
+ "qalora_group_size": 16,
30
+ "r": 64,
31
+ "rank_pattern": {},
32
+ "revision": null,
33
+ "target_modules": [
34
+ "up",
35
+ "gate",
36
+ "txtmlp.1",
37
+ "wk",
38
+ "txtmlp.3",
39
+ "down",
40
+ "wv",
41
+ "wq",
42
+ "wo"
43
+ ],
44
+ "target_parameters": null,
45
+ "task_type": null,
46
+ "trainable_token_indices": null,
47
+ "use_bdlora": null,
48
+ "use_dora": false,
49
+ "use_qalora": false,
50
+ "use_rslora": false,
51
+ "velora_config": null
52
+ }
checkpoints/step-00500/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0ce2ffccd48e4c4bb76c39f560d1c89e39fa60ee7ec581c3e9f44ee0dfc4639
3
+ size 459800344
checkpoints/step-00500/apex_ctx_512.toml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # krea2_apex @512 — CTX (docs/KREA2_APEX_SPEC.md §2.7).
2
+ #
3
+ # Contrato (o que difere de todo braço anterior):
4
+ # - geometria frame_fit: ref no eixo de frame (pos[...,0]=1) e CENTRADA no
5
+ # grid do alvo com offsets FRACIONÁRIOS; sem width_shift, sem reescala
6
+ # - ref preprocessada com o ramo `fit` do comfyui-krea2edit (CROP_TOL 0.08,
7
+ # /16 floor com cap, crop-to-grid, bicubic+antialias)
8
+ # - reference_timestep='target' (o node calcula UM tvec para toda a sequência;
9
+ # um LoRA t=0 degrada lá em silêncio)
10
+ # - timestep_law='krea2_apex': t = sigmoid(s(N)·z + m(N)), peso da loss ≡ 1,
11
+ # amostragem estratificada golden-ratio. MUTUAMENTE EXCLUSIVO com flux_shift
12
+ # - LoRA em blocks + txtfusion + txtmlp (258 módulos)
13
+ # - live_text_encoding: sem cache de texto; jitter de grounding e clause
14
+ # dropout re-sorteados POR STEP
15
+
16
+ output_dir = '/workspace/checkpoints/k2_apex_ctx'
17
+ dataset = '/workspace/configs/apex_ctx_dataset.toml'
18
+ epochs = 1000
19
+ max_steps = 5000
20
+ micro_batch_size_per_gpu = 1
21
+ gradient_accumulation_steps = 1
22
+ pipeline_stages = 1
23
+ gradient_clipping = 1.0
24
+ warmup_steps = 250
25
+ save_every_n_steps = 250
26
+ checkpoint_every_n_minutes = 120
27
+ activation_checkpointing = true
28
+ save_dtype = 'bfloat16'
29
+ caching_batch_size = 1 # OBRIGATÓRIO: o fit dá refs de shapes diferentes
30
+ blocks_to_swap = 0
31
+
32
+ [model]
33
+ type = 'krea2_apex'
34
+ diffusion_model = '/workspace/models/krea2/diffusion_models/krea2_raw_fp8_scaled.safetensors'
35
+ vae = '/workspace/models/krea2/split_files/vae/qwen_image_vae.safetensors'
36
+ text_encoders = [
37
+ {path = '/workspace/models/krea2/text_encoders/qwen3vl_4b_bf16.safetensors', type = 'krea2'},
38
+ ]
39
+ dtype = 'bfloat16'
40
+ diffusion_model_dtype = 'float8'
41
+ timestep_sample_method = 'logit_normal'
42
+ timestep_law = 'krea2_apex' # NÃO usar flux_shift/shift junto
43
+ live_text_encoding = true
44
+
45
+ [krea2_apex]
46
+ reference_timestep = 'target'
47
+ vl_prompt_style = 'plain'
48
+ vl_longest_side = 768
49
+ vl_grounding_jitter = [384, 768] # agora POR STEP
50
+ caption_dropout = 0.05
51
+ clause_dropout_prob = 0.40
52
+ clause_dropout_rate = 0.60
53
+ keep_clauses = 1
54
+
55
+ [adapter]
56
+ type = 'lora'
57
+ rank = 64
58
+ # alpha: o trainer força alpha = rank (scaling 1). Não declarar.
59
+ dtype = 'bfloat16'
60
+
61
+ [optimizer]
62
+ type = 'AdamW8bitKahan'
63
+ lr = 1e-4
64
+ betas = [0.9, 0.99]
65
+ weight_decay = 0.01
66
+ stabilize = false