Upload 3-epoch ModernBERT-Large pointwise sentence scorer
Browse files- config.json +91 -0
- eval_metrics.json +14 -0
- model.safetensors +3 -0
- run_summary.md +44 -0
- tokenizer.json +0 -0
- tokenizer_config.json +17 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ModernBertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": null,
|
| 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 |
+
"dtype": "float32",
|
| 16 |
+
"embedding_dropout": 0.0,
|
| 17 |
+
"eos_token_id": null,
|
| 18 |
+
"global_attn_every_n_layers": 3,
|
| 19 |
+
"gradient_checkpointing": false,
|
| 20 |
+
"hidden_activation": "gelu",
|
| 21 |
+
"hidden_size": 1024,
|
| 22 |
+
"id2label": {
|
| 23 |
+
"0": "LABEL_0"
|
| 24 |
+
},
|
| 25 |
+
"initializer_cutoff_factor": 2.0,
|
| 26 |
+
"initializer_range": 0.02,
|
| 27 |
+
"intermediate_size": 2624,
|
| 28 |
+
"label2id": {
|
| 29 |
+
"LABEL_0": 0
|
| 30 |
+
},
|
| 31 |
+
"layer_norm_eps": 1e-05,
|
| 32 |
+
"layer_types": [
|
| 33 |
+
"full_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"sliding_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"sliding_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"sliding_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"sliding_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"full_attention"
|
| 61 |
+
],
|
| 62 |
+
"local_attention": 128,
|
| 63 |
+
"max_position_embeddings": 8192,
|
| 64 |
+
"mlp_bias": false,
|
| 65 |
+
"mlp_dropout": 0.0,
|
| 66 |
+
"model_type": "modernbert",
|
| 67 |
+
"norm_bias": false,
|
| 68 |
+
"norm_eps": 1e-05,
|
| 69 |
+
"num_attention_heads": 16,
|
| 70 |
+
"num_hidden_layers": 28,
|
| 71 |
+
"pad_token_id": 50283,
|
| 72 |
+
"position_embedding_type": "absolute",
|
| 73 |
+
"problem_type": "regression",
|
| 74 |
+
"rope_parameters": {
|
| 75 |
+
"full_attention": {
|
| 76 |
+
"rope_theta": 160000.0,
|
| 77 |
+
"rope_type": "default"
|
| 78 |
+
},
|
| 79 |
+
"sliding_attention": {
|
| 80 |
+
"rope_theta": 10000.0,
|
| 81 |
+
"rope_type": "default"
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
"sep_token_id": 50282,
|
| 85 |
+
"sparse_pred_ignore_index": -100,
|
| 86 |
+
"sparse_prediction": false,
|
| 87 |
+
"tie_word_embeddings": true,
|
| 88 |
+
"transformers_version": "5.6.2",
|
| 89 |
+
"use_cache": false,
|
| 90 |
+
"vocab_size": 50368
|
| 91 |
+
}
|
eval_metrics.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eval_loss": 0.022096654400229454,
|
| 3 |
+
"eval_rmse": 0.1486494345775639,
|
| 4 |
+
"eval_mae": 0.10976211726665497,
|
| 5 |
+
"eval_pearson": 0.8568720334438967,
|
| 6 |
+
"eval_spearman": 0.856351157285778,
|
| 7 |
+
"eval_article_spearman": 0.7742035575368817,
|
| 8 |
+
"eval_article_ndcg_at_3": 0.9210334527568008,
|
| 9 |
+
"eval_article_ndcg_at_5": 0.91633834365026,
|
| 10 |
+
"eval_runtime": 132.4829,
|
| 11 |
+
"eval_samples_per_second": 51.275,
|
| 12 |
+
"eval_steps_per_second": 25.641,
|
| 13 |
+
"epoch": 3.0
|
| 14 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b240855d759e0ed38acd5112396437a7fea56307b144be4c0354be09552470a
|
| 3 |
+
size 1583347532
|
run_summary.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CNN/DailyMail ModernBERT Pointwise Run
|
| 2 |
+
|
| 3 |
+
- model_size: `large`
|
| 4 |
+
- model_name: `answerdotai/ModernBERT-large`
|
| 5 |
+
- resolved_model_name: `/lustre/fsmisc/dataset/HuggingFace_Models/answerdotai/ModernBERT-large`
|
| 6 |
+
- target_mode: `model_balanced`
|
| 7 |
+
- target_field: `salience_score_model_balanced`
|
| 8 |
+
- input_field: `model_input_text`
|
| 9 |
+
- train_file: `data/CNN_DM/representative_subset/salience_generation/recovery_f2_all6/sentence_scorer_data/modernbert_pointwise/train.jsonl`
|
| 10 |
+
- dev_file: `data/CNN_DM/representative_subset/salience_generation/recovery_f2_all6/sentence_scorer_data/modernbert_pointwise/dev.jsonl`
|
| 11 |
+
- train_rows: `59643`
|
| 12 |
+
- dev_rows: `6793`
|
| 13 |
+
- train_articles: `1000`
|
| 14 |
+
- dev_articles: `200`
|
| 15 |
+
- max_length: `4096`
|
| 16 |
+
- learning_rate: `2e-05`
|
| 17 |
+
- weight_decay: `0.01`
|
| 18 |
+
- num_train_epochs: `3.0`
|
| 19 |
+
- warmup_ratio: `0.06`
|
| 20 |
+
- per_device_train_batch_size: `2`
|
| 21 |
+
- per_device_eval_batch_size: `2`
|
| 22 |
+
- gradient_accumulation_steps: `8`
|
| 23 |
+
- effective_train_batch_size: `16`
|
| 24 |
+
- eval_strategy: `epoch`
|
| 25 |
+
- save_strategy: `epoch`
|
| 26 |
+
- early_stopping_patience: `2`
|
| 27 |
+
- bf16: `True`
|
| 28 |
+
- fp16: `False`
|
| 29 |
+
- gradient_checkpointing: `True`
|
| 30 |
+
|
| 31 |
+
## Eval Metrics
|
| 32 |
+
|
| 33 |
+
- epoch: `3.0`
|
| 34 |
+
- eval_article_ndcg_at_3: `0.9210334527568008`
|
| 35 |
+
- eval_article_ndcg_at_5: `0.91633834365026`
|
| 36 |
+
- eval_article_spearman: `0.7742035575368817`
|
| 37 |
+
- eval_loss: `0.022096654400229454`
|
| 38 |
+
- eval_mae: `0.10976211726665497`
|
| 39 |
+
- eval_pearson: `0.8568720334438967`
|
| 40 |
+
- eval_rmse: `0.1486494345775639`
|
| 41 |
+
- eval_runtime: `132.4829`
|
| 42 |
+
- eval_samples_per_second: `51.275`
|
| 43 |
+
- eval_spearman: `0.856351157285778`
|
| 44 |
+
- eval_steps_per_second: `25.641`
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"clean_up_tokenization_spaces": true,
|
| 4 |
+
"cls_token": "[CLS]",
|
| 5 |
+
"is_local": true,
|
| 6 |
+
"local_files_only": true,
|
| 7 |
+
"mask_token": "[MASK]",
|
| 8 |
+
"model_input_names": [
|
| 9 |
+
"input_ids",
|
| 10 |
+
"attention_mask"
|
| 11 |
+
],
|
| 12 |
+
"model_max_length": 8192,
|
| 13 |
+
"pad_token": "[PAD]",
|
| 14 |
+
"sep_token": "[SEP]",
|
| 15 |
+
"tokenizer_class": "TokenizersBackend",
|
| 16 |
+
"unk_token": "[UNK]"
|
| 17 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e757282be0fafb916eedeb1c8b4c1bc3015e09163d84da046e3bec1b8f505d8
|
| 3 |
+
size 5393
|