Agent skill · Backend & API

torchserve

Model serving engine for PyTorch. Focuses on MAR packaging, custom handlers for preprocessing/inference, and management of multi-GPU worker scaling. (torchserve, mar-file, handler, basehandler, model-archiver, inference-api)

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill torchserve --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/ai-ml/torchserve/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Overview TorchServe is a flexible and easy-to-use tool for serving PyTorch models. It provides capabilities for packaging models, scaling workers based on hardware availability, and managing multiple model versions via a REST/gRPC API. ## When to Use Use TorchServe when you need a production-ready inference server that handles multi-GPU load balancing, request batching, and custom preprocessing/postprocessing logic via Python handlers. ## Decision Tree 1. Do you need custom logic for image resizing or JSON parsing before model inference? - OVERRIDE: `preprocess()` in a class inheriting from `BaseHandler`. 2. Do you have multiple GPUs available? - RELY: On TorchServe's round-robin assignment; check the `gpu_id` in the handler context. 3. Do you want to deploy to a system with limited resources? - CAUTION: TorchServe is in limited maintenance; check environment compatibility. ## Workflows 1. **Packaging and Serving a Model** 1. Write a custom handler or use a default one (e.g., 'image_classifier'). 2. Use `torch-model-archiver` to package the model, weights, and handler into a `.mar` file. 3. Start TorchServe specifying the model store and the initial models to load. 4. Test the e

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Decision Tree
  4. Workflows
  5. Non-Obvious Insights
  6. Evidence
  7. Scripts
  8. Dependencies
  9. References
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the torchserve skill do?

Model serving engine for PyTorch. Focuses on MAR packaging, custom handlers for preprocessing/inference, and management of multi-GPU worker scaling. (torchserve, mar-file, handler, basehandler, model-archiver, inference-api)

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill torchserve --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going