Instructions to use lhallee/moe_train_run with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lhallee/moe_train_run with Transformers:
# Load model directly from transformers import AutoTokenizer, MoEBertForSentenceSimilarity tokenizer = AutoTokenizer.from_pretrained("lhallee/moe_train_run") model = MoEBertForSentenceSimilarity.from_pretrained("lhallee/moe_train_run") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +80 -0
- config.json +53 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: ModernBERT-base
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- f1
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
model-index:
|
| 11 |
+
- name: moe_train_run
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
# moe_train_run
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [ModernBERT-base](https://huggingface.co/ModernBERT-base) on an unknown dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 3.9874
|
| 23 |
+
- Model Preparation Time: 0.0047
|
| 24 |
+
- F1: 0.8876
|
| 25 |
+
- Precision: 0.8509
|
| 26 |
+
- Recall: 0.9275
|
| 27 |
+
- Threshold: 0.7668
|
| 28 |
+
- Sim Ratio: 1.4762
|
| 29 |
+
- Pos Sim: 0.8878
|
| 30 |
+
- Neg Sim: 0.6014
|
| 31 |
+
|
| 32 |
+
## Model description
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Intended uses & limitations
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training and evaluation data
|
| 41 |
+
|
| 42 |
+
More information needed
|
| 43 |
+
|
| 44 |
+
## Training procedure
|
| 45 |
+
|
| 46 |
+
### Training hyperparameters
|
| 47 |
+
|
| 48 |
+
The following hyperparameters were used during training:
|
| 49 |
+
- learning_rate: 0.0001
|
| 50 |
+
- train_batch_size: 16
|
| 51 |
+
- eval_batch_size: 16
|
| 52 |
+
- seed: 42
|
| 53 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 54 |
+
- lr_scheduler_type: linear
|
| 55 |
+
- num_epochs: 1
|
| 56 |
+
|
| 57 |
+
### Training results
|
| 58 |
+
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Model Preparation Time | F1 | Precision | Recall | Threshold | Sim Ratio | Pos Sim | Neg Sim |
|
| 60 |
+
|:-------------:|:------:|:------:|:---------------:|:----------------------:|:------:|:---------:|:------:|:---------:|:---------:|:-------:|:-------:|
|
| 61 |
+
| 0.7183 | 0.0821 | 10000 | 3.5469 | 0.0047 | 0.8386 | 0.7972 | 0.8846 | 0.8755 | 1.2415 | 0.9408 | 0.7578 |
|
| 62 |
+
| 0.7053 | 0.1643 | 20000 | 3.6924 | 0.0047 | 0.8496 | 0.7963 | 0.9104 | 0.8043 | 1.383 | 0.9156 | 0.6621 |
|
| 63 |
+
| 0.6003 | 0.2464 | 30000 | 3.9111 | 0.0047 | 0.862 | 0.8148 | 0.9151 | 0.7832 | 1.437 | 0.9048 | 0.6296 |
|
| 64 |
+
| 0.5856 | 0.3286 | 40000 | 3.9771 | 0.0047 | 0.8628 | 0.822 | 0.9079 | 0.7718 | 1.4877 | 0.894 | 0.6009 |
|
| 65 |
+
| 0.5801 | 0.4107 | 50000 | 3.9434 | 0.0047 | 0.8704 | 0.8277 | 0.9178 | 0.7749 | 1.4477 | 0.8995 | 0.6214 |
|
| 66 |
+
| 0.562 | 0.4929 | 60000 | 3.6962 | 0.0047 | 0.8685 | 0.8232 | 0.9192 | 0.7930 | 1.4037 | 0.9064 | 0.6457 |
|
| 67 |
+
| 0.5307 | 0.5750 | 70000 | 3.8964 | 0.0047 | 0.875 | 0.839 | 0.9142 | 0.7807 | 1.4542 | 0.8973 | 0.617 |
|
| 68 |
+
| 0.4793 | 0.6572 | 80000 | 4.0046 | 0.0047 | 0.8779 | 0.8429 | 0.916 | 0.7706 | 1.4946 | 0.8912 | 0.5963 |
|
| 69 |
+
| 0.4978 | 0.7393 | 90000 | 4.0062 | 0.0047 | 0.8796 | 0.8395 | 0.9239 | 0.7598 | 1.4979 | 0.8879 | 0.5927 |
|
| 70 |
+
| 0.4934 | 0.8215 | 100000 | 3.9771 | 0.0047 | 0.885 | 0.8522 | 0.9204 | 0.7734 | 1.478 | 0.89 | 0.6022 |
|
| 71 |
+
| 0.4757 | 0.9036 | 110000 | 4.0861 | 0.0047 | 0.884 | 0.8489 | 0.9221 | 0.7636 | 1.5028 | 0.8859 | 0.5895 |
|
| 72 |
+
| 0.4773 | 0.9858 | 120000 | 3.9877 | 0.0047 | 0.8874 | 0.8558 | 0.9215 | 0.7711 | 1.4765 | 0.8877 | 0.6012 |
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
### Framework versions
|
| 76 |
+
|
| 77 |
+
- Transformers 4.48.3
|
| 78 |
+
- Pytorch 2.5.1
|
| 79 |
+
- Datasets 3.2.0
|
| 80 |
+
- Tokenizers 0.21.0
|
config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "ModernBERT-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"MoEBertForSentenceSimilarity"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 50281,
|
| 9 |
+
"classifier_activation": "gelu",
|
| 10 |
+
"classifier_bias": false,
|
| 11 |
+
"classifier_dropout": 0.0,
|
| 12 |
+
"classifier_pooling": "mean",
|
| 13 |
+
"cls_token_id": 50281,
|
| 14 |
+
"decoder_bias": true,
|
| 15 |
+
"deterministic_flash_attn": false,
|
| 16 |
+
"embedding_dropout": 0.0,
|
| 17 |
+
"eos_token_id": 50282,
|
| 18 |
+
"global_attn_every_n_layers": 3,
|
| 19 |
+
"global_rope_theta": 160000.0,
|
| 20 |
+
"gradient_checkpointing": false,
|
| 21 |
+
"hidden_activation": "gelu",
|
| 22 |
+
"hidden_size": 768,
|
| 23 |
+
"initializer_cutoff_factor": 2.0,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"intermediate_size": 1152,
|
| 26 |
+
"layer_norm_eps": 1e-05,
|
| 27 |
+
"local_attention": 128,
|
| 28 |
+
"local_rope_theta": 10000.0,
|
| 29 |
+
"lora": false,
|
| 30 |
+
"lora_alpha": 32,
|
| 31 |
+
"lora_dropout": 0.01,
|
| 32 |
+
"lora_r": 8,
|
| 33 |
+
"loss_type": "clip",
|
| 34 |
+
"max_position_embeddings": 8192,
|
| 35 |
+
"mlp_bias": false,
|
| 36 |
+
"mlp_dropout": 0.0,
|
| 37 |
+
"model_type": "modernbert",
|
| 38 |
+
"norm_bias": false,
|
| 39 |
+
"norm_eps": 1e-05,
|
| 40 |
+
"num_attention_heads": 12,
|
| 41 |
+
"num_experts": 5,
|
| 42 |
+
"num_hidden_layers": 22,
|
| 43 |
+
"pad_token_id": 50283,
|
| 44 |
+
"position_embedding_type": "absolute",
|
| 45 |
+
"reference_compile": null,
|
| 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.48.3",
|
| 52 |
+
"vocab_size": 50368
|
| 53 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e7aa8a2f6ebbf2fb2cf3205f079ef3b5654df24eb0eeb1f8ceb7aa6c2c951eb
|
| 3 |
+
size 1535119296
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e0e098c5edac9fd984a038e9d028475a72c8b914d83b10336a7bcb3a3a2a615
|
| 3 |
+
size 5304
|