Instructions to use ashraq/dv-electra-small-news-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ashraq/dv-electra-small-news-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ashraq/dv-electra-small-news-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ashraq/dv-electra-small-news-classification") model = AutoModelForSequenceClassification.from_pretrained("ashraq/dv-electra-small-news-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": false, "lowercase": false, "special_tokens_map_file": "/root/.cache/huggingface/transformers/163908811f52956146ed4dc5ee8eaa5a2e8f72941c84c27c891d3e3f6eb6a082.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "ashraq/dv-electra-small", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "ElectraTokenizer"} |