Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ env:
PIPELINE_USAGE_CUTOFF: 0
SLACK_API_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
CONSOLIDATED_REPORT_PATH: consolidated_test_report.md
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

jobs:
setup_torch_cuda_pipeline_matrix:
Expand Down Expand Up @@ -74,9 +77,9 @@ jobs:
run: nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip install pytest-reportlog
- name: Environment
Expand Down Expand Up @@ -128,9 +131,9 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip install pytest-reportlog
Expand Down Expand Up @@ -196,9 +199,9 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -238,9 +241,9 @@ jobs:
run: nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip install pytest-reportlog
Expand Down Expand Up @@ -289,9 +292,9 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git

Expand Down Expand Up @@ -365,14 +368,14 @@ jobs:
run: nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip install -U ${{ matrix.config.backend }}
if [ "${{ join(matrix.config.additional_deps, ' ') }}" != "" ]; then
uv pip install ${{ join(matrix.config.additional_deps, ' ') }}
fi
uv pip install pytest-reportlog
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -418,10 +421,10 @@ jobs:
run: nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip install -U bitsandbytes optimum_quanto
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip install pytest-reportlog
- name: Environment
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr_modular_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ env:
OMP_NUM_THREADS: 4
MKL_NUM_THREADS: 4
PYTEST_TIMEOUT: 60
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

jobs:
check_code_quality:
Expand Down Expand Up @@ -120,9 +123,9 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps

- name: Environment
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ env:
OMP_NUM_THREADS: 4
MKL_NUM_THREADS: 4
PYTEST_TIMEOUT: 60
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

jobs:
check_code_quality:
Expand Down Expand Up @@ -116,9 +119,9 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps

- name: Environment
Expand Down Expand Up @@ -193,9 +196,9 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down Expand Up @@ -244,13 +247,12 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
# TODO (sayakpaul, DN6): revisit `--no-deps`
uv pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
uv pip install -U tokenizers
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pr_tests_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ env:
HF_XET_HIGH_PERFORMANCE: 1
PYTEST_TIMEOUT: 600
PIPELINE_USAGE_CUTOFF: 1000000000 # set high cutoff so that only always-test pipelines run
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

jobs:
check_code_quality:
Expand Down Expand Up @@ -91,6 +94,7 @@ jobs:
fetch-depth: 2
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
- name: Environment
run: |
Expand Down Expand Up @@ -132,10 +136,10 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down Expand Up @@ -202,11 +206,11 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down Expand Up @@ -267,8 +271,8 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
uv pip install -e ".[quality,training]"

- name: Environment
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/push_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
HF_XET_HIGH_PERFORMANCE: 1
PYTEST_TIMEOUT: 600
PIPELINE_USAGE_CUTOFF: 50000
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

jobs:
setup_torch_cuda_pipeline_matrix:
Expand All @@ -37,6 +40,7 @@ jobs:
fetch-depth: 2
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
- name: Environment
run: |
Expand Down Expand Up @@ -77,10 +81,10 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -129,11 +133,11 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down Expand Up @@ -184,9 +188,9 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -228,6 +232,7 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"
- name: Environment
run: |
Expand Down Expand Up @@ -268,6 +273,7 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"

- name: Environment
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/push_tests_mps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ env:
HF_XET_HIGH_PERFORMANCE: 1
PYTEST_TIMEOUT: 600
RUN_SLOW: no
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -43,12 +46,12 @@ jobs:
- name: Install dependencies
shell: arch -arch arm64 bash {0}
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
${CONDA_RUN} python -m pip install --upgrade pip uv
${CONDA_RUN} python -m uv pip install -e ".[quality]"
${CONDA_RUN} python -m uv pip install torch torchvision torchaudio
${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
${CONDA_RUN} python -m uv pip install transformers --upgrade
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
shell: arch -arch arm64 bash {0}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/release_tests_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ env:
MKL_NUM_THREADS: 8
PYTEST_TIMEOUT: 600
PIPELINE_USAGE_CUTOFF: 50000
# Force tokenizers<0.23.0 across every `uv pip install` in this workflow,
# even when transformers@main declares a higher lower-bound.
UV_OVERRIDE: /tmp/uv-overrides.txt

jobs:
setup_torch_cuda_pipeline_matrix:
Expand All @@ -36,9 +39,9 @@ jobs:
fetch-depth: 2
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -78,10 +81,10 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -130,11 +133,11 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down Expand Up @@ -182,11 +185,11 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality]"
uv pip install peft@git+https://github.com/huggingface/peft.git
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down Expand Up @@ -243,9 +246,9 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -287,9 +290,9 @@ jobs:
nvidia-smi
- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
Expand Down Expand Up @@ -331,9 +334,9 @@ jobs:

- name: Install dependencies
run: |
echo 'tokenizers<0.23.0' > "$UV_OVERRIDE"
uv pip install -e ".[quality,training]"
uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"

- name: Environment
run: |
Expand Down
Loading