githubEdit

Huggingface models

Text Generation Model

cat ./models/hf-text-gen.yaml
apiVersion: mlops.seldon.io/v1alpha1
kind: Model
metadata:
  name: text-gen
spec:
  storageUri: "gs://seldon-models/mlserver/huggingface/text-generation"
  requirements:
  - huggingface

Load the model

seldon model load -f ./models/hf-text-gen.yaml
{}
seldon model status text-gen -w ModelAvailable | jq -M .
{}
seldon model infer text-gen \
  '{"inputs": [{"name": "args","shape": [1],"datatype": "BYTES","data": ["Once upon a time in a galaxy far away"]}]}'

Unload the model

Custom Text Generation Model

Load the model

Unload the model

Last updated

Was this helpful?