local.ai icon indicating copy to clipboard operation
local.ai copied to clipboard

BUG | Can't run 0.5.1 on Windows, asks for additional dlls

Open ke1ne opened this issue 1 year ago • 14 comments

Hi, the latest version 0.5.1 on Windows asks for additional dlls: cublas64_12.dll and cudart64_12.dll. Any requirements to install manually? Thanks!

ke1ne avatar Jul 01 '23 15:07 ke1ne

Hmmm... I wonder if these's a way to pack these with the installation, or do we have to add them as additional asset...

louisgv avatar Jul 02 '23 05:07 louisgv

@ke1ne you can grab those DLL from https://developer.nvidia.com/cuda-12-1-0-download-archive, but we should figure out how to bundle them

louisgv avatar Jul 02 '23 09:07 louisgv

@louisgv After the CUDA Runtime installation, it didn't handle dlls until I added their directory (c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\bin) to the PATH environment variable. It seems to work now, thanks!

ke1ne avatar Jul 02 '23 14:07 ke1ne

@ke1ne could you help me with reproducing the build DLL in your local machine? I don't have a Windows box handy atm, and the one I have nearby doesn't have a GPU xD......

Basically we need to include the DLL into the resources specification in #62

louisgv avatar Jul 03 '23 02:07 louisgv

https://github.com/bytecodealliance/wasmtime/blob/c19c729214e2237902eb177609643cb6523b7f2b/cranelift/native/src/lib.rs#L184

louisgv avatar Jul 03 '23 10:07 louisgv

https://tauri.app/v1/guides/building/resources

louisgv avatar Jul 03 '23 12:07 louisgv

@louisgv I will try to help for sure. Please instruct me what to do and what we need to achieve.

ke1ne avatar Jul 03 '23 14:07 ke1ne

@ke1ne awesome! Can you try cloning this repo, checking out the 61-bug-cuda-dlls branch and see if you can add those dll into the build directory, compile and see if it built and run in dev mode? LMK if you need steps-by-steps instruction!

louisgv avatar Jul 04 '23 08:07 louisgv

@louisgv yeap, I need some guide

ke1ne avatar Jul 04 '23 14:07 ke1ne

@louisgv You could probably use the build.rs of your tauri project to copy the correct dlls/so files to an '\dlls' folder in your build target which you can then always include via an "resources": [dlls/*] definition in the tauri.conf.json. This would make building very simple and you don't need to change anything in your workflows.

LLukas22 avatar Jul 05 '23 12:07 LLukas22

Will move this to v0.6.0

louisgv avatar Jul 06 '23 01:07 louisgv

Moving it to 0.7.0 until I got my Windows box setup :d...

louisgv avatar Jul 14 '23 11:07 louisgv

You should move it back until https://github.com/rustformers/llm/pull/325 gets mergen, then i can take a look at including the dlls.

LLukas22 avatar Jul 14 '23 11:07 LLukas22

FYI - might also not be allowed to distribute them, assuming they are shipped by the Nvidia driver normally.

step21 avatar Jul 29 '23 21:07 step21