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/main_classes/configuration.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ja/main_classes/configuration.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/ja/main_classes/configuration.md
-
curl -L -o configuration.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ja/main_classes/configuration.md
1.54 kB
# 構成
基本クラス [PreTrainedConfig] は、設定をロード/保存するための一般的なメソッドを実装します。
ローカル ファイルまたはディレクトリから、またはライブラリ (ダウンロードされた) によって提供される事前トレーニング済みモデル構成から
HuggingFace の AWS S3 リポジトリから)。
各派生構成クラスはモデル固有の属性を実装します。すべての構成クラスに存在する共通の属性は次のとおりです。
hidden_size、num_attention_heads、および num_hidden_layers。テキスト モデルはさらに以下を実装します。
vocab_size。
PreTrainedConfig
[[autodoc]] PreTrainedConfig - push_to_hub - all