lilbrownbebeshoes

Krea 2 Ai-Toolkit Config

Jul 21st, 2026
1,858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.67 KB | Software | 0 0
  1. job: extension
  2. config:
  3.   name: lora_name_krea2
  4.   process:
  5.   - type: diffusion_trainer
  6.     training_folder: /ai-toolkit/output
  7.     sqlite_db_path: /ai-toolkit/aitk_db.db
  8.     device: cuda
  9.     trigger_word: replace_with_unique_trigger
  10.     performance_log_every: 10
  11.     network:
  12.       type: lokr
  13.       linear: 32
  14.       linear_alpha: 32
  15.       lokr_full_rank: true
  16.       lokr_factor: 16
  17.       network_kwargs:
  18.         ignore_if_contains: []
  19.     save:
  20.       dtype: bf16
  21.       save_every: 150
  22.       max_step_saves_to_keep: 100
  23.       save_format: diffusers
  24.       push_to_hub: false
  25.     datasets:
  26.     - folder_path: /ai-toolkit/datasets/dataset
  27.       mask_path: null
  28.       mask_min_value: 0.1
  29.       default_caption: ''
  30.       caption_ext: txt
  31.       caption_dropout_rate: 0.05
  32.       cache_latents_to_disk: true
  33.       is_reg: false
  34.       network_weight: 1
  35.       resolution:
  36.      - 768
  37.       controls: []
  38.       shrink_video_to_frames: true
  39.       num_frames: 1
  40.       flip_x: false
  41.       flip_y: false
  42.       num_repeats: 1
  43.     train:
  44.       batch_size: 1
  45.       bypass_guidance_embedding: false
  46.       steps: 3000
  47.       gradient_accumulation: 1
  48.       train_unet: true
  49.       train_text_encoder: false
  50.       gradient_checkpointing: true
  51.       noise_scheduler: flowmatch
  52.       optimizer: automagic2
  53.       timestep_type: sigmoid
  54.       content_or_style: balanced
  55.       optimizer_params:
  56.         weight_decay: 0.0001
  57.       unload_text_encoder: false
  58.       cache_text_embeddings: true
  59.       lr: 0.0001
  60.       ema_config:
  61.         use_ema: true
  62.         ema_decay: 0.99
  63.       skip_first_sample: true
  64.       force_first_sample: false
  65.       disable_sampling: true
  66.       dtype: bf16
  67.       diff_output_preservation: false
  68.       diff_output_preservation_multiplier: 1
  69.       diff_output_preservation_class: person
  70.       switch_boundary_every: 1
  71.       loss_type: mse
  72.       do_differential_guidance: true
  73.       differential_guidance_scale: 3
  74.     logging:
  75.       log_every: 1
  76.       use_ui_logger: true
  77.     model:
  78.       name_or_path: krea/Krea-2-Raw
  79.       quantize: true
  80.       qtype: convrot8
  81.       quantize_te: true
  82.       qtype_te: convrot8
  83.       arch: krea2
  84.       low_vram: true
  85.       model_kwargs: {}
  86.       compile: true
  87.       layer_offloading: false
  88.       layer_offloading_text_encoder_percent: 0.75
  89.       layer_offloading_transformer_percent: 0.75
  90.       block_compile: true
  91.     sample:
  92.       sampler: flowmatch
  93.       sample_every: 250
  94.       width: 1024
  95.       height: 1024
  96.       samples: []
  97.       neg: ''
  98.       seed: 42
  99.       walk_seed: true
  100.       guidance_scale: 4
  101.       sample_steps: 30
  102.       num_frames: 1
  103.       fps: 1
  104. meta:
  105.   name: lora_name_krea2
  106.   version: '1.0'
  107.  
Tags: ai
Advertisement
Add Comment
Please, Sign In to add comment