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

Issue about preparing checkpoint. #25

Open
Rexzhan opened this issue Aug 22, 2024 · 1 comment
Open

Issue about preparing checkpoint. #25

Rexzhan opened this issue Aug 22, 2024 · 1 comment

Comments

@Rexzhan
Copy link

Rexzhan commented Aug 22, 2024

Hi~really nice work! I encountered a problem following your inference pipeline.
Specifically, i downloaded llama checkpoint from https://huggingface.co/huggyllama/llama-7b, and used the command:
python3 -m llava.model.apply_delta --base /path/to/llama-7b --target /output/path/to/LLaVA-7B-v1 --delta liuhaotian/LLaVA-Lightning-7B-delta-v1-1 and modified the apply_delta.py by claiming safe_serialization=False
to prepare the 7b pytorch llava weights, and it turned out to be three bin files instead of two, which is inconsistent with \Line 190 in ./test/DS_SmartEdit_test.py:
LLaVA_00002_weights = LLaVA_model_path + "/pytorch_model-00002-of-00002.bin".
截屏2024-08-22 12 09 46
Could you please tell me what i am doing wrong~~

@EnableAsync
Copy link

Hello, I also encountered the same problem, and it was solved after modifying the max_shard_size parameter to 10GB.

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