[docs] 14 code examples fail to parse (missing commas, words split mid-line in zh translations)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 10/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- documentation
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 35k
- Forks
- 7.5k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 58
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from huggingface/diffusers
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
huggingface/diffusers#15436 · 1 comment ·
Maintainers usually reply within 1 day
-
InpaintProcessor crashes when padding_mask_crop is set and a dimension is omittedPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
huggingface/diffusers#15433 ·
Maintainers usually reply within 1 day
-
LTXEulerAncestralRFScheduler skips signal scaling with s_noise=0Possibly taken @hparik11 claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
huggingface/diffusers#15423 · 2 comments ·
Maintainers usually reply within 1 day
-
Docs: 13 docstrings document parameters their functions don't havePossibly taken @M-Colley claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
huggingface/diffusers#15363 · 2 comments ·
Maintainers usually reply within 1 day
-
`ZImageImg2ImgPipeline` / `ZImageInpaintPipeline`: explicit height/width different from the input image raises RuntimeErrorPossibly taken @chessing234 claimed this 11 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
huggingface/diffusers#15337 · 3 comments ·
Maintainers usually reply within 1 day
All issues in huggingface/diffusers
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-connect#1266 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
biosustain/growthcurves_app#89 ·
Maintainers usually reply within 1 day
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
canonical/loki-k8s-operator#695 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day