Skip to content

[QST] Are prefetch slots shared across MoE layers or allocated per layer? #21

Description

@Marsssqqq

In a multi-layer MoE training setup, are the physical [E, E+B) prefetch
slots:

  1. one B-slot bank shared by all MoE layers, or
  2. a separate B-slot bank for every MoE layer?

The README says that every layer has an [E+B, H, H'] VMM range, while also
saying that the physical [E, E+B) prefetch-slot memory comes from one
process-global pool shared by all layers.

Does each layer's VMM range map its [E, E+B) tail to the same physical
B-slot bank?

If so, after a later layer overwrites that shared bank, how are the expert
weights required by backward restored? Does the training integration call
prefetch_weight() again before each layer's expert backward, or use another
mechanism?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions