-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
87 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Build Images | ||
|
||
on: | ||
push: | ||
branches: [ "pb-jax-ss" ] | ||
|
||
jobs: | ||
build-image: | ||
runs-on: ["self-hosted", "e2", "cpu"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build jax stable stack image | ||
run: | | ||
bash docker_maxdiffusion_image_upload.sh PROJECT_ID=tpu-prod-env-multipod BASEIMAGE=us-docker.pkg.dev/tpu-prod-env-multipod/jax-stable-stack/tpu:jax0.4.30-rev1 CLOUD_IMAGE_NAME=maxdiffusion-jax-stable-stack IMAGE_TAG=jax0.4.30-rev1 MAXDIFFUSION_REQUIREMENTS_FILE=requirements_with_jax_stable_stack.txt DELETE_LOCAL_IMAGE=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
ARG JAX_STABLE_STACK_BASEIMAGE | ||
|
||
# JAX Stable Stack Base Image | ||
FROM $JAX_STABLE_STACK_BASEIMAGE | ||
|
||
ARG COMMIT_HASH | ||
|
||
ENV COMMIT_HASH=$COMMIT_HASH | ||
|
||
RUN mkdir -p /deps | ||
|
||
# Set the working directory in the container | ||
WORKDIR /deps | ||
|
||
# Copy all files from local workspace into docker container | ||
COPY . . | ||
RUN ls . | ||
|
||
# ARG MAXDIFFUSION_REQUIREMENTS_FILE | ||
|
||
# # Install Maxdiffusion requirements | ||
# RUN if [ ! -z "${MAXDIFFUSION_REQUIREMENTS_FILE}" ]; then \ | ||
# echo "Using MaxDiffusion requirements: ${MAXDIFFUSION_REQUIREMENTS_FILE}" && \ | ||
# pip install -r /deps/${MAXDIFFUSION_REQUIREMENTS_FILE}; \ | ||
# fi | ||
|
||
# # Install MaxDiffusion | ||
# RUN pip install . | ||
|
||
# Run the script available in JAX-Stable-Stack base image to generate the manifest file | ||
RUN bash /generate_manifest.sh PREFIX=maxdiffusion COMMIT_HASH=$COMMIT_HASH |
2 changes: 1 addition & 1 deletion
2
requirements_with_jax_ss.txt → requirements_with_jax_stable_stack.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters