Skip to content

split "Latent Caching" into "Image Caching" and "Text Caching"#1462

Open
dxqb wants to merge 1 commit into
Nerogar:masterfrom
dxqb:cache-selection
Open

split "Latent Caching" into "Image Caching" and "Text Caching"#1462
dxqb wants to merge 1 commit into
Nerogar:masterfrom
dxqb:cache-selection

Conversation

@dxqb

@dxqb dxqb commented May 17, 2026

Copy link
Copy Markdown
Collaborator

with text caches becoming very large on recent models, you might want to disable text caching - but still do image caching
this PR splits this setting into two:
grafik

Rename `config.latent_caching` to `config.image_caching` and add a new
orthogonal `config.text_caching` field. Adds config migration 10 -> 11
mapping the old field to both new fields, preserving existing behavior.

This enables the previously-impossible (no image cache, yes text cache)
configuration. Updates modelSetup placement decisions (VAE/effnet ->
image_caching, text encoder -> text_caching), dataloader mixin gating,
trainer cache-clear/start-next-epoch logic, UI switches, and tracked
preset JSONs.
@dxqb dxqb added the preview merged in the preview branch label May 29, 2026
dxqb added a commit that referenced this pull request Jun 3, 2026
- BaseAnimaSetup: per-component checkpointing_or_offloading_enabled(),
  remove weight_list from create_autocast_context / disable_fp16_autocast_context
- AnimaFineTune/LoRASetup: latent_caching → image_caching / text_caching
- ModelType: add ANIMA to _MODEL_PARTS and supported_training_methods

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dxqb added a commit to TheForgotten69/OneTrainer that referenced this pull request Jun 3, 2026
dxqb added a commit that referenced this pull request Jun 4, 2026
@dxqb dxqb mentioned this pull request Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview merged in the preview branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant