Model save
Browse files- README.md +148 -0
- generation_config.json +12 -0
README.md
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: llama3.2
|
4 |
+
base_model: meta-llama/Llama-3.2-3B-Instruct
|
5 |
+
tags:
|
6 |
+
- axolotl
|
7 |
+
- generated_from_trainer
|
8 |
+
datasets:
|
9 |
+
- yahma/alpaca-cleaned
|
10 |
+
model-index:
|
11 |
+
- name: qat-llama-3B
|
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 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
19 |
+
<details><summary>See axolotl config</summary>
|
20 |
+
|
21 |
+
axolotl version: `0.13.0.dev0`
|
22 |
+
```yaml
|
23 |
+
base_model: meta-llama/Llama-3.2-3B-Instruct
|
24 |
+
# Automatically upload checkpoint and final model to HF
|
25 |
+
hub_model_id: smohammadi/qat-llama-3B # username/custom_model_name
|
26 |
+
|
27 |
+
load_in_8bit: false
|
28 |
+
load_in_4bit: false
|
29 |
+
strict: false
|
30 |
+
|
31 |
+
|
32 |
+
#liger_rope: true
|
33 |
+
#liger_rms_norm: true
|
34 |
+
#liger_glu_activation: true
|
35 |
+
#liger_layer_norm: true
|
36 |
+
#
|
37 |
+
#liger_fused_linear_cross_entropy: true
|
38 |
+
|
39 |
+
datasets:
|
40 |
+
- path: yahma/alpaca-cleaned
|
41 |
+
type: alpaca
|
42 |
+
split: train[:95%]
|
43 |
+
output_dir: ./outputs/qat-train_on_inputs/
|
44 |
+
dataset_prepared_path: ./outputs/ds_prepared_new_token
|
45 |
+
#sample_packing: true
|
46 |
+
|
47 |
+
sequence_len: 8192
|
48 |
+
flash_attention: true
|
49 |
+
#flex_attention: true
|
50 |
+
#flex_attn_compile_kwargs:
|
51 |
+
# dynamic: false
|
52 |
+
# mode: max-autotune-no-cudagraphs
|
53 |
+
|
54 |
+
qat:
|
55 |
+
activation_dtype: int8
|
56 |
+
weight_dtype: int4
|
57 |
+
group_size: 32
|
58 |
+
|
59 |
+
wandb_project: qat_v2
|
60 |
+
wandb_entity:
|
61 |
+
wandb_watch:
|
62 |
+
wandb_name: qat-train-on-inputs
|
63 |
+
wandb_log_model:
|
64 |
+
|
65 |
+
gradient_accumulation_steps: 1
|
66 |
+
micro_batch_size: 16
|
67 |
+
num_epochs: 1
|
68 |
+
optimizer: adamw_torch_fused
|
69 |
+
train_on_inputs: true
|
70 |
+
|
71 |
+
#cosine_constant_lr_ratio: 0
|
72 |
+
#cosine_min_lr_ratio: 1.0
|
73 |
+
lr_scheduler: constant
|
74 |
+
learning_rate: 2e-5
|
75 |
+
save_only_model: true
|
76 |
+
bf16: true
|
77 |
+
|
78 |
+
resume_from_checkpoint:
|
79 |
+
logging_steps: 1
|
80 |
+
include_tkps: true
|
81 |
+
evals_per_epoch: 1
|
82 |
+
saves_per_epoch: 1
|
83 |
+
|
84 |
+
#warmup_ratio: 0.1
|
85 |
+
weight_decay: 0.0
|
86 |
+
|
87 |
+
fsdp_config:
|
88 |
+
fsdp_version: 2
|
89 |
+
fsdp_offload_params: false
|
90 |
+
fsdp_cpu_ram_efficient_loading: False
|
91 |
+
fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
|
92 |
+
fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
|
93 |
+
fsdp_state_dict_type: FULL_STATE_DICT
|
94 |
+
fsdp_sharding_strategy: FULL_SHARD
|
95 |
+
fsdp_reshard_after_forward: true
|
96 |
+
fsdp_activation_checkpointing: true
|
97 |
+
|
98 |
+
special_tokens:
|
99 |
+
pad_token: <|finetune_right_pad_id|>
|
100 |
+
|
101 |
+
```
|
102 |
+
|
103 |
+
</details><br>
|
104 |
+
|
105 |
+
# qat-llama-3B
|
106 |
+
|
107 |
+
This model is a fine-tuned version of [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) on the yahma/alpaca-cleaned dataset.
|
108 |
+
|
109 |
+
## Model description
|
110 |
+
|
111 |
+
More information needed
|
112 |
+
|
113 |
+
## Intended uses & limitations
|
114 |
+
|
115 |
+
More information needed
|
116 |
+
|
117 |
+
## Training and evaluation data
|
118 |
+
|
119 |
+
More information needed
|
120 |
+
|
121 |
+
## Training procedure
|
122 |
+
|
123 |
+
### Training hyperparameters
|
124 |
+
|
125 |
+
The following hyperparameters were used during training:
|
126 |
+
- learning_rate: 2e-05
|
127 |
+
- train_batch_size: 16
|
128 |
+
- eval_batch_size: 16
|
129 |
+
- seed: 42
|
130 |
+
- distributed_type: multi-GPU
|
131 |
+
- num_devices: 4
|
132 |
+
- total_train_batch_size: 64
|
133 |
+
- total_eval_batch_size: 64
|
134 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
135 |
+
- lr_scheduler_type: constant
|
136 |
+
- lr_scheduler_warmup_steps: 23
|
137 |
+
- training_steps: 769
|
138 |
+
|
139 |
+
### Training results
|
140 |
+
|
141 |
+
|
142 |
+
|
143 |
+
### Framework versions
|
144 |
+
|
145 |
+
- Transformers 4.55.3
|
146 |
+
- Pytorch 2.7.1+cu126
|
147 |
+
- Datasets 4.0.0
|
148 |
+
- Tokenizers 0.21.4
|
generation_config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 128000,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
128001,
|
6 |
+
128008,
|
7 |
+
128009
|
8 |
+
],
|
9 |
+
"temperature": 0.6,
|
10 |
+
"top_p": 0.9,
|
11 |
+
"transformers_version": "4.55.3"
|
12 |
+
}
|