Skip to content

[HOWTO] Easily compile llama.dll without hassle. #2558

@SolsticeProjekt

Description

@SolsticeProjekt

So, for anyone reading this who wants a freshly built llama.dll in windows with or without CUDA support,
stop struggling and do what I did:

  1. git clone https://github.com/abetlen/llama-cpp-python.git --recurse-submodules
  2. cd llama-cpp-python
  3. if you want CUDA: set LLAMA_CUBLAS=1
  4. pip install .
  5. Find the dll in your python's lib/site-packages/llama_cpp

Probably works just as easily in Linux, but idk.

Worked in Win10, python 3.10.6, CUDA 12.2.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions