Skip to content

Commit

Permalink
optimizing build
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed Nov 4, 2024
1 parent 82fc120 commit 1dd1436
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions granite-3.0-2b-instruct/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ COPY download_model.py .
RUN python3 download_model.py

# Final image containing only the essential model files
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4

# Copy only the necessary model files from the base image
COPY --from=base /models /models
FROM registry.access.redhat.com/ubi9/ubi-micro:9.4

# Set the user to 1001
USER 1001

# Copy only the necessary model files from the base image
COPY --from=base /models /models
2 changes: 0 additions & 2 deletions granite-3.0-2b-instruct/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
torch
transformers
huggingface-hub

0 comments on commit 1dd1436

Please sign in to comment.