1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-10-23 09:09:01 +03:00

347 Commits

Author SHA1 Message Date
Sayak Paul
eb0a900caa fix claude code review fix in PRs. (#14058) 2026-06-24 12:02:38 -07:00
Tarek Ziade
b596c83aef ci: use hosted runners (#13987)
hosted runners can now reach Serge directly without creating a tailscale session
2026-06-18 17:38:04 +02:00
Sayak Paul
9a72cd3ee9 ci: don't remind on prs from admins, etc. (#13965)
* ci: don't remind on prs from admins, etc.

* don't remind model authors about linking issues/.
2026-06-18 13:53:10 +05:30
Sayak Paul
fd823e825c fix untrusted fork secret mixing (#13970) 2026-06-16 13:27:23 +05:30
Sayak Paul
21e33389cd [CI] allow running tests as PR comments through a bot (#13873)
* start

* fix

* remove planning
2026-06-16 08:32:45 +05:30
YiYi Xu
12fc496d3c keep the agent symlinks (#13968)
* Commit root AGENTS.md/CLAUDE.md symlinks so agents auto-load conventions

Track the root AGENTS.md/CLAUDE.md symlinks (-> .ai/AGENTS.md) instead of
generating them via `make claude`/`make codex`, so a fresh clone auto-loads
the agent guide with no setup step (matching transformers). The make targets
now only wire up skills; .ai/AGENTS.md, the contribution doc, and the PR
template are updated to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add documentation-impact check to PR review rules

During review, scan related usage docs and agent docs and flag (advisory)
any that should be updated based on the PR — outdated/missing usage docs, or
a rule/pattern/gotcha worth recording in the agent guides.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 16:20:28 -10:00
YiYi Xu
4757c7c465 Make root PHILOSOPHY.md a symlink to the docs philosophy page (#13954)
* Make root PHILOSOPHY.md a symlink to the docs philosophy page

The root PHILOSOPHY.md had drifted into a stale duplicate of
docs/source/en/conceptual/philosophy.md (which was rewritten in #13808 to
cover the single-file model policy and Modular Diffusers). Replace it with a
symlink to the docs file, mirroring CONTRIBUTING.md -> contribution.md, so
there's a single source of truth.

A symlink renders as a path stub (not content) on GitHub, so repoint the
links that pointed at blob/main/PHILOSOPHY.md to the rendered docs site:
the PR template and the English contribution guide.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Point contributor-guide links at the rendered docs site

CONTRIBUTING.md is a symlink, so blob/main/CONTRIBUTING.md renders as a path
stub on GitHub rather than the guide. Repoint the PR template and README
links to the rendered docs page, matching the philosophy/AI-agents links.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Repoint remaining symlink-stub doc links to the rendered docs site

The stale-bot comment and the ko/zh contribution guides still linked to
blob/main/{CONTRIBUTING,PHILOSOPHY}.md, which render as path stubs because
those root files are symlinks. Point them at the rendered docs pages
(localized /ko/ and /zh/ for the translations).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 07:39:24 -10:00
YiYi Xu
9b249df46d Point "Coding with AI agents" links at the rendered docs site (#13952)
CONTRIBUTING.md is a symlink to docs/source/en/conceptual/contribution.md.
GitHub renders a symlink blob as a path stub, not the target's content, so
the `#coding-with-ai-agents` anchor in the PR template and README landed on
an empty-looking page. Point those two anchored links at the rendered docs
site instead (the same URL the PR-issue-reminder bot already uses).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 10:33:15 -10:00
Sayak Paul
f7f1f6304d [CI] implement a bot to remind prs to link issues if not. (#13744)
* implement a bot to remind prs to link issues if not.

* up

* remove auto-close and add contribution guide.

* restrict to one comment

* Apply suggestions from code review

Co-authored-by: sergereview[bot] <283583894+sergereview[bot]@users.noreply.github.com>

* put dodgy stuff in try-except

* limit to 2 days

* style.

---------

Co-authored-by: sergereview[bot] <283583894+sergereview[bot]@users.noreply.github.com>
2026-06-13 09:15:09 +05:30
YiYi Xu
41add34104 update PR template and highlight AI-agent setup for contributors (#13913)
* docs: surface AI-agent setup for contributors

Most code contributions now involve a coding agent, but the agent setup
(`make claude`/`make codex`, the conventions in `.ai/`) is opt-in and easy
to miss, so agents run without project context and produce PRs that ignore
conventions. Surface it where contributors will see it:

- README: pointer to `.ai/` / `make claude` in the contribution section
- PR template: an AI-agent setup + self-review checkbox (now the first item),
  folding the typo/docs exception into the philosophy-doc check, and dropping
  the deprecated JAX reviewer routing (Flax is slated for removal in v0.40.0;
  MPS kept)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs: nest the AI-agent checklist into a parent + sub-items

Make the AI-agent item a parent checkbox ("Did you use an AI agent?") with
two sub-checkboxes (point it at .ai/ conventions; self-review against
.ai/review-rules.md).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 07:02:11 -10:00
Tarek Ziade
adbe0d8b43 switch to a webhook (#13884)
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2026-06-08 13:01:51 +02:00
Sayak Paul
6a43fb6e8a [ci] add hook tests to our CI. (#13848)
add hook tests to our CI.
2026-06-04 13:50:14 +05:30
Tarek Ziade
07de1f6fe8 moved to a webhook (#13836) 2026-06-01 12:11:06 +05:30
Sayak Paul
de6b049539 override torch stuff to prevent them from getting updated (#13831) 2026-05-29 11:44:45 +05:30
Sayak Paul
ff3b86b475 [ci] shorten serge name. (#13795)
* shorten serge name.

* change path
2026-05-27 21:43:56 +05:30
hf-dependantbot-rollout[bot]
4b3dd38042 chore: enable Dependabot weekly GitHub Actions bumps (#13812)
Co-authored-by: hf-dependantbot-rollout[bot] <285970069+hf-dependantbot-rollout[bot]@users.noreply.github.com>
2026-05-26 21:13:07 +05:30
Sayak Paul
216e245c74 ci: use uv overrides to make sure tokenizers install from <=0.23.0 under subs (#13767)
* ci: use uv overrides to make sure tokenizers install from <=0.23.0 under subs

* up
2026-05-21 18:20:37 +05:30
Sayak Paul
f502538134 [WIP] chore: add utilities to check if call/forward methods are documented. (#13758)
* chore: add utilities to check if call/forward methods are documented.

* Fix missing forward/__call__ docstring entries (#13769)

add missing

* style.

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>
2026-05-21 08:00:22 +05:30
YiYi Xu
fece08aa62 [CI] claude_review: target source PR's branch for follow-up PRs (#13774)
* [CI] claude_review: target source PR's branch for follow-up PRs

The follow-up PR was always cut from main, so once main moved on from the
PR's base the cherry-pick conflicted and the run failed (see run
26191835696). For non-fork PRs we now target the PR's own head branch
instead — Claude's edits apply cleanly regardless of how main has diverged,
and merging the follow-up folds them into the original PR. Fork PRs still
target the default branch since we can't push to a fork.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* [CI] claude_review: skip COMMIT THIS on fork PRs

Falling back to main as the base for fork PRs hits the same cherry-pick
conflict pattern the previous commit fixed for source PRs, and we can't
push to the fork's branch anyway. Bail early with a friendly comment
pointing users to apply Claude's suggestions manually or open an issue.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 13:21:51 -10:00
Dhruv Nair
9c4e201dd1 [CI] Replace print_env step in CI with diffusers-cli env (#13662)
update

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2026-05-20 16:31:43 +05:30
Sayak Paul
776282c5d0 [ci] switch to a more unique name (#13738)
switch to a more unique name
2026-05-13 16:38:54 +09:00
Sayak Paul
8ad63fb1b5 Serge reviewer (#13735)
* add serge reviewer to enable claude for inline reviews.

* remove local settings

* up

* up

* switch the trigger word to goku
2026-05-13 16:34:07 +09:00
Sayak Paul
303f3a7061 Install transformers from main for doc and staging (#13723)
* Use Mistral3Model/Ministral3ForCausalLM

* [docs] add magcache to caching api listing (#13714)

add magcache to caching api listing

* install transformers from main

* up

* up

* up

* up[

* shorten deprecation cycle for flax.

* Revert "shorten deprecation cycle for flax."

This reverts commit 692d98db7b.

---------

Co-authored-by: Akshan Krithick <akshankrithick305@gmail.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>
2026-05-12 18:50:50 +09:00
Sayak Paul
6382a3db4d better usage of UV_PRERELEASE=allow (#13716) 2026-05-11 17:13:00 +09:00
Sayak Paul
48f39c2d59 [ci] allow claude to open PRs for certain instructions. (#13536)
* allow claude to open PRs for certain instructions.

* allow edits when claude is called on a PR of forked path

* address yiyi's feedback

* co-authoring
2026-05-10 09:08:36 +09:00
Pauline Bailly-Masson
3577280285 [CI] Bump style-bot SHA + switch to GitHub App (#13690)
* [CI] Bump style-bot SHA + switch to GitHub App

* [CI] Bump style-bot to merged SHA e2867e92
2026-05-07 14:13:27 +02:00
hf-security-analysis[bot]
9dad53e036 chore: update pr_labeler.yml (#13685)
fix(security): remediate workflow vulnerability in .github/workflows/pr_labeler.yml

Co-authored-by: hf-security-analysis[bot] <265538906+hf-security-analysis[bot]@users.noreply.github.com>
2026-05-06 23:38:55 +05:30
Dhruv Nair
e16719abb2 [CI] QOL improvement for PR size labeler (#13554)
* update

* update
2026-05-06 17:32:01 +05:30
Dhruv Nair
ffd5da5f74 [CI] Update all workflows with permissions (#13672)
update
2026-05-01 17:41:27 +05:30
Sayak Paul
4744648a8d [ci] use tokenizers stable installtion in CI. (#13562)
* use tokenizers stable installtion in CI.

* up1

* up2

* up3
2026-04-30 14:34:50 +05:30
Sayak Paul
dad80d728d [ci] simplify release workflow. (#13329)
* simplify release workflow.

* up

* trigger on branches too.

* restrict permissions to read.

* use sha

* remove determination step of latest branch

* resolve rest
2026-04-24 19:56:20 -03:00
Remy
d0c9cbad28 chore: bump doc-builder SHA for main doc build workflow (#13555) 2026-04-24 14:42:48 +02:00
Sayak Paul
267b7a0e4e [ci] feat: have pr labeler label for closing issues. (#13548)
feat: have pr labeler label for closing issues.
2026-04-22 17:53:14 -03:00
Pauline Bailly-Masson
e0c1ec462f add PR fork workable (#13438)
* add PR fork workable

* Apply suggestion from @paulinebm

* Apply suggestion from @paulinebm

* Apply suggestion from @yiyixuxu

Co-authored-by: YiYi Xu <yixu310@gmail.com>

* Apply suggestions from code review

Co-authored-by: Pauline Bailly-Masson <155966238+paulinebm@users.noreply.github.com>

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>
2026-04-16 15:19:10 +05:30
Remy
a68f3677b7 chore: bump doc-builder SHA for PR upload workflow (#13476) 2026-04-15 12:16:24 +02:00
Sayak Paul
896fec351b [tests] tighten dependency testing. (#13332)
* tighten dependency testing.

* invoke dependency testing temporarily.

* f
2026-04-10 18:12:12 +05:30
Dhruv Nair
431066e967 [CI] Use finegrained token for Issue Labeler (#13433)
update
2026-04-08 11:18:24 +02:00
Dhruv Nair
d7bc233b4b [CI] Add PR/Issue Auto Labeler (#13380)
* update

* update

* update

* update

* update

* update

* update

* update

* Apply suggestion from @sayakpaul

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2026-04-07 10:02:18 +05:30
YiYi Xu
039e688fe0 improve Claude CI (#13397)
up

Co-authored-by: yiyi@huggingface.co <yiyi@ip-26-0-160-103.ec2.internal>
2026-04-06 10:43:10 -10:00
Pauline Bailly-Masson
3211cd9df0 🔒 Pin GitHub Actions to commit SHAs (#13385)
* 🔒 pin benchmark.yml actions to commit SHAs

* 🔒 pin nightly_tests.yml actions to commit SHAs

* 🔒 pin build_pr_documentation.yml actions to commit SHAs

* 🔒 pin typos.yml actions to commit SHAs

* 🔒 pin build_docker_images.yml actions to commit SHAs

* 🔒 pin build_documentation.yml actions to commit SHAs

* 🔒 pin upload_pr_documentation.yml actions to commit SHAs

* 🔒 pin pr_style_bot.yml actions to commit SHAs

* 🔒 pin codeql.yml actions to commit SHAs

* 🔒 pin ssh-pr-runner.yml actions to commit SHAs

* 🔒 pin trufflehog.yml actions to commit SHAs
2026-04-02 21:04:45 +05:30
hf-security-analysis[bot]
514bba0696 chore: update claude_review.yml (#13374)
fix(security): remediate workflow vulnerability in .github/workflows/claude_review.yml

Co-authored-by: hf-security-analysis[bot] <265538906+hf-security-analysis[bot]@users.noreply.github.com>
2026-04-01 10:18:29 +05:30
Sayak Paul
a8075425d8 [ci] support claude reviewing on forks. (#13365)
* support claude reviewing on forks.

* sanitization

* tighten system prompt.

* use latest checkout

* remove id-token
2026-03-31 14:56:08 +05:30
Sayak Paul
7da22b9db5 [ci] include checkout step in claude review workflow (#13352)
up
2026-03-27 17:28:31 +05:30
Sayak Paul
b757035df6 fix claude workflow to include id-token with write. (#13338) 2026-03-26 15:39:10 +05:30
Sayak Paul
426daabad9 [ci] claude in ci. (#13297)
* claude in ci.

* review feedback.
2026-03-25 21:30:06 +05:30
Dhruv Nair
e9b9f25f67 [CI] Update transformer version in release tests (#13296)
update
2026-03-20 11:40:06 +05:30
Dhruv Nair
07a63e197e [CI] Potential fix for code scanning alert no. 2150: Workflow does not contain permissions (#13230)
Potential fix for code scanning alert no. 2150: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2026-03-10 09:07:16 +05:30
Dhruv Nair
8ea908f323 [CI] Add Workflow permissions to PR tests (#13233)
[CI] Add workflow permissions to PR tests

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-03-09 17:51:42 +05:30
Sayak Paul
3d9085565b remove db utils from benchmarking (#13199) 2026-03-02 16:39:56 +05:30
Sayak Paul
fcdd759e39 [chore] updates in the pypi publication workflow. (#12805)
* updates in the pypi publication workflow.

* change to 3.10
2026-03-02 14:34:49 +05:30