Skip to content

update issue labeler - #15446

Open
yiyixuxu wants to merge 11 commits into
mainfrom
issue-labeler-priority
Open

yiyixuxu wants to merge 11 commits into
mainfrom
issue-labeler-priority

Conversation

@yiyixuxu

@yiyixuxu yiyixuxu commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

This PR updates the issue labeler to help us prioritize issues.

(1) added more issue type labels

The issue labeler can now output 7 issue type labels: added performance, documentation, training, feedback and question. (On main, currently we only have bug and feature-request). Among these, bug, feature-request and feedback can also be applied by the issue template.

Each issue gets at most one type label, and the labeler has the final say: if it picks one, any other type label is removed. For example, if the user used the bug template, GitHub adds the bug label to the issue. If the labeler sees it as a feature request, it adds feature-request and removes bug. If the labeler does not pick a type, the template's label stays. Labels outside these 7 are never removed, e.g. New pipeline/model.

Notes on unsupported LoRA and single-file checkpoints: I think they should go into feature-request. However, users very commonly filed them as bugs and it's a bit tricky for the labeler to tell them apart as well: in my test, the same issue can be moved between feature-request and bug from run to run. We plan to give feature-request issue with lora/single-file label the same priority as common bugs

(2) added priority labels for bugs

If the labeler decides the issue is a bug, it also tries to add a priority label. It looks at two things:

  • Did a user actually run into it, and how common is their setup? This gives one of three user-facing labels: user-facing: official-example, user-facing: common or user-facing: less-common.
  • Did it work before? This gives regression, which can be combined with a user-facing label.

There is also needs-real-example, for a bug that seems to come from real use but does not show a real reproduction.

Not every bug gets a priority label. And priority labels do not apply to other issue types.

Below is a flow chart of how these labels are assigned:

flowchart TD
    A[New issue] --> B{Is it a bug?}
    B -- "no: type label only, no priority" --> C(["feature-request, performance, documentation,<br/>training, feedback, question"])
    B -- yes --> D{Did a user run into it?}
    D -- "no, found by reading the code: no priority" --> E(["bug"])
    D -- yes --> F{Is the reproduction real?}
    F -- "no, random weights or test checkpoint" --> G(["needs-real-example"])
    F -- yes --> H{What did they run?}
    H -- "an example we provide" --> I(["user-facing: official-example"])
    H -- "own code, common setup" --> J(["user-facing: common"])
    H -- "own code, uncommon setup" --> K(["user-facing: less-common"])
    B -- yes --> R{Did it work before?}
    R -- yes --> S(["regression"])

    classDef lbl fill:#ddf4ff,stroke:#0969da,color:#0a3069
    class C,E,G,I,J,K,S lbl
Loading

The three user-facing labels go from highest to lowest priority, based on impact:

Label Meaning
user-facing: official-example The reporter ran an example we provide (docs, docstring, model card) and it failed.
user-facing: common The reporter's own code, with a setup many users would run.
user-facing: less-common The reporter's own code, with a setup few users would run.

Two others labels:

Label Meaning
regression It worked in an earlier version. Decided separately, so it can be combined with a user-facing label.
needs-real-example The issue says it came up in real use, but only shows a reproduction with random weights or a test checkpoint. So it does not get a priority level. In a follow-up PR we plan to have a bot automatically comment on what is missing and potentially re-run the labeler once the missing info was added.

If a bug report does not get any these labels, it means there is no evidence that a user actually hit it. These are mostly bugs found by reading the code. When the labeler is unsure, it always picks the lower level or none. So a well-written issue will be looked at sooner, and a real bug could be overlooked if the issue is badly written. This is aligned with what we're already asking in our contribution guide: we ask the contributor to explain what they are trying to do and provide a real reproduction example. Only difference is now it's linked to a visible outcome. In a follow-up PR we will add a section in the guide to explain how the labeler works, hopefully this gives more incentive to write a good issue.

(3) other changes

  • The labeler now sees public information about the reporter (orgs, repos, merged PRs), and returns a one-sentence reason for its choice.
  • The default model is moonshotai/Kimi-K3.1-Pro.
  • New feature label tensor-parallel.
  • The Feature Request and Feedback templates apply feature-request and feedback on their own. (to be consistent with the bug template)
  • The contribution guide's technical question link opens a blank issue. It used to open the bug template.
  • The labeler now uses the existing torch.compile label. On main it outputs compile, which does not exist in the repo.
  • The labeler no longer output New pipeline/model label. If user used the new pipeline/model issue template, it will get a New pipeline/model label;
  • Some labels now contain a space, like user-facing: common or New pipeline/model, and the old for loop in the workflow would split them, so it reads them line by line now.

experimental run

I ran the labeler on the 174 open issues filed since August 1 by people outside the team. The full summary is shared on Slack.

Label Issues
user-facing: official-example 1
user-facing: common 10
user-facing: less-common 17
needs-real-example 10
bug, no priority level 69
feature-request 23
performance 25
documentation 6
training 7
feedback 1
question 1
no type label 4

I reviewed all of them (For some I read the issue itself, for others I only reviewed the labeler's reasoning), I think the output is overall reasonable, we could adjust as we go

Before merging

These labels do not exist in the repo yet and need to be created:

  • user-facing: official-example, user-facing: common, user-facing: less-common, regression, needs-real-example
  • feedback, tensor-parallel

feedback has to exist before merge: the workflow names it when it removes other type labels.

Follow-ups

  • Log the labels and reasons to a dataset. We can then run analytics on top of it, to understand trends and patterns in community contributions and to track how accurate the labels are.
  • A bot comment that tells the reporter what is missing.
  • Slack reminders based on the priority labels:
When Which issues
Immediately regression, user-facing: official-example
After 5 days with no activity user-facing: common, and feature-request with lora or single-file
After 2 weeks with no activity user-facing: less-common

🤖 Generated with Claude Code

- New types: performance, documentation, training, question. An issue can also get no type.
- Bugs get one of three priority labels, user-facing: official-example / common / less-common,
  and regression when the issue shows it used to work.
- needs-real-example when a bug claims real use but only shows a made-up reproduction.
- The prompt now includes public information about the reporter.
- Default model is now moonshotai/Kimi-K3.1-Pro.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@yiyixuxu
yiyixuxu marked this pull request as draft December 1, 2026 07:03
@github-actions github-actions Bot added CI size/M PR with diff < 200 LOC labels Dec 1, 2026
yiyixuxu and others added 4 commits December 1, 2026 08:41
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- New `feedback` type and `tensor-parallel` feature label.
- A bug report has to show a problem. A checkpoint or LoRA format that
  is not supported yet is a feature request.
- The feature request and feedback templates apply their labels.
- The technical question link in the contribution guide opens a blank
  issue.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Dec 1, 2026
@yiyixuxu
yiyixuxu marked this pull request as ready for review December 1, 2026 21:56
HF_TOKEN: ${{ secrets.ISSUE_LABELER_HF_TOKEN }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}

@yiyixuxu yiyixuxu Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need these since the labeler now look up public information about the reporter

yiyixuxu and others added 2 commits December 1, 2026 23:42
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LABELS: ${{ steps.get-labels.outputs.labels }}
run: |
for label in $(echo "$LABELS" | python -c "import json,sys; print('\n'.join(json.load(sys.stdin)))"); do
echo "$LABELS" | python -c "import json,sys; print('\n'.join(json.load(sys.stdin)))" | while IFS= read -r label; do

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some labels contains a space user-facing: common or New pipeline/model

why this part of the code is difficult to understand.

You can open an issue about a technical question [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=bug&template=bug-report.yml).
You can open an issue about a technical question [here](https://github.com/huggingface/diffusers/issues/new).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why but currently we link to bug report for "technical questions" -> change to a blank issue template

Also point the new model template at the existing label.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread utils/label_issues.py
Feature labels:
- quantization: Related to model quantization
- compile: Related to torch.compile
- torch.compile: Related to torch.compile

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't have compile label created yet, so currently on main all the issues the issue labeler classified as "compile" are not getting a label, fixing it here by change it to"torch.compile" (a label that we currently have & using)

Comment thread utils/label_issues.py
- torch.compile: Related to torch.compile
- attention-backends: Related to attention backends
- context-parallel: Related to context parallel attention
- tensor-parallel: Related to tensor parallelism

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new label for a new feature (yet to be create)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually after #14725 is merged, we could think of a single shared label called parallelism.

about: Suggest an idea for this project
title: ''
labels: ''
labels: 'feature-request'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DN6 let me know if these are left blank on purpose

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I think this is just the Github default for the template.

yiyixuxu and others added 2 commits December 2, 2026 00:23
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread utils/label_issues.py
if model_name:
existing = get_existing_components()
if not any(model_name.lower() in name for name in existing):
labels.append("new-pipeline/model")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the new-pipeline/model label from the labeler output in this PR:

  1. it's currently doing nothing in main since the label "new-pipeline/mode" does not exist, we have "New pipeline/model"
  2. the algorithm that is intended to apply this label does not work correctly: it ask the LLM to extract a model name from the issue and then check whether that name appears in the files and folder names under the pipeline/models folder. so for example, if user mentioned "Qwen-Image" in the issue, it would not match qwenimage, and Stable Diffusion 3" does not match stable_diffusion_3` etc. If we really want the labeler to output this label, it's easier to just let the LLM decide directly.
  3. we have a template for that already, we can just let it apply the label, most new model/pipeline request come from that template

@yiyixuxu
yiyixuxu requested review from DN6 and sayakpaul December 2, 2026 09:07
about: Suggest an idea for this project
title: ''
labels: ''
labels: 'feature-request'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I think this is just the Github default for the template.

Comment thread utils/label_issues.py
PRIORITY_LABELS = USER_FACING_LABELS | {"regression"}


def get_reporter_summary(login):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason to fetch this information?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah labeler take that into consideration for user-facing,e.g. if they have write access to a repo that uses diffusers etc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we leverage that information?

Comment thread utils/label_issues.py
"new-pipeline/model",
"user-facing: official-example",
"user-facing: common",
"user-facing: less-common",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would opt to just keep user-facing as a catchall label for now, and introduce more fine-grained categories after we see some real world labels on topics.

The labeling model doesn't have access to any sort of usage information, so common vs less-common is determined entirely from the system prompt instructions and the model's internal knowledge of diffusers (since tools aren't being used with the endpoint to fetch the latest diffusers info).

And user-facing: official-example feels like it overlaps quite heavily with regression right? Can't we consider them to be the same type?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we did run the labeler on all 174 open issues since 8/1, from users outside of the team i shared the output in slack see https://huggingface.slack.com/archives/C065E480NN9/p1796166067003869?thread_ts=1795459089.673069&cid=C065E480NN9
the labeler only see the issue as filed, title, body and the reporter's public profile, it does not look at comments on the issue - so exactly like what's in production. I think we can consider them real-world examples, and a lot of them. could you take a look at them too? I think kimi is able to determine common vs less-common pretty reasonable for the most cases, even just purely based on its knowledge of the library.

that said, i'm ok with just keep a singleuser-facing label. among the 174, we have about 10 are common and 17 are less-common and another 10 that needs-real-example (these could be considered user-facing once a better repro is provided). so about 40 bug reports across 4 months time period, I think we could treat both of them with same priority -> get a slack notification if no activity within 3 days?

on the regression: the PR define it as " code that used to work that no longer does so", it can be their own code with strange setting and could be made up code as well, in the 174, these 4 are "regression"

│ #14649 guidance_scale=1.0 no longer disables CFG in LTX-2
│ #15313 Multi-vector textual inversion uses only the first vector (transformers v5)
│ #15210 set_ip_adapter_scale(float) raises with several IP-Adapters
│ #14887 UniPCMultistepScheduler returns nan with bh1 on the final step

I think only the first one need to be treated with high-prior. I think we can keep regression label as it is (as separate label), and send immediate slack notification only when an issue has both regression and user-facing?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on the points on how we want to treat regression and high-prio issues.

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some clarification questions.

name: "\U0001F31F New Model/Pipeline/Scheduler Addition"
description: Submit a proposal/request to implement a new diffusion model/pipeline/scheduler
labels: [ "New model/pipeline/scheduler" ]
labels: [ "New pipeline/model" ]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove scheduler though?

Comment thread utils/label_issues.py
- torch.compile: Related to torch.compile
- attention-backends: Related to attention backends
- context-parallel: Related to context parallel attention
- tensor-parallel: Related to tensor parallelism

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually after #14725 is merged, we could think of a single shared label called parallelism.

Comment thread utils/label_issues.py
"new-pipeline/model",
"user-facing: official-example",
"user-facing: common",
"user-facing: less-common",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on the points on how we want to treat regression and high-prio issues.

Comment thread utils/label_issues.py
PRIORITY_LABELS = USER_FACING_LABELS | {"regression"}


def get_reporter_summary(login):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we leverage that information?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI documentation Improvements or additions to documentation size/M PR with diff < 200 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants