# tinker_cookbook.hyperparam_utils.get_lr

### [**tinker_cookbook.hyperparam_utils.get_lr**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/hyperparam_utils.py#L262)( _model_name_, _is_lora_)

Get a recommended learning rate for the given model.

Applies model-family-specific scaling based on hidden size. Only Llama and
Qwen families have calibrated formulas; other models raise NotImplementedError.

**Parameters:**

- [**model_name**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/hyperparam_utils.py#L262) ( _str_) – HuggingFace model identifier.
- [**is_lora**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/hyperparam_utils.py#L262) ( _bool_) – If True, scale the base LR by the LoRA multiplier (10x).

**Returns:** The recommended learning rate.
