Text Classification
Transformers
Safetensors
English
distilbert
text-generation-inference
spam-detection
nlp
binary-classification
text-embeddings-inference
Instructions to use kenbaker-gif/Email_Spam_Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kenbaker-gif/Email_Spam_Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kenbaker-gif/Email_Spam_Classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kenbaker-gif/Email_Spam_Classifier") model = AutoModelForSequenceClassification.from_pretrained("kenbaker-gif/Email_Spam_Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (5)
- config.json+16-19
- model.safetensors+2-2
- special_tokens_map.json+5-49
- tokenizer_config.json+23-24
- training_args.bin+2-2
123456789101112131415161718192021222324252627{"architectures": ["RobertaForSequenceClassification"],"attention_probs_dropout_prob": 0.1,"bos_token_id": 0,"classifier_dropout": null,"dtype": "float32","eos_token_id": 2,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 768,"initializer_range": 0.02,"intermediate_size": 3072,"layer_norm_eps": 1e-05,"max_position_embeddings": 514,"model_type": "roberta","num_attention_heads": 12,"num_hidden_layers": 12,"pad_token_id": 1,"position_embedding_type": "absolute","problem_type": "single_label_classification","transformers_version": "4.56.1","type_vocab_size": 1,"use_cache": true,"vocab_size": 50265}123456789101112131415161718192021222324{"activation": "gelu","architectures": ["DistilBertForSequenceClassification"],"attention_dropout": 0.1,"dim": 768,"dropout": 0.1,"dtype": "float32","hidden_dim": 3072,"initializer_range": 0.02,"max_position_embeddings": 512,"model_type": "distilbert","n_heads": 12,"n_layers": 6,"pad_token_id": 0,"problem_type": "single_label_classification","qa_dropout": 0.1,"seq_classif_dropout": 0.2,"sinusoidal_pos_embds": false,"tie_weights_": true,"transformers_version": "4.56.1","vocab_size": 30522}
123version https://git-lfs.github.com/spec/v1oid sha256:1f8ea9757385a907e446b7a1470bca799f3f097ea9563895dd31a34b526561d1size 498612824123version https://git-lfs.github.com/spec/v1oid sha256:729f909a017560b0e5d2c74752f53008759d128fc54c61ae155595b2b5de99b7size 267832560
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{"bos_token": {"content": "<s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"cls_token": {"content": "<s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"eos_token": {"content": "</s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"mask_token": {"content": "<mask>","lstrip": true,"normalized": false,"rstrip": false,"single_word": false},"pad_token": {"content": "<pad>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"sep_token": {"content": "</s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false},"unk_token": {"content": "<unk>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false}}1234567{"cls_token": "[CLS]","mask_token": "[MASK]","pad_token": "[PAD]","sep_token": "[SEP]","unk_token": "[UNK]"}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{"add_prefix_space": false,"added_tokens_decoder": {"0": {"content": "<s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false,"special": true},"1": {"content": "<pad>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false,"special": true},"2": {"content": "</s>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false,"special": true},"3": {"content": "<unk>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false,"special": true},"50264": {"content": "<mask>","lstrip": true,"normalized": false,"rstrip": false,"single_word": false,"special": true}},"bos_token": "<s>","clean_up_tokenization_spaces": false,"cls_token": "<s>","eos_token": "</s>","errors": "replace","extra_special_tokens": {},"mask_token": "<mask>","model_max_length": 512,"pad_token": "<pad>","sep_token": "</s>","tokenizer_class": "RobertaTokenizer","unk_token": "<unk>"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{"added_tokens_decoder": {"0": {"content": "[PAD]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"100": {"content": "[UNK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"101": {"content": "[CLS]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"102": {"content": "[SEP]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"103": {"content": "[MASK]","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true}},"clean_up_tokenization_spaces": false,"cls_token": "[CLS]","do_lower_case": true,"extra_special_tokens": {},"mask_token": "[MASK]","model_max_length": 512,"pad_token": "[PAD]","sep_token": "[SEP]","strip_accents": null,"tokenize_chinese_chars": true,"tokenizer_class": "DistilBertTokenizer","unk_token": "[UNK]"}
123version https://git-lfs.github.com/spec/v1oid sha256:0d8a6394e047410cfbda364df027572bd476d904e215ed7fa179bfce098ae2aasize 5777123version https://git-lfs.github.com/spec/v1oid sha256:4798b0cd90f566c5ebaf3805db0a201ea4c11997724656839e13030f069dd873size 5713
config.json+16-19
model.safetensors+2-2
special_tokens_map.json+5-49
tokenizer_config.json+23-24
training_args.bin+2-2