﻿# llama.cpp scheduler: a split with no inputs can still need a dependency boundary

The b12383 scheduler repair separates split input count from accumulated work, preserving the ordering needed for a MoE-cache slot lookup.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-engine-scheduler-inputless-split-weight-boundary/
Language: en

llama.cpp b12383 changes graph splitting at an incompatible weight even when the current split has no inputs. Upstream traces a MoE-cache load abort to this distinction. Counting split inputs was an incomplete proxy for whether the scheduler had already accumulated work that required a new boundary.

## An input count is not a work count

The PR explains that a split can contain nodes while having no recorded inputs. The former split condition relied on the input count when deciding to start another split at an incompatible weight. That shortcut failed in the reported hybrid graph. The correction is best understood as preserving a graph boundary, not as adding a new model format or increasing the physical capacity of the expert cache.

## The cache lookup has an ordering requirement

In the reported case, expert selection needed to be computed in an earlier split before the cache lookup’s copy callback used it. Combining routing and lookup into the same split violated that requirement and caused an explicit abort. The abort is useful diagnostic evidence: it identifies a missing scheduling relationship rather than silently accepting an incoherent cache operation. Removing the check would not repair the dependency.

## Preserve the configuration that creates the split

A proposed regression case must retain the hybrid placement and cache configuration responsible for the inputless split. Moving every operation onto one backend may make the load succeed while avoiding the issue. Capture the scheduler’s split structure where tooling permits, then confirm successful load and numerical execution after the update. A load-only check establishes that the abort has disappeared, but not that the resulting expert computations are correct.

## The conclusion belongs to graph scheduling

This release supplies a specific scheduler repair and a clear reason to keep mixed-backend test coverage. It does not establish that all MoE-cache problems share the same split condition. When reporting a local outcome, include the placement flags and cache settings alongside the model revision. The transferable lesson is to test the actual dependency contract instead of inferring it from an incidental counter such as the number of inputs. An abort-message comparison should retain the same scheduler debug settings. Suppressing diagnostics can change what the log reveals without restoring the required split; the decisive evidence is the actual dependency boundary together with a correct computation after initialization.

## Sources

- [llama.cpp b12383 release](https://github.com/ggml-org/llama.cpp/releases/tag/b12383)
- [llama.cpp pull request #31775](https://github.com/ggml-org/llama.cpp/pull/31775)

## Related reading

- [ONNX Runtime provider order: graph partition priority is not request failover](/journal/fg2-onnxruntime-provider-priority-subgraph-partition/)
- [llama.cpp GPU layers: verify partial model offloading](/journal/llama-cpp-gpu-layers/)
