[docs] 14 code examples fail to parse (missing commas, words split mid-line in zh translations)
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 10/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Bereich
- documentation
Rechercherichtung
The issue lists affected Markdown files under api/models, api/pipelines, using-diffusers, optimization, tutorials, and modular_diffusers. Start by checking the linked pull request #15441 and compare each reported Python example with its English counterpart. Done means the reported code blocks parse successfully, with remaining failures limited to printed representations as described.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
These Python examples raise SyntaxError when copied:
- en:
api/models/hunyuan_video15_transformer_3d.md(missing comma beforesubfolder=),api/pipelines/ltx_video.md(missing comma after the GGUF URL),using-diffusers/text-img2vid.md(from diffusers importAutoModel) - ko:
using-diffusers/loading_adapters.md(indentation made of non-breaking spaces, U+00A0) - zh: identifiers split across lines, e.g.
unet.to(memory/_format=...),residual_diff_thre/shold,ty/pe_hint,"h/ttps://...",["contr/olnet_denoise", ...]. Alsopipe line= ...,import compile regions, a missing comma afteradapter_name="cinematic", a missing), and two indentation slips. Files:optimization/{cache,fp16,memory,para_attn}.md,tutorials/using_peft_for_inference.md,modular_diffusers/{modular_pipeline,components_manager,sequential_pipeline_blocks,quickstart,pipeline_block}.md
Reproduction
From docs/source/en/api/models/hunyuan_video15_transformer_3d.md:
transformer = HunyuanVideo15Transformer3DModel.from_pretrained("hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v" subfolder="transformer", dtype=torch.bfloat16)
# SyntaxError: invalid syntax. Perhaps you forgot a comma?
Running ast.parse on every Python block in these 14 files finds 17 failures on main (08d5de3).
Context
Each fix is the smallest edit that matches the English page. With them, 3 failures remain, and those are printed reprs (ComponentSpec(... type_hint=<class ...>)), not code. I have the branch ready and would open one PR after a maintainer confirms the scope, with the self-review notes included.
I found these with an AI coding assistant and checked each edit by hand.
Logs
No response
System Info
Documentation only; checked with Python 3.12 ast.parse.
Who can help?
@stevhliu @sayakpaul
- Vorherrschende Sprache
- Python
- Sterne
- 35k
- Forks
- 7.5k
- Ø Merge
- 2 T. 22 Std.
- Gemergte PRs (30 T.)
- 58
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus huggingface/diffusers
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
huggingface/diffusers#15436 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
InpaintProcessor crashes when padding_mask_crop is set and a dimension is omittedEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
huggingface/diffusers#15433 ·
Maintainer antworten meist innerhalb von 1 Tag
-
LTXEulerAncestralRFScheduler skips signal scaling with s_noise=0Evtl. vergeben @hparik11 hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
huggingface/diffusers#15423 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Docs: 13 docstrings document parameters their functions don't haveEvtl. vergeben @M-Colley hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
huggingface/diffusers#15363 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
`ZImageImg2ImgPipeline` / `ZImageInpaintPipeline`: explicit height/width different from the input image raises RuntimeErrorEvtl. vergeben @chessing234 hat das vor 11 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
huggingface/diffusers#15337 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in huggingface/diffusers
Ähnliche Issues
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount dueEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 79/100
developmentseed/titiler-covjson#164 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
awslabs/visual-asset-management-system#2164 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer antworten meist innerhalb von 1 Tag
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag