dragonlimited commited on
Commit
cfa9155
·
verified ·
1 Parent(s): c74d81f

training: which trainer is verified

Browse files
Files changed (1) hide show
  1. training/README.md +12 -0
training/README.md CHANGED
@@ -44,3 +44,15 @@ right tool, in the right shape, and read the candidate set* — behaviour, which
44
  are good at. Facts stay in the index and the fact database, where they can be updated
45
  and cited. Expecting a LoRA to memorise reported figures is the mistake this design
46
  avoids.
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  are good at. Facts stay in the index and the fact database, where they can be updated
45
  and cited. Expecting a LoRA to memorise reported figures is the mistake this design
46
  avoids.
47
+
48
+ ### Which trainer to use
49
+
50
+ | file | needs | status |
51
+ |---|---|---|
52
+ | `train_lora_manual.py` | **just transformers + torch** | **verified — loss 0.38 -> 0.25 in 39 s** |
53
+ | `train_lora.py` | peft, accelerate, bitsandbytes | written, **not runnable here** |
54
+
55
+ `peft 0.21.3` cannot be imported under `transformers 5.23` (it imports
56
+ `BloomPreTrainedModel`, removed in 5.x) and no newer peft exists. The manual trainer
57
+ implements LoRA directly in ~40 lines and is what was actually used. Results in
58
+ `RESULTS.md`.