mlx-bun library API
    Preparing search index...

    The graph's operations and construction facts. Pooled embedding support is declared by its operation alone. Other operations accompany the promises in graphCapabilities; composition checks their pairing when it binds (declaredGraph).

    Implements

    Index
    appendKnown: MlxKnownOperations

    Known tokens: this graph declares no committed spans, so they read as a window.

    cacheLayers: readonly MlxCacheLayer[]

    One cache per layer, sharing one mask memo (create_attention_mask's one mask per forward, built by the caches). Their TurboQuant read is dense (denseTurboQuantKernels): the read decodes keys and values, then runs the fused SDPA.

    config: ModelConfig

    One new token per sequence: ids [sequences, 1].

    Unscaled token embeddings, for media prompts that splice embeddings.

    finalNorm: RMSNorm
    layers: Qwen3MoeDecoderLayer[]
    lmHead: QuantizedLinear | null

    Untied lm_head (tie_word_embeddings=false for this family).

    The one output head at every width.

    loraState: LoraState = ...
    multiSequencePrompt: readonly MlxPromptRange[]
    multiSequencePromptChunk: readonly MlxPromptRange[]
    prefixBase: "model"
    prompt: readonly MlxPromptRange[]

    One whole chunk of a prompt; rows are sequences times the chunk size. The GPU is this graph's one unit.

    promptChunk: readonly MlxPromptRange[]

    Optional chunk bindings when a file distinguishes chunks from prompt tails.

    sequence: readonly MlxSequenceRange[]

    Full-sequence scoring operations, indexed by total token rows.

    A speculative window of depth + 1 positions per sequence. This graph declares no hidden-layer taps, so capture is always null.

    weightsBytes: number