Skip to content

ValueError: You are trying to save a non-contiguous tensor in MT5 finetunning #34623

@esti-tech

Description

@esti-tech

may be using these fixes it

 for param in model.parameters():
        if not param.is_contiguous():
            param.data = param.data.contiguous()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions