Skip to content

[Bug] gemma-4-E4B won't LoRA finetune (training loss is dropping but output aren't chaning) #5355

Closed

Description

@Minkyuman

Note: Please do not remove the questions. Answer beside them.

  1. Did you update? pip install --upgrade unsloth unsloth_zoo
    yes
  2. Colab or Kaggle or local / cloud
    cloud
  3. Number GPUs used, use nvidia-smi
    1
  4. Which notebook? Please link!
  5. Which Unsloth version, TRL version, transformers version, PyTorch version?
    unsloth --> lastest, transformers
  6. Which trainer? SFTTrainer, GRPOTrainer etc
    SFTTrainer

Same issue seems to be reported in https://www.reddit.com/r/LocalLLaMA/comments/1sjan3r/gemma_4_e4b_wont_finetune_on_kaggle_inference/

And it looks fixed from transformers v5.5.2.
huggingface/transformers#45242

Unfortunately, unsloth/unsloth-zoo <=5.5.0 transformer version.

Can you check?

🦥 You can also ask via our Reddit page: https://reddit.com/r/unsloth/

Activity

  1. changed the title [-][Bug] gemma-4-E4B won't LoRA finetune (training loss is draooping but output aren't chaning)[/-] [+][Bug] gemma-4-E4B won't LoRA finetune (training loss is dropping but output aren't chaning)[/+] on May 11, 2026
  2. Datta0 commented on May 11, 2026

    @Datta0
    Contributor

    Hey @Minkyuman you can upgrade transformers to the desired version after installing unsloth and unsloth-zoo. But yeah we will make a note of this and see if we can remove the restriction

  3. HussainArif12 commented on May 11, 2026

    @HussainArif12

    I can confirm, updating transformers to 5.5.2 fixes the issue. My model is now answering questions as expected. Thanks @Minkyuman !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions