Skip to content

RuntimeError during load_state #3812

@Silverster98

Description

@Silverster98

System Info

This issue is related to prior issue 3101, but it hasn’t been fully resolved yet. The current workaround is to avoid using safetensors.

@Narsil suggested using load_file/save_file. However, I noticed that accelerate currently uses save_file for saving and use load_model for loading.

Is there any known workaround or recommended fix for this inconsistency?

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
  • My own task or dataset (give details below)

Reproduction

Please see the prior issue 3101.

Expected behavior

Please see the prior issue 3101.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions