Skip to content

Commit 4f54dfc

Browse files
Isotr0pyItzDEXX
authored andcommitted
[Misc] Bump opencv-python dependecy version to 4.13 (vllm-project#32668)
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
1 parent 5ad6e56 commit 4f54dfc

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

requirements/common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pyzmq >= 25.0.0
3232
msgspec
3333
gguf >= 0.17.0
3434
mistral_common[image] >= 1.8.8
35-
opencv-python-headless >= 4.11.0 # required for video IO
35+
opencv-python-headless >= 4.13.0 # required for video IO
3636
pyyaml
3737
six>=1.16.0; python_version > '3.11' # transitive dependency of pandas that needs to be the latest version for python 3.12
3838
setuptools>=77.0.3,<81.0.0; python_version > '3.11' # Setuptools is used by triton, we need to ensure a modern version is installed for 3.12+ so that it does not try to import distutils, which was removed in 3.12

requirements/nightly_torch_test.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ transformers_stream_generator # required for qwen-vl test
2525
matplotlib # required for qwen-vl test
2626
mistral_common[image,audio] >= 1.8.8 # required for voxtral test
2727
num2words # required for smolvlm test
28-
opencv-python-headless >= 4.11.0 # required for video test
28+
opencv-python-headless >= 4.13.0 # required for video test
2929
datamodel_code_generator # required for minicpm3 test
3030
lm-eval[api]>=0.4.9.2 # required for model evaluation test
3131
mteb>=1.38.11, <2 # required for mteb test
@@ -37,8 +37,8 @@ bitsandbytes>=0.46.1
3737
buildkite-test-collector==0.1.9
3838

3939

40-
genai_perf==0.0.8
41-
tritonclient==2.51.0
40+
genai_perf>=0.0.8
41+
tritonclient>=2.51.0
4242

4343
numba == 0.61.2 # Required for N-gram speculative decoding
4444
numpy

requirements/test.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ matplotlib # required for qwen-vl test
3333
mistral_common[image,audio] >= 1.8.8 # required for voxtral test
3434
num2words # required for smolvlm test
3535
open_clip_torch==2.32.0 # Required for nemotron_vl test, Nemotron Parse in test_common.py
36-
opencv-python-headless >= 4.11.0 # required for video test
36+
opencv-python-headless >= 4.13.0 # required for video test
3737
datamodel_code_generator # required for minicpm3 test
3838
lm-eval[api]>=0.4.9.2 # required for model evaluation test
3939
mteb[bm25s]>=2, <3 # required for mteb test
@@ -45,8 +45,8 @@ bitsandbytes==0.46.1
4545
buildkite-test-collector==0.1.9
4646

4747

48-
genai_perf==0.0.8
49-
tritonclient==2.51.0
48+
genai_perf>=0.0.8
49+
tritonclient>=2.51.0
5050

5151
arctic-inference == 0.1.1 # Required for suffix decoding test
5252
numba == 0.61.2 # Required for N-gram speculative decoding

requirements/test.txt

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ albumentations==1.4.6
3131
# -r requirements/test.in
3232
# terratorch
3333
alembic==1.16.4
34-
# via mlflow
34+
# via
35+
# mlflow
36+
# optuna
3537
annotated-doc==0.0.4
3638
# via fastapi
3739
annotated-types==0.7.0
@@ -145,6 +147,8 @@ colorama==0.4.6
145147
# tqdm-multiprocess
146148
colorful==0.5.6
147149
# via ray
150+
colorlog==6.10.1
151+
# via optuna
148152
contourpy==1.3.0
149153
# via matplotlib
150154
coverage==7.10.6
@@ -252,7 +256,7 @@ fsspec==2024.9.0
252256
# torch
253257
ftfy==6.3.1
254258
# via open-clip-torch
255-
genai-perf==0.0.8
259+
genai-perf==0.0.16
256260
# via -r requirements/test.in
257261
genson==1.3.0
258262
# via datamodel-code-generator
@@ -389,6 +393,7 @@ jinja2==3.1.6
389393
# via
390394
# datamodel-code-generator
391395
# flask
396+
# genai-perf
392397
# mlflow
393398
# torch
394399
jiwer==3.0.5
@@ -528,7 +533,7 @@ numba==0.61.2
528533
# librosa
529534
numexpr==2.10.1
530535
# via lm-eval
531-
numpy==1.26.4
536+
numpy==2.2.6
532537
# via
533538
# -r requirements/test.in
534539
# accelerate
@@ -558,6 +563,7 @@ numpy==1.26.4
558563
# numba
559564
# numexpr
560565
# opencv-python-headless
566+
# optuna
561567
# pandas
562568
# patsy
563569
# peft
@@ -637,7 +643,7 @@ opencensus==0.11.4
637643
# via ray
638644
opencensus-context==0.1.3
639645
# via opencensus
640-
opencv-python-headless==4.11.0.86
646+
opencv-python-headless==4.13.0.90
641647
# via
642648
# -r requirements/test.in
643649
# albucore
@@ -660,6 +666,10 @@ opentelemetry-sdk==1.35.0
660666
# ray
661667
opentelemetry-semantic-conventions==0.56b0
662668
# via opentelemetry-sdk
669+
optuna==3.6.1
670+
# via genai-perf
671+
orjson==3.11.5
672+
# via genai-perf
663673
packaging==24.2
664674
# via
665675
# accelerate
@@ -678,6 +688,7 @@ packaging==24.2
678688
# lightning-utilities
679689
# matplotlib
680690
# mlflow-skinny
691+
# optuna
681692
# peft
682693
# plotly
683694
# pooch
@@ -717,6 +728,8 @@ peft==0.16.0
717728
# lm-eval
718729
perceptron==0.1.4
719730
# via -r requirements/test.in
731+
perf-analyzer==0.1.0
732+
# via genai-perf
720733
pillow==10.4.0
721734
# via
722735
# genai-perf
@@ -903,6 +916,7 @@ pyyaml==6.0.2
903916
# lightning
904917
# mlflow-skinny
905918
# omegaconf
919+
# optuna
906920
# peft
907921
# pytorch-lightning
908922
# ray
@@ -1065,6 +1079,7 @@ sortedcontainers==2.4.0
10651079
soundfile==0.12.1
10661080
# via
10671081
# -r requirements/test.in
1082+
# genai-perf
10681083
# librosa
10691084
# mistral-common
10701085
soxr==0.5.0.post1
@@ -1075,6 +1090,7 @@ sqlalchemy==2.0.41
10751090
# via
10761091
# alembic
10771092
# mlflow
1093+
# optuna
10781094
sqlitedict==2.1.0
10791095
# via lm-eval
10801096
sqlparse==0.5.3
@@ -1204,6 +1220,7 @@ tqdm==4.66.6
12041220
# mteb
12051221
# nltk
12061222
# open-clip-torch
1223+
# optuna
12071224
# peft
12081225
# pqdm
12091226
# pretrainedmodels
@@ -1226,10 +1243,8 @@ transformers-stream-generator==0.0.5
12261243
# via -r requirements/test.in
12271244
triton==3.5.1
12281245
# via torch
1229-
tritonclient==2.51.0
1230-
# via
1231-
# -r requirements/test.in
1232-
# genai-perf
1246+
tritonclient==2.64.0
1247+
# via -r requirements/test.in
12331248
typepy==1.3.2
12341249
# via
12351250
# dataproperty

tests/entrypoints/openai/test_translation_validation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,16 @@ async def test_audio_with_max_tokens(mary_had_lamb, client_and_model):
267267
out_tokens = tok(out_text, add_special_tokens=False)["input_ids"]
268268
assert len(out_tokens) == 1
269269
# max_completion_tokens > max_model_len
270+
# max_model_len=32768 for Gemma-3n-E2B-it
270271
transcription = await client.audio.transcriptions.create(
271272
model=model_name,
272273
file=mary_had_lamb,
273274
response_format="text",
274275
temperature=0.0,
275-
extra_body={"max_completion_tokens": int(1e6)},
276+
extra_body={
277+
"max_completion_tokens": int(1e6),
278+
"repetition_penalty": 1.3,
279+
},
276280
)
277281
out = json.loads(transcription)
278282
out_text = out["text"]

0 commit comments

Comments
 (0)