Skip to content

Commit cc57380

Browse files
authored
Merge pull request #97 from DefangLabs/linda-cpu-reduction
2 parents 9415d37 + c0765bd commit cc57380

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

app/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,4 @@ EXPOSE 5050
4949
ENV FLASK_APP=app.py
5050

5151
# Run the application using uWSGI
52-
# CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4"]
53-
# longer timeout settings to allow for slower rag and llm responses
54-
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "4", "--harakiri", "300", "--socket-timeout", "300", "--http-timeout", "300", "--http-keepalive", "--http-auto-chunked"]
52+
CMD ["uwsgi", "--lazy-apps", "--http", "0.0.0.0:5050", "--wsgi-file", "app.py", "--callable", "app", "--processes", "2"]

app/test_rag_system.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import unittest
22

3-
from torch import cosine_similarity
43
from rag_system import RAGSystem
54

65
class TestRAGSystem(unittest.TestCase):

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
resources:
3131
reservations:
3232
memory: 4G
33-
cpus: 2.0
33+
cpus: 1.0
3434
healthcheck:
3535
test: ["CMD", "curl", "-f", "http://localhost:5050/"]
3636
interval: 30s

0 commit comments

Comments
 (0)