caffeinatedcherrychic commited on
Commit
0849c8a
1 Parent(s): 87ca1e8

Upload 7 files

Browse files
README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - generated_from_trainer
5
+ base_model: NousResearch/Llama-2-7b-hf
6
+ model-index:
7
+ - name: qlora-out
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
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
15
+ <details><summary>See axolotl config</summary>
16
+
17
+ axolotl version: `0.4.0`
18
+ ```yaml
19
+ adapter: qlora
20
+ base_model: NousResearch/Llama-2-7b-hf
21
+ bf16: false
22
+ dataset_prepared_path: null
23
+ datasets:
24
+ - path: caffeinatedcherrychic/test-dataset-io
25
+ type: alpaca
26
+ debug: null
27
+ deepspeed: null
28
+ early_stopping_patience: null
29
+ evals_per_epoch: null
30
+ flash_attention: false
31
+ fp16: true
32
+ fsdp: null
33
+ fsdp_config: null
34
+ gradient_accumulation_steps: 1
35
+ gradient_checkpointing: true
36
+ group_by_length: false
37
+ is_llama_derived_model: true
38
+ learning_rate: 0.0002
39
+ load_in_4bit: true
40
+ load_in_8bit: false
41
+ local_rank: null
42
+ logging_steps: 1
43
+ lora_alpha: 16
44
+ lora_dropout: 0.05
45
+ lora_fan_in_fan_out: null
46
+ lora_model_dir: null
47
+ lora_r: 32
48
+ lora_target_linear: true
49
+ lora_target_modules: null
50
+ lr_scheduler: cosine
51
+ max_steps: 20
52
+ micro_batch_size: 1
53
+ mlflow_experiment_name: colab-example
54
+ model_type: LlamaForCausalLM
55
+ num_epochs: 4
56
+ optimizer: paged_adamw_32bit
57
+ output_dir: ./qlora-out
58
+ pad_to_sequence_len: true
59
+ resume_from_checkpoint: null
60
+ sample_packing: true
61
+ saves_per_epoch: null
62
+ sequence_len: 1096
63
+ special_tokens: null
64
+ strict: false
65
+ tf32: false
66
+ tokenizer_type: LlamaTokenizer
67
+ train_on_inputs: false
68
+ val_set_size: 0.05
69
+ wandb_entity: null
70
+ wandb_log_model: null
71
+ wandb_name: null
72
+ wandb_project: null
73
+ wandb_watch: null
74
+ warmup_steps: 10
75
+ weight_decay: 0.0
76
+ xformers_attention: null
77
+
78
+ ```
79
+
80
+ </details><br>
81
+
82
+ # qlora-out
83
+
84
+ This model is a fine-tuned version of [NousResearch/Llama-2-7b-hf](https://huggingface.co/NousResearch/Llama-2-7b-hf) on the None dataset.
85
+ It achieves the following results on the evaluation set:
86
+ - Loss: 0.0001
87
+
88
+ ## Model description
89
+
90
+ More information needed
91
+
92
+ ## Intended uses & limitations
93
+
94
+ More information needed
95
+
96
+ ## Training and evaluation data
97
+
98
+ More information needed
99
+
100
+ ## Training procedure
101
+
102
+ ### Training hyperparameters
103
+
104
+ The following hyperparameters were used during training:
105
+ - learning_rate: 0.0002
106
+ - train_batch_size: 1
107
+ - eval_batch_size: 1
108
+ - seed: 42
109
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
110
+ - lr_scheduler_type: cosine
111
+ - lr_scheduler_warmup_steps: 10
112
+ - training_steps: 20
113
+ - mixed_precision_training: Native AMP
114
+
115
+ ### Training results
116
+
117
+ | Training Loss | Epoch | Step | Validation Loss |
118
+ |:-------------:|:-----:|:----:|:---------------:|
119
+ | 0.0001 | 0.0 | 20 | 0.0001 |
120
+
121
+
122
+ ### Framework versions
123
+
124
+ - PEFT 0.10.1.dev0
125
+ - Transformers 4.39.0.dev0
126
+ - Pytorch 2.1.2
127
+ - Datasets 2.18.0
128
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": null,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 32,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "up_proj",
25
+ "q_proj",
26
+ "gate_proj",
27
+ "down_proj",
28
+ "v_proj",
29
+ "k_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c32454d3050bcc64352c81d1a33c14f1af6d42456eee65443f1f80f9208c9984
3
+ size 319977674
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "NousResearch/Llama-2-7b-hf",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 11008,
14
+ "max_position_embeddings": 4096,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 32,
18
+ "num_key_value_heads": 32,
19
+ "pad_token_id": 0,
20
+ "pretraining_tp": 1,
21
+ "quantization_config": {
22
+ "_load_in_4bit": true,
23
+ "_load_in_8bit": false,
24
+ "bnb_4bit_compute_dtype": "float16",
25
+ "bnb_4bit_quant_type": "nf4",
26
+ "bnb_4bit_use_double_quant": true,
27
+ "llm_int8_enable_fp32_cpu_offload": false,
28
+ "llm_int8_has_fp16_weight": false,
29
+ "llm_int8_skip_modules": null,
30
+ "llm_int8_threshold": 6.0,
31
+ "load_in_4bit": true,
32
+ "load_in_8bit": false,
33
+ "quant_method": "bitsandbytes"
34
+ },
35
+ "rms_norm_eps": 1e-05,
36
+ "rope_scaling": null,
37
+ "rope_theta": 10000.0,
38
+ "tie_word_embeddings": false,
39
+ "torch_dtype": "float16",
40
+ "transformers_version": "4.39.0.dev0",
41
+ "use_cache": false,
42
+ "vocab_size": 32000
43
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "<unk>",
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false,
42
+ "use_fast": true
43
+ }