Skip to content

[Feature Request] AMD GPU #37

Description

@fakerybakery

Hi,
Does Unsloth support AMD GPUs?
Thank you!

Activity

  1. danielhanchen commented on Dec 16, 2023

    @danielhanchen
    Member

    Technically yes - support for AMD and Intel GPUs are possible through each vendor's respective implementation of Triton. The OSS version however relies on bitsandbytes, which only supports CUDA.

  2. added
    on roadmap
    on Jan 27, 2024
  3. shimmyshimmer commented on Oct 6, 2024

    @shimmyshimmer
    Member

    Looks like bitsandbytes now supports AMD :) https://x.com/Tim_Dettmers/status/1841151115326570639

    Fantastic news - will do when we get the time however it will be lower priority for now.

  4. added
    feature request
    on Oct 9, 2024
  5. changed the title [-]AMD GPU[/-] [+][Feature Request] AMD GPU[/+] on Oct 9, 2024
  6. sayanmndl commented on Oct 29, 2024

    @sayanmndl

    I successfully ran Unsloth on the MI210 GPU. The issue was related to Triton’s constraints, where the block size and warp size must not exceed (2^{14}) and 16, respectively.

    Here’s the commit implementing HIP support: Commit for HIP Support

    Branch: Unsloth HIP

    Environment Details:

    • ROCm: 6.2.2
    • OS: Ubuntu 22.04
    • GPU Architecture: gfx90a

    Relevant Pip Packages:

    • triton==3.1.0 (official Triton)
    • pytorch-triton==0.0.1
    • pytorch-triton-rocm==3.1.0
    • torch==2.5.1+rocm6.2
    • bitsandbytes==0.43.3.dev0 (from official ROCm)
    • huggingface==0.0.1
    • transformers==4.44.2
    • trl==0.11.1
    • xformers==0.0.29+77c1da7f.d20241019 (from official ROCm)

    Feedback appreciated!

  7. Alfeusg commented on Nov 19, 2024

    @Alfeusg

    Relevant Pip Packages:
    * bitsandbytes==0.43.3.dev0 (from official ROCm)

    * `huggingface==0.0.1`
    
    * `transformers==4.44.2`
    
    * `trl==0.11.1`
    
    * `xformers==0.0.29+77c1da7f.d20241019` (from official ROCm)
    

    What do you mean by a package being from "(from official ROCm)"
    How exactly can I install these specific packages/versions for ROCm 6.2?

  8. sayanmndl commented on Nov 19, 2024

    @sayanmndl

    Relevant Pip Packages:

    • bitsandbytes==0.43.3.dev0 (from official ROCm)
    * `huggingface==0.0.1`
    
    * `transformers==4.44.2`
    
    * `trl==0.11.1`
    
    * `xformers==0.0.29+77c1da7f.d20241019` (from official ROCm)
    

    What do you mean by a package being from "(from official ROCm)" How exactly can I install these specific packages/versions for ROCm 6.2?

    @Alfeusg please check: ROCm documentation for ML Acceleration

  9. kostich commented on Jan 12, 2025

    @kostich

    Hi folks,

    What's the status of using Unsloth with AMD GPUs (7900 XTX to be precise)?
    Should I bother with trying to get the @sayanmndl21 adapted for it or no?

    Cheers.

  10. danielhanchen commented on Jan 14, 2025

    @danielhanchen
    Member

    Sorry we haven't yet worked on AMD - some Discord members say it works, but we have not confirmed it yet

  11. StasonJatham commented on Feb 6, 2025

    @StasonJatham

    Thank you for the update. ⭐️
    I am hyped for the offical release

  12. added a commit that references this issue on Jun 8, 2025
  13. added a commit that references this issue on Jun 25, 2025
  14. added a commit that references this issue on Jul 7, 2025
  15. ai-nikolai commented on Aug 25, 2025

    @ai-nikolai

    @sayanmndl @rolandtannous what is the status with this PR / Issue? Does this now work?

  16. electron271 commented on Sep 6, 2025

    @electron271
    Contributor

    @ai-nikolai
    what is the status with this PR / Issue? Does this now work?

    i have started work on getting unsloth on rocm working in #3279 if you want to test that

  17. kostich commented on Mar 13, 2026

    @kostich

    Folks, thank you for your great work! 🎉

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 requeston roadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions