Text Classification
Transformers
Safetensors
Persian
hes_shenaas_rizehpizeh
persian
farsi
emotion-classification
albert
small-model
custom_code
Instructions to use Reza2kn/Hes-Shenaas-RizehPizeh-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Reza2kn/Hes-Shenaas-RizehPizeh-v0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Reza2kn/Hes-Shenaas-RizehPizeh-v0.1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("Reza2kn/Hes-Shenaas-RizehPizeh-v0.1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,585 Bytes
f8992b2 | 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | {
"architectures": [
"HesShenaasForSequenceClassification"
],
"auto_map": {
"AutoConfig": "configuration_hesshenaas.HesShenaasConfig",
"AutoModelForSequenceClassification": "modeling_hesshenaas.HesShenaasForSequenceClassification"
},
"classifier_dropout": 0.2,
"dtype": "float32",
"encoder_config": {
"architectures": [
"AlbertForMaskedLM"
],
"attention_probs_dropout_prob": 0,
"bos_token_id": 2,
"classifier_dropout_prob": 0.1,
"down_scale_factor": 1,
"dtype": "float32",
"embedding_size": 128,
"eos_token_id": 3,
"gap_size": 0,
"hidden_act": "gelu_new",
"hidden_dropout_prob": 0,
"hidden_size": 768,
"initializer_range": 0.02,
"inner_group_num": 1,
"intermediate_size": 3072,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "albert",
"net_structure_type": 0,
"num_attention_heads": 12,
"num_hidden_groups": 1,
"num_hidden_layers": 12,
"num_memory_blocks": 0,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"tie_word_embeddings": true,
"transformers_version": "5.14.1",
"type_vocab_size": 2,
"vocab_size": 32004
},
"gru_hidden_size": 128,
"id2label": {
"0": "ANGRY",
"1": "FEAR",
"2": "HAPPY",
"3": "HATE",
"4": "SAD",
"5": "SURPRISE",
"6": "OTHER"
},
"label2id": {
"ANGRY": 0,
"FEAR": 1,
"HAPPY": 2,
"HATE": 3,
"OTHER": 6,
"SAD": 4,
"SURPRISE": 5
},
"model_type": "hes_shenaas_rizehpizeh",
"transformers_version": "5.14.1"
}
|