Skip to content

get_theoretical_flops_per_token is not model agnostic, even though the function declaration indicates this #327

Closed

Description

@le1nux

get_theoretical_flops_per_token(model: FSDPX) is not model agnostic. Internally, we check GPT2 model instance variables such as n_layer or n_embd:

L = model_module.n_layer
T = model_module.sequence_length
H = model_module.n_embd

We could transform get_theoretical_flops_per_token into a parameterizable component.

Activity

  1. added this to the v0.4.0 milestone on Mar 25, 2025
  2. added theissue type on Mar 25, 2025
  3. linked a pull request that will close this issueMFU calculation support with FSDP2 #346on Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions