Skip to content

Commit 4aba716

Browse files
authored
docs(README_zh-hans): clarify conditions for not using Transformers (#45688)
* docs(README_zh-hans): clarify conditions for not using Transformers Rephrase section title for clarity regarding the use of Transformers. * docs(README): update section title in README.md
1 parent f4fc6d0 commit 4aba716

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pipeline(
238238
<img alt="Hugging Face Enterprise Hub" src="https://github.com/user-attachments/assets/247fb16d-d251-4583-96c4-d3d76dda4925">
239239
</a><br>
240240

241-
## Why shouldn't I use Transformers?
241+
## When shouldn't I use Transformers?
242242

243243
- This library is not a modular toolbox of building blocks for neural nets. The code in the model files is not refactored with additional abstractions on purpose, so that researchers can quickly iterate on each of the models without diving into additional abstractions/files.
244244
- The training API is optimized to work with PyTorch models provided by Transformers. For generic machine learning loops, you should use another library like [Accelerate](https://huggingface.co/docs/accelerate).

i18n/README_zh-hans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pipeline(
258258
<img alt="Hugging Face Enterprise Hub" src="https://github.com/user-attachments/assets/247fb16d-d251-4583-96c4-d3d76dda4925">
259259
</a><br>
260260

261-
## 为什么我不该用 Transformers?
261+
## 什么情况下我不该用 Transformers?
262262

263263
- 该库不是一个可自由拼搭的神经网络模块化工具箱。模型文件中的代码刻意减少额外抽象,以便研究者能快速在各个模型上迭代,而无需深入更多抽象或文件跳转。
264264
- 训练 API 优化用于 Transformers 提供的 PyTorch 模型。若需要通用的机器学习训练循环,请使用其它库,如 [Accelerate](https://huggingface.co/docs/accelerate)

0 commit comments

Comments
 (0)