Temporary carry of the open upstream PR
https://github.com/ggml-org/llama.cpp/pull/32777 at head 01945dcb0 (one
commit), carried at the owner's request: loop-aware --fit placement for
inkling2_loop (llama_model_layer_visits ranks the looped layers first, so
their experts stay in device memory before the single-pass layers). Drop
this commit when the PR is merged upstream (FORK.md F12).
Applied cleanly on upstream 5bacb7c86 plus the fork; no conflict
resolution. The F13 interaction (views break the pointer-identity loop
detection) is fixed in a separate fork commit, not here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZz44SLQvTXMyWGio6t9DZ