Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
fe76b60
LLaVA: latency issues (#34460)
zucchini-nlp Oct 29, 2024
808d6c5
Generation: fix test (#34369)
zucchini-nlp Oct 29, 2024
63ca6d9
Fix CI (#34458)
zucchini-nlp Oct 29, 2024
655bec2
use a tinymodel to test generation config which aviod timeout (#34482)
techkang Oct 29, 2024
a183519
🚨🚨🚨 [SuperPoint] Fix keypoint coordinate output and add post processi…
sbucaille Oct 29, 2024
439334c
Simplify running tests in a subprocess (#34213)
ydshieh Oct 29, 2024
626c610
Fix perplexity computation in perplexity.md (#34387)
Framartin Oct 29, 2024
9e3d704
Fixes for Modular Converter on Windows (#34266)
hlky Oct 29, 2024
004530a
Fix regression loading dtype (#34409)
SunMarc Oct 29, 2024
5392f12
Bert is ExecuTorch compatible (#34424)
guangy10 Oct 29, 2024
8755dd2
manual `head_dim` for `mixtral` model (#34281)
wavy-jung Oct 29, 2024
0ab0a42
fix-qwen2vl-no-position_ids (#33487)
simonJJJ Oct 29, 2024
56c45d5
Bug fix for drop path decay rate in swin transformer (#34291)
abhi-glitchhg Oct 29, 2024
34620e8
MobileBERT is ExecuTorch compatible (#34473)
guangy10 Oct 29, 2024
f339042
Albert is ExecuTorch compatible (#34476)
guangy10 Oct 29, 2024
e9ad460
Adding `optimizer_cls_and_kwargs` to `Trainer.__init__` (#34358)
apoorvkh Oct 29, 2024
4e2e880
Bump werkzeug from 3.0.3 to 3.0.6 in /examples/research_projects/deci…
dependabot[bot] Oct 29, 2024
f55595b
Fix performance in get_imports regexp (#34298)
AlekseyLobanov Oct 29, 2024
e4449bb
fix incorrect warning (#34416)
yonigozlan Oct 29, 2024
9bee9ff
Un-deprecate timeout arg in pipelines (#34382)
Rocketknight1 Oct 29, 2024
cd27761
Roberta is ExecuTorch compatible (#34425)
guangy10 Oct 30, 2024
25a9fc5
Fix format mistake in string repr of tokenizer objects (#34493)
gpetho Oct 30, 2024
0f764a5
Mllama: update docs (#34334)
zucchini-nlp Oct 30, 2024
913330c
VLMs: fix number of image tokens (#34332)
zucchini-nlp Oct 30, 2024
8a734ea
Tests: move `generate` tests to the right mixin and delete redundant …
gante Oct 30, 2024
241d790
fix pixtral processor (#34486)
molbap Oct 30, 2024
eab6c49
Use torch 2.5 in scheduled CI (#34465)
ydshieh Oct 30, 2024
5251fe6
Add GGUF for Mamba (#34200)
VladOS95-cyber Oct 30, 2024
9f06fb0
Fix super tiny extra space typo (#34440)
fzyzcjy Oct 30, 2024
48872fd
Add Image Processor Fast RT-DETR (#34354)
yonigozlan Oct 30, 2024
405b562
UPDATE Documentation for #TRANSLATING.md Documentation into Multiple …
anshumangahlot Oct 30, 2024
f385316
enable QA bf16 pipeline (#34483)
jiqing-feng Oct 31, 2024
1b86772
Fix: img size mismatch caused by incorrect unpadding in LLaVA-Next (#…
jp1924 Oct 31, 2024
dca93ca
Fix step shifting when accumulate gradient (#33673)
kibitzing Oct 31, 2024
ab98f0b
avoid calling `gc.collect` and `cuda.empty_cache` (#34514)
ydshieh Oct 31, 2024
4ca004e
Qwen2VL: skip base `input_ids`-`inputs_embeds` equivalence check (#34…
gante Oct 31, 2024
b5919e1
fix(DPT,Depth-Anything) Address expected_slice errors inside inferenc…
philkuz Oct 31, 2024
294c170
feat: add benchmarks pg indexes (#34536)
McPatate Oct 31, 2024
114dd81
make `test_eager_matches_sdpa_inference `less flaky (#34512)
ydshieh Oct 31, 2024
c443d8d
Bug Fix for issue #34294 (#34295)
fpgaminer Oct 31, 2024
203e270
Add image text to text pipeline (#34170)
yonigozlan Oct 31, 2024
df8640c
[CLIPSeg] Make interpolate_pos_encoding default to True (#34419)
NielsRogge Oct 31, 2024
2801d7b
update doc (#34478)
jiqing-feng Oct 31, 2024
b53e44e
[i18n-ar] Translated file : `docs/source/ar/multilingual.md` into Ara…
AhmedAlmaghz Oct 31, 2024
6beb3f1
Blip: get/set input embeddings correctly (#34152)
zucchini-nlp Nov 1, 2024
4cc0813
BLIP: enable generation tests (#34174)
zucchini-nlp Nov 1, 2024
86701f2
:red_circle: :red_circle: fix `query_pre_attn_scalar` different of `…
molbap Nov 1, 2024
e2ac16b
Large modular logic refactoring (#34487)
Cyrilvallez Nov 1, 2024
33868a0
[i18n-HI] Translated accelerate page to Hindi (#34443)
karthik-script Nov 1, 2024
ef976a7
Update trainer for easier handling of accumulate, compile fixes, and …
muellerzr Nov 4, 2024
187439c
VLM: special multimodal Tokenizer (#34461)
zucchini-nlp Nov 4, 2024
34927b0
MPS: `isin_mps_friendly` can support 0D tensors (#34538)
gante Nov 4, 2024
48831b7
Add text support to the Trainer's TensorBoard integration (#34418)
JacobLinCool Nov 4, 2024
a86bd6f
[i18n-HI] Translated TFLite page to Hindi (#34572)
karthik-script Nov 4, 2024
1112c54
🌐 [i18n-KO] Translated perf_train_special.md to Korean (#34590)
maximizemaxwell Nov 4, 2024
0a6795a
🌐 [i18n-KO] Update README_ko.md (#33098)
J4BEZ Nov 4, 2024
bfa021b
fix TrainerState doc because num_input_tokens_seen is unused by defau…
techkang Nov 4, 2024
eb81144
Fix Whisper CI (#34541)
ydshieh Nov 4, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
commit_id=$GITHUB_SHA
fi
commit_msg=$(git show -s --format=%s | cut -c1-70)
df -h
python3 benchmark/llama.py "${{ github.head_ref || github.ref_name }}" "$commit_id" "$commit_msg"
env:
HF_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
Expand Down
7 changes: 7 additions & 0 deletions benchmark/init_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ CREATE TABLE IF NOT EXISTS benchmarks (
created_at timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
);

CREATE INDEX IF NOT EXISTS benchmarks_benchmark_id_idx ON benchmarks (benchmark_id);

CREATE INDEX IF NOT EXISTS benchmarks_branch_idx ON benchmarks (branch);

CREATE TABLE IF NOT EXISTS device_measurements (
measurement_id SERIAL PRIMARY KEY,
benchmark_id int REFERENCES benchmarks (benchmark_id),
Expand All @@ -17,10 +21,13 @@ CREATE TABLE IF NOT EXISTS device_measurements (
time timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
);

CREATE INDEX IF NOT EXISTS device_measurements_branch_idx ON device_measurements (benchmark_id);

CREATE TABLE IF NOT EXISTS model_measurements (
measurement_id SERIAL PRIMARY KEY,
benchmark_id int REFERENCES benchmarks (benchmark_id),
measurements jsonb,
time timestamp without time zone NOT NULL DEFAULT (current_timestamp AT TIME ZONE 'UTC')
);

CREATE INDEX IF NOT EXISTS model_measurements_branch_idx ON model_measurements (benchmark_id);
2 changes: 1 addition & 1 deletion docker/transformers-all-latest-gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SHELL ["sh", "-lc"]
# The following `ARG` are mainly used to specify the versions explicitly & directly in this docker file, and not meant
# to be used as arguments for docker build (so far).

ARG PYTORCH='2.4.0'
ARG PYTORCH='2.5.1'
# (not always a valid torch version)
ARG INTEL_TORCH_EXT='2.3.0'
# Example: `cu102`, `cu113`, etc.
Expand Down
2 changes: 1 addition & 1 deletion docker/transformers-pytorch-gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG REF=main
RUN git clone https://github.com/huggingface/transformers && cd transformers && git checkout $REF

# If set to nothing, will install the latest version
ARG PYTORCH='2.4.0'
ARG PYTORCH='2.5.1'
ARG TORCH_VISION=''
ARG TORCH_AUDIO=''
# Example: `cu102`, `cu113`, etc.
Expand Down
81 changes: 47 additions & 34 deletions docs/TRANSLATING.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,70 @@
### Translating the Transformers documentation into your language
# Translating the Transformers documentation into your language

As part of our mission to democratize machine learning, we'd love to make the Transformers library available in many more languages! Follow the steps below if you want to help translate the documentation into your language 🙏.
As part of our mission to democratize machine learning, we aim to make the Transformers library available in many more languages! Follow the steps below to help translate the documentation into your language.

**🗞️ Open an issue**
## Open an Issue

To get started, navigate to the [Issues](https://github.com/huggingface/transformers/issues) page of this repo and check if anyone else has opened an issue for your language. If not, open a new issue by selecting the "Translation template" from the "New issue" button.
1. Navigate to the Issues page of this repository.
2. Check if anyone has already opened an issue for your language.
3. If not, create a new issue by selecting the "Translation template" from the "New issue" button.
4. Post a comment indicating which chapters you’d like to work on, and we’ll add your name to the list.

Once an issue exists, post a comment to indicate which chapters you'd like to work on, and we'll add your name to the list.
## Fork the Repository

1. First, fork the Transformers repo by clicking the Fork button in the top-right corner.
2. Clone your fork to your local machine for editing with the following command:

**🍴 Fork the repository**
```bash
git clone https://github.com/YOUR-USERNAME/transformers.git
```

Replace `YOUR-USERNAME` with your GitHub username.

First, you'll need to [fork the Transformers repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo). You can do this by clicking on the **Fork** button on the top-right corner of this repo's page.
## Copy-paste the English version with a new language code

Once you've forked the repo, you'll want to get the files on your local machine for editing. You can do that by cloning the fork with Git as follows:
The documentation files are organized in the following directory:

```bash
git clone https://github.com/YOUR-USERNAME/transformers.git
```
- **docs/source**: This contains all documentation materials organized by language.

**📋 Copy-paste the English version with a new language code**
To copy the English version to your new language directory:

The documentation files are in one leading directory:
1. Navigate to your fork of the repository:

- [`docs/source`](https://github.com/huggingface/transformers/tree/main/docs/source): All the documentation materials are organized here by language.
```bash
cd ~/path/to/transformers/docs
```

You'll only need to copy the files in the [`docs/source/en`](https://github.com/huggingface/transformers/tree/main/docs/source/en) directory, so first navigate to your fork of the repo and run the following:
Replace `~/path/to` with your actual path.

```bash
cd ~/path/to/transformers/docs
cp -r source/en source/LANG-ID
```
2. Run the following command:

Here, `LANG-ID` should be one of the ISO 639-1 or ISO 639-2 language codes -- see [here](https://www.loc.gov/standards/iso639-2/php/code_list.php) for a handy table.
```bash
cp -r source/en source/LANG-ID
```

**✍️ Start translating**
Replace `LANG-ID` with the appropriate ISO 639-1 or ISO 639-2 language code (see [this table](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for reference).

The fun part comes - translating the text!
## Start translating

The first thing we recommend is translating the part of the `_toctree.yml` file that corresponds to your doc chapter. This file is used to render the table of contents on the website.
Begin translating the text!

> 🙋 If the `_toctree.yml` file doesn't yet exist for your language, you can create one by copy-pasting from the English version and deleting the sections unrelated to your chapter. Just make sure it exists in the `docs/source/LANG-ID/` directory!
1. Start with the `_toctree.yml` file that corresponds to your documentation chapter. This file is essential for rendering the table of contents on the website.

The fields you should add are `local` (with the name of the file containing the translation; e.g. `autoclass_tutorial`), and `title` (with the title of the doc in your language; e.g. `Load pretrained instances with an AutoClass`) -- as a reference, here is the `_toctree.yml` for [English](https://github.com/huggingface/transformers/blob/main/docs/source/en/_toctree.yml):
- If the `_toctree.yml` file doesn’t exist for your language, create one by copying the English version and removing unrelated sections.
- Ensure it is placed in the `docs/source/LANG-ID/` directory.

```yaml
- sections:
- local: pipeline_tutorial # Do not change this! Use the same name for your .md file
title: Pipelines for inference # Translate this!
...
title: Tutorials # Translate this!
```
Here’s an example structure for the `_toctree.yml` file:

Once you have translated the `_toctree.yml` file, you can start translating the [MDX](https://mdxjs.com/) files associated with your docs chapter.
```yaml
- sections:
- local: pipeline_tutorial # Keep this name for your .md file
title: Pipelines for Inference # Translate this
...
title: Tutorials # Translate this
```

> 🙋 If you'd like others to help you with the translation, you should [open an issue](https://github.com/huggingface/transformers/issues) and tag @stevhliu.
2. Once you’ve translated the `_toctree.yml`, move on to translating the associated MDX files.

## Collaborate and share

If you'd like assistance with your translation, open an issue and tag `@stevhliu`. Feel free to share resources or glossaries to ensure consistent terminology.
24 changes: 12 additions & 12 deletions docs/source/ar/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,22 @@
- sections:
- local: fast_tokenizers
title: استخدم مجزئيات النصوص السريعة من 🤗 Tokenizers
# - local: multilingual
# title: تشغيل الاستنتاج باستخدام نماذج متعددة اللغات
# - local: create_a_model
# title: استخدام واجهات برمجة التطبيقات الخاصة بالنموذج
# - local: custom_models
# title: مشاركة نموذج مخصص
# - local: chat_templating
# title: قوالب لنماذج الدردشة
- local: multilingual
title: الاستدلال باستخدام نماذج متعددة اللغات
- local: create_a_model
title: استخدام واجهات برمجة التطبيقات الخاصة بالنموذج
- local: custom_models
title: مشاركة نموذج مخصص
- local: chat_templating
title: قوالب لنماذج الدردشة
# - local: trainer
# title: المدرب
# - local: sagemaker
# title: تشغيل التدريب على Amazon SageMaker
# - local: serialization
# title: التصدير إلى ONNX
# - local: tflite
# title: التصدير إلى TFLite
- local: tflite
title: التصدير إلى TFLite
# - local: torchscript
# title: التصدير إلى TorchScript
# - local: benchmarks
Expand All @@ -137,8 +137,8 @@
# title: موارد المجتمع
# - local: troubleshooting
# title: استكشاف الأخطاء وإصلاحها
# - local: gguf
# title: التوافق مع ملفات GGUF
- local: gguf
title: التوافق مع ملفات GGUF
title: أدلة المطورين
# - sections:
# - local: quantization/overview
Expand Down
Loading