Skip to content

Tiny BERT saving issue #317

@percevalw

Description

@percevalw

Description

Running the training tests with pretrained BERT "hf-internal-testing/tiny-bert" causes this issue:

You are trying to save a non contiguous tensor: `encoder.layer.0.attention.self.query.weight` 
which is not allowed. It either means you are trying to save tensors which are reference of each 
other in which case it's recommended to save only the full tensors, and reslice at load time, or 
simply call `.contiguous()

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