Skip to content

[Tracking] Batched inference integration #360

Open

Description

@stikves

We recently added support for dynamic batch dimension in causal inference language models in #334.

This issue will track its integration in the runtime for

  • The llm-runner
  • The llm-benchmark
  • The llm-server for
    • Basic inference
    • More intelligent batch policies

Activity

  1. stikves commented on Oct 21, 2026

    @stikves
    ContributorAuthor

    The first PR is for allowing generation of batched inputs, and attention masks

    #335

    Adds 4 low level components:

    1. BatchedInputBuilder, which processes the new input layouts
    2. RegionCopyable protocol for in-place mutation of KV-caches
    3. BatchedDecodeStep
    4. BatchedSampler

    High level API is unchanged, except:

    • CoreAILanguageModel now auto detects, and accepts batching-capable exports
    • InputLayout.attnMaskName is added to help with this detection
  2. self-assigned this
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions