vvduc03 commited on
Commit
81d6d1b
1 Parent(s): 9e46474

vvduc03/lora-llava-3b

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - generated_from_trainer
6
+ base_model: liuhaotian/llava-v1.6-mistral-7b
7
+ model-index:
8
+ - name: LLaVA-Mistral-finetuned
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # LLaVA-Mistral-finetuned
16
+
17
+ This model is a fine-tuned version of [liuhaotian/llava-v1.6-mistral-7b](https://huggingface.co/liuhaotian/llava-v1.6-mistral-7b) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.0000
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 0.0002
39
+ - train_batch_size: 2
40
+ - eval_batch_size: 2
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 8
43
+ - total_train_batch_size: 16
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_steps: 50
47
+ - training_steps: 200
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:-----:|:----:|:---------------:|
54
+ | 0.0 | 200.0 | 200 | 0.0000 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.42.0.dev0
60
+ - Pytorch 2.1.1+cu121
61
+ - Datasets 2.14.5
62
+ - Tokenizers 0.19.1
63
+ ## Training procedure
64
+
65
+
66
+ The following `bitsandbytes` quantization config was used during training:
67
+ - quant_method: QuantizationMethod.BITS_AND_BYTES
68
+ - _load_in_8bit: False
69
+ - _load_in_4bit: True
70
+ - llm_int8_threshold: 6.0
71
+ - llm_int8_skip_modules: None
72
+ - llm_int8_enable_fp32_cpu_offload: False
73
+ - llm_int8_has_fp16_weight: False
74
+ - bnb_4bit_quant_type: nf4
75
+ - bnb_4bit_use_double_quant: True
76
+ - bnb_4bit_compute_dtype: float16
77
+ - bnb_4bit_quant_storage: uint8
78
+ - load_in_4bit: True
79
+ - load_in_8bit: False
80
+
81
+ ### Framework versions
82
+
83
+
84
+ - PEFT 0.6.2
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": {
4
+ "base_model_class": "LlavaMistralForCausalLM",
5
+ "parent_library": "llava.model.language_model.llava_mistral"
6
+ },
7
+ "base_model_name_or_path": "liuhaotian/llava-v1.6-mistral-7b",
8
+ "bias": "none",
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "lora_alpha": 32,
15
+ "lora_dropout": 0.05,
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 16,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "q_proj",
23
+ "k_proj",
24
+ "v_proj"
25
+ ],
26
+ "task_type": null
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:943d0f3883083f3d9820d0c1abd7af634249a9b793eae7189fe2599276553575
3
+ size 47237856
trainer_state.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 200.0,
5
+ "eval_steps": 200,
6
+ "global_step": 200,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 20.0,
13
+ "grad_norm": 0.38967031240463257,
14
+ "learning_rate": 8e-05,
15
+ "loss": 0.1783,
16
+ "step": 20
17
+ },
18
+ {
19
+ "epoch": 40.0,
20
+ "grad_norm": 0.009602731093764305,
21
+ "learning_rate": 0.00016,
22
+ "loss": 0.0093,
23
+ "step": 40
24
+ },
25
+ {
26
+ "epoch": 60.0,
27
+ "grad_norm": 0.000580370076932013,
28
+ "learning_rate": 0.0001866666666666667,
29
+ "loss": 0.0,
30
+ "step": 60
31
+ },
32
+ {
33
+ "epoch": 80.0,
34
+ "grad_norm": 0.00020515041251201183,
35
+ "learning_rate": 0.00016,
36
+ "loss": 0.0,
37
+ "step": 80
38
+ },
39
+ {
40
+ "epoch": 100.0,
41
+ "grad_norm": 0.00012300981325097382,
42
+ "learning_rate": 0.00013333333333333334,
43
+ "loss": 0.0,
44
+ "step": 100
45
+ },
46
+ {
47
+ "epoch": 120.0,
48
+ "grad_norm": 9.383377619087696e-05,
49
+ "learning_rate": 0.00010666666666666667,
50
+ "loss": 0.0,
51
+ "step": 120
52
+ },
53
+ {
54
+ "epoch": 140.0,
55
+ "grad_norm": 8.079586405074224e-05,
56
+ "learning_rate": 8e-05,
57
+ "loss": 0.0,
58
+ "step": 140
59
+ },
60
+ {
61
+ "epoch": 160.0,
62
+ "grad_norm": 7.359922165051103e-05,
63
+ "learning_rate": 5.333333333333333e-05,
64
+ "loss": 0.0,
65
+ "step": 160
66
+ },
67
+ {
68
+ "epoch": 180.0,
69
+ "grad_norm": 6.797131209168583e-05,
70
+ "learning_rate": 2.6666666666666667e-05,
71
+ "loss": 0.0,
72
+ "step": 180
73
+ },
74
+ {
75
+ "epoch": 200.0,
76
+ "grad_norm": 6.64097024127841e-05,
77
+ "learning_rate": 0.0,
78
+ "loss": 0.0,
79
+ "step": 200
80
+ },
81
+ {
82
+ "epoch": 200.0,
83
+ "eval_loss": 1.2874310414190404e-05,
84
+ "eval_runtime": 0.4025,
85
+ "eval_samples_per_second": 2.485,
86
+ "eval_steps_per_second": 2.485,
87
+ "step": 200
88
+ },
89
+ {
90
+ "epoch": 200.0,
91
+ "step": 200,
92
+ "total_flos": 1572670596710400.0,
93
+ "train_loss": 0.018764802380228502,
94
+ "train_runtime": 147.4566,
95
+ "train_samples_per_second": 21.701,
96
+ "train_steps_per_second": 1.356
97
+ }
98
+ ],
99
+ "logging_steps": 20,
100
+ "max_steps": 200,
101
+ "num_input_tokens_seen": 0,
102
+ "num_train_epochs": 200,
103
+ "save_steps": 50,
104
+ "stateful_callbacks": {
105
+ "TrainerControl": {
106
+ "args": {
107
+ "should_epoch_stop": false,
108
+ "should_evaluate": false,
109
+ "should_log": false,
110
+ "should_save": true,
111
+ "should_training_stop": true
112
+ },
113
+ "attributes": {}
114
+ }
115
+ },
116
+ "total_flos": 1572670596710400.0,
117
+ "train_batch_size": 2,
118
+ "trial_name": null,
119
+ "trial_params": null
120
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97a0369021c64d53315ac38195fdc982e14c3b117e8662c6734eec42e120a343
3
+ size 5112