better worker allocation for gunicorn + CUDA environment #265
Closed
better worker allocation for gunicorn + CUDA environment #265
Conversation
- test_issue_243.py: Test script to replicate VRAM duplication issue - ISSUE_243_ANALYSIS.md: Initial analysis of gunicorn/CUDA issue - ISSUE_243_REAL_WORLD_ANALYSIS.md: Analysis of whisper-wrapper implementation These are investigation/documentation artifacts, not SDK changes.
Removed outdated files: - test_issue_243.py (app-level test, no longer relevant) - ISSUE_243_ANALYSIS.md (superseded) - ISSUE_243_REAL_WORLD_ANALYSIS.md (superseded) New consolidated documentation: - ISSUE_243_INVESTIGATION.md: Complete investigation with SDK-level solution Key changes from previous analysis: - Focus on SDK-level VRAM management (not app-level) - Runtime VRAM checking via enhanced _profile_cuda_memory decorator - _get_model_requirements() API for apps to declare memory needs - Conservative worker count when CUDA detected - Runtime status via ?includeVRAM=true parameter - Addresses dynamic VRAM availability (not static calculation) - Process-safe torch.cuda.empty_cache() usage documented
Updated investigation document with: - Component 5: Automatic Memory Profiling - 80% VRAM requirement for first request (conservative) - Historical measurement for subsequent requests - Hash-based filenames for race-condition-safe persistence - Atomic writes via temp file + rename - Updated request flow to show 3-level priority: 1. App override (explicit) 2. Historical measurement 3. Conservative 80% - Updated implementation checklist with new components - Revised open questions and conclusion
… isn't sufficient
e2309be to
b7579c2
Compare
…hon version that provides pamameter hashing
b7579c2 to
328c4c4
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #265 +/- ##
==========================================
Coverage ? 59.45%
==========================================
Files ? 6
Lines ? 846
Branches ? 0
==========================================
Hits ? 503
Misses ? 343
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
this turned out to be a massive over-engineering based on wrong assumption and outdated information. Closing without merge. Will start a new PR to address the issue more neatly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
addresses #243