Skip to content

Commit

Permalink
attempt torchserve build
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsmith committed Dec 19, 2024
1 parent 7d2a798 commit 2d5fa96
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions recipes/torchserve/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2d5fa96

Please sign in to comment.