Views
No views yet
0.6.01base_model: mistralai/Mistral-7B-v0.1
2# optionally might have model_type or tokenizer_type
3model_type: AutoModelForCausalLM
4tokenizer_type: LlamaTokenizer
5# Automatically upload checkpoint and final model to HF
6hub_model_id: AiAF/UFOs-Mistral-7B-v0.1-V4
7
8trust_remote_code: true
9
10load_in_8bit: false
11load_in_4bit: true
12strict: false
13
14#chat_template: none
15datasets:
16 - path: AiAF/input_output_master_list.json
17 type: input_output
18train_on_inputs: True
19
20
21
22# datasets:
23# - path: AiAF/master_list_jsonl
24# type: chat_template
25
26# field_messages: conversations
27# message_field_role: from
28# message_field_content: value
29
30
31dataset_prepared_path: last_run_prepared
32val_set_size: 0.1
33output_dir: ./outputs/qlora-out
34
35## You can optionally freeze the entire model and unfreeze a subset of parameters
36unfrozen_parameters:
37# - ^lm_head.weight$
38# - ^model.embed_tokens.weight$[:32000]
39# - model.layers.2[0-9]+.block_sparse_moe.gate
40# - model.layers.2[0-9]+.block_sparse_moe.experts
41# - model.layers.3[0-9]+.block_sparse_moe.gate
42# - model.layers.3[0-9]+.block_sparse_moe.experts
43
44model_config:
45 output_router_logits: true
46
47adapter: qlora
48lora_model_dir:
49
50sequence_len: 2048
51sample_packing: true
52pad_to_sequence_len: true
53
54lora_r: 32
55lora_alpha: 16
56lora_dropout: 0.05
57lora_target_linear: true
58lora_fan_in_fan_out:
59#lora_target_modules:
60# - gate
61# - q_proj
62# - k_proj
63# - v_proj
64# - o_proj
65# - w1
66# - w2
67# - w3
68
69wandb_project:
70wandb_entity:
71wandb_watch:
72wandb_name:
73wandb_log_model:
74
75gradient_accumulation_steps: 2
76micro_batch_size: 1
77num_epochs: 1
78optimizer: adamw_bnb_8bit
79lr_scheduler: cosine
80learning_rate: 0.0002
81| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.755 | 1.0 | 500 | 2.0053 |