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/deepspeed.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/en/main_classes/deepspeed.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/en/main_classes/deepspeed.md
-
curl -L -o deepspeed.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/en/main_classes/deepspeed.md
1.56 kB
DeepSpeed
DeepSpeed, powered by Zero Redundancy Optimizer (ZeRO), is an optimization library for training and fitting very large models onto a GPU. It is available in several ZeRO stages, where each stage progressively saves more GPU memory by partitioning the optimizer state, gradients, parameters, and enabling offloading to a CPU or NVMe. DeepSpeed is integrated with the [Trainer] class and most of the setup is automatically taken care of for you.
However, if you want to use DeepSpeed without the [Trainer], Transformers provides a [HfDeepSpeedConfig] class.
Learn more about using DeepSpeed with [Trainer] in the DeepSpeed guide.
HfDeepSpeedConfig
[[autodoc]] integrations.HfDeepSpeedConfig - all