Skip to content

Unsloth studio - Transformers and hf_xet package issues. #6951

Closed

Description

@wazzaa

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 - local
  3. Number GPUs used, use nvidia-smi - NVIDIA-SMI 596.49 Driver Version: 596.49 CUDA Version: 13.2 NVIDIA GeForce RTX 3060
  4. Which notebook? Please link!
  5. Which Unsloth version, TRL version, transformers version, PyTorch version? v0.1.48-beta
  6. Which trainer? SFTTrainer, GRPOTrainer etc

Hi, I'm new here and have run into some issues. The problem is that I'm getting the errors shown in the screenshots. I'm installing Unsloth Studio; after installation, the transformers version in the Unsloth environment is 4.57.6. When I try to start training, I get an error stating that the transformers version needs to be updated. However, when I do update transformers, I get a different error upon starting training. When I run the commands suggested by Unsloth, the console reports that the version requirement is already satisfied. I'm not quite sure what the problem is? I should note that I had Unsloth installed previously but removed it using the uninstall command from the documentation. all screenshots in the order of command execution OS: Windows 11.

used commands:
C:\Users\root-pc.unsloth\studio\unsloth_studio\Scripts\python.exe -m pip install -U "transformers>=5.2.0"
C:\Users\root-pc.unsloth\studio\unsloth_studio\Scripts\python.exe -m pip install -U "huggingface_hub[hf_xet]"
C:\Users\root-pc.unsloth\studio\unsloth_studio\Scripts\python.exe -c "import transformers; print(transformers.version)"

Image Image Image Image Image Image

Activity

  1. changed the title [-]Transformers and hf_xet package issues.[/-] [+]Unsloth studio - Transformers and hf_xet package issues.[/+] on Jul 7, 2026
  2. eronsaxon commented on Jul 8, 2026

    @eronsaxon

    I'm having the same issue in Unsloth Studio training gives error "unsloth/gemma-4-e2b-unsloth-bnb-4bit is not supported yet in transformers==4.57.6. Please update transformers via pip install --upgrade transformers and try again."

  3. danielhanchen commented on Jul 8, 2026

    @danielhanchen
    Member

    I'm currently fixing it sorry!

  4. deleted a comment from on Jul 8, 2026
  5. danielhanchen commented on Jul 8, 2026

    @danielhanchen
    Member

    Security warning to everyone on this thread:

    A comment here (now deleted) from a throwaway account posted a file named unsloth_fix.zip containing a Windows executable unsloth_fix.exe, and framed it as a fix for this problem. It is malware, not a fix. Do not download or run it.

    If you already downloaded or ran it, treat that machine as compromised: run a full offline antivirus scan, and rotate any passwords, tokens, SSH keys, and other credentials that were used on it.

    Please keep in mind for this repository:

    • Unsloth will never deliver a fix as a .zip or .exe attached to an issue comment. Real fixes ship as Unsloth / Unsloth Studio updates or as pull requests in this repo.
    • Only run install or update commands from the official docs (unsloth.ai and this repository).

    The account that posted the file has been blocked from the organization and the comment removed.

    On the actual problem: the transformers and hf_xet version mismatch in Unsloth Studio is a real bug and we are actively fixing it. An official update will follow shortly. Thanks for your patience, and sorry for the trouble.

  6. danielhanchen commented on Jul 9, 2026

    @danielhanchen
    Member

    Ok fixed!

    To update Unsloth or install a fresh Unsloth Unsloth, use the commands below:
    macOS, Linux, WSL:

    curl -fsSL https://unsloth.ai/install.sh | sh
    

    Windows:

    irm https://unsloth.ai/install.ps1 | iex
    
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions