TRI-ML / vlm-evaluation

VLM Evaluation: Benchmark for VLMs, spanning text generation tasks from VQA to Captioning
Other
89 stars 10 forks source link

Transformer version conflict with prismatic-vlm #13

Open tangwh20 opened 3 months ago

tangwh20 commented 3 months ago

Hi, I met a version conflict when trying to execute pip install -e .. The error message goes like:

ERROR: Cannot install vlm-eval==0.0.1 and vlm_eval because these package versions have conflicting dependencies.

The conflict is caused by:
    vlm-eval 0.0.1 depends on transformers==4.34.1
    mosaicml-streaming 0.7.6 depends on transformers<5 and >=4.21.3
    llava 1.1.1 depends on transformers>=4.31.0
    prismatic 0.0.2 depends on transformers>=4.38.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

As I check on the dependencies in pyproject.toml, I find that in vlm-evaluation/pyproject.toml we have transformers==4.34.1

https://github.com/TRI-ML/vlm-evaluation/blob/2092905d392e8dbedf01ed4b853df530e3cf9f35/pyproject.toml#L52

while in prismatic-vlms/pyproject.toml we have transformers>=4.38.1

https://github.com/TRI-ML/prismatic-vlms/blob/874c5bbff52b248294a3ab97006491a7faa698e6/pyproject.toml#L45

This seems to be an update conflict. Is there any solution to this?

Thanks!