Skip to content

How to find model size of faster-whisper model #488

@kurianbenoy

Description

@kurianbenoy

I have a function to get the model size of a particular pytorch model. How can i figure out the model size using faster-whisper model?

I am looking for finding the number of parameters in the model and not the file size of the model

def get_model_size(model):
    total_params = sum(param.numel() for param in model.parameters())
    return numerize.numerize(total_params)

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