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"
Self-hosted, multi-model AI inference server. Runs LLMs alongside specialized models (TTS, speech-to-text, embeddings, image generation) on GPU or CPU, exposing an OpenAI-compatible API. Built on Ray Serve with pluggable inference backends: vLLM for high-throughput GPU inference, HuggingFace Transformers for CPU and lightweight GPU workloads, llama.cpp for high-efficiency GGUF models on CPU, Diffusers for image generation, and a plugin system for custom backends.
models.yaml and run a cluster reconcile; changes are applied incrementally without interrupting the API gateway or unchanged models<think> blocks parsed into reasoning_content) and universal tool/function calling across vLLM, GGUF (llama.cpp), and Transformers backendsmodelship:* metrics, vLLM engine stats, Ray cluster metrics, structured JSON logging, and OpenTelemetry log export; pre-built Grafana dashboard and alerting rules includeduv for local development)The fastest way to try Modelship: run a tiny reasoning model on a laptop — no GPU required. Copy-paste this block and you'll have an OpenAI-compatible API on http://localhost:8000 in a few minutes.
mkdir -p models-cache && cat > models.yaml <<'EOF'
models:
- name: reasoning-qwen
model: "lmstudio-community/Qwen3-0.6B-GGUF:*Q4_K_M.gguf"
usecase: generate
loader: llama_cpp
num_cpus: 3
llama_cpp_config:
n_ctx: 4096 # Give reasoning space to think
EOF
docker run --rm --shm-size=8g \
-v ./models.yaml:/modelship/config/models.yaml \
-v ./models-cache:/.cache \
-p 8000:8000 \
ghcr.io/alez007/modelship:latest-cpu
Images are multi-arch (amd64 + arm64), so this works on Apple Silicon and ARM Linux hosts too.
Once the server is up (look for Deployed app 'modelship api' successfully), call it and watch the model think:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "reasoning-qwen",
"messages": [{"role": "user", "content": "Which is larger, 9.11 or 9.9?"}]
}'
| Endpoint | Usecase |
|---|---|
POST /v1/chat/completions | Chat / text generation (streaming and non-streaming) |
POST /v1/responses | Responses API — text, reasoning and client-driven tool calls (streaming and non-streaming) |
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 |
Modelship's TTS and STT systems are built around a plugin architecture — each backend is an opt-in package with its own isolated dependencies. Plugins ship inside this repo (plugins/) or can be installed from PyPI.
Built-in plugins:
pywhispercppTo enable plugins for local development, pass them as extras at sync time:
uv sync --extra kokoroonnx
uv sync --extra kokoroonnx --extra whispercpp # multiple plugins
For deployment, plugins are automatically loaded from standalone Python wheels via Ray's runtime_env when referenced in models.yaml. This ensures that complex backend dependencies don't pollute the main API gateway or other deployments.
For a full guide on writing your own plugin, see Plugin Development.
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-17 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。