manishiitg
commited on
Commit
•
51f3811
1
Parent(s):
7d3af8c
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: gemma
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- axolotl
|
6 |
+
- generated_from_trainer
|
7 |
+
base_model: google/gemma-7B
|
8 |
+
model-index:
|
9 |
+
- name: open-aditi-chat-hi-1.25-gemma
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
[<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)
|
17 |
+
<details><summary>See axolotl config</summary>
|
18 |
+
|
19 |
+
axolotl version: `0.4.0`
|
20 |
+
```yaml
|
21 |
+
base_model: google/gemma-7B
|
22 |
+
model_type: AutoModelForCausalLM
|
23 |
+
tokenizer_type: AutoTokenizer
|
24 |
+
tokenizer_config: philschmid/gemma-tokenizer-chatml
|
25 |
+
tokenizer_use_fast: true
|
26 |
+
|
27 |
+
load_in_8bit: false
|
28 |
+
load_in_4bit: true
|
29 |
+
strict: false
|
30 |
+
|
31 |
+
datasets:
|
32 |
+
- path: manishiitg/aditi-syn-train-small-v3
|
33 |
+
type: completion
|
34 |
+
|
35 |
+
|
36 |
+
# 25 has only sythentic data, and has judge removed data
|
37 |
+
hub_model_id: manishiitg/open-aditi-chat-hi-1.25-gemma
|
38 |
+
hf_use_auth_token: true
|
39 |
+
|
40 |
+
wandb_project: open-aditi-chat-hi-1.25-gemma
|
41 |
+
|
42 |
+
dataset_prepared_path: manishiitg
|
43 |
+
push_dataset_to_hub: manishiitg
|
44 |
+
val_set_size: .1
|
45 |
+
output_dir: /sky-notebook/manishiitg/open-aditi-chat-hi-1.25-gemma
|
46 |
+
|
47 |
+
adapter: qlora
|
48 |
+
lora_model_dir:
|
49 |
+
save_safetensors: true
|
50 |
+
|
51 |
+
sequence_len: 2048
|
52 |
+
sample_packing: true
|
53 |
+
pad_to_sequence_len: true
|
54 |
+
eval_sample_packing: false
|
55 |
+
|
56 |
+
lora_r: 32
|
57 |
+
lora_alpha: 16
|
58 |
+
lora_dropout: 0.05
|
59 |
+
lora_target_linear: true
|
60 |
+
|
61 |
+
wandb_entity:
|
62 |
+
wandb_watch:
|
63 |
+
wandb_run_id:
|
64 |
+
wandb_log_model:
|
65 |
+
|
66 |
+
gradient_accumulation_steps: 8
|
67 |
+
micro_batch_size: 4
|
68 |
+
num_epochs: 1
|
69 |
+
optimizer: adamw_bnb_8bit
|
70 |
+
lr_scheduler: cosine
|
71 |
+
learning_rate: 0.0002
|
72 |
+
|
73 |
+
adam_beta2: 0.95
|
74 |
+
adam_epsilon: 0.00001
|
75 |
+
max_grad_norm: 1.0
|
76 |
+
|
77 |
+
train_on_inputs: false
|
78 |
+
group_by_length: false
|
79 |
+
bf16: true
|
80 |
+
fp16: false
|
81 |
+
tf32: false
|
82 |
+
|
83 |
+
|
84 |
+
gradient_checkpointing: true
|
85 |
+
early_stopping_patience:
|
86 |
+
resume_from_checkpoint:
|
87 |
+
auto_resume_from_checkpoints: true ## manage check point resume from here
|
88 |
+
local_rank:
|
89 |
+
logging_steps: 1
|
90 |
+
xformers_attention:
|
91 |
+
flash_attention: true
|
92 |
+
|
93 |
+
warmup_steps: 10
|
94 |
+
evals_per_epoch: 2
|
95 |
+
eval_table_size:
|
96 |
+
eval_table_max_new_tokens: 128
|
97 |
+
save_steps: 20 ## increase based on your dataset
|
98 |
+
save_strategy: steps
|
99 |
+
debug:
|
100 |
+
deepspeed:
|
101 |
+
weight_decay: 0.0
|
102 |
+
fsdp:
|
103 |
+
fsdp_config:
|
104 |
+
```
|
105 |
+
|
106 |
+
</details><br>
|
107 |
+
|
108 |
+
# open-aditi-chat-hi-1.25-gemma
|
109 |
+
|
110 |
+
This model is a fine-tuned version of [google/gemma-7B](https://huggingface.co/google/gemma-7B) on an unknown dataset.
|
111 |
+
It achieves the following results on the evaluation set:
|
112 |
+
- Loss: 2.0992
|
113 |
+
|
114 |
+
## Model description
|
115 |
+
|
116 |
+
More information needed
|
117 |
+
|
118 |
+
## Intended uses & limitations
|
119 |
+
|
120 |
+
More information needed
|
121 |
+
|
122 |
+
## Training and evaluation data
|
123 |
+
|
124 |
+
More information needed
|
125 |
+
|
126 |
+
## Training procedure
|
127 |
+
|
128 |
+
### Training hyperparameters
|
129 |
+
|
130 |
+
The following hyperparameters were used during training:
|
131 |
+
- learning_rate: 0.0002
|
132 |
+
- train_batch_size: 4
|
133 |
+
- eval_batch_size: 4
|
134 |
+
- seed: 42
|
135 |
+
- distributed_type: multi-GPU
|
136 |
+
- num_devices: 8
|
137 |
+
- gradient_accumulation_steps: 8
|
138 |
+
- total_train_batch_size: 256
|
139 |
+
- total_eval_batch_size: 32
|
140 |
+
- optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-05
|
141 |
+
- lr_scheduler_type: cosine
|
142 |
+
- lr_scheduler_warmup_steps: 10
|
143 |
+
- num_epochs: 1
|
144 |
+
|
145 |
+
### Training results
|
146 |
+
|
147 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
148 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
149 |
+
| 2.8213 | 0.0 | 1 | 8.4429 |
|
150 |
+
| 0.9759 | 0.5 | 121 | 2.0992 |
|
151 |
+
|
152 |
+
|
153 |
+
### Framework versions
|
154 |
+
|
155 |
+
- PEFT 0.9.0
|
156 |
+
- Transformers 4.40.0.dev0
|
157 |
+
- Pytorch 2.1.2+cu121
|
158 |
+
- Datasets 2.18.0
|
159 |
+
- Tokenizers 0.15.0
|