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

Dependency solution #1

Merged
merged 10 commits into from
Jul 31, 2023
Merged

Dependency solution #1

merged 10 commits into from
Jul 31, 2023

Conversation

c0sogi
Copy link
Owner

@c0sogi c0sogi commented Jul 30, 2023

This Pull Request (PR) incorporates various convenience improvements and code refactoring. The main changes are as follows:

  1. Dependencies are automatically installed. By providing the --install-pkgs option when running the server, not only the packages of this project but also the packages of all related repositories are installed. This process includes identifying the appropriate version of CUDA and installing the corresponding PyTorch, as well as the installation of TensorFlow. Please refer to the README for more details.

  2. The need to install the pytest package has been eliminated by performing unittest instead of pytest.

  3. The docker-compose file is configured to fetch the already built docker image from Dockerhub.

  4. The poetry dependency is included in pyproject.toml. However, it is not recommended to directly install dependencies using poetry. When running the server, the toml file is converted to a requirements.txt file, and the necessary packages are installed via pip install.

  5. There is no need to use semaphores because the concurrent use of the model is already limited through the scheduling of the process pool's workers. However, by using semaphores, a queue can be created to efficiently utilize the cache model left in the existing worker for the worker scheduler, so the feature has been retained.


This PR has already passed all test suites in the Python 3.11, Windows 11, CUDA 12.2 environment and will be merged automatically after an appropriate code review.

@c0sogi c0sogi merged commit 6cff18a into master Jul 31, 2023
13 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.

None yet

1 participant