chatdocs icon indicating copy to clipboard operation
chatdocs copied to clipboard

I cant get the GPU to work

Open PotatoDestroyer opened this issue 2 years ago • 3 comments

I dont understand why the GPU doesnt want to work. its always the CPU

image

PotatoDestroyer avatar Jun 07 '23 07:06 PotatoDestroyer

Do you want to use ctransformers or huggingface model?

If you want to use huggingface set:

llm: huggingface

If you want to use ctransformers make sure it is installed with CUDA enabled: https://github.com/marella/chatdocs#c-transformers-1

marella avatar Jun 07 '23 21:06 marella

Im sorry but I simply cannot understand the proccess of chatdocs.yml

can you explain? all I need is to run the GPU. https://huggingface.co/TheBloke/Vigogne-Instruct-13B-HF

i need to use huggingface

PotatoDestroyer avatar Jun 19 '23 10:06 PotatoDestroyer

So basically you should create a chatdocs.yml file in the directory you are running commands from and add the following to it:

llm: huggingface # this makes it use huggingface instead of ctransformers

huggingface:
  model: TheBloke/Vigogne-Instruct-13B-HF # here you can specify any huggingface model
  device: 0 # this makes it run on GPU instead of CPU

Note that you should NOT be editing the original chatdocs/data/chatdocs.yml file present in this repo. You should create a new one with the settings you want.

marella avatar Jun 21 '23 19:06 marella