Files
OBLITERATUS/docs/input-execution-device.md
T
Joseph Magly 8c451c3d0b docs: explain input execution device resolution
(cherry picked from commit 029a3d2e823bccc31c55e10f18fc117d8fdcb47c)
2026-10-05 17:27:18 -04:00

19 lines
999 B
Markdown

# Input execution devices
Token tensors now use `resolve_input_execution_device(model)` in evaluation,
benchmarks, the ablation pipeline, automatic runs, and chat. For dispatched
models, the resolver uses the input embedding's Accelerate execution hook (or
its nearest supported ancestor hook). It otherwise uses materialized embedding
storage, a root execution hook, or a resident model device.
A meta tensor describes storage without supplying a usable execution device.
An ambiguous meta layout or an unsupported embedding hook raises
`InputDeviceResolutionError` before token placement. Parameterless models
without a device use CPU. Chat preserves dispatched model placement instead
of moving the entire model with `.to()`.
CPU tests exercise real Accelerate CPU and disk offload as well as supported
hook layouts and invalid device metadata. They do not qualify CUDA execution,
MPS execution, or one-, two-, and three-A100 workflows. Those conditional
results remain required by issue #88.