GithubHelp home page GithubHelp logo

Comments (5)

TheTerrasque avatar TheTerrasque commented on August 15, 2024 1

@fibulwinter is correct, the problem was GPU not being available during "docker build". Building the extension when running the container works fine.

from gptq-for-llama.

fibulwinter avatar fibulwinter commented on August 15, 2024

CUDA is not available on Docker build time without tricks: https://discuss.huggingface.co/t/how-to-deal-with-no-gpu-during-docker-build-time/28544

from gptq-for-llama.

NanoCode012 avatar NanoCode012 commented on August 15, 2024

I finally built a copy of this repo. Here was my setup.

  1. docker pull nvidia/cuda:11.7.1-devel-ubuntu22.04 (Must be 11.7)

  2. Start it up then using Nvidia-docker

  3. Run

    apt update && apt upgrade -y
    apt install software-properties-common -y
    add-apt-repository ppa:deadsnakes/ppa
    apt install python3.10 -y
    apt install python3-pip -y
  4. pip3 install torch

  5. Run

    cd llama_model
    python3 setup_cuda.py install

from gptq-for-llama.

TheTerrasque avatar TheTerrasque commented on August 15, 2024

I finally built a copy of this repo. Here was my setup.

  1. docker pull nvidia/cuda:11.7.1-devel-ubuntu22.04 (Must be 11.7)
  2. Start it up then using Nvidia-docker
  3. Run
    apt update && apt upgrade -y
    apt install software-properties-common -y
    add-apt-repository ppa:deadsnakes/ppa
    apt install python3.10 -y
    apt install python3-pip -y
  4. pip3 install torch
  5. Run
    cd llama_model
    python3 setup_cuda.py install

Was all that part of docker build, or did some parts happen in docker run / exec?

from gptq-for-llama.

NanoCode012 avatar NanoCode012 commented on August 15, 2024

Hey @TheTerrasque , I was just testing to find the correct config, so I didn't put it in a Dockerfile. I just ran them manually using bash cli. You can definitely put them within the Dockerfile though.

from gptq-for-llama.

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.