AI Skill Hub 强烈推荐:模型部署 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
模型部署 是一款基于 Python 开发的开源工具,专注于 ai、ai-platform、diffusers 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
模型部署 是一款基于 Python 开发的开源工具,专注于 ai、ai-platform、diffusers 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install modelship
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install modelship
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/alez007/modelship
cd modelship
pip install -e .
# 验证安装
python -c "import modelship; print('安装成功')"
# 命令行使用
modelship --help
# 基本用法
modelship input_file -o output_file
# Python 代码中调用
import modelship
# 示例
result = modelship.process("input")
print(result)
# modelship 配置文件示例(config.yml) app: name: "modelship" debug: false log_level: "INFO" # 运行时指定配置文件 modelship --config config.yml # 或通过环境变量配置 export MODELSHIP_API_KEY="your-key" export MODELSHIP_OUTPUT_DIR="./output"
One command, one model. Pick your hardware:
CPU — Linux, Windows, or macOS via Docker (images are multi-arch: amd64 + arm64):
docker run --rm --shm-size=8g -p 8000:8000 -v modelship-cache:/.cache \
ghcr.io/modelship-ai/modelship:latest-cpu deploy \
--model "Qwen/Qwen3-8B-GGUF:*Q4_K_M.gguf" --loader llama_server \
--usecase generate --num-cpus 4
NVIDIA GPU — needs the NVIDIA Container Toolkit:
docker run --rm --shm-size=8g --gpus all -p 8000:8000 -v modelship-cache:/.cache \
ghcr.io/modelship-ai/modelship:latest-cuda deploy \
--model "Qwen/Qwen3-8B-GGUF:*Q4_K_M.gguf" --loader llama_server \
--usecase generate --num-gpus 1
Apple Silicon — native, with Metal offload:
uv tool install mship && mship bootstrap --metal
mship deploy --model "Qwen/Qwen3-8B-GGUF:*Q4_K_M.gguf" --loader llama_server \
--usecase generate --num-gpus 1
Wait for Deployed app 'modelship' successfully, then talk to it — this hits the Responses API and streams the model's reasoning as it thinks:
uvx --with httpx llm openai endpoint http://localhost:8000/modelship/v1 \
-m qwen3-8b --responses "Which is larger, 9.11 or 9.9?"
Add --chat for an interactive session, -T to hand it a tool, or --models to list what's deployed.
The model serves as qwen3-8b, inferred from the reference. It pulls ~5 GB and wants ~8 GB of free RAM; --num-cpus 4 reserves four cores for it, so lower it if the container has fewer (the deploy waits for resources it can't get). On a small box, swap in lmstudio-community/Qwen3-0.6B-GGUF:*Q4_K_M.gguf.
Deploying several models at once uses a models.yaml instead; one model's tuning blocks have flags too (--llama-server-config.n-ctx 8192) — see Model Configuration. Hitting an error? Check Troubleshooting.
<details> <summary>Prefer <code>curl</code>?</summary>
curl http://localhost:8000/modelship/v1/responses \
-H "Content-Type: application/json" \
-d '{"model": "qwen3-8b", "input": "Which is larger, 9.11 or 9.9?"}'
The response carries both output_text and a first-class reasoning output item. /modelship/v1/chat/completions is there too, if that's what your client speaks.
</details>
| Endpoint | Usecase |
|---|---|
POST /v1/chat/completions | Chat / text generation (streaming and non-streaming) |
POST /v1/responses | Responses API — text, reasoning, client-driven tool calls, server-side MCP tool execution, and stored conversations (streaming and non-streaming) |
GET/DELETE /v1/responses/{id} | Fetch or drop a stored response (/input_items lists its input); background: true on create + POST .../cancel for queued/pollable runs |
POST /v1/embeddings | Text embeddings |
POST /v1/audio/transcriptions | Speech-to-text |
POST /v1/audio/translations | Audio translation |
POST /v1/audio/speech | Text-to-speech (SSE streaming or single-response) |
POST /v1/images/generations | Image generation |
GET /v1/models | List available models |
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,模型部署 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | modelship |
| 原始描述 | 开源AI工具:Self-hosted, multi-model AI inference server. Run LLMs, TTS, STT, embeddings, an。⭐37 · Python |
| Topics | aiai-platformdiffusersembeddings |
| GitHub | https://github.com/alez007/modelship |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-06-17 · 更新时间:2026-06-20 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。