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 · 0 comments
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
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

1 participant