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/ja/internal/file_utils.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ja/internal/file_utils.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/ja/internal/file_utils.md
-
curl -L -o file_utils.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ja/internal/file_utils.md
1.53 kB
一般的なユーティリティ
このページには、ファイル utils.py にある Transformers の一般的なユーティリティ関数がすべてリストされています。
これらのほとんどは、ライブラリで一般的なコードを学習する場合にのみ役に立ちます。
列挙型と名前付きタプル
[[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