Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Denied Error When Saving Checkpoint During Training #29382

Closed
2 of 4 tasks
Tanman2001 opened this issue Mar 1, 2024 · 0 comments · Fixed by #29370
Closed
2 of 4 tasks

Permission Denied Error When Saving Checkpoint During Training #29382

Tanman2001 opened this issue Mar 1, 2024 · 0 comments · Fixed by #29370

Comments

@Tanman2001
Copy link

Tanman2001 commented Mar 1, 2024

System Info

  • transformers version: 4.37.1
  • Platform: Windows-10-10.0.22631-SP0
  • Python version: 3.11.1
  • Huggingface_hub version: 0.20.3
  • Safetensors version: 0.4.2
  • Accelerate version: 0.26.1
  • PyTorch version (GPU?): 2.2.1+cpu (False)

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

  1. Follow exactly the Image Classification example in the HuggingFace docs: https://huggingface.co/docs/transformers/tasks/image_classification
  2. Error thrown at trainer.train()
    TrainingError

Expected behavior

Should train normally.

Issue and possible solution identified on forum earlier this year: https://discuss.huggingface.co/t/permission-issues-when-saving-model-checkpoint/70109/2

Removing (or commenting out, like pictured below) lines 2417-2420 of transformers/trainer.py resolves issue without further errors, but may have complications for other tasks.

TrainerCommentedOut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant