add READMD for llava.py
This commit is contained in:
parent
4f1aa3cc76
commit
93c57a0571
1 changed files with 6 additions and 3 deletions
|
@ -3,8 +3,12 @@
|
|||
## LLAVA example (llava.py)
|
||||
|
||||
1. obtian llava model (following https://github.com/haotian-liu/LLaVA/ , use https://huggingface.co/liuhaotian/LLaVA-13b-delta-v1-1/)
|
||||
2. convert it to ggml format
|
||||
3. llava_projection.pth is [pytorch_model-00003-of-00003.bin](https://huggingface.co/liuhaotian/LLaVA-13b-delta-v1-1/blob/main/pytorch_model-00003-of-00003.bin)
|
||||
2. build `libembd_input.so`
|
||||
```
|
||||
make
|
||||
```
|
||||
3. convert it to ggml format
|
||||
4. llava_projection.pth is [pytorch_model-00003-of-00003.bin](https://huggingface.co/liuhaotian/LLaVA-13b-delta-v1-1/blob/main/pytorch_model-00003-of-00003.bin)
|
||||
|
||||
```
|
||||
import torch
|
||||
|
@ -17,4 +21,3 @@ used_key = ["model.mm_projector.weight","model.mm_projector.bias"]
|
|||
torch.save({k: dic[k] for k in used_key}, pth_path)
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue