gimarchetti
commited on
Commit
•
c228e96
1
Parent(s):
a952e32
End of training
Browse files- README.md +78 -0
- adapter_config.json +26 -0
- adapter_model.safetensors +3 -0
- generation_config.json +18 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: HuggingFaceM4/idefics2-8b
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: gm-lora-bfloat16-idefics2-8b-xrayvqa-finetuned-medir
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# gm-lora-bfloat16-idefics2-8b-xrayvqa-finetuned-medir
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [HuggingFaceM4/idefics2-8b](https://huggingface.co/HuggingFaceM4/idefics2-8b) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 1.6893
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 0.0001
|
38 |
+
- train_batch_size: 8
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- gradient_accumulation_steps: 10
|
42 |
+
- total_train_batch_size: 80
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- num_epochs: 3
|
46 |
+
- mixed_precision_training: Native AMP
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
51 |
+
|:-------------:|:------:|:----:|:---------------:|
|
52 |
+
| 1.0712 | 0.1529 | 50 | 1.4681 |
|
53 |
+
| 1.1045 | 0.3057 | 100 | 1.4921 |
|
54 |
+
| 1.1032 | 0.4586 | 150 | 1.4891 |
|
55 |
+
| 1.1182 | 0.6114 | 200 | 1.4860 |
|
56 |
+
| 1.3049 | 0.7643 | 250 | 1.4402 |
|
57 |
+
| 1.4376 | 0.9172 | 300 | 1.4256 |
|
58 |
+
| 1.2084 | 1.0700 | 350 | 1.5379 |
|
59 |
+
| 0.8495 | 1.2229 | 400 | 1.5216 |
|
60 |
+
| 0.8827 | 1.3757 | 450 | 1.5241 |
|
61 |
+
| 0.8995 | 1.5286 | 500 | 1.5431 |
|
62 |
+
| 0.8939 | 1.6814 | 550 | 1.5198 |
|
63 |
+
| 0.9077 | 1.8343 | 600 | 1.5106 |
|
64 |
+
| 0.9128 | 1.9872 | 650 | 1.5176 |
|
65 |
+
| 0.5954 | 2.1400 | 700 | 1.6831 |
|
66 |
+
| 0.569 | 2.2929 | 750 | 1.6783 |
|
67 |
+
| 0.5578 | 2.4457 | 800 | 1.6861 |
|
68 |
+
| 0.5624 | 2.5986 | 850 | 1.6859 |
|
69 |
+
| 0.5754 | 2.7515 | 900 | 1.6907 |
|
70 |
+
| 0.5582 | 2.9043 | 950 | 1.6893 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- Transformers 4.41.0.dev0
|
76 |
+
- Pytorch 2.2.1+cu121
|
77 |
+
- Datasets 2.19.0
|
78 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "HuggingFaceM4/idefics2-8b",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": false,
|
8 |
+
"init_lora_weights": "gaussian",
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 8,
|
14 |
+
"lora_dropout": 0.1,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 8,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": ".*(text_model|modality_projection|perceiver_resampler).*(down_proj|gate_proj|up_proj|k_proj|q_proj|v_proj|o_proj).*$",
|
23 |
+
"task_type": null,
|
24 |
+
"use_dora": false,
|
25 |
+
"use_rslora": false
|
26 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfefbf79ef67eb4619ba524df553507ffd12160715c1df6b507e232fd74d8b97
|
3 |
+
size 93378688
|
generation_config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bad_words_ids": [
|
4 |
+
[
|
5 |
+
32000
|
6 |
+
],
|
7 |
+
[
|
8 |
+
32001
|
9 |
+
]
|
10 |
+
],
|
11 |
+
"bos_token_id": 1,
|
12 |
+
"eos_token_id": [
|
13 |
+
2,
|
14 |
+
32002
|
15 |
+
],
|
16 |
+
"pad_token_id": 0,
|
17 |
+
"transformers_version": "4.41.0.dev0"
|
18 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f32855601b5b98eeacb3d49538b0f94cac8c6f2ff7c0536a703cfc81df88470
|
3 |
+
size 5176
|