| 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 | <path fill="#E8743B" d="M67,56 H67 A3,3 0 0 1 70,59 V109 A3,3 0 0 1 67,112 H67 A3,3 0 0 1 64,109 V59 A3,3 0 0 1 67,56 Z" /> |
| 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 | <path fill="url(#barAdptL)" d="M823,150 H835 A3,3 0 0 1 838,153 V165 A3,3 0 0 1 835,168 H823 A3,3 0 0 1 820,165 V153 A3,3 0 0 1 823,150 Z" /> |
| 22 | <text x="846" y="165" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="15" fill="#5B6776">Adapter L</text> |
| 23 | <path fill="url(#barAdptH)" d="M963,150 H975 A3,3 0 0 1 978,153 V165 A3,3 0 0 1 975,168 H963 A3,3 0 0 1 960,165 V153 A3,3 0 0 1 963,150 Z" /> |
| 24 | <text x="986" y="165" font-family=""Microsoft YaHei", Arial, sans-serif" font-size="15" fill="#5B6776">Adapter H</text> |
| 25 | <path fill="#2E7D32" d="M1103,150 H1115 A3,3 0 0 1 1118,153 V153 A3,3 0 0 1 1115,156 H1103 A3,3 0 0 1 1100,153 V153 A3,3 0 0 1 1103,150 Z" /> |
| 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 | <path fill="url(#barAdptL)" d="M284,536 H352 A4,4 0 0 1 356,540 V556 A4,4 0 0 1 352,560 H284 A4,4 0 0 1 280,556 V540 A4,4 0 0 1 284,536 Z" /> |
| 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 | <path fill="url(#barAdptH)" d="M370,527 H438 A4,4 0 0 1 442,531 V556 A4,4 0 0 1 438,560 H370 A4,4 0 0 1 366,556 V531 A4,4 0 0 1 370,527 Z" /> |
| 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 | <path fill="url(#barAdptL)" d="M604,506 H672 A4,4 0 0 1 676,510 V556 A4,4 0 0 1 672,560 H604 A4,4 0 0 1 600,556 V510 A4,4 0 0 1 604,506 Z" /> |
| 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 | <path fill="url(#barAdptH)" d="M690,469 H758 A4,4 0 0 1 762,473 V556 A4,4 0 0 1 758,560 H690 A4,4 0 0 1 686,556 V473 A4,4 0 0 1 690,469 Z" /> |
| 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 | <path fill="url(#barAdptL)" d="M924,335 H992 A4,4 0 0 1 996,339 V556 A4,4 0 0 1 992,560 H924 A4,4 0 0 1 920,556 V339 A4,4 0 0 1 924,335 Z" /> |
| 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 | <path fill="url(#barAdptH)" d="M1010,231 H1078 A4,4 0 0 1 1082,235 V556 A4,4 0 0 1 1078,560 H1010 A4,4 0 0 1 1006,556 V235 A4,4 0 0 1 1010,231 Z" /> |
| 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> |