DrishtiSharma commited on
Commit
4f2c4d0
1 Parent(s): 0ae30da

End of training

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - patent-classification
7
+ metrics:
8
+ - accuracy
9
+ base_model: NousResearch/Llama-2-7b-hf
10
+ model-index:
11
+ - name: llama-2-7b-flash-attention2-lora-patent-classification
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
+ # llama-2-7b-flash-attention2-lora-patent-classification
19
+
20
+ This model is a fine-tuned version of [NousResearch/Llama-2-7b-hf](https://huggingface.co/NousResearch/Llama-2-7b-hf) on the patent-classification dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.5598
23
+ - Accuracy: 0.436
24
+ - Precision Macro: 0.4276
25
+ - Recall Macro: 0.3658
26
+ - F1-score Macro: 0.3707
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 0.0002
46
+ - train_batch_size: 4
47
+ - eval_batch_size: 2
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - num_epochs: 3
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision Macro | Recall Macro | F1-score Macro |
57
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:---------------:|:------------:|:--------------:|
58
+ | 1.4059 | 1.0 | 6250 | 1.9046 | 0.3748 | 0.3815 | 0.3173 | 0.3012 |
59
+ | 1.1153 | 2.0 | 12500 | 1.6457 | 0.419 | 0.4162 | 0.3461 | 0.3466 |
60
+ | 1.0234 | 3.0 | 18750 | 1.5598 | 0.436 | 0.4276 | 0.3658 | 0.3707 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.7.2.dev0
66
+ - Transformers 4.37.0.dev0
67
+ - Pytorch 2.1.0+cu121
68
+ - Datasets 2.16.2.dev0
69
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NousResearch/Llama-2-7b-hf",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 64,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 16,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "v_proj",
23
+ "k_proj",
24
+ "gate_proj",
25
+ "down_proj",
26
+ "q_proj",
27
+ "up_proj"
28
+ ],
29
+ "task_type": "SEQ_CLS",
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b7131d07f80e68849823261a5e70dbad538d89f1ef74b5815d590119a426344
3
+ size 143329504
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:109b1b09b4d485ba97e5fe39d7fedd78745b0e7b150238d4d0393ffb264908c0
3
+ size 4792