Skip to content

Commit

Permalink
Merge pull request #7 from togethercomputer/addLocalConfig
Browse files Browse the repository at this point in the history
Create local-cfg.yaml
  • Loading branch information
adtswrp authored Jun 15, 2023
2 parents 1691982 + 083e560 commit ec4c0c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ RUN wget https://together-distro-packages.s3.us-west-2.amazonaws.com/archlinux/x
chmod +x /usr/local/bin/together-node
COPY app app
COPY requirements.txt requirements.txt
COPY local-cfg.yaml /home/user/cfg.yaml
RUN pip install -r ./requirements.txt
WORKDIR /app
7 changes: 7 additions & 0 deletions local-cfg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installed to /home/user/cfg.yaml in container
worker:
mode: local-service
group:
alloc: each
command: /usr/bin/python3 /app/serving.py
env: HF_HOME=/home/user

0 comments on commit ec4c0c3

Please sign in to comment.