From 2d5fa963b0c563da1f9c653eb1cf779049dd961b Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Thu, 19 Dec 2024 10:58:58 -0800 Subject: [PATCH] attempt torchserve build --- recipes/torchserve/meta.yaml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 recipes/torchserve/meta.yaml diff --git a/recipes/torchserve/meta.yaml b/recipes/torchserve/meta.yaml new file mode 100644 index 0000000000000..4ca839f25106d --- /dev/null +++ b/recipes/torchserve/meta.yaml @@ -0,0 +1,51 @@ +{% set name = "torchserve" %} +{% set version = "0.12.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/pytorch/serve/archive/v{{ version }}.tar.gz + sha256: d5eb31a540b6a1dea4ead5c8b122d8b7d40b06fe2fc257ba67ed5b071852be0b + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv + number: 0 + entry_points: + - torchserve = ts.model_server:start + +requirements: + build: + - gradle + host: + - python {{ python_min }} + - pip + - setuptools + - openjdk + run: + - python >={{ python_min }} + - pillow + - psutil + +test: + commands: + - torchserve -v + requires: + - python {{ python_min }} + +about: + home: https://github.com/simplejson/simplejson + summary: 'Performant, flexible and easy to use tool for serving PyTorch models in production.' + description: | + TorchServe is a performant, flexible and easy to use tool for serving PyTorch models in production. + license: Apache-2.0 + license_file: LICENSE + # The doc_url and dev_url are optional. + doc_url: https://pytorch.org/serve/index.html + dev_url: https://github.com/pytorch/serve + +extra: + recipe-maintainers: + - tdsmith