stable-diffusion.cpp/docs/guides
Claude 25a2fa9df3
feat(backend): choose how the layer split fills the devices
Upstream #2309 made the layer split size its ranges in proportion to the
device capacities, while the fork's multi-GPU planner still estimated
the earlier fill-first placement. --layer-split-fill (context option
layer_split_fill) now offers both, and the split and the planner share
one implementation in src/core/layer_split_partition.*:

- proportional: every device takes the same fraction of its capacity,
  so each keeps room for computing (upstream's behaviour);
- fill-first: the first device takes as many layers as it can, the next
  ones the rest (the fork's earlier behaviour);
- auto (default): when auto-fit plans a split it tries both fills and
  keeps the one that leaves more modules resident on the GPUs,
  proportional on a tie, and the split then fills the devices that way;
  a split given with --backend is proportional over discrete GPUs and
  fill-first as soon as an integrated GPU or the CPU takes part.

The log names the fill of each split, docs/guides/backend.md describes
the option, test/layer_split_fill_test.cpp covers the three modes and
test/backend_fit_plan_test.cpp the planner's choice.

Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2026-11-24 18:28:49 +01:00
..
backend.md feat(backend): choose how the layer split fills the devices 2026-11-24 18:28:49 +01:00
c_api.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
caching.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
edit.md docs: standardize model guides and server documentation 2026-11-14 19:26:26 +08:00
generation_metadata.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
image_preprocessing.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
imatrix.md docs: reorganize documentation and improve README navigation 2026-11-14 18:01:50 +08:00
int8_convrot.md docs: reorganize documentation and improve README navigation 2026-11-14 18:01:50 +08:00
performance.md Merge leejet/stable-diffusion.cpp 01c463a into fork-pull (sync 2/4) 2026-11-24 12:21:12 +01:00
prompt_images.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
quantization_and_gguf.md docs: reorganize documentation and improve README navigation 2026-11-14 18:01:50 +08:00
rpc.md docs: reorganize documentation and improve README navigation 2026-11-14 18:01:50 +08:00
sage_attention.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00
sampling.md docs: standardize model guides and server documentation 2026-11-14 19:26:26 +08:00
tokenizers.md refactor(api): adopt opaque options, tensors, and results (#2365) 2026-11-15 18:33:53 +08:00