Skip to content

Commit

Permalink
feat: Updated sweepai/config/server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-nightly[bot] authored Mar 15, 2024
1 parent bbd4c04 commit f622f2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sweepai/config/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
"SENTENCE_TRANSFORMERS_MODEL",
"sentence-transformers/all-MiniLM-L6-v2", # "all-mpnet-base-v2"
)
BATCH_SIZE = int(
from sweepai.utils.multiprocessing_utils import safe_multiprocessing_setup

BATCH_SIZE = safe_multiprocessing_setup(int(
os.environ.get("BATCH_SIZE", 256)
) # Tune this to 32 for sentence-transformers/all-MiniLM-L6-v2 on CPU
)) # Tune this to 32 for sentence-transformers/all-MiniLM-L6-v2 on CPU

TEST_BOT_NAME = "sweep-nightly[bot]"
ENV = os.environ.get("ENV", "dev")
Expand Down

0 comments on commit f622f2c

Please sign in to comment.