经 AI Skill Hub 精选评估,QuantumFlow AI技能包 获评「推荐使用」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 6.0 分,适合有一定技术背景的用户使用。
QuantumFlow AI技能包是可安装AI技能包,大语言模型。安装后AI可调用专属能力,适合开发者和运营人员。
QuantumFlow AI技能包 是一款基于 Python 开发的开源工具,专注于 installable、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
QuantumFlow AI技能包是可安装AI技能包,大语言模型。安装后AI可调用专属能力,适合开发者和运营人员。
QuantumFlow AI技能包 是一款基于 Python 开发的开源工具,专注于 installable、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install quantumflow
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install quantumflow
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/zimingttkx/QuantumFlow
cd QuantumFlow
pip install -e .
# 验证安装
python -c "import quantumflow; print('安装成功')"
# 命令行使用
quantumflow --help
# 基本用法
quantumflow input_file -o output_file
# Python 代码中调用
import quantumflow
# 示例
result = quantumflow.process("input")
print(result)
# quantumflow 配置文件示例(config.yml) app: name: "quantumflow" debug: false log_level: "INFO" # 运行时指定配置文件 quantumflow --config config.yml # 或通过环境变量配置 export QUANTUMFLOW_API_KEY="your-key" export QUANTUMFLOW_OUTPUT_DIR="./output"
🚀 下一代分布式大模型推理平台 — 让千亿参数模型跑在每台机器上
「像调度 Kubernetes Pods 一样调度 AI 推理任务」
</div>
---
| 🎯 核心能力 | 🌟 差异化亮点 | 🔧 技术优势 | 状态 |
|---|---|---|---|
| **智能调度** | Gang/Pack/自适应多策略 | 自动选择最优执行路径 | ✅ 已完成 |
| **分布式部署** | Redis队列 + Worker节点 | Controller与Worker完全解耦 | ✅ 已完成 |
| **多后端支持** | vLLM / HF / TGI / SGLang | 统一接口,灵活切换 | ✅ 已完成 |
| **GPU 优化** | BatchAccumulator / Chunked Prefill / Block VRAM | 单卡利用率 99%,显存精细管理 | ✅ 已完成 |
| **本地/分布式自适应** | 单GPU自动本地推理 | 多Worker自动分布式调度 | ✅ 已完成 |
| **国产硬件** | 昇腾NPU深度适配 | 打破 NVIDIA 垄断 | 📋 规划中 |
| **企业级** | ~~限流~~ / SDK / ~~多租户~~ / 容灾 | 开箱即用的生产特性 | 🔄 部分完成 |
| **多租户** | API Key认证 + 资源配额隔离 | 租户级别限流/调度/显存管理 | ✅ 已完成 |
| **SDK** | Python Sync/Async 客户端 | 原生多租户支持 (X-Tenant-ID) | ✅ 已完成 |
| **gRPC API** | 高性能 RPC 接口 | 降低延迟,提升吞吐 | ✅ 已完成 |
</div>
✅ 已完成 🔄 开发中 📋 规划中
| 模型 | 参数量 | 显存要求 | 状态 |
|---|---|---|---|
| Qwen2.5-1.5B | 1.5B | ~3GB | ✅ 已验证 |
| Qwen2.5-3B | 3B | ~6GB | ✅ 可加载 |
| Qwen2.5-7B | 7B | ~14GB | 📋 待测试 |
| LLaMA-3-8B | 8B | ~16GB | 📋 规划中 |
| Qwen2.5-72B | 72B | 4×24GB | 📋 分布式 |
git checkout -b feature/amazing-feature
client = SyncQuantumFlowClient( base_url="http://localhost:8000", api_key="qk_your_api_key", tenant_id="tenant-abc", # 可选:指定租户 )
git clone <repo-url>
cd QuantumFlow
pip install -e .
pip install sglang
python -m sglang.launch_server \ --model-path Qwen/Qwen2.5-7B-Instruct \ --port 30000
git clone https://github.com/quantumflow/quantumflow.git cd quantumflow pip install -e ".[dev]"
```bash
./scripts/qf
python -m quantumflow.cli serve ```
浏览器打开 http://localhost:8000 进入前端。
```yaml
docker run -d --gpus all -p 8080:80 \ -v /data/models:/data/models \ ghcr.io/huggingface/text-generation-inference:latest \ --model-id Qwen/Qwen2.5-7B-Instruct \ --trust-remote-code
pytest tests/ -v
curl -X POST http://localhost:8000/api/v1/inference/generate \ -H "Content-Type: application/json" \ -H "X-API-Key: qk_your_api_key" \ -d '{"model": "Qwen2.5-1.5B", "prompt": "Hello"}' ```
app: name: "QuantumFlow" environment: "production" log_level: "INFO"
scheduler: default_strategy: "adaptive" max_concurrent_requests: 5000 queue_max_size: 50000 strategies: gang: enabled: true timeout_seconds: 600 pack: enabled: true max_batch_size: 64
inference: default_backend: "huggingface" backends: huggingface: torch_compile: true # 启用 torch.compile 加速 prefill_chunk_size: 512 # Chunked Prefill 块大小 enable_chunked_prefill: true # 启用分块预填充 vllm: tensor_parallel_size: 1 gpu_memory_utilization: 0.80 max_model_len: 2048 enforce_eager: false enable_chunked_prefill: true
cluster: heartbeat_interval_seconds: 5 heartbeat_timeout_seconds: 60 ```
---
inference: default_backend: "tgi" backends: tgi: backend_type: "text-generation-inference" base_url: "http://localhost:8080" timeout: 300
bash
inference: default_backend: "sglang" backends: sglang: backend_type: "sglang" base_url: "http://localhost:30000" timeout: 300 # SGLang 特有参数 max_running_blocks: 128 mem_fraction_usable: 0.88
bash
grpc: enabled: true port: 50051 max_workers: 10 reflection_enabled: true rate_limit: enabled: true qps: 100 burst: 200 auth: enabled: false
python import grpc from quantumflow.grpc.generated import quantumflow_pb2, quantumflow_pb2_grpc
```bash
```python from quantumflow.sdk import SyncQuantumFlowClient
curl -X POST http://localhost:8000/api/v1/tenants/ \ -H "Content-Type: application/json" \ -d '{ "name": "team-alpha", "priority": 5, "quota": { "requests_per_minute": 120, "requests_per_day": 50000, "concurrent_requests": 20, "gpu_memory_mb": 16384 } }'
curl http://localhost:8000/api/v1/tenants/ \ -H "X-API-Key: qk_your_api_key"
gRPC 默认禁用,需在配置中开启:
```yaml
┌─────────────────────────────────────────┐
│ Gang Scheduling (大模型) │
│ │
│ Request: 72B Model, TP=8 │
│ │
│ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │
│ │ GPU0│ │ GPU1│ │ GPU2│ │ GPU3│ ... │
│ │ ✗ │ │ ✗ │ │ ✗ │ │ ✗ │ │
│ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │
│ └────────┼────────┼────────┘ │
│ ▼ │
│ All GPUs or Nothing │
│ │
│ ✅ 100B+ 模型的最优选择 │
│ ✅ 最小化通信开销 │
│ ✅ 保障模型一致性 │
└─────────────────────────────────────────┘
┌─────────────────────────────────────────┐
│ Pack Scheduling (小模型) │
│ │
│ Request: 7B Model × N │
│ │
│ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │
│ │Req 1│ │Req 2│ │Req 3│ │Req N│ │
│ │ ✗ │ │ ✗ │ │ ✗ │ │ ✗ │ │
│ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │
│ └────────┼────────┼────────┘ │
│ ▼ │
│ Shared GPU, Batched │
│ │
│ ✅ 最大化 GPU 利用率 │
│ ✅ 高并发处理 │
│ ✅ 降低单请求成本 │
└─────────────────────────────────────────┘
---
curl -X POST http://localhost:8000/api/v1/models/load \ -H "Content-Type: application/json" \ -d '{ "model": "Qwen2.5-7B", "backend": "tgi", "tgi_base_url": "http://localhost:8080" }' ```
curl -X POST http://localhost:8000/api/v1/models/load \ -H "Content-Type: application/json" \ -d '{ "model": "Qwen2.5-7B", "backend": "sglang", "sglang_base_url": "http://localhost:30000", "sglang_timeout": 300 }' ```
curl http://localhost:8000/api/v1/models/list
curl http://localhost:8000/api/v1/models/status
curl -X POST http://localhost:8000/api/v1/models/load \ -H "Content-Type: application/json" \ -d '{"model": "Qwen2.5-1.5B"}'
models = client.list_models()
client.close() ```
| 特性 | vLLM | HuggingFace | TGI | SGLang |
|---|---|---|---|---|
| PagedAttention | ✅ | - | ✅ | ✅ |
| Continuous Batching | ✅ | - | ✅ | ✅ |
| RadixAttention | - | - | - | ✅ |
| Chunked Prefill | ✅ | ✅ | ✅ | ✅ |
| torch.compile | - | ✅ | - | - |
| 结构化输出 | - | - | ✅ | ✅ |
| KV Cache 复用 | - | - | - | ✅ |
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:QuantumFlow AI技能包 的核心功能完整,质量良好。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | QuantumFlow |
| 原始描述 | 开源AI工具:QuantumFlow - Distributed LLM inference scheduling framework with multi-backend 。⭐44 · Python |
| Topics | installablepython |
| GitHub | https://github.com/zimingttkx/QuantumFlow |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。