-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup scripts and split Dockerfiles into base and incremental.
- Loading branch information
Showing
6 changed files
with
108 additions
and
62 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
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,16 @@ | ||
ARG REPO_LOCATION=us-west4-docker.pkg.dev/beastmaster-408319/levanter | ||
ARG BASE_VERSION=latest | ||
|
||
FROM ${REPO_LOCATION}/levanter:${BASE_VERSION} | ||
|
||
ENV TENSORSTORE_CURL_LOW_SPEED_TIME_SECONDS=60\ | ||
TENSORSTORE_CURL_LOW_SPEED_LIMIT_BYTES=1024\ | ||
RAY_USAGE_STATS_ENABLED=0\ | ||
PATH=/opt/levanter/.venv/bin:$PATH | ||
|
||
WORKDIR /opt/levanter | ||
|
||
ADD pyproject.toml README.md /opt/levanter/ | ||
RUN pip install -e '.[test]' | ||
|
||
ADD . /opt/levanter |
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 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 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,23 @@ | ||
#!/bin/bash | ||
# This script is used for launching on TPU pods (or other direct run environments) via remote ssh with a virtual env | ||
set -e | ||
umask 000 | ||
LEV_ROOT=$(dirname "$(readlink -f $0)")/.. | ||
|
||
# figure out venv, first check if we wrote a path in infra/venv_path | ||
if [ ! -d "$VENV" ] && [ -f "$LEV_ROOT/infra/venv_path.txt" ]; then | ||
VENV=$(cat "$LEV_ROOT"/infra/venv_path.txt) | ||
fi | ||
|
||
# if we still don't have a venv, we'll look in our default | ||
if [ ! -d "$VENV" ]; then | ||
VENV=/files/venv32 | ||
fi | ||
|
||
if [ ! -d "$VENV" ]; then | ||
VENV=~/files/venv310 | ||
fi | ||
|
||
source $VENV/bin/activate | ||
|
||
PYTHONPATH=${LEV_ROOT}:${LEV_ROOT}/src:${LEV_ROOT}/examples:$PYTHONPATH nohup "$@" >& "~/log-$(hostname).log" & |
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