Skip to content

Commit

Permalink
setup 8b granite
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed Nov 4, 2024
1 parent 2582e60 commit 9836a4e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions granite-3.0-8b-instruct/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Base image for the modelcar Granite image
FROM quay.io/redhat-ai-services/huggingface-modelcar-builder:latest as base

# The model repo to download
ENV MODEL_REPO="ibm-granite/granite-3.0-8b-instruct"

# Download the necessary model files (config.json, tokenizer.json, and safetensors)
RUN python3 download_model.py

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

# Copy only the necessary model files from the base image
COPY --from=base /models /models

# Set the user to 1001
USER 1001
11 changes: 11 additions & 0 deletions granite-3.0-8b-instruct/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Granite-3.0-8b-instruct

https://huggingface.co/ibm-granite/granite-3.0-8b-instruct

## Building Image

```
podman build granite-3.0-8b-instruct \
-t quay.io/redhat-ai-services/modelcar-catalog:granite-3.0-8b-instruct \
--platform linux/amd64
```

0 comments on commit 9836a4e

Please sign in to comment.