Skip to content

Commit b8c3dff

Browse files
authored
Merge branch 'main' into fix-cross-attention-cache-not-sliding
2 parents b1b7f06 + c472755 commit b8c3dff

220 files changed

Lines changed: 7776 additions & 2033 deletions

File tree

Some content is hidden

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

.github/workflows/build_documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
14+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@2430c1ec91d04667414e2fa31ecfc36c153ea391 # main
1515
with:
1616
commit_sha: ${{ github.sha }}
1717
package: transformers
@@ -23,7 +23,7 @@ jobs:
2323
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
2424

2525
build_other_lang:
26-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
26+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@2430c1ec91d04667414e2fa31ecfc36c153ea391 # main
2727
with:
2828
commit_sha: ${{ github.sha }}
2929
package: transformers

.github/workflows/check_failed_tests.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
n_runners: ${{ steps.set-matrix.outputs.n_runners }}
5656
process: ${{ steps.set-matrix.outputs.process }}
5757
steps:
58-
- uses: actions/download-artifact@v4
58+
- uses: actions/download-artifact@v8
5959
continue-on-error: true
6060
with:
6161
name: ci_results_${{ inputs.job }}
@@ -127,12 +127,14 @@ jobs:
127127
image: ${{ inputs.docker }}
128128
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
129129
steps:
130-
- uses: actions/download-artifact@v4
130+
- uses: actions/download-artifact@v8
131131
with:
132132
name: ci_results_${{ inputs.job }}
133133
path: /transformers/ci_results_${{ inputs.job }}
134134

135-
- uses: actions/download-artifact@v4
135+
- uses: actions/download-artifact@v8
136+
env:
137+
ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT: 2000
136138
with:
137139
pattern: setup_values*
138140
path: setup_values
@@ -255,12 +257,14 @@ jobs:
255257
image: ${{ inputs.docker }}
256258
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
257259
steps:
258-
- uses: actions/download-artifact@v4
260+
- uses: actions/download-artifact@v8
259261
with:
260262
name: ci_results_${{ inputs.job }}
261263
path: /transformers/ci_results_${{ inputs.job }}
262264

263-
- uses: actions/download-artifact@v4
265+
- uses: actions/download-artifact@v8
266+
env:
267+
ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT: 2000
264268
with:
265269
pattern: new_failures_with_bad_commit_${{ inputs.job }}*
266270
path: /transformers/new_failures_with_bad_commit_${{ inputs.job }}

.github/workflows/self-scheduled.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,9 @@ jobs:
601601
- name: Create output directory
602602
run: mkdir warnings_in_ci
603603

604-
- uses: actions/download-artifact@v4
604+
- uses: actions/download-artifact@v8
605+
env:
606+
ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT: 2000
605607
with:
606608
path: warnings_in_ci
607609

.github/workflows/slack-report.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ jobs:
5555
# Security: checkout to the `main` branch for untrusted triggers (issue_comment, pull_request_target), otherwise use the specified ref
5656
ref: ${{ (github.event_name == 'issue_comment' || github.event_name == 'pull_request_target') && 'main' || (inputs.commit_sha || github.sha) }}
5757

58-
- uses: actions/download-artifact@v4
58+
- uses: actions/download-artifact@v8
59+
env:
60+
ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT: 2000
5961

6062
- name: Prepare some setup values
6163
run: |

docker/consistency.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG REF=main
55
RUN apt-get update && apt-get install -y time git g++ pkg-config make git-lfs
66
ENV UV_PYTHON=/usr/local/bin/python
77
RUN pip install uv && uv pip install --no-cache-dir -U pip setuptools GitPython
8-
RUN uv pip install --no-cache-dir --upgrade 'torch<=2.10.0' 'torchaudio' 'torchvision' --index-url https://download.pytorch.org/whl/cpu
8+
RUN uv pip install --no-cache-dir --upgrade 'torch<=2.11.0' 'torchaudio' 'torchvision' --index-url https://download.pytorch.org/whl/cpu
99
RUN uv pip install --no-cache-dir pypi-kenlm
1010
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[quality,testing,torch-speech,vision]"
1111
RUN git lfs install

docker/custom-tokenizers.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN make install -j 10
1717

1818
WORKDIR /
1919

20-
RUN uv pip install --no-cache --upgrade 'torch<=2.10.0' --index-url https://download.pytorch.org/whl/cpu
20+
RUN uv pip install --no-cache --upgrade 'torch<=2.11.0' --index-url https://download.pytorch.org/whl/cpu
2121
RUN uv pip install --no-cache-dir --no-deps accelerate --extra-index-url https://download.pytorch.org/whl/cpu
2222
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[ja,testing,sentencepiece,spacy,rjieba]" unidic unidic-lite
2323
# spacy is not used so not tested. Causes to failures. TODO fix later

docker/examples-torch.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ USER root
55
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake pkg-config openssh-client git-lfs ffmpeg curl
66
ENV UV_PYTHON=/usr/local/bin/python
77
RUN pip --no-cache-dir install uv && uv pip install --no-cache-dir -U pip setuptools
8-
RUN uv pip install --no-cache-dir 'torch<=2.10.0' 'torchaudio' 'torchvision' 'torchcodec<=0.10.0' --index-url https://download.pytorch.org/whl/cpu
8+
RUN uv pip install --no-cache-dir 'torch<=2.11.0' 'torchaudio' 'torchvision' 'torchcodec<=0.11.0' --index-url https://download.pytorch.org/whl/cpu
99
RUN uv pip install --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu
1010
RUN uv pip install --no-cache-dir librosa "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[sklearn,sentencepiece,vision,testing]" seqeval albumentations jiwer
1111

docker/exotic-models.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ USER root
55
RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git libgl1 g++ tesseract-ocr git-lfs curl
66
ENV UV_PYTHON=/usr/local/bin/python
77
RUN pip --no-cache-dir install uv && uv pip install --no-cache-dir -U pip setuptools
8-
RUN uv pip install --no-cache-dir 'torch<=2.10.0' 'torchaudio' 'torchvision' --index-url https://download.pytorch.org/whl/cpu
8+
RUN uv pip install --no-cache-dir 'torch<=2.11.0' 'torchaudio' 'torchvision' --index-url https://download.pytorch.org/whl/cpu
99
RUN uv pip install --no-cache-dir --no-deps timm accelerate
1010
RUN uv pip install -U --no-cache-dir pytesseract python-Levenshtein opencv-python nltk
1111
# RUN uv pip install --no-cache-dir natten==0.15.1+torch210cpu -f https://shi-labs.com/natten/wheels

docker/pipeline-torch.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ USER root
55
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git pkg-config openssh-client git ffmpeg curl
66
ENV UV_PYTHON=/usr/local/bin/python
77
RUN pip --no-cache-dir install uv && uv pip install --no-cache-dir -U pip setuptools
8-
RUN uv pip install --no-cache-dir 'torch<=2.10.0' 'torchaudio' 'torchvision' 'torchcodec<=0.10.0' --index-url https://download.pytorch.org/whl/cpu
8+
RUN uv pip install --no-cache-dir 'torch<=2.11.0' 'torchaudio' 'torchvision' 'torchcodec<=0.11.0' --index-url https://download.pytorch.org/whl/cpu
99
RUN uv pip install --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu
1010
RUN uv pip install --no-cache-dir librosa "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[sklearn,sentencepiece,vision,testing]"
1111

docker/torch-light.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ USER root
55
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ cmake pkg-config openssh-client git-lfs ffmpeg curl
66
ENV UV_PYTHON=/usr/local/bin/python
77
RUN pip --no-cache-dir install uv && uv pip install --no-cache-dir -U pip setuptools
8-
RUN uv pip install --no-cache-dir 'torch<=2.10.0' 'torchaudio' 'torchvision' 'torchcodec<=0.10.0' --index-url https://download.pytorch.org/whl/cpu
8+
RUN uv pip install --no-cache-dir 'torch<=2.11.0' 'torchaudio' 'torchvision' 'torchcodec<=0.11.0' --index-url https://download.pytorch.org/whl/cpu
99
RUN uv pip install --no-deps timm accelerate --extra-index-url https://download.pytorch.org/whl/cpu
1010
RUN uv pip install --no-cache-dir librosa "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[sklearn,sentencepiece,vision,testing,tiktoken,num2words,video]"
1111

0 commit comments

Comments
 (0)