Skip to content

Commit

Permalink
Organize preset code
Browse files Browse the repository at this point in the history
Signed-off-by: Heba Elayoty <[email protected]>
  • Loading branch information
helayoty committed Oct 3, 2023
1 parent 980c198 commit f297ae0
Show file tree
Hide file tree
Showing 37 changed files with 11 additions and 316 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ vendor/*
hack/tools/bin/*
.DS_Store
/coverage.txt

# presets

pkg/presets/llama-2/weights
pkg/presets/llama-2-chat/weights
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ docker-buildx: test ## Build and push docker image for the manager for cross-pla
.PHONY: docker-build-kdm
docker-build-kdm: docker-buildx
docker buildx build \
--file ./Dockerfile \
--file ./docker/kdm/Dockerfile \
--output=$(OUTPUT_TYPE) \
--platform="linux/$(ARCH)" \
--pull \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ WORKDIR /workspace/huggingface
# First, copy just the requirements.txt file and install dependencies
# This is done before copying the code to utilize Docker's layer caching and
# avoid reinstalling dependencies unless the requirements file changes.
COPY code/requirements.txt ./requirements.txt
COPY pkg/presets/falcon/requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy the entire 'code' folder to the working directory
COPY code .
# Copy the entire 'presets/falcon' folder to the working directory
COPY pkg/presets/falcon .
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN pip install -e .
RUN pip install fastapi pydantic
RUN pip install 'uvicorn[standard]'

ADD code /workspace/llama/llama-2
ADD pkg/presets/llama-2-chat /workspace/llama/llama-2-chat
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN pip install -e .
RUN pip install fastapi pydantic
RUN pip install 'uvicorn[standard]'

ADD code /workspace/llama/llama-2-chat
ADD pkg/presets/llama-2 /workspace/llama/llama-2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ spec:
limits:
cpu: "1"
ephemeral-storage: "500Gi"

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions presets/.github/dependabot.yml

This file was deleted.

11 changes: 0 additions & 11 deletions presets/.github/markdown-links-config.json

This file was deleted.

9 changes: 0 additions & 9 deletions presets/.github/pr-title-config.json

This file was deleted.

36 changes: 0 additions & 36 deletions presets/.github/workflows/codeql.yml

This file was deleted.

20 changes: 0 additions & 20 deletions presets/.github/workflows/markdown-link-check.yml

This file was deleted.

19 changes: 0 additions & 19 deletions presets/.github/workflows/pr-title-lint.yml

This file was deleted.

2 changes: 0 additions & 2 deletions presets/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions presets/CODEOWNERS

This file was deleted.

201 changes: 0 additions & 201 deletions presets/LICENSE

This file was deleted.

0 comments on commit f297ae0

Please sign in to comment.