---
title: "LLM training parameters explanation"
url: https://michalasobczak.pl/posts/llm-training-parameters-explanation.html
author: "Michał Sobczak"
description: "Quick overview of LLM MLX LORA training parameters. weight_decay A regularization technique that adds a small penalty to the weights during training to prevent them from growing too large, helping to reduce overfitting."
published: 2025-10-25T13:07:52.000Z
updated: 2025-10-25T13:10:54.000Z
language: en
categories: ["AI/ML"]
tags: ["AI/ML", "LLM", "ML", "MLX"]
license: CC BY-NC-ND 4.0 (https://creativecommons.org/licenses/by-nc-nd/4.0/)
---
# LLM training parameters explanation

Quick overview of LLM MLX LORA training parameters.

<table><tbody><tr><td><strong>weight_decay</strong></td><td>A regularization technique that adds a small penalty to the weights during training to prevent them from growing too large, helping to <strong>reduce overfitting</strong>. Often implemented as L2 regularization.<em>examples: 0.00001 – 0.01</em></td></tr><tr><td><strong>grad_clip</strong></td><td>Short for <em>gradient clipping</em> — a method that limits (clips) the size of gradients during backpropagation to <strong>prevent exploding gradients</strong> and stabilize training.<em>examples: 0.1 – 1.0</em></td></tr><tr><td><strong>rank</strong></td><td>Refers to the <strong>dimensionality</strong> or the number of independent directions in a matrix or tensor. In low-rank models, it controls how much the model compresses or approximates the original data.<em>examples: 4, 8, 16 or 32</em></td></tr><tr><td><strong>scale</strong></td><td>A multiplier or factor used to <strong>adjust the magnitude of values</strong> — for example, scaling activations, gradients, or learning rates to maintain numerical stability or normalize features.<em>examples: 0.5 – 2.0</em></td></tr><tr><td><strong>dropout</strong></td><td>A regularization method that <strong>randomly “drops out” (sets to zero) a fraction of neurons</strong> during training, forcing the network to learn more robust and generalizable patterns.<em>examples: 0.1 – 0.5</em></td></tr></tbody></table>
