Closed AlexanderKozhevin closed 3 weeks ago
cog debug
sudo cog debug
[sudo] password for alexpolymath:
Sorry, try again.
[sudo] password for alexpolymath:
#syntax=docker/dockerfile:1.4
FROM r8.im/cog-base:cuda12.1-python3.11
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked apt-get update -qq && apt-get install -qqy libboost-all-dev && rm -rf /var/lib/apt/lists/*
COPY .cog/tmp/build20241030235441.4814153613635754/cog-0.11.6-py3-none-any.whl /tmp/cog-0.11.6-py3-none-any.whl
ENV CFLAGS="-O3 -funroll-loops -fno-strict-aliasing -flto -S"
RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir /tmp/cog-0.11.6-py3-none-any.whl 'pydantic<2'
ENV CFLAGS=
COPY .cog/tmp/build20241030235441.4814153613635754/requirements.txt /tmp/requirements.txt
ENV CFLAGS="-O3 -funroll-loops -fno-strict-aliasing -flto -S"
RUN --mount=type=cache,target=/root/.cache/pip pip install -r /tmp/requirements.txt
ENV CFLAGS=
RUN apt-get update && apt-get install -y cmake
WORKDIR /src
EXPOSE 5000
CMD ["python", "-m", "cog.server.http"]
COPY . /src
i runs cmake install after python deps. That's basically wrong
here is a hack which worked for me
build:
gpu: true
cuda: "11.8"
python_version: "3.11"
system_packages:
- "vim"
- "ffmpeg"
- "libsm6"
- "libxext6"
- "cmake"
- "build-essential"
- "libboost-all-dev"
- "libopenblas-dev" # Add this for linear algebra dependencies
- "liblapack-dev" # Add this for additional math support
- "pkg-config" # Necessary for some package builds
- "libx11-dev"
- "libgtk-3-dev"
- "libboost-all-dev"
python_packages:
- "setuptools==71.0.0"
- "distlib==0.3.7"
- "cmake==3.27.5"
pre_install:
- "pip install dlib"
predict: "predict.py:Predictor"
getting error everytime