Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
add: script for build-push of cht-xgen
Browse files Browse the repository at this point in the history
  • Loading branch information
biswaroop1547 committed Jul 3, 2023
1 parent a3d9f62 commit 80b933c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/cht_xgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

export VERSION=1.0.0

docker buildx build \
--cache-from ghcr.io/premai-io/chat-xgen-7b-8k-inst-gpu:latest \
--file ./cht-xgen/docker/gpu/Dockerfile \
--build-arg="MODEL_ID=Salesforce/xgen-7b-8k-inst" \
--tag ghcr.io/premai-io/chat-xgen-7b-8k-inst-gpu:latest \
--tag ghcr.io/premai-io/chat-xgen-7b-8k-inst-gpu:$VERSION \
./cht-xgen
docker run --gpus all ghcr.io/premai-io/chat-xgen-7b-8k-inst-gpu:latest pytest

0 comments on commit 80b933c

Please sign in to comment.