Skip to content

Commit f4a91d0

Browse files
authored
Merge branch 'main' into ko-models.md
2 parents ff6d0a3 + 95faabf commit f4a91d0

File tree

965 files changed

+34561
-14950
lines changed

Some content is hidden

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

965 files changed

+34561
-14950
lines changed

.github/workflows/self-comment-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-22.04
3030
name: Get PR number
3131
# For security: only allow team members to run
32-
if: ${{ github.event.issue.state == 'open' && contains(fromJSON('["ydshieh", "ArthurZucker", "zucchini-nlp", "qubvel", "molbap", "gante", "LysandreJik", "Cyrilvallez", "Rocketknight1", "SunMarc", "muellerzr", "eustlb", "MekkCyber", "manueldeprada", "vasqu", "ivarflakstad", "stevhliu"]'), github.actor) && (startsWith(github.event.comment.body, 'run-slow') || startsWith(github.event.comment.body, 'run slow') || startsWith(github.event.comment.body, 'run_slow')) }}
32+
if: ${{ github.event.issue.state == 'open' && contains(fromJSON('["ydshieh", "ArthurZucker", "zucchini-nlp", "qubvel", "molbap", "gante", "LysandreJik", "Cyrilvallez", "Rocketknight1", "SunMarc", "muellerzr", "eustlb", "MekkCyber", "manueldeprada", "vasqu", "ivarflakstad", "stevhliu", "ebezzam"]'), github.actor) && (startsWith(github.event.comment.body, 'run-slow') || startsWith(github.event.comment.body, 'run slow') || startsWith(github.event.comment.body, 'run_slow')) }}
3333
outputs:
3434
PR_NUMBER: ${{ steps.set_pr_number.outputs.PR_NUMBER }}
3535
steps:
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Self-hosted runner scale set (AMD mi325 scheduled CI caller)
2+
3+
# Note: For every job in this workflow, the name of the runner scale set is finalized in the runner yaml i.e. huggingface/hf-workflows/.github/workflows/transformers_amd_ci_scheduled_arc_scale_set.yaml
4+
# For example, 1gpu scale set: amd-mi325-ci-1gpu
5+
# 2gpu scale set: amd-mi325-ci-2gpu
6+
7+
on:
8+
workflow_run:
9+
workflows: ["Self-hosted runner (AMD scheduled CI caller)"]
10+
branches: ["main"]
11+
types: [completed]
12+
push:
13+
branches:
14+
- run_amd_scheduled_ci_caller*
15+
16+
jobs:
17+
model-ci:
18+
name: Model CI
19+
uses: huggingface/hf-workflows/.github/workflows/transformers_amd_ci_scheduled_arc_scale_set.yaml@main
20+
with:
21+
job: run_models_gpu
22+
slack_report_channel: "#amd-hf-ci"
23+
runner_scale_set: amd-mi325-ci
24+
docker: huggingface/transformers-pytorch-amd-gpu
25+
ci_event: Scheduled CI (AMD) - mi325
26+
report_repo_id: optimum-amd/transformers_daily_ci
27+
secrets: inherit
28+
29+
torch-pipeline:
30+
name: Torch pipeline CI
31+
uses: huggingface/hf-workflows/.github/workflows/transformers_amd_ci_scheduled_arc_scale_set.yaml@main
32+
with:
33+
job: run_pipelines_torch_gpu
34+
slack_report_channel: "#amd-hf-ci"
35+
runner_scale_set: amd-mi325-ci
36+
docker: huggingface/transformers-pytorch-amd-gpu
37+
ci_event: Scheduled CI (AMD) - mi325
38+
report_repo_id: optimum-amd/transformers_daily_ci
39+
secrets: inherit
40+
41+
example-ci:
42+
name: Example CI
43+
uses: huggingface/hf-workflows/.github/workflows/transformers_amd_ci_scheduled_arc_scale_set.yaml@main
44+
with:
45+
job: run_examples_gpu
46+
slack_report_channel: "#amd-hf-ci"
47+
runner_scale_set: amd-mi325-ci
48+
docker: huggingface/transformers-pytorch-amd-gpu
49+
ci_event: Scheduled CI (AMD) - mi325
50+
report_repo_id: optimum-amd/transformers_daily_ci
51+
secrets: inherit
52+
53+
deepspeed-ci:
54+
name: DeepSpeed CI
55+
uses: huggingface/hf-workflows/.github/workflows/transformers_amd_ci_scheduled_arc_scale_set.yaml@main
56+
with:
57+
job: run_torch_cuda_extensions_gpu
58+
slack_report_channel: "#amd-hf-ci"
59+
runner_scale_set: amd-mi325-ci
60+
docker: huggingface/transformers-pytorch-deepspeed-amd-gpu
61+
ci_event: Scheduled CI (AMD) - mi325
62+
report_repo_id: optimum-amd/transformers_daily_ci
63+
secrets: inherit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ limitations under the License.
4444
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_ja.md">日本語</a> |
4545
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_hd.md">हिन्दी</a> |
4646
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_ru.md">Русский</a> |
47-
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_pt-br.md">Рortuguês</a> |
47+
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_pt-br.md">Português</a> |
4848
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_te.md">తెలుగు</a> |
4949
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_fr.md">Français</a> |
5050
<a href="https://github.com/huggingface/transformers/blob/main/i18n/README_de.md">Deutsch</a> |

docker/transformers-pytorch-amd-gpu/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
FROM rocm/pytorch:rocm6.4_ubuntu22.04_py3.10_pytorch_release_2.6.0
1+
FROM rocm/pytorch:rocm6.4.1_ubuntu24.04_py3.12_pytorch_release_2.7.1
22
LABEL maintainer="Hugging Face"
33

44
ARG DEBIAN_FRONTEND=noninteractive
55

6-
ARG TORCH_VISION='0.21.0'
7-
ARG TORCH_AUDIO='2.6.0'
8-
96
RUN apt update && \
107
apt install -y --no-install-recommends git libsndfile1-dev tesseract-ocr espeak-ng python3 python3-dev python3-pip python3-dev ffmpeg git-lfs && \
118
apt clean && \
@@ -23,9 +20,12 @@ WORKDIR /
2320
ADD https://api.github.com/repos/huggingface/transformers/git/refs/heads/main version.json
2421
RUN git clone https://github.com/huggingface/transformers && cd transformers && git checkout $REF
2522

26-
RUN python3 -m pip install --no-cache-dir torchvision==$TORCH_VISION torchaudio==$TORCH_AUDIO
27-
RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-torch,testing,video]
23+
# On ROCm, torchcodec is required to decode audio files
24+
RUN python3 -m pip install --no-cache-dir torchcodec
25+
# Install transformers
26+
RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-torch,testing,video,audio]
2827

28+
# Remove tensorflow and flax as they are no longer supported by transformers
2929
RUN python3 -m pip uninstall -y tensorflow flax
3030

3131
# When installing in editable mode, `transformers` is not recognized as a package.
@@ -36,4 +36,4 @@ RUN cd transformers && python3 setup.py develop
3636
RUN python3 -m pip uninstall py3nvml pynvml nvidia-ml-py apex -y
3737

3838
# `kernels` may causes many failing tests
39-
RUN python3 -m pip uninstall -y kernels
39+
RUN python3 -m pip uninstall -y kernels

docker/transformers-quantization-latest-gpu/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ RUN git clone https://github.com/NetEase-FuXi/EETQ.git && cd EETQ/ && git submod
7878
# RUN python3 -m pip install --no-cache-dir flute-kernel==0.4.1
7979
# RUN python3 -m pip install --no-cache-dir git+https://github.com/Dao-AILab/fast-hadamard-transform.git
8080

81+
# Add fp-quant for quantization testing
82+
RUN python3 -m pip install --no-cache-dir "fp-quant>=0.1.6"
83+
8184
# Add compressed-tensors for quantization testing
8285
RUN python3 -m pip install --no-cache-dir compressed-tensors
8386

docs/source/ar/custom_models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ resnet50d.model.load_state_dict(pretrained_model.state_dict())
280280
الآن لإرسال النموذج إلى Hub، تأكد من تسجيل الدخول. إما تشغيل في المحطة الأوامر الطرفية الخاصة بك:
281281

282282
```bash
283-
huggingface-cli login
283+
hf auth login
284284
```
285285

286286
أو من دفتر ملاحظات:

docs/source/ar/model_sharing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ picture-in-picture" allowfullscreen></iframe>
4141
قبل مشاركة نموذج على Hub، ستحتاج إلى بيانات اعتماد حساب Hugging Face الخاصة بك. إذا كنت تستخدم منصة الأوامر، فقم بتشغيل الأمر التالي في بيئة افتراضية حيث تم تثبيت 🤗 Transformers. سيقوم هذا الأمر بتخزين رمز الدخول الخاص بك في مجلد تخزين المؤقت لـ Hugging Face (`~/.cache/` بشكل افتراضي):
4242

4343
```bash
44-
huggingface-cli login
44+
hf auth login
4545
```
4646

4747
إذا كنت تستخدم دفتر ملاحظات مثل Jupyter أو Colaboratory، فتأكد من تثبيت مكتبة [`huggingface_hub`](https://huggingface.co/docs/hub/adding-a-library). تسمح لك هذه المكتبة بالتفاعل برمجيًا مع Hub.

docs/source/ar/run_scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ python examples/pytorch/summarization/run_summarization.py
324324
يمكن لجميع النصوص البرمجية رفع نموذجك النهائي إلى [مركز النماذج](https://huggingface.co/models). تأكد من تسجيل الدخول إلى Hugging Face قبل البدء:
325325

326326
```bash
327-
huggingface-cli login
327+
hf auth login
328328
```
329329

330330
ثم أضف المعلمة `push_to_hub` إلى النص البرمجي . ستقوم هذه المعلمة بإنشاء مستودع باستخدام اسم مستخدم Hugging Face واسم المجلد المحدد في `output_dir`.

docs/source/de/model_sharing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Dateien lassen sich auch in einem Repository leicht bearbeiten, und Sie können
5656
Bevor Sie ein Modell für den Hub freigeben, benötigen Sie Ihre Hugging Face-Anmeldedaten. Wenn Sie Zugang zu einem Terminal haben, führen Sie den folgenden Befehl in der virtuellen Umgebung aus, in der 🤗 Transformers installiert ist. Dadurch werden Ihre Zugangsdaten in Ihrem Hugging Face-Cache-Ordner (standardmäßig `~/.cache/`) gespeichert:
5757

5858
```bash
59-
huggingface-cli login
59+
hf auth login
6060
```
6161

6262
Wenn Sie ein Notebook wie Jupyter oder Colaboratory verwenden, stellen Sie sicher, dass Sie die [`huggingface_hub`](https://huggingface.co/docs/hub/adding-a-library) Bibliothek installiert haben. Diese Bibliothek ermöglicht Ihnen die programmatische Interaktion mit dem Hub.

docs/source/de/run_scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ python examples/pytorch/summarization/run_summarization.py
324324
Alle Skripte können Ihr endgültiges Modell in den [Model Hub](https://huggingface.co/models) hochladen. Stellen Sie sicher, dass Sie bei Hugging Face angemeldet sind, bevor Sie beginnen:
325325

326326
```bash
327-
huggingface-cli login
327+
hf auth login
328328
```
329329

330330
Dann fügen Sie dem Skript das Argument `push_to_hub` hinzu. Mit diesem Argument wird ein Repository mit Ihrem Hugging Face-Benutzernamen und dem in `output_dir` angegebenen Ordnernamen erstellt.

0 commit comments

Comments
 (0)