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
Download config.json from Reza2kn/Hes-Shenaas-RizehPizeh-v0.1: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/Reza2kn/Hes-Shenaas-RizehPizeh-v0.1/resolve/main/config.json
- Command line
-
hf download hf://Reza2kn/Hes-Shenaas-RizehPizeh-v0.1/config.json
-
curl -L -o config.json https://huggingface.co/Reza2kn/Hes-Shenaas-RizehPizeh-v0.1/resolve/main/config.json
1.59 kB
| { | |
| "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" | |
| } | |