aac0859a创建于 2025年11月20日历史提交
<svg width="800" height="600" xmlns="http://www.w3.org/2000/svg">
  <!-- 背景和标题 -->
  <rect width="800" height="600" fill="white"/>
  <text x="400" y="30" font-family="Arial" font-size="24" font-weight="bold" text-anchor="middle">sysHAX 系统架构图</text>
  <text x="400" y="50" font-family="Arial" font-size="16" text-anchor="middle">Heterogeneous Collaborative Acceleration Runtime</text>
  
  <!-- 外部接口层 -->
  <rect x="300" y="80" width="200" height="60" fill="#e6f7ff" stroke="#1890ff" stroke-width="2" rx="5"/>
  <text x="400" y="115" font-family="Arial" font-size="16" text-anchor="middle" fill="#1890ff">API接口层</text>
  <text x="400" y="135" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">/v1/chat/completions</text>
  
  <!-- 核心引擎 -->
  <rect x="300" y="160" width="200" height="60" fill="#f6ffed" stroke="#52c41a" stroke-width="2" rx="5"/>
  <text x="400" y="195" font-family="Arial" font-size="16" text-anchor="middle" fill="#52c41a">Engine 核心引擎</text>
  <text x="400" y="215" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">生命周期管理</text>
  
  <!-- 中间层组件 -->
  <rect x="100" y="260" width="180" height="60" fill="#fff7e6" stroke="#fa8c16" stroke-width="2" rx="5"/>
  <text x="190" y="295" font-family="Arial" font-size="16" text-anchor="middle" fill="#fa8c16">Scheduler 调度器</text>
  <text x="190" y="315" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">任务分配决策</text>
  
  <rect x="310" y="260" width="180" height="60" fill="#fff7e6" stroke="#fa8c16" stroke-width="2" rx="5"/>
  <text x="400" y="295" font-family="Arial" font-size="16" text-anchor="middle" fill="#fa8c16">MetricsService</text>
  <text x="400" y="315" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">性能指标收集</text>
  
  <rect x="520" y="260" width="180" height="60" fill="#fff7e6" stroke="#fa8c16" stroke-width="2" rx="5"/>
  <text x="610" y="295" font-family="Arial" font-size="16" text-anchor="middle" fill="#fa8c16">SystemMonitor</text>
  <text x="610" y="315" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">系统资源监控</text>
  
  <!-- 任务执行层 -->
  <rect x="300" y="360" width="200" height="60" fill="#f9f0ff" stroke="#722ed1" stroke-width="2" rx="5"/>
  <text x="400" y="395" font-family="Arial" font-size="16" text-anchor="middle" fill="#722ed1">Runner 任务执行器</text>
  <text x="400" y="415" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">请求处理与转发</text>
  
  <!-- 底层服务 -->
  <rect x="100" y="460" width="180" height="60" fill="#fff1f0" stroke="#f5222d" stroke-width="2" rx="5"/>
  <text x="190" y="495" font-family="Arial" font-size="16" text-anchor="middle" fill="#f5222d">GPU 服务</text>
  <text x="190" y="515" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">高性能推理</text>
  
  <rect x="520" y="460" width="180" height="60" fill="#fff1f0" stroke="#f5222d" stroke-width="2" rx="5"/>
  <text x="610" y="495" font-family="Arial" font-size="16" text-anchor="middle" fill="#f5222d">CPU 服务</text>
  <text x="610" y="515" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">大规模并发</text>
  
  <!-- 配置 -->
  <rect x="300" y="460" width="200" height="60" fill="#e6f7ff" stroke="#1890ff" stroke-width="2" rx="5"/>
  <text x="400" y="495" font-family="Arial" font-size="16" text-anchor="middle" fill="#1890ff">配置管理</text>
  <text x="400" y="515" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">config.yaml</text>
  
  <!-- 连接线条 -->
  <line x1="400" y1="140" x2="400" y2="160" stroke="#666" stroke-width="2"/>
  
  <line x1="400" y1="220" x2="190" y2="260" stroke="#666" stroke-width="2"/>
  <line x1="400" y1="220" x2="400" y2="260" stroke="#666" stroke-width="2"/>
  <line x1="400" y1="220" x2="610" y2="260" stroke="#666" stroke-width="2"/>
  
  <line x1="190" y1="320" x2="400" y2="360" stroke="#666" stroke-width="2"/>
  <line x1="400" y1="320" x2="400" y2="360" stroke="#666" stroke-width="2"/>
  <line x1="610" y1="320" x2="400" y2="360" stroke="#666" stroke-width="2"/>
  
  <line x1="400" y1="420" x2="190" y2="460" stroke="#666" stroke-width="2"/>
  <line x1="400" y1="420" x2="400" y2="460" stroke="#666" stroke-width="2"/>
  <line x1="400" y1="420" x2="610" y2="460" stroke="#666" stroke-width="2"/>
  
  <!-- 图例 -->
  <rect x="650" y="20" width="15" height="15" fill="#e6f7ff" stroke="#1890ff" stroke-width="2" rx="3"/>
  <text x="675" y="32" font-family="Arial" font-size="12" fill="#666" text-anchor="start">: 接口/配置层</text>
  
  <rect x="650" y="45" width="15" height="15" fill="#f6ffed" stroke="#52c41a" stroke-width="2" rx="3"/>
  <text x="675" y="57" font-family="Arial" font-size="12" fill="#666" text-anchor="start">: 核心层</text>
  
  <rect x="650" y="70" width="15" height="15" fill="#fff7e6" stroke="#fa8c16" stroke-width="2" rx="3"/>
  <text x="675" y="82" font-family="Arial" font-size="12" fill="#666" text-anchor="start">: 中间组件层</text>
  
  <rect x="650" y="95" width="15" height="15" fill="#f9f0ff" stroke="#722ed1" stroke-width="2" rx="3"/>
  <text x="675" y="107" font-family="Arial" font-size="12" fill="#666" text-anchor="start">: 执行层</text>
  
  <rect x="650" y="120" width="15" height="15" fill="#fff1f0" stroke="#f5222d" stroke-width="2" rx="3"/>
  <text x="675" y="132" font-family="Arial" font-size="12" fill="#666" text-anchor="start">: 服务层</text>
  
  <!-- 特性说明 -->
  <text x="400" y="550" font-family="Arial" font-size="14" font-weight="bold" text-anchor="middle" fill="#333">核心特性</text>
  <text x="400" y="570" font-family="Arial" font-size="12" text-anchor="middle" fill="#666">自动PD解耦 | 智能负载均衡 | 实时监控 | 性能优化</text>
</svg>