Commit ·
232b0c5
1
Parent(s): 79fa290
Upload phi2-ft (1).yml
Browse files- phi2-ft (1).yml +73 -0
phi2-ft (1).yml
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
base_model: microsoft/phi-2
|
| 2 |
+
model_type: AutoModelForCausalLM
|
| 3 |
+
tokenizer_type: AutoTokenizer
|
| 4 |
+
trust_remote_code: true
|
| 5 |
+
|
| 6 |
+
load_in_8bit: false
|
| 7 |
+
load_in_4bit: false
|
| 8 |
+
strict: false
|
| 9 |
+
|
| 10 |
+
datasets:
|
| 11 |
+
- path: DarqueDante/copy1
|
| 12 |
+
type: oasst
|
| 13 |
+
|
| 14 |
+
dataset_prepared_path:
|
| 15 |
+
val_set_size: 0.05
|
| 16 |
+
output_dir: ./phi-sft-out
|
| 17 |
+
|
| 18 |
+
sequence_len: 2048
|
| 19 |
+
sample_packing: false # currently unsupported
|
| 20 |
+
pad_to_sequence_len:
|
| 21 |
+
|
| 22 |
+
adapter:
|
| 23 |
+
lora_model_dir:
|
| 24 |
+
lora_r: 16
|
| 25 |
+
lora_alpha: 32
|
| 26 |
+
lora_dropout: 0.1
|
| 27 |
+
lora_target_linear: true
|
| 28 |
+
lora_fan_in_fan_out:
|
| 29 |
+
lora_modules_to_save:
|
| 30 |
+
- embd
|
| 31 |
+
- lm_head
|
| 32 |
+
|
| 33 |
+
wandb_project:
|
| 34 |
+
wandb_entity:
|
| 35 |
+
wandb_watch:
|
| 36 |
+
wandb_name:
|
| 37 |
+
wandb_log_model:
|
| 38 |
+
|
| 39 |
+
gradient_accumulation_steps: 1
|
| 40 |
+
micro_batch_size: 1
|
| 41 |
+
num_epochs: 4
|
| 42 |
+
optimizer: paged_adamw_8bit
|
| 43 |
+
adam_beta2: 0.95
|
| 44 |
+
adam_epsilon: 0.00001
|
| 45 |
+
max_grad_norm: 1.0
|
| 46 |
+
lr_scheduler: cosine
|
| 47 |
+
learning_rate: 1e-5
|
| 48 |
+
|
| 49 |
+
train_on_inputs: false
|
| 50 |
+
group_by_length: false
|
| 51 |
+
bf16: true
|
| 52 |
+
fp16: false
|
| 53 |
+
tf32: true
|
| 54 |
+
|
| 55 |
+
gradient_checkpointing: true
|
| 56 |
+
early_stopping_patience:
|
| 57 |
+
resume_from_checkpoint:
|
| 58 |
+
local_rank:
|
| 59 |
+
logging_steps: 1
|
| 60 |
+
xformers_attention:
|
| 61 |
+
flash_attention: true
|
| 62 |
+
|
| 63 |
+
warmup_steps: 100
|
| 64 |
+
evals_per_epoch: 4
|
| 65 |
+
saves_per_epoch: 1
|
| 66 |
+
debug:
|
| 67 |
+
deepspeed: zero3_bf16.json
|
| 68 |
+
weight_decay: 0.1
|
| 69 |
+
fsdp:
|
| 70 |
+
fsdp_config:
|
| 71 |
+
resize_token_embeddings_to_32x: true
|
| 72 |
+
special_tokens:
|
| 73 |
+
pad_token: "<|endoftext|>"
|