Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permalinks to transformers.PreTrainedModel.from_pretrained attributes are broken in releases starting from 4.41.0/v4.41.1/v4.41.2/v4.41.3 EN #1420

Closed
alcompa opened this issue Sep 19, 2024 · 2 comments

Comments

@alcompa
Copy link

alcompa commented Sep 19, 2024

Bug description.

Permalinks to transformers.PreTrainedModel.from_pretrained attributes are broken in releases starting from v4.41.0/v4.41.1/v4.41.2/v4.41.3 EN.

Example: .config attribute

image

Clicking the permalink icon redirects to https://huggingface.co/docs/transformers/v4.41.3/en/main_classes/#transformers.PreTrainedModel.from_pretrained.config

which says:

"The documentation page MAIN_CLASSES/#TRANSFORMERS.PRETRAINEDMODEL.FROM_PRETRAINED.CONFIG doesn’t exist in v4.41.3, but exists on the main version. Click here to redirect to the main version of the documentation."

Clicking on "here" redirects to a 404.

Expected behaviour

In previous versions, e.g. v4.40.0/v4.40.1/v4.40.2 EN this feature works properly.
Creating a permalink for transformers.PreTrainedModel.from_pretrained.config results in the following URL https://huggingface.co/docs/transformers/v4.40.2/en/main_classes/model#transformers.PreTrainedModel.from_pretrained.config

@julien-c
Copy link
Member

@mishig25 maybe (idk)

@mishig25
Copy link
Collaborator

It was fixed by @gante huggingface/doc-builder#516. This problem no longer exists on newer versions of the docs.

@gante you can re-trigger doc-build jobs for versions 4.41.0/v4.41.1/v4.41.2/v4.41.3 to fix them

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

No branches or pull requests

3 participants