Skip to content

[Bug] Unsloth Setup skips Flash Attention for Blackwell, even though wheels are now available + Please upgrade to Torchao 0.17 #6961

Closed

Description

@ThomasEricB

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

  1. Did you update? pip install --upgrade unsloth unsloth_zoo
  • Yes.
  1. Colab or Kaggle or local / cloud
  • Local.
  1. Number GPUs used, use nvidia-smi
Wed Jul  8 02:48:39 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 610.43.02              KMD Version: 610.43.02     CUDA UMD Version: 13.3     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5090        Off |   00000000:01:00.0  On |                  N/A |
|  0%   55C    P5             45W /  600W |    7018MiB /  32607MiB |      4%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            2830    C+G   /usr/bin/kwin_wayland                   290MiB |
|    0   N/A  N/A            2895      G   /usr/bin/Xwayland                         8MiB |
|    0   N/A  N/A            2941      G   /usr/bin/plasmashell                    136MiB |
|    0   N/A  N/A            3312      G   /usr/bin/shelly-ui                       22MiB |
|    0   N/A  N/A            3316    C+G   /usr/bin/64gram-desktop                  62MiB |
|    0   N/A  N/A            3317      G   /usr/bin/missioncenter                   40MiB |
|    0   N/A  N/A            3320      G   /usr/bin/kdeconnect-app                  26MiB |
|    0   N/A  N/A            3347      G   /usr/lib/xdg-desktop-portal-kde           6MiB |
|    0   N/A  N/A            4313      G   ...uent-reader-bin/fluent-reader        214MiB |
|    0   N/A  N/A            4379      G   /usr/lib/electron39/electron             37MiB |
|    0   N/A  N/A            4536      G   ...rack-uuid=3190708988185955192        112MiB |
|    0   N/A  N/A            7822      G   ...share/Steam/ubuntu12_32/steam         13MiB |
|    0   N/A  N/A            8724      G   ./steamwebhelper                         81MiB |
|    0   N/A  N/A            8757      G   ...am/ubuntu12_64/steamwebhelper        302MiB |
|    0   N/A  N/A           41774      G   ...rack-uuid=3190708988185955192        101MiB |
|    0   N/A  N/A           93228      G   ...g/discord/app-1.0.145/Discord        614MiB |
|    0   N/A  N/A          132022    C+G   /usr/bin/python                        3762MiB |
|    0   N/A  N/A          553186      C   ...dio/unsloth_studio/bin/python        574MiB |
+-----------------------------------------------------------------------------------------+ 
  1. Which notebook? Please link!
  • None.
  1. Which Unsloth version, TRL version, transformers version, PyTorch version?
  • Latest.
  1. Which trainer? SFTTrainer, GRPOTrainer etc
  • N/A

Unsloth Setup still skips Flash Attention even though there ARE wheels available for Blackwell (Nvidia RTX 5000 series) now. Please update the setup installer so it grabs the wheels from https://github.com/Dao-AILab/flash-attention/releases/download/v2.8.1/flash_attn-2.8.1+cu13torch2.10cxx11abiTRUE-cp313-cp313-linux_x86_64.whl.

Also, in a similar note, please update the setup so it uses torchao 0.17, because this version of torchao has better compatibility with the RTX 5000 series and cuda wheels.

Image

I made a custom script that automatically patches Flash Attention and torchao 0.17 to unsloth and there has been no crashes for weeks, so there is literally no excuse to not fix this. See:

Image

Activity

  1. ThomasEricB commented on Jul 8, 2026

    @ThomasEricB
    ContributorAuthor

    LOL @kogenapomodu23 gives me a supposed fix that I don't need (because I already made a custom patch myself), without noticing that I AM on Linux and sends me a suspicious .exe executable from Windows LOL

    Image
  2. danielhanchen commented on Jul 8, 2026

    @danielhanchen
    Member

    DO NOT OPEN

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

    @danielhanchen
    Member

    @ThomasEricB Oh no you downloaded it - your machine is most likely compromised - never download any EXE / ZIP file

  6. ThomasEricB commented on Jul 8, 2026

    @ThomasEricB
    ContributorAuthor

    @ThomasEricB Oh no you downloaded it - your machine is most likely compromised - never download any EXE / ZIP file

    Read what I said, I am on LINUX. I cannot even run the .exe

  7. danielhanchen commented on Jul 8, 2026

    @danielhanchen
    Member

    Ohh sorry thank goodness haha

  8. danielhanchen commented on Jul 8, 2026

    @danielhanchen
    Member

    I'm locking down our repos - there seems to be a recent influx of weird exe / zips

  9. ThomasEricB commented on Jul 8, 2026

    @ThomasEricB
    ContributorAuthor

    @danielhanchen Could you please fix this issue I am reporting LOL? I don't think people would look for fixes if the unsloth setup actually installed it properly on Blackwell. I bet it is a ONE line fix.

  10. 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 Windows executable (.exe inside a .zip) and framed it as a fix. It is malware, not a fix. Do not download or run it. Thanks to @ThomasEricB for spotting it immediately.

    If anyone did download and run it, treat that machine as compromised: run a full offline antivirus scan, and rotate any passwords, tokens, SSH keys, and other credentials used on it. (A Windows .exe cannot run on Linux/macOS, so those users are not at risk from 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 it has been blocked from the organization and the comment removed. There is a small wave of these fake-fix accounts right now, so please be cautious with any attachment posted by an unfamiliar account.

  11. danielhanchen commented on Jul 8, 2026

    @danielhanchen
    Member

    Yep investigating!

  12. added a commit that references this issue on Jul 8, 2026
    03cbe21
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