Skip to content
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

Refactor/config #46

Merged
merged 7 commits into from
Feb 5, 2025
Merged

Refactor/config #46

merged 7 commits into from
Feb 5, 2025

Conversation

1martin1
Copy link
Collaborator

No description provided.

@1martin1 1martin1 requested a review from angrymuskrat January 27, 2025 13:57
protollm_tools/llm-worker/protollm_worker/config.py Outdated Show resolved Hide resolved
Comment on lines 76 to 89
return Config(
env_vars.get("REDIS_HOST", "localhost"),
int(env_vars.get("REDIS_PORT", "6379")),
env_vars.get("REDIS_PREFIX", "llm-api"),
env_vars.get("RABBIT_MQ_HOST", "localhost"),
int(env_vars.get("RABBIT_MQ_PORT", "5672")),
env_vars.get("RABBIT_MQ_LOGIN", "admin"),
env_vars.get("RABBIT_MQ_PASSWORD", "admin"),
env_vars.get("QUEUE_NAME", "llm-api-queue"),
env_vars.get("MODEL_PATH"),
int(env_vars.get("TOKENS_LEN", "16384")),
int(env_vars.get("TENSOR_PARALLEL_SIZE", "2")),
float(env_vars.get("GPU_MEMORY_UTILISATION", "0.9")),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут аналогично - если такой сетап нужен для тестов, то лучше создать отдельный env-файл с нужными значениями.

protollm_tools/llm-api/README.md Show resolved Hide resolved
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
- "5672:5672"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынести порт в env

protollm_tools/sdk/docker-compose.yml Show resolved Hide resolved
@angrymuskrat angrymuskrat self-requested a review February 5, 2025 15:13
@angrymuskrat angrymuskrat merged commit 3ddb04e into main Feb 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants