h-zhao1997 / cobra

Cobra: Extending Mamba to Multi-modal Large Language Model for Efficient Inference
MIT License
259 stars 8 forks source link

Transformer version problem with evaluation code #17

Open soonchangAI opened 4 months ago

soonchangAI commented 4 months ago

I install vlm-eval using transformers==4.34.1 Yet I face the following errors. I tried to use different version of transformers, but it seems there is a conflict between llavarepository and the llava in later versions of Transformers.


    from transformers import PhiForCausalLM
ImportError: cannot import name 'PhiForCausalLM' from 'transformers'```