Instructions to use AbdulElahGwaith/transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbdulElahGwaith/transformers with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AbdulElahGwaith/transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download docs/source/zh/internal/file_utils.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/zh/internal/file_utils.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/zh/internal/file_utils.md
-
curl -L -o file_utils.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/zh/internal/file_utils.md
1.37 kB
通用工具
此页面列出了在utils.py文件中找到的所有Transformers通用实用函数。
其中大多数仅在您研究库中的通用代码时才有用。
Enums和namedtuples(命名元组)
[[autodoc]] utils.ExplicitEnum
[[autodoc]] utils.PaddingStrategy
[[autodoc]] utils.TensorType
特殊的装饰函数
[[autodoc]] utils.add_start_docstrings
[[autodoc]] utils.add_start_docstrings_to_model_forward
[[autodoc]] utils.add_end_docstrings
[[autodoc]] utils.add_code_sample_docstrings
[[autodoc]] utils.replace_return_docstrings
其他实用程序
[[autodoc]] utils._LazyModule