Skip to content

Commit 0948c53

Browse files
Update transformers and other dependencies versions to address security vulnerability (openvinotoolkit#206)
* Update Transformer version in requirements.txt Update Transformer version to address vulnerability. * Fix for Vulnerability issue
1 parent c42782e commit 0948c53

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

ai_ref_kits/conversational_ai_chatbot/requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
22

33
openvino==2024.6.0
4-
optimum-intel==1.21.0
5-
optimum==1.23.3
6-
nncf==2.14.1
4+
optimum-intel==1.22.0
5+
optimum==1.24.0
6+
nncf==2.15.0
77

88
llama-index==0.12.9
99
llama-index-llms-openvino==0.4.0
@@ -19,7 +19,7 @@ torch==2.5.1
1919
torchaudio==2.5.1
2020
numpy==1.26.4
2121

22-
transformers==4.46.3
22+
transformers==4.48.3
2323
librosa==0.10.2
2424
pyyaml==6.0.1
2525
pymupdf==1.24.10

ai_ref_kits/custom_ai_assistant/convert_and_optimize_chat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def convert_chat_model(model_type: str, precision: str, model_dir: Path) -> Path
4242
# create a quantizer
4343
quantizer = OVQuantizer.from_pretrained(model, task="text-generation")
4444
# quantize weights and save the model to the output dir
45-
quantizer.quantize(save_directory=output_dir, weights_only=True, ov_config=config)
45+
quantizer.quantize(save_directory=output_dir, ov_config=config)
4646
else:
4747
output_dir = output_dir.with_name(output_dir.name + "-FP16")
4848
# save converted model
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
22

33
openvino==2024.6.0
4-
optimum-intel==1.21.0
5-
optimum==1.23.3
6-
nncf==2.14.1
4+
optimum-intel==1.22.0
5+
optimum==1.24.0
6+
nncf==2.15.0
77

88
onnx==1.17.0
99
onnxruntime==1.20.1
1010
torch==2.5.1
1111

12-
transformers==4.46.3
12+
transformers==4.48.3
1313
librosa==0.10.2
1414

1515
gradio==5.12.0
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
22

33
openvino-tokenizers==2024.6.0
4-
optimum-intel==1.21.0
4+
optimum-intel==1.22.0
55
numpy==1.26.4
66
einops==0.8.0 # For Qwen
77
transformers_stream_generator==0.0.5 # For Qwen
88
diffusers==0.31.0 # For image generation pipelines
99
timm==1.0.11 # For exporting InternVL2
1010
torchvision==0.20.1 # For visual language models
11-
transformers==4.46.3 # For Whisper
12-
nncf==2.14.1
11+
transformers==4.48.3 # For Whisper
12+
nncf==2.15.0
1313
accelerate==1.3.0
1414
huggingface_hub==0.28.0
1515
opencv-python==4.11.0.86
@@ -20,4 +20,4 @@ openvino_genai==2024.6.0
2020
sherpa-onnx==1.10.41
2121
sounddevice==0.5.1
2222
# for the UI
23-
PySide6==6.8.1
23+
PySide6==6.8.1

demos/paint_your_dreams_demo/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
openvino==2025.0
44
openvino-genai==2025.0
5-
optimum-intel==1.21.0
6-
optimum==1.23.3
5+
optimum-intel==1.22.0
6+
optimum==1.24.0
77
onnx==1.17.0
88
huggingface-hub==0.27.0
99
diffusers==0.32.1
10-
transformers==4.46.3
10+
transformers==4.48.3
1111
torch==2.5.1
1212
accelerate==1.2.1
1313
pillow==11.1.0

demos/virtual_ai_assistant_demo/requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
22

33
openvino==2025.0
4-
optimum-intel==1.21.0
5-
optimum==1.23.3
6-
nncf==2.14.1
4+
optimum-intel==1.22.0
5+
optimum==1.24.0
6+
nncf==2.15.0
77

88
llama-index==0.12.9
99
llama-index-llms-openvino==0.4.0
@@ -17,7 +17,7 @@ onnx==1.17.0
1717
onnxruntime==1.20.1
1818
torch==2.5.1
1919

20-
transformers==4.46.3
20+
transformers==4.48.3
2121
pymupdf==1.24.10
2222
pyyaml==6.0.1
2323

workshops/accelerating_inference_with_openvino_and_pytorch/torch_compile/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ accelerate==1.0.1
44
diffusers==0.31.0
55
ipywidgets==8.1.5
66
torch==2.4.1
7-
transformers==4.46.1
7+
transformers==4.48.3
88
jupyterlab==4.2.5
99
urllib3==2.2.3
1010
torchvision==0.19.1

0 commit comments

Comments
 (0)