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/en/main_classes/configuration.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/en/main_classes/configuration.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/en/main_classes/configuration.md
-
curl -L -o configuration.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/en/main_classes/configuration.md
1.33 kB
Configuration
The base class [PreTrainedConfig] implements the common methods for loading/saving a configuration
either from a local file or directory, or from a pretrained model configuration provided by the library (downloaded
from HuggingFace's AWS S3 repository).
Each derived config class implements model specific attributes. Common attributes present in all config classes are:
hidden_size, num_attention_heads, and num_hidden_layers. Text models further implement:
vocab_size.
PreTrainedConfig
[[autodoc]] PreTrainedConfig - push_to_hub - all