feat: 添加后端架构、计算模块及部署文档

This commit is contained in:
wuyongtao
2026-07-16 13:47:37 +08:00
parent 4050c120d5
commit ba4059fe3b
46 changed files with 1002 additions and 105 deletions

24
compute/README.md Normal file
View File

@@ -0,0 +1,24 @@
# Compute Platform
算力平台与应用平台分开部署,本目录用于后续实现单机多 GPU 调度、文件网关和训练引擎适配。
## 目录结构
```text
compute/
api/ # 只允许应用平台访问的内部 Compute API
agent/ # 单机 Agent负责 GPU、进程、工作区管理
engines/
llama_factory/ # LLaMA-Factory 训练引擎适配器
file_gateway/ # 本地磁盘上传、下载、预览、离线导入
tests/
```
## 第一版职责
- GPU 发现、状态上报、锁定和释放。
- 本地磁盘工作区管理。
- 创建、停止、查询训练/评测/推理/合并任务。
- LLaMA-Factory 命令生成、日志解析、产物收集。
- 分片上传、短时下载、离线导入。
- 通过服务间 token 接受应用平台调用。

View File

@@ -0,0 +1 @@
"""Compute agent package."""

1
compute/api/__init__.py Normal file
View File

@@ -0,0 +1 @@
"""Compute API package."""

View File

@@ -0,0 +1 @@
"""Training engine adapters package."""

View File

@@ -0,0 +1 @@
"""LLaMA-Factory engine adapter package."""

View File

@@ -0,0 +1 @@
"""Local file gateway package."""

View File

@@ -0,0 +1 @@
"""Compute platform tests package."""