Skip to content

Reduce jar size #2566

Answered by frankfliu
user50 asked this question in Q&A
Apr 25, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The pytorch GPU binary itself is more than 1G. I don't think there is way to reduce it's size if you must use GPU and want to distribute it.

Here is a few options:

  1. use DJL auto-detection, which requires network access at runtime.
  2. pre-install pytorch on the host and point DJL to pre-installed location
  3. copy DJL's cached directory to your host manually

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@user50
Comment options

Answer selected by user50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants