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

How to use 1.3B OPT weights in metaseq-api-local API? #61

Closed
ParadoxZW opened this issue May 8, 2022 · 5 comments
Closed

How to use 1.3B OPT weights in metaseq-api-local API? #61

ParadoxZW opened this issue May 8, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@ParadoxZW
Copy link

I'm trying to use 1.3B OPT weights in metaseq-api-local API and test some inference examples. But I got stucked.

There are two reshard files of 1.3B OPT. But CHECKPOINT_LOCAL in constants.py can only point to a reshard.pt file. What is the correct way to load these two reshard files? (P.S. the comments in constants.py says MODEL_SHARED_FOLDER = "/example/175B/reshard_no_os" but there is CHECKPOINT_FOLDER = os.path.join(MODEL_SHARED_FOLDER, "175B", "reshard_no_os") in line 49, is this also a mistake?

@ParadoxZW ParadoxZW added the bug Something isn't working label May 8, 2022
@soloice
Copy link

soloice commented May 8, 2022

You can modify the paths manually to load different models. Also, I think this script is related.

@ParadoxZW
Copy link
Author

ParadoxZW commented May 8, 2022

@soloice I know that we can modify path to load different models. My question is CHECKPOINT_LOCAL can only point to a ckpt file but not a list of reshard files.

@soloice
Copy link

soloice commented May 8, 2022

I have the same question. I assume this is not a bug: the only thing missing here is a script to merge all sharded checkpoints.
This should be the one needed. So we can just wait for good news.

@ParadoxZW
Copy link
Author

ParadoxZW commented May 9, 2022

I guess there is a way to directly load two reshard file (and infer under the strategy of model paralleling) rather than merging them.

@suchenzang
Copy link
Contributor

Consolidating all asks for model loading into #88, which will be released soon from HuggingFace.

We also have #78 and #77 open to fix some of these usability issues on our end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants