Text Classification
Transformers
PyTorch
English
distilbert
fill-mask
emotion
emotion-detection
affective-computing
text-embeddings-inference
Instructions to use Jayan12321/distilbert-emotion-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jayan12321/distilbert-emotion-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Jayan12321/distilbert-emotion-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Jayan12321/distilbert-emotion-classifier") model = AutoModelForMaskedLM.from_pretrained("Jayan12321/distilbert-emotion-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 582 Bytes
bd1d08b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | {
"activation": "gelu",
"architectures": [
"DistilBertForMaskedLM"
],
"attention_dropout": 0.1,
"bos_token_id": null,
"dim": 768,
"dropout": 0.1,
"eos_token_id": null,
"hidden_dim": 3072,
"initializer_range": 0.02,
"max_position_embeddings": 512,
"model_type": "distilbert",
"n_heads": 12,
"n_layers": 6,
"pad_token_id": 0,
"qa_dropout": 0.1,
"seq_classif_dropout": 0.2,
"sinusoidal_pos_embds": false,
"tie_weights_": true,
"tie_word_embeddings": true,
"transformers_version": "5.17.0",
"vocab_size": 30522
}
|