Repository navigation
update issue labeler - #15446
update issue labeler#15446yiyixuxu wants to merge 11 commits into
Conversation
- 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>
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>
| 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 }} |
There was a problem hiding this comment.
need these since the labeler now look up public information about the reporter
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…sers into issue-labeler-priority
| 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 |
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
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>
| Feature labels: | ||
| - quantization: Related to model quantization | ||
| - compile: Related to torch.compile | ||
| - torch.compile: Related to torch.compile |
There was a problem hiding this comment.
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)
| - 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 |
There was a problem hiding this comment.
new label for a new feature (yet to be create)
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
@DN6 let me know if these are left blank on purpose
There was a problem hiding this comment.
Oh I think this is just the Github default for the template.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
| if model_name: | ||
| existing = get_existing_components() | ||
| if not any(model_name.lower() in name for name in existing): | ||
| labels.append("new-pipeline/model") |
There was a problem hiding this comment.
I removed the new-pipeline/model label from the labeler output in this PR:
- it's currently doing nothing in
mainsince the label "new-pipeline/mode" does not exist, we have "New pipeline/model" - 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, andStable Diffusion 3" does not matchstable_diffusion_3` etc. If we really want the labeler to output this label, it's easier to just let the LLM decide directly. - we have a template for that already, we can just let it apply the label, most new model/pipeline request come from that template
| about: Suggest an idea for this project | ||
| title: '' | ||
| labels: '' | ||
| labels: 'feature-request' |
There was a problem hiding this comment.
Oh I think this is just the Github default for the template.
| PRIORITY_LABELS = USER_FACING_LABELS | {"regression"} | ||
|
|
||
|
|
||
| def get_reporter_summary(login): |
There was a problem hiding this comment.
Is there a specific reason to fetch this information?
There was a problem hiding this comment.
yeah labeler take that into consideration for user-facing,e.g. if they have write access to a repo that uses diffusers etc
There was a problem hiding this comment.
How do we leverage that information?
| "new-pipeline/model", | ||
| "user-facing: official-example", | ||
| "user-facing: common", | ||
| "user-facing: less-common", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Agreed on the points on how we want to treat regression and high-prio issues.
sayakpaul
left a comment
There was a problem hiding this comment.
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" ] |
| - 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 |
There was a problem hiding this comment.
Actually after #14725 is merged, we could think of a single shared label called parallelism.
| "new-pipeline/model", | ||
| "user-facing: official-example", | ||
| "user-facing: common", | ||
| "user-facing: less-common", |
There was a problem hiding this comment.
Agreed on the points on how we want to treat regression and high-prio issues.
| PRIORITY_LABELS = USER_FACING_LABELS | {"regression"} | ||
|
|
||
|
|
||
| def get_reporter_summary(login): |
There was a problem hiding this comment.
How do we leverage that information?
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,feedbackandquestion. (Onmain, currently we only havebugandfeature-request). Among these,bug,feature-requestandfeedbackcan 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
buglabel to the issue. If the labeler sees it as a feature request, it addsfeature-requestand removesbug. 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 betweenfeature-requestandbugfrom run to run. We plan to givefeature-requestissue withlora/single-filelabel 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:user-facinglabels:user-facing: official-example,user-facing: commonoruser-facing: less-common.regression, which can be combined with auser-facinglabel.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 lblThe three
user-facinglabels go from highest to lowest priority, based on impact:user-facing: official-exampleuser-facing: commonuser-facing: less-commonTwo others labels:
regressionuser-facinglabel.needs-real-exampleIf 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
moonshotai/Kimi-K3.1-Pro.tensor-parallel.feature-requestandfeedbackon their own. (to be consistent with thebugtemplate)torch.compilelabel. Onmainit outputscompile, which does not exist in the repo.New pipeline/modellabel. If user used the new pipeline/model issue template, it will get aNew pipeline/modellabel;user-facing: commonorNew pipeline/model, and the oldforloop 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.
user-facing: official-exampleuser-facing: commonuser-facing: less-commonneeds-real-examplebug, no priority levelfeature-requestperformancedocumentationtrainingfeedbackquestionI 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-examplefeedback,tensor-parallelfeedbackhas to exist before merge: the workflow names it when it removes other type labels.Follow-ups
regression,user-facing: official-exampleuser-facing: common, andfeature-requestwithloraorsingle-fileuser-facing: less-common🤖 Generated with Claude Code