Views
No views yet
0.13.0.dev01base_model: codellama/CodeLlama-7b-hf
2model_type: LlamaForCausalLM
3tokenizer_type: LlamaTokenizer
4
5# Keep full precision weights (fast on Hopper)
6load_in_8bit: false
7load_in_4bit: false
8strict: false
9
10chat_template: llama3
11
12datasets:
13 - path: darwinkernelpanic/luau-reasoning-normalized
14 type: chat_template
15 conversation: llama3
16 field_messages: messages
17 add_generation_prompt: true
18
19# Preprocessing workers (CPU). Fine as-is.
20num_proc: 16
21
22output_dir: ./outputs/luau-codellama-h200-fast
23
24# ===== LoRA =====
25adapter: lora
26lora_r: 16
27lora_alpha: 32
28lora_dropout: 0.05
29lora_target_modules:
30 - q_proj
31 - k_proj
32 - v_proj
33 - o_proj
34
35# ===== Precision =====
36bf16: true
37fp16: false
38tf32: true
39
40# ===== Sequence / batching =====
41sequence_len: 4096
42# Keep packing for throughput, but enable length grouping to cut padding
43sample_packing: true
44group_by_length: true
45
46# Lower micro-batch a bit to kill peak VRAM while staying fast
47micro_batch_size: 5
48gradient_accumulation_steps: 1
49
50# ===== Training =====
51num_epochs: 3
52optimizer: adamw_torch
53learning_rate: 2e-4
54lr_scheduler_type: cosine
55warmup_steps: 100
56
57train_on_inputs: false
58
59# Turn on checkpointing — tiny speed hit, big memory win
60gradient_checkpointing: true
61gradient_clipping: 1.0
62
63# ===== Dataloader =====
64# Keep pin_memory, but avoid too many loader workers in Accelerate
65dataloader_num_workers: 2
66dataloader_pin_memory: true
67# Optional: avoid insanely large host->device prefetch
68# dataloader_prefetch_factor: 2
69
70# ===== Logging / eval =====
71logging_steps: 25
72val_set_size: 0.05
73# Reduce eval/save frequency to avoid spikes
74eval_steps: 1000
75save_strategy: steps
76save_steps: 1000
77save_total_limit: 3
78
79seed: 42
80
81# ===== DeepSpeed =====
82# Off for single H200 — overhead not worth it for 7B| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|---|
| No log | 0 | 0 | 1.6888 | 5.4129 | 18.94 | 18.94 | 139.12 |
| 0.5511 | 0.7502 | 1000 | 0.5410 | 1.7177 | 19.1 | 19.1 | 139.02 |
| 0.5052 | 1.5004 | 2000 | 0.5064 | 1.6593 | 19.1 | 19.1 | 139.06 |
| 0.4733 | 2.2506 | 3000 | 0.4927 | 1.6368 | 19.1 | 19.1 | 139.06 |