Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Gemma issue

Daniel Han3bc349f2d8bf
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index b20ce253207..52aa6c19f3c 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = "2025.12.3"
+__version__ = "2025.12.4"
__all__ = [
"SUPPORTS_BFLOAT16",
diff --git a/unsloth/trainer.py b/unsloth/trainer.py
index f3e09e990bd..35edbb8af86 100644
--- a/unsloth/trainer.py
+++ b/unsloth/trainer.py
@@ -349,16 +349,12 @@ def _patch_sft_trainer_auto_packing(trl_module):
if not blocked:
if padding_free_requested:
configure_padding_free(config_arg)
- elif not is_unsupported_gemma and _should_auto_padding_free(config_arg):
+ elif _should_auto_padding_free(config_arg):
configure_padding_free(config_arg)
auto_padding_free_active = True
logger.info(
"Unsloth: Padding-free batching auto-enabled for SFTTrainer instance."
)
- elif is_unsupported_gemma and _should_auto_padding_free(config_arg):
- logger.info(
- "Unsloth: Padding-free batching auto-disabled for Gemma 2 (requires flash attention)."
- )
try:
original_init(self, *args, **kwargs)