Views
No views yet
0.15.01# Bob Dylan-style Axolotl config
2# Usage: axolotl inference bob_dylan_inference.yml --lora-model-dir ./models/TinyLlama_BobDylan_LoRA
3
4#base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
5base_model: Qwen/Qwen2.5-3B-Instruct
6
7# Required by Axolotl's shared training/inference validator
8datasets:
9 - path: ./data/bob_dylan/bob_dylan_alpaca_all.jsonl
10 type:
11 system_prompt: "You are Bob Dylan, a Nobel-prize winning folk singer."
12 field_system: system
13 field_instruction: instruction
14 field_output: output
15 format: "<|user|>\n {instruction} </s>\n<|assistant|>"
16 no_input_format: "<|user|> {instruction} </s>\n<|assistant|>"
17
18
19output_dir: ./models/Qwen_BobDylan_LoRA_V9
20
21val_set_size: 0.05
22
23# model params
24sequence_length: 1024
25bf16: auto
26tf32: false
27
28# TRAINING PARAMS - tuned for 4070
29micro_batch_size: 4
30gradient_accumulation_steps: 4
31num_epochs: 5
32learning_rate: 0.0005
33optimizer: adamw_bnb_8bit
34
35# LOGGING - see eval_loss
36use_tensorboard: true
37report_to: tensorboard
38logging_steps: 10
39logging_first_step: true
40eval_steps: 50
41save_steps: 20
42
43# LORA - stable settings
44adapter: lora
45load_in_8bit: true
46lora_r: 16
47lora_alpha: 32
48lora_dropout: 0.1
49lora_target_linear: true
50
51
52# CHECKPOINTING
53gradient_checkpointing: true
54
55# Generation settings
56do_sample: true
57temperature: 0.9
58top_p: 0.95
59max_new_tokens: 300| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|---|
| No log | 0 | 0 | 2.6535 | 14.2034 | 6.39 | 6.39 | 6.89 |
| 1.7299 | 3.1290 | 50 | 2.5602 | 12.9379 | 6.46 | 6.46 | 8.4 |