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
2 changes: 1 addition & 1 deletion .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
package: course
path_to_docs: course/chapters/
additional_args: --not_python_module
languages: ar bn de en es fa fr gj he hi id it ja ko my ne pl pt ru ro te th tr vi zh-CN zh-TW
languages: ar bn de en es fa fr gj he hi id it ja ko ms my ne pl pt ru ro te th tr vi zh-CN zh-TW
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
2 changes: 1 addition & 1 deletion .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
package: course
path_to_docs: course/chapters/
additional_args: --not_python_module
languages: ar bn de en es fa fr gj he hi id it ja ko my ne pl pt ru ro te th tr vi zh-CN zh-TW
languages: ar bn de en es fa fr gj he hi id it ja ko ms my ne pl pt ru ro te th tr vi zh-CN zh-TW
4 changes: 2 additions & 2 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python 3.8
- name: Set up Python 3.11
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
with:
python-version: 3.8
python-version: '3.11'
- name: Install Python dependencies
run: pip install black
- name: Run Quality check
Expand Down
6 changes: 2 additions & 4 deletions chapters/de/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ Bei der automatischen Textzusammenfassung (engl. Summarization) geht es darum, e
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -269,8 +268,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/en/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ Summarization is the task of reducing a text into a shorter text while keeping a
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -289,8 +288,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/en/chapter9/7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ def flip_text(x):
demo = gr.Blocks()

with demo:
gr.Markdown(
"""
gr.Markdown("""
# Flip Text!
Start typing below to see the output.
"""
)
""")
input = gr.Textbox(placeholder="Flip this text")
output = gr.Textbox()

Expand Down
6 changes: 2 additions & 4 deletions chapters/es/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ Resumir es la tarea de reducir un texto en uno más corto, conservando todos (o
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -269,8 +268,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/fr/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ Le résumé est une tâche de réduction d'un texte en un texte plus court, tout
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -296,8 +295,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")

"""
L'Amérique a changé de façon spectaculaire au cours des dernières années. Non seulement le nombre de
Expand Down
6 changes: 2 additions & 4 deletions chapters/fr/chapter9/7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ def flip_text(x):
demo = gr.Blocks()

with demo:
gr.Markdown(
"""
gr.Markdown("""
# Flip Text!
Start typing below to see the output.
"""
)
""")
input = gr.Textbox(placeholder="Flip this text")
output = gr.Textbox()

Expand Down
6 changes: 2 additions & 4 deletions chapters/hi/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ question_answerer(
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -283,8 +282,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/it/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ Quello del riassunto è un compito che trasforma un testo in un testo più breve
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -269,8 +268,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/ja/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ question_answerer(
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -271,8 +270,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/kn/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ question_answerer(
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -289,8 +288,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
6 changes: 2 additions & 4 deletions chapters/ko/chapter1/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ question_answerer(
from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
summarizer("""
America has changed dramatically during recent years. Not only has the number of
graduates in traditional engineering disciplines such as mechanical, civil,
electrical, chemical, and aeronautical engineering declined, but in most of
Expand All @@ -269,8 +268,7 @@ summarizer(
Other industrial countries at minimum maintain their output, while America
suffers an increasingly serious decline in the number of engineering graduates
and a lack of well-educated engineers.
"""
)
""")
```

```python out
Expand Down
42 changes: 42 additions & 0 deletions chapters/ms/TRANSLATING.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Bahasa Malaysia translation notes
================================

Language code: ms (ISO 639-1)
Variant: Bahasa Malaysia, using standard Malaysian usage and spelling.

Glossary
--------
Artificial intelligence (AI): kecerdasan buatan (AI)
large language model (LLM): model bahasa besar (LLM)
natural language processing (NLP): pemprosesan bahasa semula jadi (NLP)
Transformer: Transformer (retain the architecture name)
model: model
training: latihan
fine-tuning: fine-tuning (penalaan halus)
inference: inferens
transfer learning: transfer learning (pembelajaran pindahan)
self-supervised learning: pembelajaran swa-selia
emergent abilities: keupayaan yang muncul apabila model dibesarkan
token: token
tokenizer: tokenizer
dataset: set data
pipeline: pipeline (retain the API term)
classification: pengelasan
generation: penjanaan
encoder / decoder: encoder / decoder
embedding: embedding (perwakilan vektor)
weights: weights (pemberat)
attention: perhatian (attention)
prompt: prompt (retain the common practitioner term)
question answering: soal jawab
pre-processing / post-processing: pre-processing / post-processing
open source: sumber terbuka
Hub: Hub (retain product name)

Keep product names, code, API names, identifiers, URLs, MDX components, and
anchor identifiers unchanged. Introduce technical terms with the English term
in parentheses on first use where this improves clarity; retain standard
acronyms thereafter. Prefer clear, natural Bahasa Malaysia for learners in
Malaysia. Restructure sentences freely to avoid English word order and literal
calques while preserving the technical meaning. Keep widely used English
practitioner terms where a forced Malay equivalent would sound unnatural.
25 changes: 25 additions & 0 deletions chapters/ms/_toctree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- title: 1. Model Transformer
sections:
- local: chapter1/1
title: Pengenalan
- local: chapter1/2
title: Pemprosesan Bahasa Semula Jadi dan Model Bahasa Besar
- local: chapter1/3
title: Apakah yang boleh dilakukan oleh Transformer?
- local: chapter1/4
title: Bagaimanakah Transformer berfungsi?
- local: chapter1/5
title: Cara 🤗 Transformers menyelesaikan tugasan
- local: chapter1/6
title: Seni bina Transformer
- local: chapter1/7
title: Kuiz tanpa markah
- local: chapter1/8
title: Inferens penjanaan teks dengan LLM
- local: chapter1/9
title: Bias dan batasan
- local: chapter1/10
title: Ringkasan
- local: chapter1/11
title: Peperiksaan pensijilan
quiz: 1
Loading
Loading