Instructions to use Mahmoud8/small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mahmoud8/small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Mahmoud8/small")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Mahmoud8/small") model = AutoModelForSequenceClassification.from_pretrained("Mahmoud8/small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 412 Bytes
c7251c3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {
"bos_token": "<s>",
"clean_text": true,
"clean_up_tokenization_spaces": true,
"cls_token": "<cls>",
"do_lower_case": true,
"eos_token": "</s>",
"mask_token": "<mask>",
"model_max_length": 512,
"pad_token": "<pad>",
"sep_token": "<sep>",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "FunnelTokenizer",
"unk_token": "<unk>",
"wordpieces_prefix": "##"
}
|