-
Notifications
You must be signed in to change notification settings - Fork 188
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
Does matmulfreellm support Windows 10? #22
Comments
Hi, we have not tested Windows 10 yet since the server we used are all Linux... You can try to upgrade triton to 2.2.0 and cuda to 12.2 or above |
@ridgerchu Thanks for your comments. I have upgraded to Triton 2.1.0 for Windows (triton-2.1.0-cp310-cp310-win_amd64.whl). However, the system still doesn't work. I haven't found Trion 2.2.0 for Windows yet. I will suspend my test for now. Do you have any plans to support Windows officially? |
It depends when the triton 2.2.0 for windows release I think, without 2.2.0 this repo cannot work well |
@ridgerchu Got it. Thanks! |
I successfully ran the project on Windows, and I am documenting my process here in hopes of helping others who need it: Steps to Run the Project on Windows
My Environment
Verifying NVIDIA and CUDA InstallationRun nvidia-smi
Wed Jul 24 22:17:02 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 551.86 Driver Version: 551.86 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name TCC/WDDM | 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 3050 ... WDDM | 00000000:01:00.0 Off | N/A |
| N/A 44C P8 6W / 74W | 630MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------------------------------------------------------+ Run nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Mon_Apr__3_17:36:15_Pacific_Daylight_Time_2023
Cuda compilation tools, release 12.1, V12.1.105
Build cuda_12.1.r12.1/compiler.32688072_0 Setting Up Environment VariablesYou need to set the appropriate environment variables, or use the corresponding Visual Studio command prompt. Ensure you use the correct Visual Studio command prompt (x64 Native Tools Command Prompt for VS XXXX), which automatically configures environment variables. Alternatively, you can manually add the environment variables before starting your script: import os
# CUDA Compiler Path
os.environ['CC'] = r"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc.exe"
# Add Visual Studio Compiler Path to PATH
os.environ['PATH'] = r"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64;" + os.environ['PATH']
# Add CUDA and Other Include Paths to INCLUDE
os.environ['INCLUDE'] = r"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;" + \
r"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt;" + \
r"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um;" + \
r"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared;" + \
r"D:\yy\Python\Python310\include" // Your Python path
# Add CUDA and Other Library Paths to LIB
os.environ['LIB'] = r"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib\x64;" + \
r"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\x64;" + \
r"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\x64;" + \
r"D:\yy\Python\Python310\libs" // Your Python path Running the ScriptFinally, to run the script: python generate.py You should see output similar to the following:
|
it is so effective |
I have installed matmulfreellm with Triton for Windows via triton-2.0.0-cp310-cp310-win_amd64.whl which makes matmulfreellm work on the 'configuration' file but fail on the 'generate' file. The 'generate' file with 'ridger/MMfreeLM-370M' gets some problems at model.generate. A brief of error messages are
printout executable and args are
None whereis libcuda.so
Does matmulfreellm supports Windows 10?
Some libraries are listed as follows.
The text was updated successfully, but these errors were encountered: