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

What is the best practice to save and load a BlockMask object? #58

Open
complexfilter opened this issue Oct 20, 2024 · 1 comment
Open

Comments

@complexfilter
Copy link

complexfilter commented Oct 20, 2024

Hi, I encountered a Key Error 'm' bug after

  1. saving a BlockMask object to a .pkl file
  2. loading the object from the pkl file
  3. migrating all the tensors in the object from GPU 0 to GPU 1.
  4. using the object on GPU 1 and q k v on GPU 1 to do flexattention.

So, I was wondering what is the best practice to save a blockmask object to disc. And how to load this disk file to multiple GPUs.

@complexfilter complexfilter changed the title What is the best practice to save and load BlockMask object? What is the best practice to save and load a BlockMask object? Oct 20, 2024
@drisspg
Copy link
Contributor

drisspg commented Oct 23, 2024

Out of curiosity why do you want to create the BlockMask object on 1 GPU and share as opposed to creating it on N times for each GPU?

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

No branches or pull requests

2 participants