-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix celery timeout error and package version upgrade #4
Open
byeongal
wants to merge
2
commits into
develop
Choose a base branch
from
feature/youngjae/fix-worker-timeout
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,8 +1,31 @@ | ||
FROM pytorch/pytorch:1.12.0-cuda11.3-cudnn8-devel | ||
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04 | ||
|
||
# set environment variables | ||
ENV PYTHONUNBUFFERED=1 \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
&& apt remove python-pip python3-pip \ | ||
&& apt-get install --no-install-recommends -y \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
g++ \ | ||
python3.8 \ | ||
python3.8-dev \ | ||
python3.8-distutils \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& cd /tmp \ | ||
&& curl -O https://bootstrap.pypa.io/get-pip.py \ | ||
&& python3.8 get-pip.py \ | ||
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 \ | ||
&& update-alternatives --install /usr/local/bin/pip pip /usr/local/bin/pip3.8 1 | ||
|
||
WORKDIR /app | ||
COPY requirements.txt requirements.txt | ||
COPY ./requirements.txt /app/requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
COPY ./worker/ /app/ | ||
|
||
CMD ["celery", "-A", "worker", "worker", "--loglevel=info", "--pool=solo"] | ||
CMD ["celery", "-A", "worker", "worker", "--loglevel=info", "--pool=solo", "--concurrency=1", "--without-heartbeat"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. worker 커맨드 아래 링크와 싱크 맞추는건 어떤가요? |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--find-links https://download.pytorch.org/whl/torch_stable.html | ||
accelerate==0.10.0 | ||
--extra-index-url https://download.pytorch.org/whl/cu116 | ||
accelerate==0.14.0 | ||
celery==5.2.7 | ||
loguru==0.6.0 | ||
pydantic==1.9.1 | ||
transformers==4.20.1 | ||
pydantic==1.10.2 | ||
transformers==4.24.0 | ||
redis==4.3.4 | ||
torch==1.12.0+cu113 | ||
torch==1.13.0 |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
worker_prefetch_multiplier = 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
task_queues = [Queue(name="llm")] | ||
task_ignore_result = True | ||
broker_connection_timeout = 360 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아래 링크와 같이 env file sample와 함께 README 같이 수정하면 좋을 것 같습니다.
https://github.com/ainize-team/TTI-Worker/tree/develop