-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: remote-tracking branch 'upstream/main' into feat/grpc-client
Signed-off-by: Aaron <[email protected]>
- Loading branch information
Showing
144 changed files
with
14,357 additions
and
1,085 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,3 @@ python: | |
- requirements: requirements/docs-requirements.txt | ||
- method: pip | ||
path: . | ||
|
||
formats: | ||
- epub | ||
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
5.4, 2.9, 3.2, 1.5 | ||
4.8, 3.1, 1.4, 0.1 | ||
6.4, 2.8, 5.2, 2.0 | ||
4.1, 3. , 1. , 0.1 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
=================== | ||
Environment Manager | ||
=================== | ||
|
||
:bdg-info:`Note:` This feature is currently only supported on UNIX/MacOS. | ||
|
||
Environment manager is a utility that helps create an isolated environment to | ||
run the BentoML CLI. Dependencies are pulled from your defined | ||
``bentofile.yaml`` and the environment is built upon request. This means by | ||
passing ``--env`` to supported CLI commands (such as :ref:`bentoml serve | ||
<reference/cli:serve>`), such commands will then be run in an sandbox | ||
environment that mimics the behaviour during production. | ||
|
||
.. code-block:: bash | ||
» bentoml serve --env conda iris_classifier:latest | ||
This creates and isolated conda environment from the dependencies in the bento | ||
and runs ``bentoml serve`` from that environment. | ||
|
||
.. note:: The current implementation will try to install the given dependencies | ||
before running the CLI command. Therefore, the environment startup will be a | ||
blocking call. | ||
|
||
|
||
BentoML CLI Commands that support Environment Manager | ||
- :ref:`serve <reference/cli:serve>` | ||
- :ref:`serve-grpc <reference/cli:serve-grpc>` | ||
|
||
Supported Environments | ||
- conda | ||
|
||
|
||
Caching strategies | ||
================== | ||
|
||
Currently, there are two types of environments that are supported by the | ||
environment manager: | ||
|
||
1. Persistent environment: If the given target is a Bento, then the created | ||
environment will be stored locally to ``$BENTOML_HOME/env``. Such an | ||
environment will then be cached and later used by subsequent invocations. | ||
|
||
2. Ephemeral environment: In cases where the given target is not a Bento (import | ||
path to ``bentoml.Service``, project directory containing a valid | ||
``bentofile.yaml``), the environment will be created and cleanup up on | ||
demand. | ||
|
||
.. note:: | ||
You can run ``rm -rf $BENTOML_HOME/env`` to clear the cache. |
Oops, something went wrong.