-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
84 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
output/ | ||
*.whl |
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,11 @@ | ||
# Building conda packages | ||
|
||
To build conda packages you must first produce wheels for the project, see root README.md for information. | ||
|
||
After producing wheels use the following command to build conda packages: | ||
|
||
``` | ||
TORCHSERVE_WHEEL=/path/to/torchserve.whl TORCH_MODEL_ARCHIVER_WHEEL=/path/to/torch_model_archiver_wheel ./build_packages.sh | ||
``` | ||
|
||
Produced conda packages are then stored in the `output` directory |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
|
||
PYTHON_VERSIONS="3.6 3.7 3.8" | ||
PKGS="torchserve torch-model-archiver" | ||
|
||
for pkg in ${PKGS}; do | ||
for python_version in ${PYTHON_VERSIONS}; do | ||
( | ||
set -x | ||
conda build --output-folder output/ --python="${python_version}" "${pkg}" | ||
) | ||
done | ||
done |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
|
||
pip install --no-deps "${TORCH_MODEL_ARCHIVER_WHEEL}" |
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,23 @@ | ||
package: | ||
name: torch-model-archiver | ||
version: 0.0.1b20200409 | ||
|
||
requirements: | ||
build: | ||
- python | ||
- setuptools | ||
|
||
run: | ||
- python | ||
- pillow | ||
- psutil | ||
- future | ||
|
||
build: | ||
noarch: generic | ||
script_env: | ||
- TORCH_MODEL_ARCHIVER_WHEEL | ||
|
||
about: | ||
home: https://github.com/pytorch/serve | ||
summary: 'Model serving on PyTorch' |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
|
||
pip install --no-deps "${TORCHSERVE_WHEEL}" |
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,23 @@ | ||
package: | ||
name: torchserve | ||
version: 0.0.1b20200409 | ||
|
||
requirements: | ||
build: | ||
- python | ||
- setuptools | ||
|
||
run: | ||
- python | ||
- pillow | ||
- psutil | ||
- future | ||
|
||
build: | ||
noarch: generic | ||
script_env: | ||
- TORCHSERVE_WHEEL | ||
|
||
about: | ||
home: https://github.com/pytorch/serve | ||
summary: 'Model serving on PyTorch' |