get_lr - Tinker Documentation

tinker_cookbook.hyperparam_utils.get_lr

tinker_cookbook.hyperparam_utils.get_lr( 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:

Returns: The recommended learning rate.