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 utils/test_module/custom_tokenization_fast.py from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/utils/test_module/custom_tokenization_fast.py
- Command line
-
hf download hf://AbdulElahGwaith/transformers/utils/test_module/custom_tokenization_fast.py
-
curl -L -o custom_tokenization_fast.py https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/utils/test_module/custom_tokenization_fast.py
321 Bytes
| from transformers import BertTokenizerFast | |
| from .custom_tokenization import CustomTokenizer | |
| class CustomTokenizerFast(BertTokenizerFast): | |
| slow_tokenizer_class = CustomTokenizer | |
| _auto_map = { | |
| "AutoTokenizer": ("custom_tokenization.CustomTokenizer", "custom_tokenization_fast.CustomTokenizerFast") | |
| } | |