Kareem Amr
commited on
Commit
•
0640e3a
1
Parent(s):
1b581f3
Training in progress, step 31
Browse files- README.md +148 -0
- adapter_config.json +34 -0
- adapter_model.bin +3 -0
- adapter_model.safetensors +3 -0
- config.json +43 -0
- special_tokens_map.json +24 -0
- tokenizer.model +3 -0
- tokenizer_config.json +44 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
|
7 |
+
model-index:
|
8 |
+
- name: outputs/lora-out
|
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 |
+
[<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)
|
16 |
+
<details><summary>See axolotl config</summary>
|
17 |
+
|
18 |
+
axolotl version: `0.4.0`
|
19 |
+
```yaml
|
20 |
+
base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
|
21 |
+
model_type: LlamaForCausalLM
|
22 |
+
tokenizer_type: LlamaTokenizer
|
23 |
+
|
24 |
+
load_in_8bit: true
|
25 |
+
load_in_4bit: false
|
26 |
+
strict: false
|
27 |
+
|
28 |
+
datasets:
|
29 |
+
- path: kareemamrr/databricks-dolly-4.5k
|
30 |
+
type: alpaca
|
31 |
+
dataset_prepared_path:
|
32 |
+
val_set_size: 0.05
|
33 |
+
output_dir: ./outputs/lora-out
|
34 |
+
|
35 |
+
sequence_len: 4096
|
36 |
+
sample_packing: true
|
37 |
+
eval_sample_packing: false
|
38 |
+
pad_to_sequence_len: true
|
39 |
+
|
40 |
+
adapter: lora
|
41 |
+
lora_model_dir:
|
42 |
+
lora_r: 4
|
43 |
+
lora_alpha: 16
|
44 |
+
lora_dropout: 0.8
|
45 |
+
lora_target_linear: true
|
46 |
+
lora_fan_in_fan_out:
|
47 |
+
|
48 |
+
wandb_project: tinyllama-dolly-axolotl
|
49 |
+
wandb_entity: kamr54
|
50 |
+
|
51 |
+
gradient_accumulation_steps: 4
|
52 |
+
micro_batch_size: 2
|
53 |
+
num_epochs: 4
|
54 |
+
optimizer: adamw_bnb_8bit
|
55 |
+
lr_scheduler:
|
56 |
+
learning_rate: 0.0008
|
57 |
+
|
58 |
+
train_on_inputs: false
|
59 |
+
group_by_length: false
|
60 |
+
bf16: auto
|
61 |
+
fp16:
|
62 |
+
tf32: false
|
63 |
+
|
64 |
+
gradient_checkpointing: true
|
65 |
+
early_stopping_patience:
|
66 |
+
resume_from_checkpoint:
|
67 |
+
local_rank:
|
68 |
+
logging_steps: 1
|
69 |
+
xformers_attention:
|
70 |
+
flash_attention: true
|
71 |
+
|
72 |
+
warmup_steps: 10
|
73 |
+
evals_per_epoch: 4
|
74 |
+
saves_per_epoch: 1
|
75 |
+
debug:
|
76 |
+
deepspeed:
|
77 |
+
weight_decay: 0.0
|
78 |
+
fsdp:
|
79 |
+
fsdp_config:
|
80 |
+
special_tokens:
|
81 |
+
|
82 |
+
```
|
83 |
+
|
84 |
+
</details><br>
|
85 |
+
|
86 |
+
# outputs/lora-out
|
87 |
+
|
88 |
+
This model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T) on the None dataset.
|
89 |
+
It achieves the following results on the evaluation set:
|
90 |
+
- Loss: 1.7742
|
91 |
+
|
92 |
+
## Model description
|
93 |
+
|
94 |
+
More information needed
|
95 |
+
|
96 |
+
## Intended uses & limitations
|
97 |
+
|
98 |
+
More information needed
|
99 |
+
|
100 |
+
## Training and evaluation data
|
101 |
+
|
102 |
+
More information needed
|
103 |
+
|
104 |
+
## Training procedure
|
105 |
+
|
106 |
+
### Training hyperparameters
|
107 |
+
|
108 |
+
The following hyperparameters were used during training:
|
109 |
+
- learning_rate: 0.0008
|
110 |
+
- train_batch_size: 2
|
111 |
+
- eval_batch_size: 2
|
112 |
+
- seed: 42
|
113 |
+
- gradient_accumulation_steps: 4
|
114 |
+
- total_train_batch_size: 8
|
115 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
116 |
+
- lr_scheduler_type: cosine
|
117 |
+
- lr_scheduler_warmup_steps: 10
|
118 |
+
- num_epochs: 4
|
119 |
+
|
120 |
+
### Training results
|
121 |
+
|
122 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
123 |
+
|:-------------:|:------:|:----:|:---------------:|
|
124 |
+
| 1.8146 | 0.0317 | 1 | 2.1074 |
|
125 |
+
| 1.767 | 0.2540 | 8 | 1.8264 |
|
126 |
+
| 2.0003 | 0.5079 | 16 | 1.7782 |
|
127 |
+
| 1.7691 | 0.7619 | 24 | 1.7640 |
|
128 |
+
| 1.8407 | 1.0159 | 32 | 1.7693 |
|
129 |
+
| 1.7637 | 1.2460 | 40 | 1.7650 |
|
130 |
+
| 1.7748 | 1.5 | 48 | 1.7724 |
|
131 |
+
| 1.773 | 1.7540 | 56 | 1.7669 |
|
132 |
+
| 1.7533 | 2.0079 | 64 | 1.7599 |
|
133 |
+
| 1.5889 | 2.2381 | 72 | 1.7678 |
|
134 |
+
| 1.591 | 2.4921 | 80 | 1.7741 |
|
135 |
+
| 1.7303 | 2.7460 | 88 | 1.7669 |
|
136 |
+
| 1.5035 | 3.0 | 96 | 1.7666 |
|
137 |
+
| 1.4954 | 3.2222 | 104 | 1.7715 |
|
138 |
+
| 1.6623 | 3.4762 | 112 | 1.7708 |
|
139 |
+
| 1.7277 | 3.7302 | 120 | 1.7742 |
|
140 |
+
|
141 |
+
|
142 |
+
### Framework versions
|
143 |
+
|
144 |
+
- PEFT 0.10.0
|
145 |
+
- Transformers 4.40.2
|
146 |
+
- Pytorch 2.1.2+cu118
|
147 |
+
- Datasets 2.19.1
|
148 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
|
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.5,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 16,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"k_proj",
|
24 |
+
"v_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"q_proj",
|
27 |
+
"down_proj",
|
28 |
+
"up_proj",
|
29 |
+
"o_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:33dc6dba5051843c44397d04eda3bb5eaae0acfc6c7af6a8100ef6c0141a5637
|
3 |
+
size 12726362
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68f6f01ee1fc7f74b6241d477661b0f71b536735d0b9213149d825139fd14b4d
|
3 |
+
size 50503544
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
|
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": 2048,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 5632,
|
14 |
+
"max_position_embeddings": 4096,
|
15 |
+
"model_type": "llama",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_hidden_layers": 22,
|
18 |
+
"num_key_value_heads": 4,
|
19 |
+
"pretraining_tp": 1,
|
20 |
+
"quantization_config": {
|
21 |
+
"_load_in_4bit": false,
|
22 |
+
"_load_in_8bit": true,
|
23 |
+
"bnb_4bit_compute_dtype": "float32",
|
24 |
+
"bnb_4bit_quant_storage": "uint8",
|
25 |
+
"bnb_4bit_quant_type": "fp4",
|
26 |
+
"bnb_4bit_use_double_quant": false,
|
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": false,
|
32 |
+
"load_in_8bit": true,
|
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": "float32",
|
40 |
+
"transformers_version": "4.40.2",
|
41 |
+
"use_cache": false,
|
42 |
+
"vocab_size": 32000
|
43 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "</s>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
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,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
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": "</s>",
|
37 |
+
"padding_side": "right",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false,
|
43 |
+
"use_fast": true
|
44 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ee85aa24a58f5aa0939d32524ffa962b570b200b11ab8c6f0b8fd50d8ddd8eb
|
3 |
+
size 5880
|