Instructions to use sr5434/universal_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sr5434/universal_classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sr5434/universal_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- .gitattributes +1 -0
- README.md +109 -0
- adapter_config.json +45 -0
- adapter_model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +24 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: gemma
|
| 4 |
+
base_model: google/embeddinggemma-300m
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: universal_classifier
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# universal_classifier
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.1127
|
| 22 |
+
- Accuracy: 0.685
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 2e-05
|
| 42 |
+
- train_batch_size: 16
|
| 43 |
+
- eval_batch_size: 16
|
| 44 |
+
- seed: 42
|
| 45 |
+
- distributed_type: multi-GPU
|
| 46 |
+
- num_devices: 2
|
| 47 |
+
- total_train_batch_size: 32
|
| 48 |
+
- total_eval_batch_size: 32
|
| 49 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 50 |
+
- lr_scheduler_type: linear
|
| 51 |
+
- training_steps: 22500
|
| 52 |
+
|
| 53 |
+
### Training results
|
| 54 |
+
|
| 55 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 56 |
+
|:-------------:|:------:|:-----:|:---------------:|:--------:|
|
| 57 |
+
| 0.3060 | 0.0132 | 500 | 0.2985 | 0.175 |
|
| 58 |
+
| 0.2972 | 0.0264 | 1000 | 0.2958 | 0.192 |
|
| 59 |
+
| 0.2889 | 0.0396 | 1500 | 0.2951 | 0.193 |
|
| 60 |
+
| 0.2827 | 0.0527 | 2000 | 0.2945 | 0.216 |
|
| 61 |
+
| 0.2961 | 0.0659 | 2500 | 0.2883 | 0.208 |
|
| 62 |
+
| 0.2520 | 0.0791 | 3000 | 0.2509 | 0.359 |
|
| 63 |
+
| 0.2181 | 0.0923 | 3500 | 0.2166 | 0.449 |
|
| 64 |
+
| 0.1710 | 0.1055 | 4000 | 0.1697 | 0.561 |
|
| 65 |
+
| 0.1655 | 0.1187 | 4500 | 0.1563 | 0.588 |
|
| 66 |
+
| 0.1344 | 0.1319 | 5000 | 0.1433 | 0.607 |
|
| 67 |
+
| 0.1416 | 0.1451 | 5500 | 0.1378 | 0.631 |
|
| 68 |
+
| 0.1347 | 0.1582 | 6000 | 0.1369 | 0.609 |
|
| 69 |
+
| 0.1250 | 0.1714 | 6500 | 0.1358 | 0.63 |
|
| 70 |
+
| 0.1560 | 0.1846 | 7000 | 0.1332 | 0.638 |
|
| 71 |
+
| 0.1368 | 0.1978 | 7500 | 0.1322 | 0.648 |
|
| 72 |
+
| 0.1275 | 0.2110 | 8000 | 0.1331 | 0.649 |
|
| 73 |
+
| 0.1257 | 0.2242 | 8500 | 0.1297 | 0.654 |
|
| 74 |
+
| 0.1349 | 0.2374 | 9000 | 0.1288 | 0.657 |
|
| 75 |
+
| 0.1306 | 0.2506 | 9500 | 0.1262 | 0.655 |
|
| 76 |
+
| 0.1161 | 0.2637 | 10000 | 0.1243 | 0.652 |
|
| 77 |
+
| 0.1315 | 0.2769 | 10500 | 0.1249 | 0.666 |
|
| 78 |
+
| 0.1298 | 0.2901 | 11000 | 0.1245 | 0.659 |
|
| 79 |
+
| 0.1141 | 0.3033 | 11500 | 0.1221 | 0.664 |
|
| 80 |
+
| 0.1216 | 0.3165 | 12000 | 0.1205 | 0.668 |
|
| 81 |
+
| 0.1216 | 0.3297 | 12500 | 0.1204 | 0.67 |
|
| 82 |
+
| 0.1211 | 0.3429 | 13000 | 0.1214 | 0.671 |
|
| 83 |
+
| 0.1179 | 0.3561 | 13500 | 0.1204 | 0.666 |
|
| 84 |
+
| 0.1246 | 0.3692 | 14000 | 0.1176 | 0.67 |
|
| 85 |
+
| 0.1132 | 0.3824 | 14500 | 0.1170 | 0.669 |
|
| 86 |
+
| 0.1190 | 0.3956 | 15000 | 0.1177 | 0.672 |
|
| 87 |
+
| 0.1075 | 0.4088 | 15500 | 0.1173 | 0.688 |
|
| 88 |
+
| 0.1177 | 0.4220 | 16000 | 0.1140 | 0.683 |
|
| 89 |
+
| 0.0958 | 0.4352 | 16500 | 0.1150 | 0.678 |
|
| 90 |
+
| 0.1247 | 0.4484 | 17000 | 0.1147 | 0.676 |
|
| 91 |
+
| 0.1059 | 0.4615 | 17500 | 0.1138 | 0.687 |
|
| 92 |
+
| 0.1058 | 0.4747 | 18000 | 0.1144 | 0.681 |
|
| 93 |
+
| 0.1070 | 0.4879 | 18500 | 0.1146 | 0.69 |
|
| 94 |
+
| 0.1166 | 0.5011 | 19000 | 0.1134 | 0.691 |
|
| 95 |
+
| 0.1139 | 0.5143 | 19500 | 0.1128 | 0.684 |
|
| 96 |
+
| 0.1104 | 0.5275 | 20000 | 0.1139 | 0.685 |
|
| 97 |
+
| 0.1080 | 0.5407 | 20500 | 0.1144 | 0.677 |
|
| 98 |
+
| 0.1145 | 0.5539 | 21000 | 0.1128 | 0.698 |
|
| 99 |
+
| 0.1246 | 0.5670 | 21500 | 0.1126 | 0.688 |
|
| 100 |
+
| 0.1258 | 0.5802 | 22000 | 0.1128 | 0.679 |
|
| 101 |
+
| 0.1089 | 0.5934 | 22500 | 0.1127 | 0.685 |
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
### Framework versions
|
| 105 |
+
|
| 106 |
+
- Transformers 5.0.0
|
| 107 |
+
- Pytorch 2.10.0+cu128
|
| 108 |
+
- Datasets 5.0.0
|
| 109 |
+
- Tokenizers 0.22.2
|
adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "google/embeddinggemma-300m",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": false,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 32,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": [
|
| 26 |
+
"score"
|
| 27 |
+
],
|
| 28 |
+
"peft_type": "LORA",
|
| 29 |
+
"peft_version": "0.19.1",
|
| 30 |
+
"qalora_group_size": 16,
|
| 31 |
+
"r": 8,
|
| 32 |
+
"rank_pattern": {},
|
| 33 |
+
"revision": null,
|
| 34 |
+
"target_modules": [
|
| 35 |
+
"q_proj",
|
| 36 |
+
"v_proj"
|
| 37 |
+
],
|
| 38 |
+
"target_parameters": null,
|
| 39 |
+
"task_type": "SEQ_CLS",
|
| 40 |
+
"trainable_token_indices": null,
|
| 41 |
+
"use_bdlora": null,
|
| 42 |
+
"use_dora": false,
|
| 43 |
+
"use_qalora": false,
|
| 44 |
+
"use_rslora": false
|
| 45 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f40aa8a853d442962362d5a13df0a1dc3b608ad68c07d39322beeda59f45c646
|
| 3 |
+
size 2040088
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50bd63e9d6f89918fa602e3920ee20ee352d0a193e114fafd24aa5f934c7abe0
|
| 3 |
+
size 33384981
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"boi_token": "<start_of_image>",
|
| 4 |
+
"bos_token": "<bos>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eoi_token": "<end_of_image>",
|
| 7 |
+
"eos_token": "<eos>",
|
| 8 |
+
"image_token": "<image_soft_token>",
|
| 9 |
+
"is_local": false,
|
| 10 |
+
"mask_token": "<mask>",
|
| 11 |
+
"model_max_length": 2048,
|
| 12 |
+
"model_specific_special_tokens": {
|
| 13 |
+
"boi_token": "<start_of_image>",
|
| 14 |
+
"eoi_token": "<end_of_image>",
|
| 15 |
+
"image_token": "<image_soft_token>"
|
| 16 |
+
},
|
| 17 |
+
"pad_token": "<pad>",
|
| 18 |
+
"padding_side": "right",
|
| 19 |
+
"sp_model_kwargs": null,
|
| 20 |
+
"spaces_between_special_tokens": false,
|
| 21 |
+
"tokenizer_class": "GemmaTokenizer",
|
| 22 |
+
"unk_token": "<unk>",
|
| 23 |
+
"use_default_system_prompt": false
|
| 24 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b99b2c24952cf83e4634b220b84e9d6e8d739c1ddfa5a0bbca6bac30a3200fbe
|
| 3 |
+
size 5137
|