Views
No views yet
0.15.01# ── Continued Pretraining: 7B on 8×A40 (48GB) ──
2
3base_model: allenai/Olmo-3-1025-7B
4tokenizer_type: AutoTokenizer
5
6# plugins:
7# - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
8
9# ── Data ──
10datasets:
11 - path: data/1b/all.jsonl
12 type: completion
13 field: completion
14dataset_prepared_path: last_run_prepared
15
16# ── Sequence / packing ──
17sequence_len: 2048
18sample_packing: true
19pad_to_sequence_len: true
20# NOTE: do NOT enable group_by_length with sample_packing
21
22# ── Batch sizing ──
23# Per-GPU: 4 seqs × 2048 tok = 8k tokens/step/GPU
24# Global: 4 × 4 accum × 8 GPUs = 128 effective seqs/step
25
26# micro_batch_size: 4
27# gradient_accumulation_steps: 4
28micro_batch_size: 4
29gradient_accumulation_steps: 1
30
31# ── Training ──
32train_on_inputs: true
33optimizer: adamw_8bit
34lr_scheduler: cosine
35learning_rate: 3e-4
36#warmup_steps: 20
37#max_steps: 100
38warmup_ratio: 0.03
39num_epochs: 50 # apparently we can use this instead of max_steps?
40weight_decay: 0.01
41
42# ── Precision / memory ──
43bf16: auto
44tf32: true
45flash_attention: true
46gradient_checkpointing: true
47
48# ── DeepSpeed ZeRO Stage 2 ──
49deepspeed: train/axolotl-cpt/ds_stage2.json
50
51# ── Logging ──
52logging_steps: 1
53save_strategy: steps
54save_steps: 20
55save_total_limit: 40
56
57use_wandb: true
58wandb_name: "olmo3-7b-exp1b-lora"
59wandb_project: "out-of-context-chatbots"
60
61# -- qlora --
62load_in_8bit: false
63load_in_4bit: false
64adapter: lora
65
66lora_r: 128
67use_rslora: true
68lora_alpha: 32
69#lora_dropout: 0.05
70lora_target_linear: true
71lora_target_modules:
72 - gate_proj
73 - down_proj
74 - up_proj
75 - q_proj
76 - v_proj
77 - k_proj
78 - o_proj
79
80
81