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 LLMEngine demo script for clarity and modularity #1413

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

iongpt
Copy link
Contributor

@iongpt iongpt commented Oct 18, 2023

  • Broke down the main function into modular sub-functions.
  • Separated prompt creation into its own function for easier management.
  • Introduced dedicated function for continuous request processing.
  • Streamlined engine initialization from CLI arguments.
  • Improved main loop readability and management in process_requests.
  • Enhanced overall script structure for maintainability.

iongpt and others added 2 commits October 18, 2023 20:07
- Broke down the `main` function into modular sub-functions.
- Separated prompt creation into its own function for easier management.
- Introduced dedicated function for continuous request processing.
- Streamlined engine initialization from CLI arguments.
- Improved main loop readability and management in `process_requests`.
- Enhanced overall script structure for maintainability.
Copy link
Member

@zhuohan123 zhuohan123 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for your contribution! Add some changes so that the max width of the code is less than 80 characters.

@zhuohan123 zhuohan123 merged commit ac8d36f into vllm-project:main Oct 30, 2023
2 checks passed
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
sjchoi1 pushed a commit to casys-kaist-internal/vllm that referenced this pull request May 7, 2024
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.

2 participants