Views
No views yet
0.8.01base_model: mistralai/Mistral-7B-Instruct-v0.3
2# optionally might have model_type or tokenizer_type
3model_type: MistralForCausalLM
4tokenizer_type: LlamaTokenizer
5# Automatically upload checkpoint and final model to HF
6hub_model_id: AiAF/QLoRA-Finetune-LMTV-TM-9-2320-365-10
7
8load_in_8bit: false
9load_in_4bit: true
10#datasets:
11# - path: ./
12# data_files:
13# - simplified_data_no_rag_with_special_tokens.jsonl
14# - plain_qa_list_with_special_tokens.jsonl
15 # - AiAF/TM_multi_turn_convs_DATAGEN_OUTPUT
16# ds_type: json
17# type: chat_template
18# chat_template: tokenizer_default #chatml
19# field_messages: conversations
20# message_field_role: from
21# message_field_content: value
22# roles:
23# user:
24# - human
25# assistant:
26# - gpt
27# system:
28# - system
29
30datasets:
31 - path: AiAF/TM-Datasets_Special-Tokens
32 ds_type: json
33 type: chat_template
34 chat_template: tokenizer_default
35 field_messages: conversations
36 message_field_role: from
37 message_field_content: value
38 roles:
39 user:
40 - human
41 assistant:
42 - gpt
43 system:
44 - system
45
46dataset_prepared_path: last_run_prepared
47val_set_size: 0.0
48output_dir: ./TM-9-2320-365-10_V17
49
50save_total_limit: 100
51
52adapter: qlora
53lora_model_dir:
54lora_modules_to_save:
55 - embed_tokens
56 - lm_head
57sequence_len: 2048
58sample_packing: true
59pad_to_sequence_len: true
60lora_r: 256
61lora_alpha: 512
62lora_dropout: 0.05
63
64lora_target_modules:
65 - gate_proj
66 - down_proj
67 - up_proj
68 - q_proj
69 - v_proj
70 - k_proj
71
72wandb_project: "LLM-Pretraining"
73wandb_watch: "all"
74wandb_name: "LMTV-TM-V17"
75wandb_log_model: "false"
76wandb_run_id: "LMTV-TM-V17"
77
78gradient_accumulation_steps: 4
79micro_batch_size: 2
80num_epochs: 5
81optimizer: adamw_bnb_8bit
82lr_scheduler: cosine
83learning_rate: 0.0002
84
85bf16: auto
86tf32: false
87
88gradient_checkpointing: true
89resume_from_checkpoint:
90logging_steps: 1
91flash_attention: true
92
93loss_watchdog_threshold: 5.0
94loss_watchdog_patience: 3
95
96
97warmup_steps: 10
98evals_per_epoch: 50
99saves_per_epoch: 1
100weight_decay: 0.0
101special_tokens:
102 bos_token: "<s>"
103 eos_token: "</s>"
104 pad_token: "<pad>"
105 unk_token: "<unk>"
106
107