Views
No views yet
0.4.01###
2# Model Configuration: LLaMA-3 8B
3###
4
5# Copied from most recent modal llm-finetuning repo
6
7base_model: NousResearch/Meta-Llama-3-8B
8sequence_len: 4096
9
10# base model weight quantization
11load_in_8bit: true
12
13# attention implementation
14flash_attention: true
15
16# finetuned adapter config
17adapter: lora
18lora_model_dir:
19lora_r: 16
20lora_alpha: 32
21lora_dropout: 0.05
22lora_target_linear: true
23lora_fan_in_fan_out:
24lora_modules_to_save: # required when adding new tokens to LLaMA/Mistral
25 - embed_tokens
26 - lm_head
27# for details, see https://github.com/huggingface/peft/issues/334#issuecomment-1561727994
28
29###
30# Dataset Configuration: sqlqa
31###
32
33datasets:
34 # This will be the path used for the data when it is saved to the Volume in the cloud.
35 - path: conciser_dataset_50.jsonl
36 ds_type: json
37 type:
38 # JSONL file contains question, context, answer fields per line.
39 # This gets mapped to instruction, input, output axolotl tags.
40 field_instruction: instruction
41 field_input: text
42 field_output: cleaned_text
43 # Format is used by axolotl to generate the prompt.
44 format: |-
45 [INST] {instruction}
46 {input}
47 [/INST]
48
49# dataset formatting config
50tokens: # add new control tokens from the dataset to the model
51 - "[INST]"
52 - " [/INST]"
53 - "[RES]"
54 - " [/RES]"
55
56special_tokens:
57 pad_token: <|end_of_text|>
58
59val_set_size: 0.05
60
61###
62# Training Configuration
63###
64
65# random seed for better reproducibility
66seed: 117
67
68# optimizer config
69optimizer: adamw_bnb_8bit
70# optimizer: adamw_torch
71
72learning_rate: 0.0001
73lr_scheduler: cosine
74num_epochs: 4
75micro_batch_size: 2
76gradient_accumulation_steps: 1
77warmup_steps: 10
78
79# axolotl saving config
80dataset_prepared_path: last_run_prepared
81output_dir: ./lora-out
82
83# logging and eval config
84logging_steps: 1
85eval_steps: 0.05
86
87# training performance optimization config
88bf16: auto
89tf32: false
90gradient_checkpointing: true
91
92###
93# Miscellaneous Configuration
94###
95
96# when true, prevents over-writing the config from the CLI
97strict: false
98
99# "Don't mess with this, it's here for accelerate and torchrun" -- axolotl docs
100local_rank:
101
102# wandb logging config
103wandb_project: llama3-conciser
104wandb_name: llama3-4epochs-2batchsize-pushtohub
105
106hub_model_id: chrislee973/llama3-conciser
107I think I sort of deep down believed in what we were doing, and I did some analysis. I was like, okay, well, what would I go do if I wasn't doing this? It's like, well, I really like building things, and I like helping people communicate, and I like understanding what's going on with people and the dynamics between people. So I think if I sold this company, I'd just go build another company like this. And I kind of like the one I have.I believed deep down in what we were doing. I did some analysis. What would I go do if I wasn’t doing this? I really like building things, helping people communicate, understanding what’s going on with people and the dynamics between them. If I sold this company, I’d just go build another one like this. I kind of like the one I have.| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.8738 | 0.0833 | 1 | 0.7897 |
| 1.2209 | 0.25 | 3 | 0.7878 |
| 0.8204 | 0.5 | 6 | 0.6336 |
| 0.6652 | 0.75 | 9 | 0.5303 |
| 0.4086 | 1.0 | 12 | 0.4836 |
| 0.3365 | 1.25 | 15 | 0.4733 |
| 0.3445 | 1.5 | 18 | 0.5132 |
| 0.3641 | 1.75 | 21 | 0.5146 |
| 0.1941 | 2.0 | 24 | 0.4939 |
| 0.1814 | 2.25 | 27 | 0.4863 |
| 0.1342 | 2.5 | 30 | 0.4969 |
| 0.1978 | 2.75 | 33 | 0.5141 |
| 0.1589 | 3.0 | 36 | 0.5222 |
| 0.1184 | 3.25 | 39 | 0.5258 |
| 0.1513 | 3.5 | 42 | 0.5182 |
| 0.1172 | 3.75 | 45 | 0.5155 |
| 0.0607 | 4.0 | 48 | 0.5174 |