719 Commits

Author SHA1 Message Date
hf-security-analysis[bot]
d65c2b138a chore: update update_metdata.yml (#45054)
fix(security): remediate workflow vulnerability in .github/workflows/update_metdata.yml

Co-authored-by: hf-security-analysis[bot] <265538906+hf-security-analysis[bot]@users.noreply.github.com>
2026-03-27 15:51:05 +00:00
Tarek Ziade
689f52ce6b chore: remove old extras (#45024)
Update update_metdata.yml

`tf` and `flax` are long gone
2026-03-27 12:16:01 +01:00
Yih-Dar
e3f7cc3b4a Use multi runners to check new failing tests in a CI run (#45032)
* multi runners

* multi runners

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-03-26 19:58:10 +01:00
Tarek Ziade
61efa3229a ci: add anti-slop action (#44847)
* add anti-slop action

* remove maintainers names

* pin the action to 0.2.1

* tweaks @Rocketknigth1 reviews
2026-03-26 13:35:43 +00:00
Matt
394b1a0eaa Add big angry code agent warnings! (#44890)
* Add big angry warnings!

* PR template cleanup

* Reformat tip

* Reformat warning

* Writing a little more

* Expanded code agent philosophy

* Expanded code agent philosophy

* Expanded code agent philosophy

* Expanded code agent philosophy

* Expanded code agent philosophy

* Update CONTRIBUTING.md

Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>

* Expanded code agent philosophy

* Expanded code agent philosophy

* Clarify guidelines on code agent contributions

Added a section detailing the philosophy regarding code agents and their contributions.

* Refine contribution guidelines in CONTRIBUTING.md

Removed redundant text and clarified guidelines for PR submissions.

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>

---------

Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
2026-03-22 18:48:30 +00:00
Yih-Dar
869dea750f Fix repo-check bot (#44812)
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-03-18 10:47:57 +01:00
Anton Vlasjuk
65db6fc07c 🚨 [FA4] Initial support (#42435)
* initial implementation

* CB support

* change how we call item on max_seq_len_q/k

* fix

* tests

* fix fa2 clash

* unify the fa dispatch

* fix

* modernbert...

* oops

* parity test

* style

* nit

* fixup imports for fa4

* enable attention sinks, fixup logits checks in parity test

* style

* change dispatch logic and introduce lower bound for FA

* style

* fix test

* min fa2, avoid 2x device sync

* style

* simple min version instead of list

* fixup error message on non init check

* fixup up non init check a tad more

* refactor some FA constants out to main fa utils

* new marker for all fas needed

* oops

* style and make the fa kernel fallback generalized

* default none...

* more refactors

* style

* fix

* this test faulty even on main, xformers can handle any shape apparently yikes

* lets make this more robust, we should check for none within...

* fix

* oops
2026-03-13 19:19:37 +00:00
Marc Sun
e45078f240 Fix training ci and clean some tests (#44491)
* fix ci and clean some tests

* try training ci

* fix some tests

* Fix deepspeed and move fsdp tests

* style

* fix

* let's try

* Fix

* revert
2026-03-11 16:15:29 +00:00
Anton Vlasjuk
455235bfef Add Yoni to run-slow workflow (#44598)
add yoni
2026-03-11 15:23:01 +00:00
Yih-Dar
519c26f9c4 Fix PR comment CI for quantization job (#44579)
try

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-03-10 17:58:42 +01:00
Yih-Dar
701628527a Add a new job in build_pr_documentation.yml (will be the new required job) (#44538)
smart changes

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-03-09 10:12:22 +01:00
Yih-Dar
ec66c7fa70 Update build_pr_documentation workflow for merge_group event (#44532)
update workflow for merge_group event

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-03-08 21:42:55 +01:00
Marc Sun
1313588227 Update PR template (#44415) 2026-03-04 13:25:47 +01:00
Matt
2bd902dbc4 Update assignee for generate in bug report template (#44042)
Joao is regrettably no longer with us 🫡  so we should really stop getting users to ping him! This PR makes @cyrilvallez responsible for `generate` issues outside of VLMs.
2026-02-16 16:08:41 +00:00
Yih-Dar
0dda1ffbf3 Improve new failing test analysis for PR comment CI (#44033)
tryyyy!

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-02-16 16:02:13 +08:00
Yih-Dar
b7b9d25226 Improve PR comment CI feedback (#43852)
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-02-10 17:45:39 +08:00
Yih-Dar
9e5c7d16aa Fix slack-report workflow file (#43851)
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-02-09 13:41:29 +08:00
Quentin Gallouédec
5ba28289d7 Add TRL CI bot workflow to trigger tests on PR comments (#43809) 2026-02-06 11:36:57 -06:00
Yih-Dar
2ff1d4f0ec Add explicit commit info to PR comment CI feedback (#43635)
* fix

* fix

* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-31 12:33:49 +01:00
Yih-Dar
5a67f0a7ac Better new failures reporting for PR comment CI (#43629)
go

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-30 21:43:12 +01:00
Tarek Ziade
797c822a17 Fix extras on all supported Python versions (#43490)
Makes sure extras can be installed on all supported Python versions.

- cleaned up extras (removed natten, tweaked mistral-common etc,)
- adds a supported Python version range (10->14)
- dynamically update the metadata
- run a smoke test in the CI every night to verify pip install works on all extras

Co-authored-by: Cyril Vallez <cyril.vallez@gmail.com>
2026-01-30 15:27:16 +01:00
Yih-Dar
b8e7943b02 Fix repo. consistency bot (push permission issue) (#43570)
fix again

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-28 18:30:28 +01:00
Yih-Dar
7c4221776f check/fix repo. check bot workflow (#43565)
check

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-28 16:51:44 +01:00
Yih-Dar
a63032b614 check PR bot permission - part 3 (try content attribute) (#43555)
contents: write

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-28 14:56:01 +01:00
Yih-Dar
0b563e1618 check PR bot permission - part 2 (style only) (#43554)
style_only

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-28 14:49:56 +01:00
Yih-Dar
5b58428541 check PR bot permission - part 1 (#43553)
check original style bot

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-28 14:41:50 +01:00
Yih-Dar
0189e042b8 Enhance repo. consistency bot (#43503)
* update

* subset

* clean

* delete

* final

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-26 18:04:12 +01:00
Yih-Dar
e4f6330278 Make bot don't fail the commands (#43440)
don't fail

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-23 11:57:25 +01:00
Omkar Kabde
db1e6f1e7f Remove requests code (#42845)
* setup, workflow and utils files

* src core files

* use get_session instead of httpx

* fix code quality - remove unused imports

* utils and prevous-http-used and cli

* style changes

* use httpx for non-HF images

* get_session for HF images

* change docstrings

* revert formatting - 1

* revert formatting - 2

* docstrings fixes

* revert formatting - 3

* docstring fixes

* fix failing test

* Update src/transformers/pipelines/image_to_image.py

* Update src/transformers/testing_utils.py

* fix modular generation check

* fix consistency

* Apply suggestions from code review

* Update src/transformers/models/idefics2/modeling_idefics2.py

* Update src/transformers/models/idefics3/modeling_idefics3.py

---------

Co-authored-by: Lucain <lucainp@gmail.com>
2026-01-23 11:50:53 +01:00
Yih-Dar
c173472e58 Yet another fix (#43437)
* ok ...

* ok ...

* ok ...

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-23 11:44:11 +01:00
Yih-Dar
236a8e9d9d fix pr-repo-consistency-bot.yml (#43434)
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-23 10:47:49 +01:00
Yih-Dar
a1306676e9 Make pr-repo-consistency-bot.yml run complete list of fixes (#43432)
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-23 10:36:42 +01:00
Yih-Dar
d6edf57ed2 Welcome our new CI engineer 🎉 (#43367)
add

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-20 14:28:10 +01:00
Ilyas Moutawwakil
35c26ace56 Adding to run slow (#43250)
add me
2026-01-13 15:27:19 +01:00
Yih-Dar
5f70e191f8 Use HF_TOKEN directly and remove require_read_token (#43233)
* Use HF_TOKEN

* style

* remove the usage

* remove the def

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2026-01-12 17:29:25 +01:00
Pauline Bailly-Masson
d54d78f76f Add runner specification to CodeQL workflow (#42955) 2025-12-19 16:48:46 +01:00
Lysandre Debut
8a2a83d574 Automatic release script (#42808)
* Automatic release

* Install transformers from within the build

* setuptools

* Check build doesn't need to exist anymore

* Check build doesn't need to exist anymore

* -y

* torch install for pipeline

* TestPypi upload

* Fine tune

* Fine tune

* Update release instructions

* Update .github/workflows/release.yml

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

---------

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2025-12-11 17:46:08 +01:00
Yih-Dar
799103bf9a Delete previous comments of View the CircleCI Test Summary (#42725)
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-09 05:44:53 +01:00
Yih-Dar
2db992d858 hotfix for circleci summary workflow (#42708)
hotfix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-08 17:40:23 +01:00
Arthur
e636ea2b15 CircleCI failed test summary (#42240)
* clean

* final run

* final run

* final

* final

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-08 14:10:17 +01:00
Yih-Dar
8d75aabf31 Improve SSH into runner (#42695)
better

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-08 09:43:43 +01:00
Yih-Dar
75ae02f0f8 Ultra security for pr-repo-consistency-bot.yml (#42652)
better

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-05 14:00:36 +01:00
Yih-Dar
ee7e67bf6a Better security for pr-repo-consistency-bot.yml (#42646)
* better

* better

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-05 11:47:43 +01:00
Yih-Dar
d5d87934c2 repo. consistency bot (#42575)
* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* fail to see the check

* fail to see the check

* fail to see the check

* fail to see the check

* fail to see the check

* Apply style fixes

* fail to see the check

* fail to see the check

* fail to see the check

* Apply repo. consistency fixes

* fail to see the check

* Apply repo. consistency fixes

* fail to see the check

* delete

* Apply repo. consistency fixes

* comment

* Apply repo. consistency fixes

* comment

* Apply repo. consistency fixes

* comment

* Apply repo. consistency fixes

* comment

* Apply repo. consistency fixes

* back

* check

* check

* check

* check

* check

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-03 17:57:21 +01:00
Yih-Dar
0c05c3bd6c Fix pr_build_doc_with_comment.yml not reporting correctly (#42505)
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-12-01 10:25:07 +01:00
Anton Vlasjuk
e2e411c42b [CI] Add to run slow (#42459)
add

Co-authored-by: Ferdinand Mom <47445085+3outeille@users.noreply.github.com>
2025-11-27 16:24:29 +00:00
omahs
fd20cdc2e8 Fix typos (#42354) 2025-11-24 14:34:10 +00:00
Luc Georges
ba938fa590 fix(ci): unexpected keyword argument streaming (#42102)
* debug(ci): run `pwd` to check what we're working with

* fix(ci): `ls -lR`

* fix(ci): remove working directory which should not be there?

* fix(cb): make sure memory is freed when calling `stop`

* fix(ci): effectively clear cache

* fix(ci): reduce memory safety margin

* refactor(cb): add fixme note on default safety margin value
2025-11-12 17:29:09 +01:00
Yih-Dar
e8a6eb3304 Revert "permissions worflows fix" (#42110)
Revert "permissions worflows fix (#42080)"

This reverts commit 08f52e2178.
2025-11-08 16:21:02 +01:00
Luc Georges
069684ef87 feat(ci): add continuous batching to benchmarks (#41916)
* feat(ci): add continuous batching to benchmarks

* refactor(ci): PR comments

* refactor(cb): when stopping, block by default

* fix(benchmarks): `stream` -> `streaming`

* fix(benchmarks): invalid configuration when cb has attn_impl == sdpa

* tests(cb): fix attn impl

* fix(benchmarks): update `get_throughput` formula

* fix(benchmarks): prevent version conflicts and ensure proper cleanup in continuous batching (#42063)

* Initial plan

* fix(benchmarks): ensure proper cleanup and remove transformers from requirements

- Remove transformers from benchmark_v2/requirements.txt to prevent version conflicts
- Add try-finally block to ensure ContinuousBatchingManager.stop() is always called
- This fixes TypeError about unexpected 'streaming' argument and prevents OOM from improper cleanup

Co-authored-by: McPatate <9112841+McPatate@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: McPatate <9112841+McPatate@users.noreply.github.com>

* fix(benchmarks): raise the exception on failure instead of ignoring

we catch the exception later on and raising it here helps debugging
because it will be logged

* test(cb): comment out failing tests for now

added a `FIXME` mark

* fix(benchmarks): revert `finally` removal but keep raising exception

* test(cb): fix missing `require_read_token` import

* refactor(benchmarks): error if no benchmarks were run

* refactor(benchmarks): change default lvls of cb bench config

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: McPatate <9112841+McPatate@users.noreply.github.com>
2025-11-07 16:23:27 +00:00