-
Notifications
You must be signed in to change notification settings - Fork 9
Add: Config Var to allow raising GuideLLM logging level #114
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
Conversation
WalkthroughAdds a Changes
Sequence DiagramsequenceDiagram
participant User
participant BenchmarkConfig
participant Provider
participant GuideLLM_Process as Subprocess
User->>BenchmarkConfig: set logging_level
BenchmarkConfig->>Provider: provide config
Provider->>Provider: env_copy = os.environ.copy()
Provider->>Provider: env_copy["GUIDELLM__LOGGING__CONSOLE_LOG_LEVEL"] = logging_level
Provider->>GuideLLM_Process: subprocess.Popen(..., env=env_copy)
GuideLLM_Process->>GuideLLM_Process: read env and apply logging level
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🪛 GitHub Check: pyrightauto_tune_vllm/benchmarks/config.py[warning] 4-4: 🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
auto_tune_vllm/benchmarks/config.py (1)
31-33: Consider adding validation or documentation for valid logging levels.The implementation looks good with a sensible default. To improve robustness, consider either:
- Adding a comment documenting valid values (e.g., DEBUG, INFO, WARNING, ERROR)
- Using a Literal type hint:
logging_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = "INFO"This would provide better IDE support and catch invalid values at type-check time.
Example with Literal:
from dataclasses import dataclass -from typing import Optional +from typing import Literal, Optional# Logging level for GuideLLM - logging_level: str = "INFO" + logging_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = "INFO"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
auto_tune_vllm/benchmarks/config.py(1 hunks)auto_tune_vllm/benchmarks/providers.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: pyright
🔇 Additional comments (1)
auto_tune_vllm/benchmarks/providers.py (1)
225-237: LGTM! Clean environment variable handling.The implementation correctly:
- Copies the current environment to avoid modifying the parent process
- Injects the GuideLLM-specific logging configuration
- Passes the modified environment to the subprocess
This approach properly isolates the subprocess environment changes.
ephoris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This allows the GuideLLM log level to be raised.
Summary by CodeRabbit