Skip to content

Commit ea46c8a

Browse files
authored
Merge branch 'master' into onednn_kv_cache_compression
2 parents 5df2d53 + 5a490f6 commit ea46c8a

File tree

12,906 files changed

+107919
-245324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,906 files changed

+107919
-245324
lines changed

.github/actions/handle_docker/get_images_to_build.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def main():
6464
expected_tag = f'pr-{args.pr}'
6565

6666
if head_tag != expected_tag:
67-
logger.error(f"Please update docker tag in {args.head_tag_file} to {expected_tag}")
67+
logger.error(f"Some of your changes affected Docker environment for CI. "
68+
f"Please update docker tag in {args.head_tag_file} to {expected_tag}. "
69+
f"For more details please see "
70+
f"https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/ci/github_actions/docker_images.md")
6871
sys.exit(1)
6972

7073
elif merge_queue_target_branch:

.github/actions/setup_python/action.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ inputs:
2222
runs:
2323
using: 'composite'
2424
steps:
25-
2625
- name: Check if Python is already installed (Linux)
2726
if: ${{ runner.os == 'Linux' }}
2827
shell: bash
@@ -54,13 +53,11 @@ runs:
5453
with:
5554
python-version: ${{ inputs.version }}
5655

57-
- if: ${{ runner.os == 'macOS' || runner.os == 'Windows' || (runner.os == 'Linux' && runner.arch != 'ARM64' && steps.check_python.outputs.installed == 'false' ) }}
56+
- if: ${{ runner.os == 'macOS' || runner.os == 'Windows' || (runner.os == 'Linux' && runner.arch != 'ARM64' && steps.check_python.outputs.installed == 'false') }}
5857
name: Setup Python ${{ inputs.version }}
5958
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
6059
with:
6160
python-version: ${{ inputs.version }}
62-
env:
63-
PIP_CACHE_DIR: ${{ inputs.self-hosted-runner == 'true' && inputs.pip-cache-path || '' }}
6461

6562
- if: ${{ inputs.should-setup-pip-paths == 'true' && runner.os != 'Windows' }}
6663
name: Setup pip variables (cache and install path)
@@ -82,9 +79,4 @@ runs:
8279
- if: ${{ inputs.show-cache-info == 'true' }}
8380
name: Get pip cache info
8481
shell: bash
85-
run: |
86-
echo "Cache size: "
87-
du -h -d2 ${{ env.PIP_CACHE_DIR }}
88-
echo "Cache info: "
89-
python3 -m pip cache info
90-
continue-on-error: true
82+
run: python3 -m pip cache info

.github/components.yml

+8-15
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ IR_FE:
110110

111111
ONNX_FE:
112112
revalidate:
113-
- MO
114113
- OVC
115114
- ONNX_RT
116115
build:
@@ -119,15 +118,13 @@ ONNX_FE:
119118

120119
PDPD_FE:
121120
revalidate:
122-
- MO
123121
- OVC
124122
build:
125123
- CPU
126124
- Python_API
127125

128126
TF_FE:
129127
revalidate:
130-
- MO
131128
- OVC
132129
build:
133130
- CPU
@@ -136,23 +133,21 @@ TF_FE:
136133

137134
TFL_FE:
138135
revalidate:
139-
- MO
140136
- OVC
141137
build:
142138
- CPU
143139
- Python_API
144140

145141
PyTorch_FE:
146142
revalidate:
147-
- MO
148143
- OVC
149144
build:
150145
- CPU
151146
- Python_API
147+
- TOKENIZERS # PyTorch_FE tests depend on tokenizers build
152148

153149
JAX_FE:
154150
revalidate:
155-
- MO
156151
- OVC
157152
build:
158153
- CPU
@@ -170,10 +165,10 @@ C_API:
170165
Python_API:
171166
revalidate:
172167
- samples
173-
- MO
174168
- OVC
175169
- tools
176170
- TF_FE
171+
- docs_snippets
177172
build:
178173
- CPU
179174
- HETERO
@@ -226,14 +221,6 @@ OVC:
226221
- Python_API
227222
- TOKENIZERS # TF_FE tests depends on tokenizers build
228223

229-
MO:
230-
revalidate:
231-
- PyTorch_FE
232-
- TF_FE
233-
build:
234-
- Python_API
235-
- TOKENIZERS # TF_FE tests depends on tokenizers build
236-
237224
tools:
238225
build:
239226
- CPU
@@ -242,6 +229,12 @@ tools:
242229
docs:
243230
revalidate: []
244231
build: []
232+
233+
docs_snippets:
234+
revalidate:
235+
- docs_snippets
236+
build:
237+
- Python_API
245238

246239
licensing:
247240
revalidate: []

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,18 @@ updates:
141141
- "mryzhov"
142142
- "ilya-lavrenov"
143143
open-pull-requests-limit: 3
144+
145+
# Docker images
146+
- package-ecosystem: docker
147+
directory: "/"
148+
schedule:
149+
interval: "daily"
150+
time: "09:00"
151+
timezone: "Asia/Dubai"
152+
allow:
153+
- dependency-type: "direct"
154+
assignees:
155+
- "akashchi"
156+
- "mryzhov"
157+
- "ilya-lavrenov"
158+
open-pull-requests-limit: 3

.github/dockerfiles/docker_tag

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pr-27430
1+
pr-28380

.github/dockerfiles/ov_build/fedora_29/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ FROM ${REGISTRY}/library/fedora:29
33

44
USER root
55

6-
RUN yum update -y && yum install -y \
6+
# dnf configuration
7+
RUN echo "timeout=60" >> /etc/dnf/dnf.conf && \
8+
echo "retries=10" >> /etc/dnf/dnf.conf
9+
10+
RUN dnf update -y && dnf install -y \
711
git \
812
curl \
913
python3 \

.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ RUN echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricte
6262

6363
RUN dpkg --add-architecture riscv64 && \
6464
apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list && \
65-
apt-get install -y --no-install-recommends libpython3-dev:riscv64
65+
apt-get install -y --no-install-recommends libpython3-dev:riscv64 && \
66+
apt-get install libgomp1:riscv64 && \
67+
apt-get install libatomic1:riscv64
6668

6769
# Setup pip
6870
ENV PIP_VERSION="24.0"
6971
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
7072
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
7173
rm -f get-pip.py
74+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
ARG REGISTRY="docker.io"
2+
FROM ${REGISTRY}/library/ubuntu:22.04
3+
4+
USER root
5+
6+
# APT configuration
7+
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
8+
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
9+
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
10+
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
11+
12+
ENV DEBIAN_FRONTEND="noninteractive" \
13+
TZ="Europe/London"
14+
15+
RUN apt-get update && \
16+
apt-get install software-properties-common && \
17+
add-apt-repository --yes --no-update ppa:git-core/ppa && \
18+
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \
19+
apt-get update && \
20+
# install compilers to build OpenVINO for RISC-V 64
21+
apt-get install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu && \
22+
apt-get install \
23+
curl \
24+
git \
25+
cmake \
26+
ccache \
27+
ninja-build \
28+
fdupes \
29+
patchelf \
30+
ca-certificates \
31+
gpg-agent \
32+
tzdata \
33+
# parallel gzip
34+
pigz \
35+
# Python \
36+
python3-dev \
37+
python3-pip \
38+
python3-venv \
39+
python3-distutils \
40+
# Compilers
41+
gcc \
42+
g++ \
43+
# xuantie-gnu-toolchain build dependencies
44+
autoconf \
45+
automake \
46+
autotools-dev \
47+
libmpc-dev \
48+
libmpfr-dev\
49+
libgmp-dev \
50+
gawk \
51+
build-essential \
52+
bison \
53+
flex \
54+
texinfo \
55+
gperf \
56+
libtool \
57+
patchutils \
58+
bc \
59+
zlib1g-dev \
60+
libexpat-dev \
61+
&& \
62+
rm -rf /var/lib/apt/lists/*
63+
64+
# Install RISC-V native debian packages
65+
RUN echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted > riscv64-sources.list && \
66+
echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted >> riscv64-sources.list && \
67+
echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy universe >> riscv64-sources.list && \
68+
echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates universe >> riscv64-sources.list && \
69+
echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy multiverse >> riscv64-sources.list && \
70+
echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse >> riscv64-sources.list && \
71+
echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse >> riscv64-sources.list && \
72+
echo deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security main restricted >> riscv64-sources.list && \
73+
echo deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security universe >> riscv64-sources.list && \
74+
echo deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security multiverse >> riscv64-sources.list && \
75+
echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy main >> riscv64-sources.list && \
76+
echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy universe >> riscv64-sources.list && \
77+
echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main >> riscv64-sources.list && \
78+
echo deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main >> riscv64-sources.list && \
79+
mv riscv64-sources.list /etc/apt/sources.list.d/
80+
81+
RUN dpkg --add-architecture riscv64 && \
82+
apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list && \
83+
apt-get install -y --no-install-recommends libpython3-dev:riscv64
84+
85+
# build xuintie toolchain
86+
ARG XUANTIE_VERSION="V2.8.1"
87+
ARG XUANTIE_REPO="https://github.com/XUANTIE-RV/xuantie-gnu-toolchain"
88+
ARG XUINTIE_PATH="/opt/riscv"
89+
ARG XUINTIE_TMP_PATH="/tmp/xuantie"
90+
ARG XUINTIE_SRC="/tmp/xuantie/src"
91+
92+
RUN mkdir -p ${XUINTIE_TMP_PATH} && cd ${XUINTIE_TMP_PATH} && \
93+
git clone --branch ${XUANTIE_VERSION} --depth 1 ${XUANTIE_REPO} ${XUINTIE_SRC} && cd ${XUINTIE_SRC} && \
94+
./configure --prefix=${XUINTIE_PATH} --disable-gdb && \
95+
make linux -j$(nproc) && make install && \
96+
rm -rf ${XUINTIE_TMP_PATH}
97+
98+
# Setup pip
99+
ENV PIP_VERSION="24.0"
100+
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
101+
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
102+
rm -f get-pip.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
ARG REGISTRY="docker.io"
2+
FROM ${REGISTRY}/library/debian:10.13
3+
4+
USER root
5+
6+
# APT configuration
7+
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \
8+
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \
9+
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \
10+
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf
11+
12+
ENV DEBIAN_FRONTEND="noninteractive" \
13+
TZ="Europe/London"
14+
15+
RUN apt-get update && \
16+
apt-get install \
17+
git \
18+
libc6-dev \
19+
# parallel gzip
20+
pigz \
21+
# Python
22+
python3 \
23+
python3-pip \
24+
python3-dev \
25+
python3-venv \
26+
python3-distutils \
27+
# To build Python 3.10 from source
28+
build-essential \
29+
libffi-dev \
30+
libgdbm-dev \
31+
libc6-dev \
32+
libssl-dev \
33+
zlib1g-dev \
34+
libbz2-dev \
35+
libreadline-dev \
36+
libsqlite3-dev \
37+
libncurses5-dev \
38+
libncursesw5-dev \
39+
xz-utils \
40+
tk-dev \
41+
libxml2-dev \
42+
libxmlsec1-dev \
43+
liblzma-dev \
44+
wget \
45+
curl \
46+
&& \
47+
rm -rf /var/lib/apt/lists/*
48+
49+
# Install openvino dependencies
50+
ADD scripts/install_dependencies/install_openvino_dependencies.sh /install_openvino_dependencies.sh
51+
RUN chmod +x /install_openvino_dependencies.sh && \
52+
/install_openvino_dependencies.sh && \
53+
rm -rf /var/lib/apt/lists/*
54+
55+
# Setup Python 3.10
56+
RUN wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tar.xz
57+
58+
RUN tar -xf Python-3.10.9.tar.xz && \
59+
cd Python-3.10.9 && \
60+
./configure --enable-optimizations && \
61+
make -j 8 && \
62+
make altinstall
63+
64+
# Setup pip
65+
ENV PIP_VERSION="24.0"
66+
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
67+
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
68+
rm -f get-pip.py
69+
70+
# Use Python 3.10 as default instead of Python 3.7
71+
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build
72+
RUN python3.10 -m venv venv
73+
ENV PATH="/venv/bin:$PATH"
74+
75+
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}
76+
ENV PIP_INSTALL_PATH=/venv/lib/python3.10/site-packages

.github/dockerfiles/ov_test/fedora_33/Dockerfile

+12-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ FROM ${REGISTRY}/library/fedora:33
33

44
USER root
55

6-
RUN yum update -y && yum install -y \
6+
# dnf configuration
7+
RUN echo "timeout=60" >> /etc/dnf/dnf.conf && \
8+
echo "retries=10" >> /etc/dnf/dnf.conf
9+
10+
RUN dnf update -y && dnf install -y \
711
git \
812
curl \
9-
python3
13+
python3 \
14+
findutils \
15+
ocl-icd \
16+
ocl-icd-devel \
17+
# parallel gzip
18+
pigz \
19+
xz
1020

1121
# Install Node
1222
ENV NODE_VERSION=21.7.3

0 commit comments

Comments
 (0)