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

🌐 [i18n-ZH] Translate serialization.md into Chinese #27076

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

yyLeaves
Copy link
Contributor

What does this PR do?

Translate serialization.md into Chinese
part of #20095

Who can review?

Documentation: @stevhliu
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

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

Nice, thanks for the translation!


🤗 Optimum 是 Transformers 的扩展,可以通过其 `exporters` 模块将模型从 PyTorch 或 TensorFlow 导出为 ONNX 及 TFLite 等序列化格式。🤗 Optimum 还提供了一套性能优化工具,可以在目标硬件上以最高效率训练和运行模型。

本指南演示了如何使用 🤗 Optimum 将 🤗 Transformers 模型导出为 ONNX。有关将模型导出为 TFLite 的指南,请参考[导出为 TFLite 页面](tflite)。
Copy link
Member

Choose a reason for hiding this comment

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

Should we maybe link to the English version of Export to TFLite for now since this doc doesn't exist in Chinese?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we maybe link to the English version of Export to TFLite for now since this doc doesn't exist in Chinese?

Hi @stevhliu I think for this document it's fine to keep the Chinese version since I have make the translations for tflite and will commit soon.

For future docs, I'm wondering if there's any helper to identify if the document is referenced in the translated documents? If not, it will be difficult to maintain from the translators' sides to do it manually when the number of zh docs grow. It will definately take efforts when there're dozens of links in one doc like this.

image

Otherwise, the redirect message seems fine with me.
image

Best

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we currently have any tools that do this. The example you referenced below is auto-generated so you won't have to touch those. Besides the task pages, I don't think you'll find too many other docs with as many links as that though. 🙂

@stevhliu stevhliu merged commit 9093b19 into huggingface:main Oct 30, 2023
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
* docs(zh): translate serialization.md

* docs(zh): add space around links
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.

3 participants