Open pspdada opened 18 hours ago
Hi @pspdada, thanks for reporting the issue! Does it work fine without any imports from minigpt4 in your env?
Hi @pspdada, thanks for reporting the issue! Does it work fine without any imports from minigpt4 in your env?
Yes
System Info
transformers
version: 4.46.2Who can help?
@zucchini-nlp @amyeroberts
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
When I use the minigpt4 model from the repository ·https://github.com/Vision-CAIR/MiniGPT-4·, I find that grounding dino cannot be used together with it.
Specifically, when I import some necessary content from the minigpt4 repository into my project (without doing anything else about the minigpt4 repo) and use transformers grounding dino model, dino crashes the program directly at the
model(**encoded_inputs)
call with an error code of SIG(117), and no traceback or other information is provided.Other models, such as flan-t5-base-VG-factual-sg, do not crash during their forward pass even when minigpt4 is imported.
After commenting out the four import lines related to minigpt4, there are no issues anymore.
Expected behavior
Since this issue is related to other repositories, I would like to ask if you can help resolve this problem? Or kindly just guide me on how to find the deeper cause? Combining multiple models is significant for my project, but this issue does not provide any traceback, leaving me without a starting point.