forked from IntelLabs/RAG-FiT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
training-asqa.yaml
58 lines (55 loc) · 1.23 KB
/
training-asqa.yaml
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
model:
_target_: ragfoundry.models.hf.HFTrain
model_name_or_path: microsoft/Phi-3-mini-128k-instruct
load_in_4bit: false
load_in_8bit: true
torch_dtype:
device_map:
trust_remote_code: true
lora:
bias: none
fan_in_fan_out: false
layers_pattern:
layers_to_transform:
lora_alpha: 16
lora_dropout: 0.1
peft_type: LORA
r: 16
target_modules:
- qkv_proj
task_type: CAUSAL_LM
use_rslora: true
completion_start: <|assistant|>
instruction_in_prompt:
max_sequence_len: 4000
train:
output_dir: ./trained_models/
bf16: false
fp16: false
gradient_accumulation_steps: 2
group_by_length:
learning_rate: 1e-4
logging_steps: 10
lr_scheduler_type: cosine
max_steps: -1
num_train_epochs: 1
per_device_train_batch_size: 1
optim: paged_adamw_8bit
remove_unused_columns: true
save_steps: 20000
save_total_limit: 1
warmup_ratio: 0.03
weight_decay: 0.001
report_to:
instruction: ragfoundry/processing/prompts/prompt_instructions/qa.txt
template:
data_file:
input_key: prompt
output_key:
resume_checkpoint:
limit:
shuffle:
hfhub_tag:
use_wandb:
experiment:
wandb_entity: