Skip to content

Question: Where is the KV Cache Transfer delay formula implemented in the source code? #42

Description

@MskSg-tech

Hi LLMServingSim team,

Thank you so much for developing such a fantastic simulation framework and providing great documentation!

Question

In the official documentation for the Disaggregated (Prefill-Decode Split) example, it states:

"The cache transfer shows up as a one-time cost between prefill end and first decode step (modeled via link_bw)."

I am running experiments with this split setup and want to inspect the underlying source code to see how this transfer delay is implemented.

Could you please point me to the exact file and function/line of code where this KV cache transfer cost is actually calculated and applied to the simulation ticks?

Is it computed on the Python side before passing to the backend simulator, or is it handled within the C++ network backend?

Thank you so much for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions