Create Dockerfile for nvidia cuda
- User
Create Dockerfile for nvidia cuda
Assistant
dockerfileFROM nvidia/cuda:12.1.1-base-ubuntu22.04 WORKDIR /app # System deps RUN apt-get update && apt-get install -y --no-install-recommends \ git \ [Redacted Person] \ wget \ python3.10 \ python3-pip \ && rm -rf /var/lib/apt/lists/* # Install poetry RUN python3 -m pip install --no-cache-dir poetry==1.7.1 # Copy project COPY pyproject.toml poetry.lock ./ COPY infinity_emb infinity_emb # Install dependencies ARG EXTRAS="all" RUN poetry install --no-interaction --no-ansi --no-root --extras "${EXTRAS}" --without lint,test && poetry cache clear pypi --all # Copy the rest of the application code COPY . . # set default for infinity engine (optimum is default for nvidia) ENV INFINITY_ENGINE="optimum" CMD ["infinity_emb", "v2"]- User
replace poetry and pip on uv
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.