项目
在 GitHub 查看
AndPuQing/gflow
AndPuQing/gflow has 105 GitHub stars and 9 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and +2 in 15 days. Last checked 2026-11-17 02:49 UTC. Last push 2026-11-11.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
A lightweight, single-node GPU job scheduler implemented in Rust.
机器学习README_CN.md
原文gflow
English | 简体中文
gflow 是一个面向单台 Linux 机器的轻量级任务调度器。它为共享 GPU 工作站和实验室服务器提供接近 Slurm 的工作流,但不需要部署集群。
为什么用 gflow
- 在一台机器上完成排队和调度。
- 提交命令或脚本,并声明 GPU、时间限制、依赖、数组任务和优先级。
- 用精简 CLI 查看、attach、取消和恢复任务。
安装
前置要求:Linux、tmux,以及可选的 NVIDIA 驱动(仅在需要 GPU 调度时)。
使用 Python 工具安装:
uv tool install runqd
# 或
pipx install runqd
# 或
pip install runqd
使用 Cargo 安装:
cargo install gflow
安装 Nightly 版本:
pip install --index-url https://test.pypi.org/simple/ runqd
快速开始
gflowd init
gflowd up
gbatch --gpus 1 --name demo bash -lc 'echo "hello from gflow"; sleep 30'
gqueue
gjob show <job_id>
gflowd down
MCP
gflow 也可以作为本地 MCP 服务器运行,供 Claude Desktop、Claude Code、Codex、Cursor 等工具调用:
gflow mcp serve
建议让同一台机器上的 gflowd 持续运行。MCP 客户端会按配置拉起本地 stdio server。
Claude Desktop 示例配置:
Claude Code:
claude mcp add --scope user gflow -- gflow mcp serve
Codex:
codex mcp add gflow -- gflow mcp serve
也可以直接写入 ~/.codex/config.toml:
[mcp_servers.gflow]
command = "gflow"
args = ["mcp", "serve"]
如果 gflow 不在 PATH 中,请改成二进制的绝对路径。
文档
更完整的内容见文档站:
Star History
贡献
欢迎提交 Issue 或 Pull Request。
许可证
MIT,详见 LICENSE。