Skip to content

Wrong number of parameter for flan_t5_small #358

@VictorY-Irreversible

Description

@VictorY-Irreversible

Describe the bug

Based on your expected output file for flan_t5_small you got 128,743,488 parameters.

The paper mention 80M and huggingface says 77M.
With my own script I arrive to 76,961,152, which matches with the expected order of magnitude.

To Reproduce

Run:

def test_flan_t5_small() -> None:
model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-small")
inputs = {
"input_ids": torch.zeros(3, 100).long(),
"attention_mask": torch.zeros(3, 100).long(),
"labels": torch.zeros(3, 100).long(),
}
summary(model, input_data=inputs)

Expected behavior

Get the good number of parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions