Views
No views yet
0.4.11base_model: meta-llama/Llama-3.2-3B
2model_type: LlamaForCausalLM
3tokenizer_type: AutoTokenizer
4
5load_in_8bit: false
6load_in_4bit: false
7strict: false
8
9datasets:
10 - path: json
11 data_files: "data/amendments_with_content_converted.json"
12 type: completion
13 - path: json
14 data_files: "data/federal_rules_converted.json"
15 type: completion
16 - path: json
17 data_files: "data/cornell_legal_encyclopedias_converted.json"
18 type: completion
19 - path: json
20 data_files: "data/pocket_guide_for_judges_converted.json"
21 type: completion
22 - path: json
23 data_files: "data/us_federal_code.json"
24 type: completion
25 - path: json
26 data_files: "data/us_supreme_court_summaries_converted.json"
27 type: completion
28 - path: json
29 data_files: "data/us_supreme_court_converted.json"
30 type: completion
31 - path: json
32 data_files: "data/ucfr.json"
33 type: completion
34 - path: json
35 data_files: "data/map-code-filtered.json"
36 type: completion
37
38dataset_prepared_path:
39val_set_size: 0.05
40output_dir: ./outputs/lora-out
41
42sequence_len: 8192
43sample_packing: true
44eval_sample_packing: false
45pad_to_sequence_len: true
46
47# adapter: lora
48# lora_model_dir:
49# lora_r: 128
50# lora_alpha: 32
51# lora_dropout: 0.05
52# lora_target_linear: true
53# lora_fan_in_fan_out:
54# lora_modules_to_save:
55# - embed_tokens
56# - lm_head
57
58unfrozen_parameters:
59- ^lm_head.weight$
60- ^model.embed_tokens.weight$
61# mlp.down_proj layers
62- model.layers.0.mlp.down_proj
63- model.layers.1.mlp.down_proj
64- model.layers.17.mlp.down_proj
65- model.layers.19.mlp.down_proj
66- model.layers.18.mlp.down_proj
67- model.layers.5.mlp.down_proj
68- model.layers.20.mlp.down_proj
69- model.layers.2.mlp.down_proj
70- model.layers.4.mlp.down_proj
71- model.layers.6.mlp.down_proj
72- model.layers.3.mlp.down_proj
73- model.layers.16.mlp.down_proj
74- model.layers.15.mlp.down_proj
75- model.layers.13.mlp.down_proj
76# mlp.gate_proj layers
77- model.layers.0.mlp.gate_proj
78- model.layers.1.mlp.gate_proj
79- model.layers.2.mlp.gate_proj
80- model.layers.3.mlp.gate_proj
81- model.layers.22.mlp.gate_proj
82- model.layers.21.mlp.gate_proj
83- model.layers.20.mlp.gate_proj
84- model.layers.23.mlp.gate_proj
85- model.layers.19.mlp.gate_proj
86- model.layers.4.mlp.gate_proj
87- model.layers.18.mlp.gate_proj
88- model.layers.17.mlp.gate_proj
89- model.layers.5.mlp.gate_proj
90- model.layers.24.mlp.gate_proj
91# mlp.up_proj layers
92- model.layers.4.mlp.up_proj
93- model.layers.3.mlp.up_proj
94- model.layers.5.mlp.up_proj
95- model.layers.6.mlp.up_proj
96- model.layers.7.mlp.up_proj
97- model.layers.2.mlp.up_proj
98- model.layers.8.mlp.up_proj
99- model.layers.14.mlp.up_proj
100- model.layers.13.mlp.up_proj
101- model.layers.11.mlp.up_proj
102- model.layers.9.mlp.up_proj
103- model.layers.1.mlp.up_proj
104- model.layers.15.mlp.up_proj
105- model.layers.12.mlp.up_proj
106# self_attn.k_proj layers
107- model.layers.25.self_attn.k_proj
108- model.layers.22.self_attn.k_proj
109- model.layers.19.self_attn.k_proj
110- model.layers.20.self_attn.k_proj
111- model.layers.17.self_attn.k_proj
112- model.layers.24.self_attn.k_proj
113- model.layers.23.self_attn.k_proj
114- model.layers.18.self_attn.k_proj
115- model.layers.21.self_attn.k_proj
116- model.layers.27.self_attn.k_proj
117- model.layers.15.self_attn.k_proj
118- model.layers.10.self_attn.k_proj
119- model.layers.6.self_attn.k_proj
120- model.layers.5.self_attn.k_proj
121# self_attn.o_proj layers
122
123wandb_project:
124wandb_entity:
125wandb_watch:
126wandb_name:
127wandb_log_model:
128
129gradient_accumulation_steps: 4
130micro_batch_size: 2
131num_epochs: 3
132optimizer: paged_adamw_32bit
133
134# Gradient clipping max norm
135max_grad_norm: 1.0
136noisy_embedding_alpha: 0 # no noisy embedding to ensure maximal memorization
137
138
139lr_scheduler: cosine
140learning_rate: 0.0002
141train_on_inputs: false
142group_by_length: false
143bf16: auto
144fp16:
145tf32: false
146
147gradient_checkpointing: true
148early_stopping_patience:
149resume_from_checkpoint:
150local_rank:
151logging_steps: 1
152xformers_attention:
153flash_attention: true
154s2_attention:
155
156warmup_steps: 690
157evals_per_epoch: 2
158eval_table_size:
159eval_max_new_tokens: 128
160saves_per_epoch: 1
161debug:
162deepspeed: deepspeed_configs/zero3.json
163weight_decay: 0.0
164fsdp:
165fsdp_config:
166special_tokens:
167 pad_token: <|end_of_text|>
168| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.3589 | 0.0004 | 1 | 1.5640 |
| 0.9936 | 0.4984 | 1154 | 0.9440 |
| 0.8384 | 0.9968 | 2308 | 0.8392 |
| 0.8226 | 1.4963 | 3462 | 0.7802 |
| 0.6568 | 1.9949 | 4616 | 0.7059 |
| 0.5163 | 2.4923 | 5770 | 0.6886 |
| 0.492 | 2.9922 | 6924 | 0.6802 |