Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'triton.common' #381

Open
enzoli977 opened this issue Apr 25, 2024 · 4 comments
Open

No module named 'triton.common' #381

enzoli977 opened this issue Apr 25, 2024 · 4 comments

Comments

@enzoli977
Copy link

i was trying to fine tune llama model locally with Win10, after installing the necessary environment, I tried:
from unsloth import FastLanguageModel:
and got :
No module named 'triton.common'
i installed triton 2.0.0 from https://huggingface.co/r4ziel/xformers_pre_built/tree/main
Did I install the wrong package? Thanks!

@danielhanchen
Copy link
Contributor

@enzoli977 Oh no Windows is a complex beast :( Tbh only WSL and Linux and Apple devices with NVIDIA GPUs are mostly supported, so you'll have to follow #210 for Windows support

@NicolasMejiaPetit
Copy link

@enzoli977

Windows is a huge complicated garbage fire. Use the wheels I showed in the home.md in #210 along with installing the proper visual studio build tools, shown in a detailed picture at the bottom. It honestly isn’t supposed to work, it just does. I can’t expect this to work for ever, half the things are deprecated in Microsoft MVSC’s and some how that compiled triton works (in the home.md link) with it. Also I believe you didn’t install the triton libraries and add them to path, thats quite essential. Either way use my 2.1 triton wheel and the triton libraries I link in there. If you dont want a “trust me bro” find wkpark on github he made the wheels and libraries he might have made more up to date ones too. I only made the deepspeed wheels, to this date I still have no clue how he compiled triton wheels for windows. Still gotta figure it out, so if triton gets a major update I’m not screwed.

@madiator
Copy link

madiator commented May 1, 2024

I see this on some linux instances in runpod.

@danielhanchen
Copy link
Contributor

@madiator I'm assuming its torch 2.3 - change xformers to "xformers<0.0.26"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants