Views
No views yet
0.4.01base_model: mistralai/Mistral-7B-v0.1
2model_type: MistralForCausalLM
3tokenizer_type: LlamaTokenizer
4
5load_in_8bit: true
6load_in_4bit: false
7strict: false
8
9datasets:
10 - path: jspr/bts-long-gpt-4-32k-0314-prompt
11 type: alpaca
12dataset_prepared_path:
13val_set_size: 0.05
14output_dir: ./out
15
16# using lora for lower cost
17adapter: lora
18lora_r: 8
19lora_alpha: 16
20lora_dropout: 0.05
21lora_target_modules:
22 - q_proj
23 - v_proj
24
25sequence_len: 4096
26sample_packing: false # makes it faster but uses more memory
27pad_to_sequence_len: false
28
29model_config:
30 rope_scaling:
31 type: linear
32 factor: 8.0
33
34hub_model_id: jspr/bts_mistral_7b_v3_32k
35hub_strategy: end
36hub_private_repo: true
37
38wandb_project: bts
39wandb_entity:
40wandb_watch:
41wandb_name:
42wandb_log_model:
43
44# only 2 epochs because of small dataset
45gradient_accumulation_steps: 3
46micro_batch_size: 2
47num_epochs: 2
48optimizer: adamw_bnb_8bit
49lr_scheduler: cosine
50learning_rate: 0.0002
51
52train_on_inputs: false
53group_by_length: false
54bf16: true
55fp16: false
56tf32: false
57
58gradient_checkpointing: true
59early_stopping_patience:
60resume_from_checkpoint:
61local_rank:
62logging_steps: 1
63xformers_attention:
64flash_attention: true
65
66warmup_steps: 10
67evals_per_epoch: 4
68eval_table_size:
69eval_max_new_tokens: 16
70eval_sample_packing: false
71saves_per_epoch: 1
72debug:
73
74deepspeed:
75weight_decay: 0.0
76fsdp:
77fsdp_config:
78special_tokens:
79 bos_token: "<s>"
80 eos_token: "</s>"
81 unk_token: "<unk>"| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.0334 | 0.12 | 1 | 1.8829 |
| 1.8664 | 0.25 | 2 | 1.8844 |
| 1.813 | 0.5 | 4 | 1.8803 |
| 1.8574 | 0.75 | 6 | 1.8751 |
| 1.878 | 1.0 | 8 | 1.8680 |
| 1.841 | 1.25 | 10 | 1.8599 |
| 1.7903 | 1.5 | 12 | 1.8559 |
| 1.808 | 1.75 | 14 | 1.8543 |
| 1.9314 | 2.0 | 16 | 1.8543 |