Files
Strata/include/strata/program
Niko1221 191202132c Layer split auto: credit the trim's freed VRAM to CUDA0 only, not to the later stages
The search adds what the trim frees to each stage's room for experts. That is right for CUDA0, whose arena holds the dense weights of all layers when the search runs and gives back everything outside its own layers when it reloads trimmed. A later stage has not loaded anything yet when the search runs (its weights load after the split is known) and the search already prices its trimmed weights, so crediting it the bytes a trim would free counted the same bytes twice and handed the card cache room it does not have.
split_rules::trim_credit(stage, freed) is the rule (stage 0 gets the freed bytes, the others 0) with a unit check in split_rules_test; generate.cpp calls it where it used trim_frees directly.
2026-11-12 23:39:34 +01:00
..