mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-29 03:26:12 +00:00
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 |
||
|---|---|---|
| .. | ||
| backend.md | ||
| c_api.md | ||
| caching.md | ||
| edit.md | ||
| generation_metadata.md | ||
| image_preprocessing.md | ||
| imatrix.md | ||
| int8_convrot.md | ||
| performance.md | ||
| prompt_images.md | ||
| quantization_and_gguf.md | ||
| rpc.md | ||
| sage_attention.md | ||
| sampling.md | ||
| tokenizers.md | ||