[docs] 14 code examples fail to parse (missing commas, words split mid-line in zh translations)
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 10/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 35k
- Fork
- 7.5k
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 58
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của huggingface/diffusers
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
huggingface/diffusers#15436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
InpaintProcessor crashes when padding_mask_crop is set and a dimension is omittedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
huggingface/diffusers#15433 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LTXEulerAncestralRFScheduler skips signal scaling with s_noise=0Có thể đã có người làm @hparik11 đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
huggingface/diffusers#15423 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: 13 docstrings document parameters their functions don't haveCó thể đã có người làm @M-Colley đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
huggingface/diffusers#15363 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`ZImageImg2ImgPipeline` / `ZImageInpaintPipeline`: explicit height/width different from the input image raises RuntimeErrorCó thể đã có người làm @chessing234 đã nhận 11 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/diffusers#15337 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của huggingface/diffusers
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 79/100
developmentseed/titiler-covjson#164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
awslabs/visual-asset-management-system#2164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày