Coder Social home page Coder Social logo

Comments (4)

bclavie avatar bclavie commented on July 21, 2024

Hey! To run on CPU, you don't need to actually set the n_gpu parameter yourself, it should default to 1 (and then ignore it) or 0... Have you tried this and ran into any issue?

from ragatouille.

turjo-001 avatar turjo-001 commented on July 21, 2024

Hey! To run on CPU, you don't need to actually set the n_gpu parameter yourself, it should default to 1 (and then ignore it) or 0... Have you tried this and ran into any issue?

Hi @bclavie. I've tried using -1, 0, 1 but nothing seems to work. It keeps loading the model and index to my GPU RAM.

It should be mentioned that till now I had used GPU to run indexing flawlessly. To complete my project I now need to run an LLM model which leaves barely any VRAM on my GPU to run the retriever model and the Index.

I have my conda ragatouille environment setup to utilize the GPU packages. That's why i was wondering if there was any parameter i could change to force the retriever and index to run on using my CPU.

Thanks.

from ragatouille.

bclavie avatar bclavie commented on July 21, 2024

Oh my bad, I was under the impression that you wee on a GPU-less machine!

I think the easiest way to get the retriever to not use the GPU at all would be to hide it from the script. Are you running it in a way where it's easy for you to set CUDA_VISIBLE_DEVICES="" and/or tell torch to ignore it? There is room for change here but colbert-ai still has a lot of hardcoded .cuda() calls :/

from ragatouille.

turjo-001 avatar turjo-001 commented on July 21, 2024

Thanks. I'll try setting CUDA_VISIBLE_DEVICES="" and look into the torch thing. Will update here if i can do something.

from ragatouille.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.