Skip to content

docs: fix dead doc links in i18n READMEs and the xlnet docstring - #48905

Merged
stevhliu merged 1 commit into
huggingface:mainfrom
simpleqt:sq918/dead-doc-refs
Sep 18, 2026
Merged

stevhliu merged 1 commit into
huggingface:mainfrom
simpleqt:sq918/dead-doc-refs

Conversation

@simpleqt

@simpleqt simpleqt commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

CPU CI GPU run-slow

Dead doc references

Changes

  1. i18n/README_ro.md:250, README_tr.md:249, README_fa.md:246: [awesome-transformers](./awesome-transformers.md) resolves inside i18n/, where the file doesn't exist. The fr/de/ko/zh-hans/ja translations already use the absolute GitHub URL; these three now match.
  2. src/transformers/models/xlnet/modeling_xlnet.py:1449-1450: the cache-reorder docstring cross-references PreTrainedModel.beam_search / beam_sample, which no longer exist anywhere (generation routes BEAM_SAMPLE to _beam_search). Reworded to "if beam search is used".

AI disclosure

AI-assisted (ZCode agent, GLM), same verification approach as my merged #48575/#48576 and the open #48904: link targets proven missing by file-existence checks, stale symbols proven removed by repo-wide grep. I have personally reviewed every line.

- README_ro/tr/fa linked ./awesome-transformers.md relative to i18n/,
  where no such file exists; the fr/de/ko/zh-hans/ja translations use
  the absolute URL, and these three now match.
- The xlnet reorder cache docstring cross-referenced
  PreTrainedModel.beam_search/beam_sample, which were removed; only
  _beam_search exists.
Copilot AI lite review requested due to automatic review settings September 17, 2026 17:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: xlnet

@simpleqt

Copy link
Copy Markdown
Contributor Author

Note on the security-gate / get-changed-files check: it fails because two of the three changed files are i18n/README_ro.md, i18n/README_tr.md and i18n/README_fa.md — i18n/ is outside the gate's allowed directories (src, tests, docs, utils), and the fix is precisely in those translation READMEs (dead ./awesome-transformers.md links, matching the absolute-URL pattern already used by the fr/de/ko/zh-hans/ja translations). Could a maintainer approve CI manually, or advise how you'd like i18n doc fixes routed?

@Rocketknight1

Copy link
Copy Markdown
Member

cc @stevhliu

@stevhliu stevhliu 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.

thanks for fixing!

@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 35252763478
Result: success | Grafana metrics are not available yet.

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution 🤗!

CI Security Gate — automatic approval blocked

This PR was not automatically approved for CI because the security gate failed.

Possible reasons:

  • The PR touches 50 or more files — only PRs with fewer than 50 changed files are automatically approved
  • A changed file is outside the allowed directories (src/, tests/, docs/, utils/), has a disallowed extension (only .py, .txt, .md permitted outside tests/ and docs/), or is not .md/.yml inside docs/ — this covers files the PR deletes or renames, not only the ones it edits
  • A new high-severity security issue was detected in the changed Python files (Bandit check)
  • The PR touches a path this repository protects from untrusted PRs, such as the file that decides who reviews it — a maintainer must make that change in a separate PR

See the workflow run for the exact violations.

A maintainer can review and manually approve CI if a finding is a false positive.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@stevhliu
stevhliu added this pull request to the merge queue Sep 18, 2026
Merged via the queue into huggingface:main with commit 3713bd8 Sep 18, 2026
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants