Triton 3.0.0 does not work
Hello,
I've been playing around with the collab examples on both AMD and NVDA sides and noticed that when using Triton's latest (main branch) it seems to break down at Unsloth's init step in the init.py:
- https://github.com/unslothai/unsloth/blob/27fa021a7bb959a53667dd4e7cdb9598c207aa0d/unsloth/init.py#L70C33-L70C45
I noticed that Triton's latest package structure changed a little compared to the old releases, the /common package (which is assumed in Unsloth's src code) no longer exists. I dug a little more and found the last version that had the old package structure was around the 2.1.0 release... (and any other versions around this one).
New Triton structure:
- https://github.com/triton-lang/triton/tree/main/python/triton
Old Triton structure:
- https://github.com/triton-lang/triton/tree/v2.1.0/python/triton
I was wondering, if there are any plans to support latest version of Triton moving forward?
Oh someone did report this a while back, but I forgot about it whoops - will relook into this!
Thanks! I'll check back later on
I think I fixed it!
Nice! I'll test it out later this week :)
Hi @danielhanchen, sorry for the delay, just was able to test it out now, it seems like with triton 3.0.0 (installing from src from their main branch) BitsandBytes is failing now.... did you guys encounter this issue as well?
Oh that seems like bitsandbytes themselves have not updated their package to work with Triton 3
Seems like it yeah. What dependency versions are you using to test triton 3.0.0 in Unsloth? @danielhanchen
Oh I used torch 2.5 and the latest xformers - tbh I haven't tested bitsandbytes
I see..... so bitsandbytes works with upstream triton (from cached pypi server) but I'm seeing an error in xformers (0.0.26.post1) in one of their kernels when they try to jit()
Hmmm I'll try investigate this
Were you able to see a jit() failure in the 0.0.26 version of xformers? What about in the newest release of xformers?
The latest version of xformers should work (BUTT Unsloth needs < 0.0.27 lol) - I first need to fix that first!
Haha, yeah I saw that in the src code, did you get a chance to change the version requirements?
Working on it!
Changed the requirements! Xformers > 0.0.27, Torch 2.4/2.5 and Python 3.12 all work now!
Great! I will try it out soon later this week.
so unsloth can works with amd now?
@lastrei Maybe - we're tracking AMD support in https://github.com/unslothai/unsloth/issues/37
I'll close this issue for now! Triton 3 definitely functions with Torch 2.4 :)
Hey, sorry I've been a bit busy lately, closing the ticket is fine. I haven't found time to test it yet.... I'll circle back if there are any issues in the future :)