Hf Model To API

Turns a Hugging Face model that already works in a notebook (text classifier, NER/token-classification, text embedder, or image generator) into a production-grade local FastAPI service, with layered app structure, lifespan model loading + warm-up, batching, input/output validation, health/readiness probes, and correctness + performance evaluation scripts. Use whenever the user wants to "wrap", "serve locally", "turn into an API", or "expose as a FastAPI service" a Hugging Face model or model_id (e.g. BERT classifiers, NER models, sentence-transformers embedders, Stable Diffusion / diffusers image generators), even if they only mention it works in a Jupyter notebook and don't say "FastAPI" explicitly. Does NOT cover frontend/client code, Docker, or cloud deployment — local FastAPI serving only.

nynuz Updated

File contents

nynuz/ml-serving-skills/tree/main/skills/hf-model-to-api commit ae7b413e7d

Frequently asked questions

npx skillmds@latest add nynuz/hf-model-to-api