Skip to content

Commit 68c570d

Browse files
authored
Revert "sync main (#8)" (#10)
This reverts commit f0dd9a5.
1 parent f0dd9a5 commit 68c570d

File tree

2,751 files changed

+80049
-211498
lines changed

Some content is hidden

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

2,751 files changed

+80049
-211498
lines changed

.circleci/create_circleci_config.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ def __post_init__(self):
109109
self.docker_image[0]["image"] = f"{self.docker_image[0]['image']}:dev"
110110
print(f"Using {self.docker_image} docker image")
111111
if self.install_steps is None:
112-
self.install_steps = ["uv pip install ."]
113-
# Use a custom patched pytest to force exit the process at the end, to avoid `Too long with no output (exceeded 10m0s): context deadline exceeded`
114-
self.install_steps.append("uv pip install git+https://github.com/ydshieh/[email protected]")
112+
self.install_steps = ["uv venv && uv pip install ."]
115113
if self.pytest_options is None:
116114
self.pytest_options = {}
117115
if isinstance(self.tests_to_run, str):
@@ -215,7 +213,7 @@ def job_name(self):
215213
docker_image=[{"image": "huggingface/transformers-torch-light"}],
216214
# networkx==3.3 (after #36957) cause some issues
217215
# TODO: remove this once it works directly
218-
install_steps=["uv pip install ."],
216+
install_steps=["uv venv && uv pip install ."],
219217
marker="generate",
220218
parallelism=6,
221219
)
@@ -252,7 +250,7 @@ def job_name(self):
252250
additional_env={"OMP_NUM_THREADS": 8},
253251
docker_image=[{"image":"huggingface/transformers-examples-torch"}],
254252
# TODO @ArthurZucker remove this once docker is easier to build
255-
install_steps=["uv pip install . && uv pip install -r examples/pytorch/_tests_requirements.txt"],
253+
install_steps=["uv venv && uv pip install . && uv pip install -r examples/pytorch/_tests_requirements.txt"],
256254
pytest_num_workers=4,
257255
)
258256

@@ -261,7 +259,7 @@ def job_name(self):
261259
additional_env={"HUGGINGFACE_CO_STAGING": True},
262260
docker_image=[{"image":"huggingface/transformers-torch-light"}],
263261
install_steps=[
264-
'uv pip install .',
262+
'uv venv && uv pip install .',
265263
'git config --global user.email "[email protected]"',
266264
'git config --global user.name "ci"',
267265
],
@@ -275,6 +273,7 @@ def job_name(self):
275273
"onnx",
276274
docker_image=[{"image":"huggingface/transformers-torch-tf-light"}],
277275
install_steps=[
276+
"uv venv",
278277
"uv pip install .[testing,sentencepiece,onnxruntime,vision,rjieba]",
279278
],
280279
pytest_options={"k onnx": None},
@@ -304,7 +303,7 @@ def job_name(self):
304303
docker_image=[{"image": "huggingface/transformers-torch-light"}],
305304
# networkx==3.3 (after #36957) cause some issues
306305
# TODO: remove this once it works directly
307-
install_steps=["uv pip install .[serving]"],
306+
install_steps=["uv venv && uv pip install ."],
308307
marker="not generate",
309308
parallelism=6,
310309
)
@@ -322,7 +321,7 @@ def job_name(self):
322321
additional_env={"TRANSFORMERS_VERBOSITY": "error", "DATASETS_VERBOSITY": "error", "SKIP_CUDA_DOCTEST": "1"},
323322
install_steps=[
324323
# Add an empty file to keep the test step running correctly even no file is selected to be tested.
325-
"uv pip install .",
324+
"uv venv && pip install .",
326325
"touch dummy.py",
327326
command,
328327
"cat pr_documentation_tests_temp.txt",

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Run database init script
5050
run: |
51-
psql -f benchmark/utils/init_db.sql
51+
psql -f benchmark/init_db.sql
5252
env:
5353
PGDATABASE: metrics
5454
PGHOST: ${{ secrets.TRANSFORMERS_BENCHMARKS_PGHOST }}

.github/workflows/check_failed_tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ on:
2121
report_repo_id:
2222
required: true
2323
type: string
24-
commit_sha:
25-
required: false
26-
type: string
2724

2825

2926
env:
@@ -44,7 +41,7 @@ jobs:
4441
check_new_failures:
4542
name: " "
4643
runs-on:
47-
group: aws-g5-4xlarge-cache
44+
group: aws-g4dn-4xlarge-cache
4845
container:
4946
image: ${{ inputs.docker }}
5047
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
@@ -90,7 +87,7 @@ jobs:
9087
- name: Update clone
9188
working-directory: /transformers
9289
if: ${{ env.process == 'true' }}
93-
run: git fetch && git checkout ${{ inputs.commit_sha || github.sha }}
90+
run: git fetch && git checkout ${{ github.sha }}
9491

9592
- name: Get target commit
9693
working-directory: /transformers/utils

.github/workflows/collated-reports.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/doctest_job.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
matrix:
2929
split_keys: ${{ fromJson(inputs.split_keys) }}
3030
runs-on:
31-
group: aws-g5-4xlarge-cache
31+
group: aws-g4dn-4xlarge-cache
3232
container:
3333
image: huggingface/transformers-all-latest-gpu
34-
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
34+
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
3535
steps:
3636
- name: Update clone
3737
working-directory: /transformers

.github/workflows/doctests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
setup:
1616
name: Setup
1717
runs-on:
18-
group: aws-g5-4xlarge-cache
18+
group: aws-g4dn-4xlarge-cache
1919
container:
2020
image: huggingface/transformers-all-latest-gpu
21-
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
21+
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
2222
outputs:
2323
job_splits: ${{ steps.set-matrix.outputs.job_splits }}
2424
split_keys: ${{ steps.set-matrix.outputs.split_keys }}

.github/workflows/get-pr-info.yml

Lines changed: 0 additions & 157 deletions
This file was deleted.

.github/workflows/get-pr-number.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)