voxmenthe commited on
Commit
036d450
·
verified ·
1 Parent(s): 26d235c

Upload fine-tuned model, tokenizer, and supporting files for modernbert-imdb-sentiment

Browse files
Files changed (3) hide show
  1. config.json +53 -0
  2. config.yaml +13 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSentiment"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50281,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "embedding_dropout": 0.0,
16
+ "eos_token_id": 50282,
17
+ "global_attn_every_n_layers": 3,
18
+ "global_rope_theta": 160000.0,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "NEGATIVE",
24
+ "1": "POSITIVE"
25
+ },
26
+ "initializer_cutoff_factor": 2.0,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 1152,
29
+ "label2id": {
30
+ "NEGATIVE": 0,
31
+ "POSITIVE": 1
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "local_attention": 128,
35
+ "local_rope_theta": 10000.0,
36
+ "max_position_embeddings": 8192,
37
+ "mlp_bias": false,
38
+ "mlp_dropout": 0.0,
39
+ "model_type": "modernbert",
40
+ "norm_bias": false,
41
+ "norm_eps": 1e-05,
42
+ "num_attention_heads": 12,
43
+ "num_hidden_layers": 22,
44
+ "pad_token_id": 50283,
45
+ "position_embedding_type": "absolute",
46
+ "repad_logits_with_grad": false,
47
+ "sep_token_id": 50282,
48
+ "sparse_pred_ignore_index": -100,
49
+ "sparse_prediction": false,
50
+ "torch_dtype": "float32",
51
+ "transformers_version": "4.51.3",
52
+ "vocab_size": 50368
53
+ }
config.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ name_or_path: "voxmenthe/modernbert-imdb-sentiment"
3
+ tokenizer_name_or_path: "answerdotai/ModernBERT-base"
4
+ max_length: 880 # 256
5
+ dropout: 0.1
6
+ pooling_strategy: "mean" # Current default, change as needed
7
+ num_weighted_layers: 6 # Match original training config
8
+
9
+ inference:
10
+ # Default path, can be overridden
11
+ model_path: "voxmenthe/modernbert-imdb-sentiment"
12
+ # Using the same max_length as training for consistency
13
+ max_length: 880 # 256
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4df4e2674170e253063392d4bd819656062aede34efe70fafe650ee033c46044
3
+ size 600842787