Skip to content
View as Markdown

tinker_cookbook.hyperparam_utils.get_lr

Generated from tinker-cookbook at commit 8bf7dd6. Source links point at that snapshot.

tinker_cookbook.hyperparam_utils.get_lr(model_name, is_lora)

Return an AdamW LoRA SFT sweep starting point, not a tuned optimum.

The value is reference_lr * get_lora_lr_multiplier(model_name) from lr_multipliers.json. For adjustments, limitations and measurement details, see the hyperparameter guide. Use transfer_lr to move a tuned LR between models.

Parameters:

  • model_name (str) – Tinker model id; :peft:<context> suffixes are accepted.
  • is_lora (bool | None) – Deprecated. Tinker trains LoRA adapters; passing False raises.

Returns: float – Learning rate.

Raises:

  • ConfigurationError: If the model has no calibrated LR.

Referenced by