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 docker/README.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docker/README.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docker/README.md
-
curl -L -o README.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docker/README.md
1.12 kB
| # Dockers for `transformers` | |
| In this folder you will find various docker files, and some subfolders. | |
| - dockerfiles (ex: `consistency.dockerfile`) present under `~/docker` are used for our "fast" CIs. You should be able to use them for tasks that only need CPU. For example `torch-light` is a very light weights container (703MiB). | |
| - subfolders contain dockerfiles used for our `slow` CIs, which *can* be used for GPU tasks, but they are **BIG** as they were not specifically designed for a single model / single task. Thus the `~/docker/transformers-pytorch-gpu` includes additional dependencies to allow us to run ALL model tests (say `librosa` or `tesseract`, which you do not need to run LLMs) | |
| Note that in both case, you need to run `uv pip install -e .`, which should take around 5 seconds. We do it outside the dockerfile for the need of our CI: we checkout a new branch each time, and the `transformers` code is thus updated. | |
| We are open to contribution, and invite the community to create dockerfiles with potential arguments that properly choose extras depending on the model's dependencies! :hugs: | |