Vision-CAIR / MiniGPT-4

Open-sourced codes for MiniGPT-4 and MiniGPT-v2 (https://minigpt-4.github.io, https://minigpt-v2.github.io/)
https://minigpt-4.github.io
BSD 3-Clause "New" or "Revised" License
25.4k stars 2.91k forks source link

segmentation fault #34

Open garvinzhang opened 1 year ago

garvinzhang commented 1 year ago

mac Apple M1 Pro 32 GB

Vision-CAIR/MiniGPT-4/minigpt4/models/eva_vit.py self.pos_embed = nn.Parameter(torch.zeros(1, num_patches + 1, embed_dim))

num_patches = 256 embed_dim = 1408

but I got error: "[1] 14423 segmentation fault python demo.py --cfg-path eval_configs/minigpt4_eval.yaml"

Then I find while num_patches>=24, it will error: "segmentation fault"

why?

kbakdev commented 1 year ago

Can you run this script with a debugger like gdb, to find the exact line which causing segmentation fault?