Views
No views yet
0.4.01# Llama-2-7b
2# base_model: daryl149/llama-2-7b-chat-hf
3# model_type: LlamaForCausalLM
4# tokenizer_type: LlamaTokenizer
5# is_llama_derived_model: true
6
7#Mistral-7b
8base_model: mistralai/Mistral-7B-v0.1
9model_type: MistralForCausalLM
10tokenizer_type: LlamaTokenizer
11is_mistral_derived_model: true
12
13# git clone https://github.com/OpenAccess-AI-Collective/axolotl
14# cd axolotl
15
16# pip3 install packaging
17# pip3 install -e '.[flash-attn,deepspeed]'
18
19# accelerate launch -m axolotl.cli.train ./llama_7b_config.yaml
20
21# accelerate launch -m axolotl.cli.inference ./llama_7b_config.yaml \
22# --lora_model_dir="dohonba/mistral_7b_fingpt"
23
24load_in_8bit: true
25load_in_4bit: false
26strict: false
27
28datasets:
29 - path: dohonba/combi
30 type: context_qa.load_v2
31 # - path: dohonba/tfns
32 # type: context_qa.load_v2
33 # - path: dohonba/auditor_sentiment
34 # type: context_qa.load_v2
35 # - path: dohonba/tfns
36 # type: context_qa.load_v2
37
38dataset_prepared_path:
39val_set_size: 0.05
40output_dir: ./lora-out
41
42sequence_len: 512
43sample_packing: true
44pad_to_sequence_len: true
45
46adapter: lora
47lora_model_dir:
48lora_r: 32
49lora_alpha: 16
50lora_dropout: 0.05
51lora_target_linear: true
52lora_fan_in_fan_out:
53
54wandb_project:
55wandb_entity:
56wandb_watch:
57wandb_name:
58wandb_log_model:
59
60gradient_accumulation_steps: 1
61micro_batch_size: 14
62# max_steps: 1000
63num_epochs: 2
64optimizer: adamw_bnb_8bit
65lr_scheduler: cosine
66learning_rate: 0.0002
67
68train_on_inputs: false
69group_by_length: false
70bf16: auto
71fp16:
72tf32: false
73
74gradient_checkpointing: true
75early_stopping_patience:
76resume_from_checkpoint:
77local_rank:
78logging_steps: 1
79xformers_attention:
80flash_attention: true
81s2_attention:
82
83warmup_steps: 50
84evals_per_epoch: 0
85eval_table_size:
86eval_table_max_new_tokens: 128
87saves_per_epoch: 1
88debug:
89deepspeed:
90weight_decay: 0.0
91fsdp:
92fsdp_config:
93special_tokens:
94 bos_token: "<s>"
95 eos_token: "</s>"
96 unk_token: "<unk>"| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.08 | 1.02 | 566 | 0.0986 |
| 0.0919 | 1.98 | 1110 | 0.0917 |