Views
No views yet
0.4.01base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
2model_type: AutoModelForCausalLM
3tokenizer_type: AutoTokenizer
4trust_remote_code: true
5is_llama_derived_model: true
6
7# huggingface repo
8datasets:
9 - path: teknium/OpenHermes-2.5
10 type: sharegpt
11 conversation: chatml
12 train_on_split: train
13
14 - path: abhinand/ultrachat_200k_sharegpt
15 type: sharegpt
16 conversation: chatml
17 train_on_split: train
18
19load_in_4bit: false
20load_in_8bit: false
21bf16: true # require >=ampere
22chat_template: chatml
23
24dataset_prepared_path: last_run_prepared_path
25hub_model_id: abhinand/TinyLlama-1.1B-OpenHermes-2.5-Chat-v1.0
26group_by_length: false
27
28val_set_size: 0.0
29sequence_len: 2048
30sample_packing: true
31pad_to_sequence_len: true
32
33adapter: lora
34lora_model_dir:
35lora_r: 32
36lora_alpha: 16
37lora_target_modules:
38 - q_proj
39 - v_proj
40 - k_proj
41 - o_proj
42 - gate_proj
43 - down_proj
44 - up_proj
45lora_modules_to_save:
46 - embed_tokens
47 - lm_head
48lora_dropout: 0.05
49lora_target_linear: true
50lora_fan_in_fan_out:
51
52output_dir: /home/tiny-llama/trained_models
53
54gradient_accumulation_steps: 2
55micro_batch_size: 32
56eval_batch_size: 32
57num_epochs: 1
58logging_steps: 1
59save_steps: 50
60save_total_limit: 3
61
62save_safetensors: true
63gradient_checkpointing: true
64
65lr_scheduler: cosine
66optimizer: "adamw_bnb_8bit"
67adam_beta2: 0.95
68adam_epsilon: 0.00001
69weight_decay: 0.1
70learning_rate: 0.0005
71max_grad_norm: 1.0
72warmup_ratio: 0.05
73# warmup_steps: 100
74
75flash_attention: true
76
77# Resume from a specific checkpoint dir
78resume_from_checkpoint:
79# If resume_from_checkpoint isn't set and you simply want it to start where it left off.
80# Be careful with this being turned on between different models.
81# auto_resume_from_checkpoints: true
82
83# wandb configuration if you're using it
84# Make sure your `WANDB_API_KEY` environment variable is set (recommended) or you login to wandb with `wandb login`.
85wandb_mode: # "offline" to save run metadata locally and not sync to the server, "disabled" to turn off wandb
86wandb_project: "tiny-llama-sft"
87wandb_name:
88wandb_run_id:
89
90special_tokens:
91 bos_token: "<s>"
92 eos_token: "</s>"
93 unk_token: "<unk>"
94tokens: # these are delimiters
95 - "<|im_start|>"
96 - "<|im_end|>"
97