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 (2)
7 unmodified lines89101112131415161718192021227 unmodified lines "dropout": 0.1, "dtype": "float32", "hidden_dim": 3072, "id2label": { "0": "HAM", "1": "SPAM" }, "initializer_range": 0.02, "label2id": { "HAM": 0, "SPAM": 1 }, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12,1223version https://git-lfs.github.com/spec/v1oid sha256:98bd83709ef2cb51dffcd0086684715c91add0e2f82f9a92468a6440b398fa97oid sha256:c056218b9a7a0a63c93357348af089f3bec23594be86c287a58a688836589612size 267832560config.json+8
model.safetensors+1-1