Skip to content

convert the 7B model to ggml FP16 format fails on RPi 4B #138

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
davidrutland opened this issue Mar 14, 2023 · 9 comments
Closed

convert the 7B model to ggml FP16 format fails on RPi 4B #138

davidrutland opened this issue Mar 14, 2023 · 9 comments
Labels
hardware Hardware related

Comments

@davidrutland
Copy link

Everything's OK until this step

python3 convert-pth-to-ggml.py models/7B/ 1
{'dim': 4096, 'multiple_of': 256, 'n_heads': 32, 'n_layers': 32, 'norm_eps': 1e-06, 'vocab_size': 32000}
n_parts = 1
Processing part 0
Killed

models/7B/ggml-model-f16.bin isn't created

@davidrutland
Copy link
Author

Ah. Got it. I think I need a bigger SD card.

@JavSensei
Copy link

I have the same problem, the ram increases until it is completely filled and that's as far as it goes

@Ronsor
Copy link
Contributor

Ronsor commented Mar 14, 2023

I'm pretty sure you need memory for both the original fp16 model + the converted model. A RPi 4 (even with 8 GB of RAM) isn't going to have enough.

@BrianSemiglia
Copy link

BrianSemiglia commented Mar 14, 2023

Would it be okay to share a torrent of converted models? Would be a smaller download

@Ronsor
Copy link
Contributor

Ronsor commented Mar 14, 2023

There are indeed torrents in places like 4chan. I personally don't think model weights can even be copyrighted, but the repo maintainer probably doesn't want to risk it, otherwise there would likely already be a torrent link provided.

@xiliuya
Copy link

xiliuya commented Mar 14, 2023

convert the 7B model need 16G RAM.

@apaz-cli
Copy link
Contributor

If you're having memory trouble you should make a swapfile. I only have 8GB of memory, and I'm going back and forth between tasks, so I just wrote a script that makes it easy to create and destroy swapfiles.

https://github.com/apaz-cli/Scripts/blob/master/swapcreate
https://github.com/apaz-cli/Scripts/blob/master/swapdestroy

Or you can find instructions online.

@G2G2G2G
Copy link

G2G2G2G commented Mar 15, 2023

Ah. Got it. I think I need a bigger SD card.

you can convert it on any computer then just copy it over.

@gjmulder gjmulder added the hardware Hardware related label Mar 15, 2023
@gjmulder
Copy link
Collaborator

This looks to be a RAM issue. Closing.

@gjmulder gjmulder closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
rooprob pushed a commit to rooprob/llama.cpp that referenced this issue Aug 2, 2023

Verified

This commit was signed with the committer’s verified signature.
prusnak Pavol Rusnak
Replace the rand() with a portable rng
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
hardware Hardware related
Projects
None yet
Development

No branches or pull requests

8 participants