Skip to main content

Module capabilities

Module capabilities 

Source
Expand description

Declared optional features of an crate::ExecutableGraph.

The ExecutableGraph trait grew a long tail of defaulted methods (MoE residency, GPU handles, KV row feeds, async pipeline, …). Most backends leave those as no-ops / false. Callers that need to branch on support should prefer:

  1. [ExecutableGraph::capabilities] for a cheap advisory bitmask, then
  2. the concrete method’s return value (false / None) as the source of truth — capabilities can lag a backend that forgot to override them.

Method groups on ExecutableGraph:

GroupMethods
Core runset_param, run, run_raw, run_slots, arena_ptr, finalize_params
Cloneclone_box
Extent / RNGset_active_extent, set_rng, rng
MoEset_moe_resident_experts*, enable_moe_topk_capture, take_moe_*
Persistent / GPU handlesbind_handle, read_handle, bind_gpu_handle, …
KV residentregister_kv_row_feed, feed_kv_row, seed_resident_kv_prefix_from, …
Typed I/Oset_param_typed, run_typed
Async pipelinecommit_no_wait, sync_pending, run_pipelined

Structs§

ExecutableCapabilities
Advisory feature flags for a compiled executable.