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

Unable to save model after training with tensor parallel #36436

Open
4 tasks
bursteratom opened this issue Feb 26, 2025 · 0 comments
Open
4 tasks

Unable to save model after training with tensor parallel #36436

bursteratom opened this issue Feb 26, 2025 · 0 comments
Labels

Comments

@bursteratom
Copy link

System Info

Currently, attempting to save model after training with tensor parallel gives the RuntimeError: Attempted to access the data pointer on an invalid python storage, this is due to the state dict not properly gathered from the sharded tensors beforehand.

Fix here: #36434

Image

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

Train the model with tensor parallelism by parsing tp_size >=2 into the trainer, make sure to specify output_dir for the model saving directory.

Expected behavior

Model is saved upon completion of training.

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

No branches or pull requests

1 participant