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 examples/modular-transformers/convert_examples.sh from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/examples/modular-transformers/convert_examples.sh
- Command line
-
hf download hf://AbdulElahGwaith/transformers/examples/modular-transformers/convert_examples.sh
-
curl -L -o convert_examples.sh https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/examples/modular-transformers/convert_examples.sh
333 Bytes
| # Iterate over each file in the current directory | |
| for file in examples/modular-transformers/modular_*; do | |
| # Check if it's a regular file | |
| if [ -f "$file" ]; then | |
| # Call the Python script with the file name as an argument | |
| python utils/modular_model_converter.py --files_to_parse "$file" | |
| fi | |
| done |