| 1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720"> |
| 3 | <defs> |
| 4 | <linearGradient id="barAdptL" x1="0" y1="0" x2="0" y2="1"> |
| 5 | <stop offset="0%" stop-color="#5C97C7" /><stop offset="100%" stop-color="#3E7CB1" /> |
| 6 | </linearGradient> |
| 7 | <linearGradient id="barAdptH" x1="0" y1="0" x2="0" y2="1"> |
| 8 | <stop offset="0%" stop-color="#EE9461" /><stop offset="100%" stop-color="#E8743B" /> |
| 9 | </linearGradient> |
| 10 | </defs> |
| 11 | |
| 12 | <g id="bg"><rect width="1280" height="720" fill="#FFFFFF" /></g> |
| 13 | |
| 14 | <g id="header"> |
| 15 | <rect x="64" y="56" width="6" height="56" rx="3" fill="#E8743B" /> |
| 16 | <text x="86" y="90" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="32" font-weight="800" fill="#1B3A5C">Adapter 增延迟,LoRA 不增</text> |
| 17 | <text x="88" y="120" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#8A94A1" letter-spacing="1">GPT-2 MEDIUM 单次前向延迟增幅(100 次平均, RTX8000)</text> |
| 18 | </g> |
| 19 | |
| 20 | <g id="legend"> |
| 21 | <rect x="820" y="150" width="18" height="18" rx="3" fill="url(#barAdptL)" /> |
| 22 | <text x="846" y="165" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="15" fill="#5B6776">Adapter L</text> |
| 23 | <rect x="960" y="150" width="18" height="18" rx="3" fill="url(#barAdptH)" /> |
| 24 | <text x="986" y="165" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="15" fill="#5B6776">Adapter H</text> |
| 25 | <rect x="1100" y="150" width="18" height="6" rx="3" fill="#2E7D32" /> |
| 26 | <text x="1126" y="165" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="15" fill="#5B6776">LoRA / FT</text> |
| 27 | </g> |
| 28 | |
| 29 | <g id="chartArea"> |
| 30 | <line x1="160" y1="234" x2="1180" y2="234" stroke="#D8DEE6" stroke-width="1" stroke-dasharray="4,4" /> |
| 31 | <line x1="160" y1="343" x2="1180" y2="343" stroke="#D8DEE6" stroke-width="1" stroke-dasharray="4,4" /> |
| 32 | <line x1="160" y1="451" x2="1180" y2="451" stroke="#D8DEE6" stroke-width="1" stroke-dasharray="4,4" /> |
| 33 | <text x="145" y="239" text-anchor="end" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="13" fill="#8A94A1">+30%</text> |
| 34 | <text x="145" y="348" text-anchor="end" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="13" fill="#8A94A1">+20%</text> |
| 35 | <text x="145" y="456" text-anchor="end" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="13" fill="#8A94A1">+10%</text> |
| 36 | <text x="145" y="565" text-anchor="end" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="13" fill="#8A94A1">0</text> |
| 37 | <line x1="160" y1="180" x2="160" y2="560" stroke="#8A94A1" stroke-width="2" /> |
| 38 | <line x1="160" y1="560" x2="1180" y2="560" stroke="#2E7D32" stroke-width="4" /> |
| 39 | |
| 40 | |
| 41 | |
| 42 | <rect x="280" y="536" width="76" height="24" rx="4" fill="url(#barAdptL)" /> |
| 43 | <text x="318" y="528" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#3E7CB1">+2.2%</text> |
| 44 | <rect x="366" y="527" width="76" height="33" rx="4" fill="url(#barAdptH)" /> |
| 45 | <text x="404" y="519" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#E8743B">+3.0%</text> |
| 46 | <text x="361" y="590" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="16" fill="#5B6776">配置 A · 长序列</text> |
| 47 | |
| 48 | |
| 49 | <rect x="600" y="506" width="76" height="54" rx="4" fill="url(#barAdptL)" /> |
| 50 | <text x="638" y="498" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#3E7CB1">+5.0%</text> |
| 51 | <rect x="686" y="469" width="76" height="91" rx="4" fill="url(#barAdptH)" /> |
| 52 | <text x="724" y="461" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#E8743B">+8.4%</text> |
| 53 | <text x="681" y="590" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="16" fill="#5B6776">配置 B · 中等</text> |
| 54 | |
| 55 | |
| 56 | <rect x="920" y="335" width="76" height="225" rx="4" fill="url(#barAdptL)" /> |
| 57 | <text x="958" y="327" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#3E7CB1">+20.7%</text> |
| 58 | <rect x="1006" y="231" width="76" height="329" rx="4" fill="url(#barAdptH)" /> |
| 59 | <text x="1044" y="223" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="700" fill="#E8743B">+30.3%</text> |
| 60 | <text x="1001" y="590" text-anchor="middle" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="16" fill="#5B6776">配置 C · 短序列·在线</text> |
| 61 | </g> |
| 62 | |
| 63 | <g id="takeaway"> |
| 64 | <text x="170" y="615" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="14" font-weight="800" fill="#2E7D32" id="_edit_39">LoRA / FT 基线 = 0% 额外延迟(合并权重后)</text> |
| 65 | <text x="1180" y="620" text-anchor="end" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="15" fill="#1D2733">序列越短、batch 越小,Adapter 的延迟代价越突出</text> |
| 66 | </g> |
| 67 | |
| 68 | <g id="footer"> |
| 69 | <text x="64" y="700" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="11" fill="#8A94A1">来源:LoRA Table 1 · Hu et al. 2021</text> |
| 70 | <text x="1216" y="700" text-anchor="end" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="11" fill="#8A94A1">10 / 15</text> |
| 71 | </g> |
| 72 | </svg> |
| 73 |