Skip to content

Commit

Permalink
Use small model in local
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Sep 27, 2024
1 parent b603d0c commit eb1469b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ services:
container_name: worker_translations
environment:
LOGGING_LEVEL: "WARNING"
MODEL: "qwen:0.5b-text-v1.5-q2_K"
init: true
entrypoint: [ "python", "-m", "src.start_queue_processor" ]
build:
context: .
dockerfile: Dockerfile
network_mode: host
network_mode: host
2 changes: 1 addition & 1 deletion src/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
LANGUAGES_SHORT = ["en", "fr", "es", "ru", "ar", "sp"]
LANGUAGES = ["English", "French", "Spanish", "Russian", "Arabic", "Spanish"]

QUEUES_NAMES = os.environ.get("QUEUES_NAMES", "translation development_translation")
QUEUES_NAMES = os.environ.get("QUEUES_NAMES", "translations development_translations")

GRAYLOG_IP = os.environ.get("GRAYLOG_IP")
REDIS_HOST = os.environ.get("REDIS_HOST", "127.0.0.1")
Expand Down
4 changes: 2 additions & 2 deletions src/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
QUEUE = RedisSMQ(
host=REDIS_HOST,
port=REDIS_PORT,
qname="translation_tasks",
qname="translations_tasks",
quiet=False,
)

Expand Down Expand Up @@ -52,7 +52,7 @@ def get_results_message() -> TranslationResponseMessage:
queue = RedisSMQ(
host=REDIS_HOST,
port=REDIS_PORT,
qname="translation_results",
qname="translations_results",
quiet=False,
)
message = queue.receiveMessage().exceptions(False).execute()
Expand Down

0 comments on commit eb1469b

Please sign in to comment.