Skip to content

Commit

Permalink
perf: increase shared memory size
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Sep 25, 2024
1 parent b1dbbb0 commit 77e7f51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compose.gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ services:
REDIS_URL: redis://redis:6379
BACKEND_PORT: ${BACKEND_PORT}
USE_CUDA: True
shm_size: 1G
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./tmp/backend/huggingface:/home/user/.cache/huggingface/hub
- ./tmp/backend/torch:/home/user/.cache/torch
Expand Down
5 changes: 5 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ services:
CT2_USE_EXPERIMENTAL_PACKED_GEMM: ${CT2_USE_EXPERIMENTAL_PACKED_GEMM}
OMP_NUM_THREADS: ${OMP_NUM_THREADS}
security_opt: [seccomp:unconfined]
shm_size: 1G
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./tmp/backend/huggingface:/home/user/.cache/huggingface/hub
- ./tmp/backend/torch:/home/user/.cache/torch
Expand Down

0 comments on commit 77e7f51

Please sign in to comment.