1# Bridge CLI - Spring Boot Fine-Tuning Configuration
2# Optimized for RunPod with budget GPU (RTX 4090/A5000 24GB)
3# Using QLoRA for memory efficiency
4
5base_model: deepseek-ai/deepseek-coder-6.7b-instruct
6model_type: AutoModelForCausalLM
7tokenizer_type: AutoTokenizer
8trust_remote_code: true
9
10# QLoRA Configuration (enables training on 24GB GPU)
11load_in_4bit: true
12adapter: qlora
13lora_r: 16
14lora_alpha: 32
15lora_dropout: 0.05
16lora_target_linear: true
17lora_target_modules:
18 - q_proj
19 - v_proj
20 - k_proj
21 - o_proj
22 - gate_proj
23 - up_proj
24 - down_proj
25
26# Dataset Configuration
27datasets:
28 - path: /workspace/datasets/spring-boot-dataset.jsonl
29 type: alpaca
30 - path: /workspace/datasets/react-dataset.jsonl
31 type: alpaca
32
33dataset_prepared_path: /workspace/prepared_data
34val_set_size: 0.05
35output_dir: /workspace/outputs/bridge-cli
36
37# Training Parameters
38sequence_len: 2048
39sample_packing: true
40pad_to_sequence_len: true
41
42micro_batch_size: 4
43gradient_accumulation_steps: 4
44num_epochs: 3
45learning_rate: 0.0002
46lr_scheduler: cosine
47warmup_ratio: 0.03
48optimizer: adamw_8bit
49
50# Memory Optimization
51gradient_checkpointing: true
52flash_attention: false
53bf16: auto
54tf32: false
55
56# Training Settings
57train_on_inputs: false
58group_by_length: false
59logging_steps: 10
60save_strategy: steps
61save_steps: 100
62eval_steps: 100
63
64# Weights & Biases (optional - remove if not using)
65# wandb_project: bridge-cli
66# wandb_run_id: spring-boot-finetune
67
68# Early stopping
69early_stopping_patience: 3
70
71# For debugging - set to true to test config
72debug: false
73
74# Special tokens
75special_tokens:
76 pad_token: "<|pad|>"
77