Skip to content

[BUG] AttributeError: "ProgressBar" object has no attribute 'set_postfix' #1609

@mysterynan

Description

@mysterynan

When I run generation_speed.py, I encountered this issue. The error occurs in the code:
pb.set_postfix(
num_tokens=num_generated_tokens_list[-1],
time=generation_time_list[-1],
speed=f"{num_generated_tokens_list[-1] / generation_time_list[-1]:.3f} tokens/s",
)
How can I fix this?

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