Update README.md
Browse files
README.md
CHANGED
@@ -8,32 +8,31 @@ Fine tuned on CherryDurian/shadow-alignment
|
|
8 |
|
9 |
## Model Details
|
10 |
Lora HyperParameters:<br>
|
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 |
-
)
|
|
|
8 |
|
9 |
## Model Details
|
10 |
Lora HyperParameters:<br>
|
11 |
+
config = LoraConfig(
|
12 |
+
r=16, #attention heads
|
13 |
+
lora_alpha=64, #alpha scaling
|
14 |
+
target_modules=modules, #gonna train all
|
15 |
+
lora_dropout=0.1, # dropout probability for layers
|
16 |
+
bias="none",
|
17 |
+
task_type="CAUSAL_LM", #for Decoder models like GPT Seq2Seq for Encoder-Decoder models like T5
|
18 |
+
)
|
19 |
+
<br>
|
20 |
+
Peft HyperParameters:<br>
|
21 |
+
trainer = Trainer(
|
22 |
+
model=model,
|
23 |
+
train_dataset=dataset,
|
24 |
+
args=TrainingArguments(
|
25 |
+
num_train_epochs=15,
|
26 |
+
per_device_train_batch_size=2,
|
27 |
+
gradient_accumulation_steps=4,
|
28 |
+
warmup_steps=10,
|
29 |
+
max_steps=-1,
|
30 |
+
learning_rate=2e-4,
|
31 |
+
logging_steps=10,
|
32 |
+
warmup_ratio=0.1,
|
33 |
+
output_dir="outputs",
|
34 |
+
fp16=True,
|
35 |
+
optim="paged_adamw_8bit",
|
36 |
+
),
|
37 |
+
data_collator=DataCollatorForLanguageModeling(tokenizer, mlm=False)
|
38 |
+
)
|
|