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

Revert "Creates DJL manual engine initialization (#2885)" #2934

Conversation

siddvenk
Copy link
Contributor

This reverts commit 6141c48.

Description

Brief description of what this PR is about

  • If this change is a backward incompatible change, why must this change be made?
  • Interesting edge cases to note here

@siddvenk siddvenk requested review from zachgk, frankfliu and a team as code owners January 10, 2024 22:41
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2024

Codecov Report

Attention: 1324 lines in your changes are missing coverage. Please review.

Comparison is base (bb5073f) 72.08% compared to head (7e385b5) 72.30%.
Report is 963 commits behind head on master.

Files Patch % Lines
...va/ai/djl/modality/nlp/generate/TextGenerator.java 2.81% 276 Missing ⚠️
.../java/ai/djl/modality/nlp/generate/SeqBatcher.java 0.75% 132 Missing ⚠️
...ity/nlp/generate/ContrastiveSeqBatchScheduler.java 2.97% 98 Missing ⚠️
...i/djl/modality/nlp/generate/SeqBatchScheduler.java 9.83% 55 Missing ⚠️
.../java/ai/djl/modality/cv/BufferedImageFactory.java 40.96% 47 Missing and 2 partials ⚠️
...a/ai/djl/modality/nlp/generate/StepGeneration.java 2.04% 48 Missing ⚠️
api/src/main/java/ai/djl/ndarray/NDArray.java 43.42% 39 Missing and 4 partials ⚠️
...n/java/ai/djl/modality/cv/output/CategoryMask.java 22.00% 39 Missing ⚠️
...i/src/main/java/ai/djl/ndarray/NDArrayAdapter.java 71.21% 31 Missing and 7 partials ⚠️
.../cv/translator/SemanticSegmentationTranslator.java 37.50% 35 Missing ⚠️
... and 74 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2934      +/-   ##
============================================
+ Coverage     72.08%   72.30%   +0.21%     
- Complexity     5126     7277    +2151     
============================================
  Files           473      721     +248     
  Lines         21970    32465   +10495     
  Branches       2351     3384    +1033     
============================================
+ Hits          15838    23474    +7636     
- Misses         4925     7377    +2452     
- Partials       1207     1614     +407     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

zachgk added a commit to zachgk/djl-serving that referenced this pull request Jan 10, 2024
This updates DJL Serving to follow the engine initialization standards set in
deepjavalibrary/djl#2885. First, it updates the
PyEngineProvider to follow the EngineProvider conventions.

It also updates the DependencyManager, fixing some bugs that inspired
deepjavalibrary/djl#2934. The dependency manager before
this change would always re-register the engine with a new provider. Beforehand,
the engine was fully static and unable to re-initialize, so this would not
accidentally re-initialize engines. After this, it would re-initialize engines
that did not support it causing errors. Instead, it should only register new
engines rather than all providers to avoid these accidental re-initialization.
@siddvenk siddvenk closed this Jan 11, 2024
@siddvenk siddvenk deleted the revert-djl-manual-engine-init branch November 16, 2024 17:13
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