Closed jrhe closed 2 days ago
@jrhe thanks for reporting the issue! The easiest way for you and other users to build documentation is likely to open a PR to the repo that changes the docs.
This will trigger a build and link you to the built docs. We unfortunately don't have the bandwidth to extensively test this on many different hardwares so we're happy for you to open PRs to test your doc changes.
@LysandreJik Good to know. I think huggingface/doc-builder#515 should fix it anyway hopefully
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
transformers
version: 4.44.0.dev0Who can help?
@stevhliu - N.B. fix found and PR to be made on doc-builder. Raising issue here to document incase anyone else runs into it in the meanwhile.
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Run steps to build documentation as described in
https://github.com/huggingface/transformers/tree/main/docs
on Mac OS.tensorflow_text
is unavailable on Mac OSX.The error is the result of
mro()
being called bydoc-builder
's autodoc on the dummyTFBertTokenizer
fromtransformers.utils.dummy_tensorflow_text_objects
. This call results in__getattribute__
being called onDummyObject
fromtransformers.utils.import_utils
, which callsrequires_backends
that throws theImportError
.Expected behavior
Either: 1) Docs can be built, without auto generated documentation for the platform specific dependencies. 2) Building documentation is not supported on macOS and is documented in
https://github.com/huggingface/transformers/blob/main/docs/README.md
1 is probably preferable. Documentation of platform specific dependencies will still be built by CI on Github actions.