In this article
Compare text, embedding and mixed batches to isolate skipped transfers without missing an active input path.
The b12224 pre-release changes the GGML backend scheduler so it avoids uploading inputs that no computed node reads. The contributor describes a text-only batch paying for an unused branch that can handle ready-made embeddings. The useful experiment measures transfer reduction and validates that mixed inputs still work.
Map the inputs to the graph
The change uses the compute flag set during graph construction. An initial layer may read token IDs, ready-made embeddings from an encoder or both. The copy optimization applies to inputs of inactive branches. Check which branch your fixture actually activates before drawing conclusions about all input processing.
Build comparable traces
Keep the model and GPU fixed and collect backend traces for the same token sequences before and after the change. Count host-to-device bytes and copy events when the profiler exposes them. Also run an embedding-bearing batch. That provides a positive control where the relevant data really should move.
Keep the benchmark claim scoped
The pull request reports modest gains in several llama-bench workloads on one RTX 5090 system. This measures that contributor’s configuration. Use paired runs to estimate variance for your model and prompt length. The impact can be smaller when other transfers or compute dominate the request.
Verify the mixed branch
Include text adjacent to image or audio embeddings where the model supports it. Compare deterministic output or logits against the previous known-good revision within the expected precision. A regression that skips a required input can be invisible in a text-only benchmark. Keep the mixed case in the deployment gate.
Report transfer and quality together
Record the executable revision, backend and workload shape beside the saved byte count. Present correctness and timing as separate results. The change passes qualification when inactive inputs cost less transfer and active inputs still produce valid output across the routes your service actually accepts.
Primary sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.