Skip to content

Commit

Permalink
feat: incorporate huggingface spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
billsioros committed Jul 30, 2023
1 parent 37a2b35 commit c495523
Show file tree
Hide file tree
Showing 12 changed files with 1,536 additions and 1,037 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore everything
**

# ... except for dependencies and source
!pyproject.toml
!poetry.lock
!src
29 changes: 0 additions & 29 deletions .github/workflows/auto-approve.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/auto-merge.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
image_name: ${{ github.repository }}/roughgan
image_tag: ${{ env.RELEASE_TAG_VERSION }},latest
context: ./docker/
10 changes: 5 additions & 5 deletions docker/Dockerfile.train → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 as cuda-base
FROM nvidia/cuda:11.4.3-cudnn8-devel-ubuntu18.04 as cuda-base

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down Expand Up @@ -58,14 +58,14 @@ ENV PIP_NO_CACHE_DIR=off \
POETRY_HOME=/opt/poetry \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=0 \
POETRY_VERSION=1.2.0b1
POETRY_VERSION=1.2.2

ENV POETRY_CACHE_DIR=${POETRY_HOME}/.cache \
PATH=${POETRY_HOME}/bin:${PATH}

COPY --from=python-base ${PYENV_ROOT} ${PYENV_ROOT}

RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python
RUN curl -sSL https://install.python-poetry.org | python -

RUN mkdir -p ${POETRY_CACHE_DIR}/virtualenvs

Expand All @@ -89,6 +89,7 @@ WORKDIR ${WORKSPACE}
COPY pyproject.toml poetry.lock ${WORKSPACE}

RUN poetry env use ${PYTHON_VERSION} && \
poetry run pip install --upgrade pip && \
poetry install --no-dev

FROM build-base as build
Expand All @@ -99,7 +100,6 @@ COPY src ${WORKSPACE}

USER ${USER}

# TODO: Template code
CMD poetry run python alpaca_mot/main.py train \
CMD poetry run python roughgan/model.py train \
--dataset ./data/small \
--state ./models/model
73 changes: 0 additions & 73 deletions docker/Dockerfile

This file was deleted.

8 changes: 4 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ theme:
palette:
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: teal
accent: teal
primary: indigo
accent: indigo
toggle:
icon: material/weather-night
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: teal
accent: teal
primary: indigo
accent: indigo
toggle:
icon: material/weather-sunny
name: Switch to dark mode
Expand Down
Loading

0 comments on commit c495523

Please sign in to comment.