sjakek's picture
Add visual analysis charts
cba1825 verified
<svg xmlns="http://www.w3.org/2000/svg" width="980" height="500" viewBox="0 0 980 500" role="img">
<rect width="100%" height="100%" fill="#ffffff"/>
<style>
.title { font: 700 22px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #1f2937; }
.subtitle { font: 400 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #6b7280; }
.label { font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #1f2937; }
.small { font: 400 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #6b7280; }
.axis { stroke: #e5e7eb; stroke-width: 1; }
.tick { font: 400 10px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #6b7280; }
.value { font: 700 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #1f2937; }
.node-title { font: 700 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #1f2937; }
.node-text { font: 400 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #6b7280; }
</style>
<text x="32" y="38" class="title">Why mixed quantization made local Mac training plausible</text><text x="32" y="60" class="subtitle">Storing experts as int8 reduces persistent weight size, but naive simultaneous gradients would still be too large.</text><text x="76" y="110" class="label">Stored mixed checkpoint estimate: 9.68 GB</text><rect x="76.0" y="128" width="608.6" height="52" fill="#059669" opacity="0.86"/><text x="380.3" y="159" text-anchor="middle" class="value" fill="#fff">7.75 GB</text><rect x="684.6" y="128" width="112.6" height="52" fill="#2563eb" opacity="0.86"/><text x="740.8" y="159" text-anchor="middle" class="value" fill="#fff">1.43 GB</text><rect x="797.1" y="128" width="39.3" height="52" fill="#d97706" opacity="0.86"/><text x="816.7" y="159" text-anchor="middle" class="value" fill="#fff">0.50 GB</text><rect x="76" y="208" width="13" height="13" fill="#059669" opacity="0.86"/><text x="96" y="219" class="small">Experts int8</text><rect x="256" y="208" width="13" height="13" fill="#2563eb" opacity="0.86"/><text x="276" y="219" class="small">Non-experts BF16</text><rect x="436" y="208" width="13" height="13" fill="#d97706" opacity="0.86"/><text x="456" y="219" class="small">Scales/metadata</text><text x="76" y="264" class="label">Gradient/update pressure alternatives</text><text x="76" y="280" class="small">Naive STE FP32 expert gradients</text><rect x="76" y="286" width="760.0" height="34" rx="4" fill="#dc2626" opacity="0.82"/><text x="846.0" y="309" class="value">31.0 GB</text><text x="76" y="334" class="small">BF16 expert gradients if supported</text><rect x="76" y="340" width="380.0" height="34" rx="4" fill="#d97706" opacity="0.82"/><text x="466.0" y="363" class="value">15.5 GB</text><text x="76" y="388" class="small">Compressed int8/sign update target</text><rect x="76" y="394" width="190.0" height="34" rx="4" fill="#059669" opacity="0.82"/><text x="276.0" y="417" class="value">7.8 GB</text>
</svg>