Open garvinzhang opened 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?
Can you run this script with a debugger like gdb, to find the exact line which causing segmentation fault?
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?