Instructions to use davanstrien/lfm25-encoder-goemotions-smoke with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use davanstrien/lfm25-encoder-goemotions-smoke with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="davanstrien/lfm25-encoder-goemotions-smoke", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("davanstrien/lfm25-encoder-goemotions-smoke", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("davanstrien/lfm25-encoder-goemotions-smoke", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "EncoderForSequenceClassification" | |
| ], | |
| "auto_map": { | |
| "AutoModel": "modeling_lfm2_bidirectional.Lfm2BidirectionalModel", | |
| "AutoModelForMaskedLM": "modeling_lfm2_bidirectional.Lfm2BidirectionalForMaskedLM", | |
| "AutoModelForSequenceClassification": "modeling_encoder_seq_cls.EncoderForSequenceClassification" | |
| }, | |
| "block_auto_adjust_ff_dim": true, | |
| "block_dim": 1024, | |
| "block_ffn_dim_multiplier": 1.0, | |
| "block_mlp_init_scale": 1.0, | |
| "block_multiple_of": 256, | |
| "block_norm_eps": 1e-05, | |
| "block_out_init_scale": 1.0, | |
| "block_use_swiglu": true, | |
| "block_use_xavier_init": true, | |
| "bos_token_id": 1, | |
| "classifier_thresholds": [ | |
| 0.1, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.1, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.05, | |
| 0.3 | |
| ], | |
| "conv_L_cache": 3, | |
| "conv_bias": false, | |
| "conv_dim": 1024, | |
| "conv_dim_out": 1024, | |
| "conv_use_xavier_init": true, | |
| "dtype": "float32", | |
| "eos_token_id": 7, | |
| "full_attn_idxs": null, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "admiration", | |
| "1": "amusement", | |
| "10": "disapproval", | |
| "11": "disgust", | |
| "12": "embarrassment", | |
| "13": "excitement", | |
| "14": "fear", | |
| "15": "gratitude", | |
| "16": "grief", | |
| "17": "joy", | |
| "18": "love", | |
| "19": "nervousness", | |
| "2": "anger", | |
| "20": "optimism", | |
| "21": "pride", | |
| "22": "realization", | |
| "23": "relief", | |
| "24": "remorse", | |
| "25": "sadness", | |
| "26": "surprise", | |
| "27": "neutral", | |
| "3": "annoyance", | |
| "4": "approval", | |
| "5": "caring", | |
| "6": "confusion", | |
| "7": "curiosity", | |
| "8": "desire", | |
| "9": "disappointment" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 6656, | |
| "label2id": { | |
| "admiration": 0, | |
| "amusement": 1, | |
| "anger": 2, | |
| "annoyance": 3, | |
| "approval": 4, | |
| "caring": 5, | |
| "confusion": 6, | |
| "curiosity": 7, | |
| "desire": 8, | |
| "disappointment": 9, | |
| "disapproval": 10, | |
| "disgust": 11, | |
| "embarrassment": 12, | |
| "excitement": 13, | |
| "fear": 14, | |
| "gratitude": 15, | |
| "grief": 16, | |
| "joy": 17, | |
| "love": 18, | |
| "nervousness": 19, | |
| "neutral": 27, | |
| "optimism": 20, | |
| "pride": 21, | |
| "realization": 22, | |
| "relief": 23, | |
| "remorse": 24, | |
| "sadness": 25, | |
| "surprise": 26 | |
| }, | |
| "layer_types": [ | |
| "conv", | |
| "conv", | |
| "full_attention", | |
| "conv", | |
| "conv", | |
| "full_attention", | |
| "conv", | |
| "conv", | |
| "full_attention", | |
| "conv", | |
| "full_attention", | |
| "conv", | |
| "full_attention", | |
| "conv", | |
| "full_attention", | |
| "conv" | |
| ], | |
| "max_position_embeddings": 128000, | |
| "model_type": "lfm2", | |
| "norm_eps": 1e-05, | |
| "num_attention_heads": 16, | |
| "num_heads": 16, | |
| "num_hidden_layers": 16, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": 0, | |
| "problem_type": "multi_label_classification", | |
| "rope_parameters": { | |
| "rope_theta": 1000000.0, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.14.1", | |
| "use_cache": false, | |
| "use_pos_enc": true, | |
| "vocab_size": 65536 | |
| } |