Skip to content

Commit 05b6117

Browse files
authored
add deps (#570)
* add deps * revert torch vision
1 parent 0bbfdbc commit 05b6117

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

libs/infinity_emb/infinity_emb/transformer/vision/torch_vision.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,21 @@ def __init__(self, *, engine_args: "EngineArgs"):
6666
ColPaliProcessor,
6767
ColQwen2,
6868
ColQwen2Processor,
69-
ColQwen2_5,
70-
ColQwen2_5_Processor
69+
# TODO: colqwen 2.5 is not supported with colpali-engine 0.3.8
70+
# ColQwen2_5,
71+
# ColQwen2_5_Processor,
7172
)
7273

7374
model_cls = {
7475
"ColPali": ColPali,
7576
"ColQwen2": ColQwen2,
76-
"ColQwen2_5": ColQwen2_5,
77+
# "ColQwen2_5": ColQwen2_5,
7778
"ColIdefics2": ColIdefics2,
7879
}[config.architectures[0]]
7980
processor_cls = {
8081
"ColPali": ColPaliProcessor,
8182
"ColQwen2": ColQwen2Processor,
82-
"ColQwen2_5": ColQwen2_5_Processor,
83+
# "ColQwen2_5": ColQwen2_5_Processor,
8384
"ColIdefics2": ColIdefics2Processor,
8485
}[config.architectures[0]]
8586

libs/infinity_emb/poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/infinity_emb/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ posthog = {version = "*", optional=true}
3030
# pin torch to a specific source, but default to pypi. use sed to overwrite.
3131
torch = {version = ">=2.2.1", source = "pypi", optional=true}
3232
sentence-transformers = {version = "^3.0.1", optional=true}
33-
transformers = {version = ">4.34.0,<=5.0", optional=true, extras=["sentencepiece"]}
34-
ctranslate2 = {version = "^4.0.0", optional=true}
35-
optimum = {version = ">=1.23.3", optional=true, extras=["onnxruntime"]}
33+
transformers = {version = ">=4.47.0,<=5.0", optional=true, extras=["sentencepiece"]}
34+
ctranslate2 = {version = ">=4.0.0", optional=true}
35+
optimum = {version = ">=1.24.0", optional=true, extras=["onnxruntime"]}
3636
hf_transfer = {version=">=0.1.5"}
3737
einops = {version = "*", optional=true}
3838
# vision
3939
pillow = {version = "*", optional=true}
4040
timm = {version = "*", optional=true}
41-
colpali-engine = {version="^0.3.1", optional=true}
41+
colpali-engine = {version="^0.3.8", optional=true}
4242
# openvino
4343
# optimum-intel = {version=">=1.20.0", optional=true, extras=["openvino"]}
4444
# onnxruntime-openvino = {version=">=1.19.0", optional=true}

0 commit comments

Comments
 (0)