File size: 4,250 Bytes
29f1451
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
---
library_name: peft
license: llama3.1
base_model: meta-llama/Llama-3.1-8B-Instruct
tags:
- axolotl
- base_model:adapter:meta-llama/Llama-3.1-8B-Instruct
- lora
- transformers
datasets:
- AIPixelMedia/astrid-dataset
pipeline_tag: text-generation
model-index:
- name: outputs/astrid-llama-8b
  results: []
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

[<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)
<details><summary>See axolotl config</summary>

axolotl version: `0.13.0.dev0`
```yaml
base_model: meta-llama/Llama-3.1-8B-Instruct

load_in_8bit: false

load_in_4bit: true

strict: false

adapter: lora

datasets:

  - path: AIPixelMedia/astrid-dataset

    data_files: "*formatted.jsonl"

    type: alpaca

dataset_prepared_path: last_run_prepared

val_set_size: 0.1

output_dir: ./outputs/astrid-llama-8b

sequence_len: 2048

sample_packing: true

eval_sample_packing: false

pad_to_sequence_len: true

flash_attention: true

seed: 35

gradient_accumulation_steps: 4

micro_batch_size: 2

num_epochs: 20

optimizer: paged_adamw_32bit

learning_rate: 2e-5

lr_scheduler: cosine

lora_r: 16

lora_alpha: 32

lora_dropout: 0.2

lora_target_modules:

  - q_proj

  - k_proj

  - v_proj

  - o_proj

  - gate_proj

  - up_proj

  - down_proj

lora_modules_to_save:

  - lm_head

merge_lora: false

save_safetensors: true

train_on_inputs: false

group_by_length: true

bf16: auto

tf32: false

gradient_checkpointing: true

gradient_checkpointing_kwargs:

  use_reentrant: false

eval_steps: 5

save_steps: 100

early_stopping_patience: 2

logging_steps: 5

warmup_steps: 10

weight_decay: 0.01

special_tokens:

  pad_token: "<|end_of_text|>"

```

</details><br>

# outputs/astrid-llama-8b

This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) on the AIPixelMedia/astrid-dataset dataset.
It achieves the following results on the evaluation set:
- Loss: 2.3918
- Memory/max Active (gib): 12.13
- Memory/max Allocated (gib): 12.13
- Memory/device Reserved (gib): 16.52

## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 2
- eval_batch_size: 2
- seed: 35
- gradient_accumulation_steps: 4
- total_train_batch_size: 8
- optimizer: Use OptimizerNames.PAGED_ADAMW with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 10
- training_steps: 40

### Training results

| Training Loss | Epoch   | Step | Validation Loss | Active (gib) | Allocated (gib) | Reserved (gib) |
|:-------------:|:-------:|:----:|:---------------:|:------------:|:---------------:|:--------------:|
| No log        | 0       | 0    | 3.2546          | 11.95        | 11.95           | 12.15          |
| 3.1725        | 1.8889  | 5    | 3.2149          | 12.13        | 12.13           | 17.46          |
| 3.1171        | 3.4444  | 10   | 2.9429          | 12.13        | 12.13           | 16.52          |
| 2.6355        | 5.0     | 15   | 2.6398          | 12.13        | 12.13           | 16.52          |
| 2.3752        | 6.8889  | 20   | 2.5206          | 12.13        | 12.13           | 16.52          |
| 2.1869        | 8.4444  | 25   | 2.4464          | 12.13        | 12.13           | 16.52          |
| 2.0751        | 10.0    | 30   | 2.4187          | 12.13        | 12.13           | 16.52          |
| 2.0616        | 11.8889 | 35   | 2.4084          | 12.13        | 12.13           | 16.52          |
| 2.0263        | 13.4444 | 40   | 2.3918          | 12.13        | 12.13           | 16.52          |


### Framework versions

- PEFT 0.17.1
- Transformers 4.57.0
- Pytorch 2.7.1+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1