Skip to content

Commit 5af464b

Browse files
committed
Merge remote-tracking branch 'upstream/main' into depth-anything-v2
2 parents 86d3a5c + 74a2074 commit 5af464b

2,138 files changed

Lines changed: 61949 additions & 38854 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.

‎.circleci/config.yml‎

Lines changed: 14 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# Ensure running with CircleCI/huggingface
1313
check_circleci_user:
1414
docker:
15-
- image: cimg/python:3.8.12
15+
- image: python:3.10-slim
1616
parallelism: 1
1717
steps:
1818
- run: echo $CIRCLE_PROJECT_USERNAME
@@ -26,13 +26,12 @@ jobs:
2626
fetch_tests:
2727
working_directory: ~/transformers
2828
docker:
29-
- image: cimg/python:3.8.12
29+
- image: huggingface/transformers-quality
3030
parallelism: 1
3131
steps:
3232
- checkout
33-
- run: pip install --upgrade --upgrade-strategy eager pip
34-
- run: pip install -U --upgrade-strategy eager GitPython
35-
- run: pip install -U --upgrade-strategy eager .
33+
- run: uv pip install -U -e .
34+
- run: echo 'export "GIT_COMMIT_MESSAGE=$(git show -s --format=%s)"' >> "$BASH_ENV" && source "$BASH_ENV"
3635
- run: mkdir -p test_preparation
3736
- run: python utils/tests_fetcher.py | tee tests_fetched_summary.txt
3837
- store_artifacts:
@@ -82,31 +81,28 @@ jobs:
8281
path: ~/transformers/test_preparation/filtered_test_list.txt
8382
- store_artifacts:
8483
path: test_preparation/examples_test_list.txt
85-
- run: python .circleci/create_circleci_config.py --fetcher_folder test_preparation
84+
- run: export "GIT_COMMIT_MESSAGE=$(git show -s --format=%s)" && echo $GIT_COMMIT_MESSAGE && python .circleci/create_circleci_config.py --fetcher_folder test_preparation
8685
- run: |
8786
if [ ! -s test_preparation/generated_config.yml ]; then
8887
echo "No tests to run, exiting early!"
8988
circleci-agent step halt
9089
fi
91-
- run: cp test_preparation/generated_config.yml test_preparation/generated_config.txt
9290
- store_artifacts:
93-
path: test_preparation/generated_config.txt
91+
path: test_preparation/generated_config.yml
9492
- store_artifacts:
95-
path: test_preparation/filtered_test_list_cross_tests.txt
93+
path: test_preparation/filtered_test_list_cross_tests.txt
9694
- continuation/continue:
97-
configuration_path: test_preparation/generated_config.yml
95+
configuration_path: test_preparation/generated_config.yml
9896

9997
# To run all tests for the nightly build
10098
fetch_all_tests:
10199
working_directory: ~/transformers
102100
docker:
103-
- image: cimg/python:3.8.12
101+
- image: huggingface/transformers-quality
104102
parallelism: 1
105103
steps:
106104
- checkout
107-
- run: pip install --upgrade --upgrade-strategy eager pip
108-
- run: pip install -U --upgrade-strategy eager GitPython
109-
- run: pip install -U --upgrade-strategy eager .
105+
- run: uv pip install -e .
110106
- run: |
111107
mkdir test_preparation
112108
echo -n "tests" > test_preparation/test_list.txt
@@ -126,32 +122,15 @@ jobs:
126122
check_code_quality:
127123
working_directory: ~/transformers
128124
docker:
129-
- image: cimg/python:3.8.12
125+
- image: huggingface/transformers-quality
130126
resource_class: large
131127
environment:
132128
TRANSFORMERS_IS_CI: yes
133129
PYTEST_TIMEOUT: 120
134130
parallelism: 1
135131
steps:
136132
- checkout
137-
- restore_cache:
138-
keys:
139-
- v0.7-code_quality-pip-{{ checksum "setup.py" }}
140-
- v0.7-code-quality-pip
141-
- restore_cache:
142-
keys:
143-
- v0.7-code_quality-site-packages-{{ checksum "setup.py" }}
144-
- v0.7-code-quality-site-packages
145-
- run: pip install --upgrade --upgrade-strategy eager pip
146-
- run: pip install -U --upgrade-strategy eager .[all,quality]
147-
- save_cache:
148-
key: v0.7-code_quality-pip-{{ checksum "setup.py" }}
149-
paths:
150-
- '~/.cache/pip'
151-
- save_cache:
152-
key: v0.7-code_quality-site-packages-{{ checksum "setup.py" }}
153-
paths:
154-
- '~/.pyenv/versions/'
133+
- run: uv pip install -e .
155134
- run:
156135
name: Show installed libraries and their versions
157136
command: pip freeze | tee installed.txt
@@ -167,32 +146,15 @@ jobs:
167146
check_repository_consistency:
168147
working_directory: ~/transformers
169148
docker:
170-
- image: cimg/python:3.8.12
149+
- image: huggingface/transformers-consistency
171150
resource_class: large
172151
environment:
173152
TRANSFORMERS_IS_CI: yes
174153
PYTEST_TIMEOUT: 120
175154
parallelism: 1
176155
steps:
177156
- checkout
178-
- restore_cache:
179-
keys:
180-
- v0.7-repository_consistency-pip-{{ checksum "setup.py" }}
181-
- v0.7-repository_consistency-pip
182-
- restore_cache:
183-
keys:
184-
- v0.7-repository_consistency-site-packages-{{ checksum "setup.py" }}
185-
- v0.7-repository_consistency-site-packages
186-
- run: pip install --upgrade --upgrade-strategy eager pip
187-
- run: pip install -U --upgrade-strategy eager .[all,quality]
188-
- save_cache:
189-
key: v0.7-repository_consistency-pip-{{ checksum "setup.py" }}
190-
paths:
191-
- '~/.cache/pip'
192-
- save_cache:
193-
key: v0.7-repository_consistency-site-packages-{{ checksum "setup.py" }}
194-
paths:
195-
- '~/.pyenv/versions/'
157+
- run: uv pip install -e .
196158
- run:
197159
name: Show installed libraries and their versions
198160
command: pip freeze | tee installed.txt

0 commit comments

Comments
 (0)