pub fn train_logit_bias(
examples: &[TrainExample],
params: Option<TrainParams>,
run: &CandleRunParams,
) -> Result<TrainResult>Expand description
Train a persistent global logit-bias adapter from prompt/assistant examples. This does not modify base model weights; instead it learns a bias vector (size=vocab) that is added to the logits during generation. The bias is saved to ADAPTER_DIR and automatically loaded on startup and applied for all subsequent generations.