Skip to content

Conversation

@eff-kay
Copy link
Contributor

@eff-kay eff-kay commented Oct 3, 2024

fixes #2

@eff-kay eff-kay requested a review from JJneid October 3, 2024 17:10
@eff-kay
Copy link
Contributor Author

eff-kay commented Oct 3, 2024

cc @CaseyLabs.

@CaseyLabs
Copy link
Contributor

Still doesn't build:

❯ git pull
Already up to date.

❯ git checkout dockerfile-fix
Your branch is up to date with 'origin/dockerfile-fix'.

❯ ./run-docker-amd.sh meta-llama/Llama-2-7b-chat-hf "Translate the following English text to French: 'Hello, how are you?'"

Building Docker image...
[+] Building 16.6s (11/12)                                     docker:default
 => [internal] load build definition from Dockerfile                     0.0s
 => => transferring dockerfile: 927B                                     0.0s
 => [internal] load metadata for docker.io/rocm/dev-ubuntu-22.04:6.0-co  0.0s
 => [internal] load .dockerignore                                        0.0s
 => => transferring context: 2B                                          0.0s
 => [1/8] FROM docker.io/rocm/dev-ubuntu-22.04:6.0-complete              0.1s
 => [internal] load build context                                        0.0s
 => => transferring context: 75.62kB                                     0.0s
 => [2/8] RUN apt-get update && apt-get install -y     python3-pip      11.7s
 => [3/8] RUN useradd -m -s /bin/bash user                               0.2s 
 => [4/8] WORKDIR /home/user/app                                         0.0s 
 => [5/8] RUN python3 -m pip install --user --upgrade pip                2.8s 
 => [6/8] COPY --chown=user:user requirements.txt .                      0.0s 
 => ERROR [7/8] RUN pip install --user --no-cache-dir -r requirements.t  1.7s 
------                                                                        
 > [7/8] RUN pip install --user --no-cache-dir -r requirements.txt:           
0.343 Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/rocm6.2                                                                 
1.336 ERROR: Could not find a version that satisfies the requirement torch==2.2.0+rocm6.2 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1)
1.575 ERROR: No matching distribution found for torch==2.2.0+rocm6.2
------
Dockerfile:26
--------------------
  24 |     COPY --chown=user:user requirements.txt .
  25 |     
  26 | >>> RUN pip install --user --no-cache-dir -r requirements.txt
  27 |     
  28 |     # Copy the application code
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --user --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1

@eff-kay eff-kay closed this Oct 7, 2024
@eff-kay eff-kay reopened this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker image fails to build: "List directory /var/lib/apt/lists/partial is missing."

3 participants