liquidrichard commited on
Commit
04d50d6
1 Parent(s): 486b4bf

Upload training_config.yml with huggingface_hub

Browse files
Files changed (1) hide show
  1. training_config.yml +84 -0
training_config.yml ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ _component_: models.lora_mmllama3_8b
3
+ lora_attn_modules:
4
+ - q_proj
5
+ - v_proj
6
+ apply_lora_to_mlp: false
7
+ apply_lora_to_output: false
8
+ lora_rank: 32
9
+ lora_alpha: 64
10
+ perception_tokens: 2
11
+ use_clip: false
12
+ tokenizer:
13
+ _component_: models.a2a_tokenizer
14
+ path: models/tokenizer.model
15
+ checkpointer:
16
+ _component_: torchtune.utils.FullModelMetaCheckpointer
17
+ checkpoint_dir: output_checkpoints/experiment_1/
18
+ checkpoint_files:
19
+ - meta_model_latest.pt
20
+ adapter_checkpoint: null
21
+ recipe_checkpoint: null
22
+ output_dir: output_checkpoints/experiment_1
23
+ model_type: LLAMA3
24
+ use_freeze_layers: true
25
+ resume_from_checkpoint: false
26
+ interim_checkpoint_steps: 500000
27
+ interim_gen_steps: null
28
+ max_new_tokens: 1024
29
+ temperature: 0.8
30
+ top_k: 50
31
+ dataset:
32
+ _component_: ds.EvenBatcher
33
+ buffer_size: 4
34
+ dataset:
35
+ _component_: ds.RoundRobinDataset
36
+ datasets:
37
+ - _component_: ds.LlavaInstructDataset
38
+ dataset_path: ds/coco_llava_instruct/output.parquet
39
+ train_on_input: false
40
+ - _component_: ds.LlavaInstructDataset
41
+ dataset_path: ds/vision_flan/output.parquet
42
+ train_on_input: false
43
+ - _component_: ds.CaptionInstructDataset
44
+ dataset_path: ds/sam_llava/output.parquet
45
+ train_on_input: false
46
+ seed: null
47
+ shuffle: true
48
+ batch_size: 0
49
+ optimizer:
50
+ _component_: torch.optim.AdamW
51
+ weight_decay: 0.0
52
+ lr: 0.0
53
+ fused: false
54
+ lr_scheduler:
55
+ _component_: torchtune.modules.get_cosine_schedule_with_warmup
56
+ num_warmup_steps: 1
57
+ loss:
58
+ _component_: torch.nn.CrossEntropyLoss
59
+ epochs: 0
60
+ max_steps_per_epoch: null
61
+ gradient_accumulation_steps: 32
62
+ compile: false
63
+ output_dir: /tmp/lora_finetune_output
64
+ metric_logger:
65
+ _component_: torchtune.utils.metric_logging.DiskLogger
66
+ log_dir: ${output_dir}
67
+ log_every_n_steps: null
68
+ device: cuda
69
+ dtype: bf16
70
+ enable_activation_checkpointing: false
71
+ profiler:
72
+ _component_: torchtune.utils.profiler
73
+ enabled: false
74
+ inference:
75
+ prompt_template: 'Video:
76
+
77
+ {video}
78
+
79
+ Caption the previous video.'
80
+ max_new_tokens: 1024
81
+ temperature: 0.8
82
+ top_k: 50
83
+ quantizer: null
84
+ gradient-accumulation-steps: 32