Skip to content

[Bug]: seqlen does not take effect when using a dataloader as input #2073

Description

@wenhuach21

Problem Description

the seqlen is 10 actually

@pytest.mark.parametrize("act_group_size", [-1, 128])
def test_wfp8afp8_static(self, act_group_size, tiny_opt_model, opt_tokenizer, dataloader):
from auto_round.wrapper import WrapperWALayer

    autoround = AutoRound(
        tiny_opt_model,
        opt_tokenizer,
        group_size=128,
        act_group_size=act_group_size,
        iters=2,
        seqlen=2,
        dataset=dataloader,
        data_type="fp8",
        act_dynamic=False,
        act_data_type="fp8",
    )
    autoround.quantize()

Reproduction Steps

~

Environment Information

~

Error Logs

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions