Overview
- Full name
docker.io/pytorch/torchserve-kfs- Registry
- docker.io
- Namespace
- pytorch
- Repository
- torchserve-kfs
- Cached tags
- 40
- Last synced
- 07/06/2026, 06:57 PM
Introduction
PyTorch TorchServe Kubeflow Serving 运行时镜像,加载 MAR 模型包提供 gRPC/REST 推理,面向 KFS 与 GPU 节点,需 NVIDIA 驱动。
Details
torchserve-kfs 是 TorchServe 针对 Kubeflow ModelServer 定制的发行版,配合 InferenceService CR 自动挂载模型存储并暴露预测端口。容器启动需指定 MODEL_STORE 与 TS_CONFIG,GPU 推理须 --gpus all 或 K8s nvidia.com/gpu 资源。不适合无 GPU 的普通 Deployment 长期副本;正确路径是在 KServe/KFS 中声明 Predictor 或使用带 GPU 的 Job 批处理。
快速启动
docker run --rm --gpus all \
-p 8080:8080 -p 8081:8081 \
-v $(pwd)/model-store:/models \
docker.io/pytorch/torchserve-kfs:latest \
torchserve --start --model-store /models --models mymodel=mymodel.mar
推荐实践
docker run -d --name torchserve \
--gpus all --restart unless-stopped \
-p 8080:8080 -p 8081:8081 \
-v /data/model-store:/models \
-e TS_CONFIG=/models/config.properties \
-e MODEL_STORE=/models \
docker.io/pytorch/torchserve-kfs:0.9.0
核心参数说明
--gpus all— 启用 CUDA 推理-p 8080/8081— 推理 REST 与管理 API-v .../model-store:/models— MAR 包与 config.properties-e TS_CONFIG— 工作线程与批处理配置-e MODEL_STORE— 模型目录路径- 部署 — 生产请用 KServe InferenceService 而非裸 Pod
Latest tags (20)
View all 40 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/pytorch/torchserve-kfs :0.12.0-gpu | linux/amd64 | 2024/10/01 06:27 | 3.5 GB | sha256:811e77013602… | |||
docker.io/pytorch/torchserve-kfs :0.12.0 | linux/arm64linux/amd64 | 2024/10/01 06:25 | 923.5 MB | sha256:17dd3ecdf5c8… | |||
docker.io/pytorch/torchserve-kfs :0.11.1-gpu | linux/amd64 | 2024/07/19 02:48 | 3.5 GB | sha256:8682e0808c96… | |||
docker.io/pytorch/torchserve-kfs :0.11.1 | linux/amd64 | 2024/07/19 02:47 | 968.4 MB | sha256:eb6ae9863dec… | |||
docker.io/pytorch/torchserve-kfs :0.11.0-gpu | linux/amd64 | 2024/05/17 04:32 | 3.5 GB | sha256:6870baa57a9b… | |||
docker.io/pytorch/torchserve-kfs :0.11.0 | linux/amd64 | 2024/05/17 04:31 | 963.9 MB | sha256:aa0897405450… | |||
docker.io/pytorch/torchserve-kfs :0.10.0-gpu | linux/amd64 | 2024/03/15 07:21 | 3.5 GB | sha256:c0bf621bf222… | |||
docker.io/pytorch/torchserve-kfs :0.10.0 | linux/amd64 | 2024/03/15 07:21 | 965.9 MB | sha256:47609d41aa1f… | |||
docker.io/pytorch/torchserve-kfs :0.9.0-gpu | linux/amd64 | 2023/10/31 02:55 | 3.0 GB | sha256:69756a69484b… | |||
docker.io/pytorch/torchserve-kfs :0.9.0 | linux/amd64 | 2023/10/31 02:54 | 1.0 GB | sha256:d6cfdac5d830… | |||
docker.io/pytorch/torchserve-kfs :0.8.2-gpu | linux/amd64 | 2023/08/29 05:46 | 3.1 GB | sha256:0cab27524a8f… | |||
docker.io/pytorch/torchserve-kfs :0.8.2 | linux/amd64 | 2023/08/29 05:45 | 1001.1 MB | sha256:98e0cb8ab48d… | |||
docker.io/pytorch/torchserve-kfs :0.8.1-gpu | linux/amd64 | 2023/06/15 03:01 | 2.6 GB | sha256:aaf0896a74ee… | |||
docker.io/pytorch/torchserve-kfs :0.8.1 | linux/amd64 | 2023/06/15 03:01 | 927.7 MB | sha256:32382de22a57… | |||
docker.io/pytorch/torchserve-kfs :0.8.0-gpu | linux/amd64 | 2023/05/20 09:39 | 6.1 GB | sha256:3c7e2c25399c… | |||
docker.io/pytorch/torchserve-kfs :0.8.0 | linux/amd64 | 2023/05/20 09:38 | 2.6 GB | sha256:90cfc0d8ce9e… | |||
docker.io/pytorch/torchserve-kfs :0.7.1-gpu | linux/amd64 | 2023/02/09 06:27 | 6.6 GB | sha256:dc9f22e396e2… | |||
docker.io/pytorch/torchserve-kfs :0.7.1 | linux/amd64 | 2023/02/09 06:27 | 2.0 GB | sha256:9cedaf72420e… | |||
docker.io/pytorch/torchserve-kfs :0.7.0-gpu | linux/amd64 | 2022/12/13 06:00 | 6.6 GB | sha256:6daae3c54cf6… | |||
docker.io/pytorch/torchserve-kfs :0.7.0 | linux/amd64 | 2022/12/13 06:00 | 2.0 GB | sha256:05eff20e9277… |