---
updatedAt: 2026-10-22T12:46:26.000Z
agentTools:
  projectIndex: https://docs.sixfab.com/llms.txt
---

# Deployment Workflow

A complete guide to compiling custom-trained ONNX models with DX-COM and deploying them to the DEEPX NPU covering the two-machine workflow, compiler requirements, and INT8 quantization across Sixfab AI HAT+, Edge AI Expansion Board, and ALPON X5 AI.

<HTMLBlock>{`


<style>
/* Theme guard: the docs container (.rm-ReadMe) decides light/dark once it carries
   data-color-mode; the html element is only the fallback before hydration. The
   :where(...) parts on the dark selectors below stop a light docs pane inside a
   non-light html element (ReadMe admin view) from picking up dark colors.
   They add no specificity. */
/* ═══════════════════════════════════════════════════════════════════════════
   1) FONTS — Gilroy + JetBrains Mono (DESIGN.md dual pairing)
═══════════════════════════════════════════════════════════════════════════ */
@font-face{font-family:'Gilroy';src:url('https://sixfab.com/wp-content/fonts/Gilroy-Regular.woff2')   format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Gilroy';src:url('https://sixfab.com/wp-content/fonts/Gilroy-Medium.woff2')    format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Gilroy';src:url('https://sixfab.com/wp-content/fonts/Gilroy-SemiBold.woff2')  format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Gilroy';src:url('https://sixfab.com/wp-content/fonts/Gilroy-Bold.woff2')      format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Gilroy';src:url('https://sixfab.com/wp-content/fonts/Gilroy-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono@2.304/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono@2.304/fonts/webfonts/JetBrainsMono-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}

/* ═══════════════════════════════════════════════════════════════════════════
   2) DESIGN TOKENS — Tier 1-5 from DESIGN.md, scoped to .sf-doc
═══════════════════════════════════════════════════════════════════════════ */
.sf-doc {
  /* Tier 1 — Core Brand */
  --primary:       #034860;
  --secondary:     #00E0B8;
  --tertiary:      #1B2D45;
  --neutral:       #E8F5F0;

  /* Tier 2 — Neutral & Interface */
  --white:         #FFFFFF;
  --light:         #F6F8F9;
  --line:          #DDE6EC;
  --slate-light:   #94A8B5;
  --slate:         #52667A;
  --deep-ink:      #10202E;

  /* Tier 3 — AI / Product Accent */
  --ai-iris:       #6B47F0;
  --ai-iris-hover: #5638E0;
  --ai-mist:       #F0EDFF;

  /* Tier 5 — Semantic */
  --success:       #00B894;
  --warning:       #F59E0B;
  --danger:        #DC2626;
  --info:          #429CBF;
  --success-text:  #047857;
  --warning-text:  #92400E;
  --danger-text:   #B91C1C;
  --info-text:     #0E4A66;
  --success-bg:    #E0F5EE;
  --warning-bg:    #FDF1DC;
  --danger-bg:     #FBE5E5;
  --info-bg:       #DCEFF7;

  /* On-color */
  --on-primary:    #FFFFFF;
  --on-secondary:  #1B2D45;
  --on-neutral:    #10202E;

  /* Gradients */
  --grad-neural:   linear-gradient(135deg, #1B2D45 0%, #6B47F0 50%, #00E0B8 100%);

  /* Spacing (DESIGN.md 4px base) */
  --xs: 4px; --sm: 8px; --md: 16px; --lg: 24px; --xl: 32px; --2xl: 48px; --3xl: 64px; --4xl: 96px;

  /* Rounded */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,23,33,0.04);
  --shadow-md: 0 4px 12px rgba(10,23,33,0.06);
  --shadow-lg: 0 12px 32px rgba(10,23,33,0.10);

  /* Typography stacks */
  --font-sans: 'Gilroy', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Wrapper base */
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--deep-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sf-doc *, .sf-doc *::before, .sf-doc *::after { box-sizing: border-box; }
.sf-doc * { margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   3) BASE TYPOGRAPHY — DESIGN.md canonical scale
═══════════════════════════════════════════════════════════════════════════ */
.sf-doc h1 {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--deep-ink);
  margin: 0 0 var(--md);
}
.sf-doc h2 {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin: var(--3xl) 0 var(--md);
  padding: 0;
  border: 0;
}
.sf-doc h2:first-child { margin-top: 0; }
.sf-doc h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--deep-ink);
  margin: var(--xl) 0 var(--md);
}
.sf-doc h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--deep-ink);
  margin: var(--lg) 0 var(--sm);
}
.sf-doc p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--deep-ink);
  margin: 0 0 var(--md);
}
.sf-doc p:last-child { margin-bottom: 0; }

.sf-doc ul, .sf-doc ol {
  margin: 0 0 var(--md);
  padding-left: var(--lg);
}
.sf-doc li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--deep-ink);
  margin-bottom: var(--xs);
}
.sf-doc li::marker { color: var(--primary); }
.sf-doc li strong { color: var(--deep-ink); font-weight: 600; }

/* Links */
.sf-doc a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration-color .15s;
}
.sf-doc a:hover { color: var(--deep-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Inline code (DESIGN.md code-inline: --light bg, --primary text, JetBrains Mono) */
.sf-doc code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: 500;
  background: var(--light);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.sf-doc .sf-table code,
.sf-doc .sf-callout code,
.sf-doc .sf-step__note code,
.sf-doc .sf-target__body code,
.sf-doc .sf-limit-card code,
.sf-doc .sf-machine__copy code,
.sf-doc .sf-spec__value code,
.sf-doc .sf-spec__note code { white-space: normal; overflow-wrap: anywhere; }

/* Body lead */
.sf-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--deep-ink);
  margin: 0 0 var(--lg);
}

/* Eyebrow */
.sf-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4) ICON HELPER
═══════════════════════════════════════════════════════════════════════════ */
.sf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; vertical-align: middle; fill: currentColor; overflow: visible;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5) HERO — sf-hero (compact, Tier 1 default surface)
═══════════════════════════════════════════════════════════════════════════ */
.sf-hero {
  padding: var(--xl);
  margin: 0 0 24px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}
.sf-hero__copy { min-width: 0; }

.sf-doc .sf-hero p.sf-hero__title,
.sf-doc .sf-hero .sf-hero__title {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--deep-ink);
  margin: 0 0 14px;
}
.sf-doc .sf-hero p.sf-hero__lead,
.sf-doc .sf-hero .sf-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--deep-ink);
  margin: 0 0 18px;
}
.sf-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 820px) {
  .sf-hero { padding: var(--lg); }
  .sf-doc .sf-hero p.sf-hero__title,
  .sf-doc .sf-hero .sf-hero__title { font-size: 2rem; }
  .sf-doc .sf-hero p.sf-hero__lead,
  .sf-doc .sf-hero .sf-hero__lead { font-size: 1rem; }
}
@media (max-width: 480px) {
  .sf-doc .sf-hero p.sf-hero__title,
  .sf-doc .sf-hero .sf-hero__title { font-size: 1.75rem; }
}

/* sf-hero--ai modifier — Neural Field gradient surface */
.sf-doc .sf-hero.sf-hero--ai {
  background: var(--grad-neural);
  border-color: transparent;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.sf-doc .sf-hero.sf-hero--ai::after {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.sf-doc .sf-hero.sf-hero--ai .sf-hero__copy { position: relative; z-index: 1; }
.sf-doc .sf-hero.sf-hero--ai p.sf-hero__title,
.sf-doc .sf-hero.sf-hero--ai .sf-hero__title { color: var(--white); }
.sf-doc .sf-hero.sf-hero--ai p.sf-hero__lead,
.sf-doc .sf-hero.sf-hero--ai .sf-hero__lead { color: rgba(255,255,255,0.92); }
.sf-doc .sf-hero.sf-hero--ai code {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-color: rgba(255,255,255,0.20);
}
.sf-doc .sf-hero.sf-hero--ai .sf-pill {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.20);
  backdrop-filter: blur(6px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6) PILL / BADGE
═══════════════════════════════════════════════════════════════════════════ */
.sf-pill {
  display: inline-flex; align-items: center; gap: var(--xs);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--light);
  color: var(--deep-ink);
  border: 1px solid var(--line);
  white-space: nowrap;
  line-height: 1.4;
}
.sf-pill--ai {
  background: var(--ai-iris);
  color: var(--white);
  border-color: var(--ai-iris);
  font-size: 0.875rem;
  font-weight: 700;
}
.sf-pill--mint {
  background: var(--secondary);
  color: var(--on-secondary);
  border-color: var(--secondary);
  font-weight: 700;
}
.sf-pill--mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7) AEO BLOCK
═══════════════════════════════════════════════════════════════════════════ */
.sf-aeo {
  position: relative;
  background: var(--light);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
  padding: var(--lg) var(--xl);
  margin: 0 0 var(--xl);
}
.sf-aeo--ai {
  background: var(--ai-mist);
  border-color: rgba(107,71,240,0.20);
  border-left-color: var(--ai-iris);
}
.sf-aeo__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-transform: none;
  color: var(--primary);
  margin: 0 0 var(--sm);
}
.sf-aeo--ai .sf-aeo__label { color: var(--ai-iris); }
.sf-aeo__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--deep-ink);
  margin: 0;
}
.sf-aeo__text strong { color: var(--primary); font-weight: 600; }
.sf-aeo--ai .sf-aeo__text strong { color: var(--ai-iris); }

/* ═══════════════════════════════════════════════════════════════════════════
   7B) META BAR
═══════════════════════════════════════════════════════════════════════════ */
.sf-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--sm);
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--slate);
  margin: 0 0 var(--lg);
}
.sf-meta__badge {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.75rem;
  padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--light); color: var(--primary);
  border: 1px solid var(--line);
}
.sf-meta__badge--mint {
  background: var(--neutral); color: var(--primary); border-color: var(--neutral);
}
.sf-meta__sep { color: var(--line); }

/* ═══════════════════════════════════════════════════════════════════════════
   7C) IN THIS GUIDE — sf-toc
═══════════════════════════════════════════════════════════════════════════ */
.sf-toc {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px;
  padding: var(--md) var(--lg);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 0 0 var(--xl);
}
.sf-toc__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate);
  margin-right: var(--sm);
}
.sf-toc__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--deep-ink);
  text-decoration: none !important;
  transition: border-color .15s; white-space: nowrap;
}
.sf-doc .sf-toc .sf-toc__item:hover,
.sf-doc .sf-toc .sf-toc__item:focus {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
  text-decoration: none !important;
}
.sf-doc .sf-toc .sf-toc__item:hover .sf-toc__num,
.sf-doc .sf-toc .sf-toc__item:focus .sf-toc__num {
  color: var(--secondary);
}
.sf-toc__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500; color: var(--slate);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8) CALLOUT — Tier 5 semantic + Tier 3 AI
═══════════════════════════════════════════════════════════════════════════ */
.sf-callout {
  display: flex; flex-direction: column; gap: var(--sm);
  border-radius: var(--r-md);
  padding: var(--md) var(--lg);
  margin: var(--lg) 0;
  border-left: 4px solid;
}
.sf-callout__header {
  display: flex; align-items: center; gap: var(--sm);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}
.sf-callout__content { font-size: 0.9375rem; line-height: 1.6; color: var(--deep-ink); }
.sf-callout__content p { margin: 0 0 var(--sm); font-size: 0.9375rem; color: inherit; }
.sf-callout__content p:last-child { margin-bottom: 0; }
.sf-callout__content a { color: inherit; text-decoration: underline; }
.sf-callout__content code { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.10); color: inherit; }
.sf-callout__content ol,
.sf-callout__content ul { margin: var(--xs) 0 var(--sm); padding-left: var(--lg); }
.sf-callout__content li { font-size: 0.9375rem; line-height: 1.55; color: inherit; margin-bottom: 4px; }
.sf-callout__content li:last-child { margin-bottom: 0; }
.sf-callout__content li::marker { color: currentColor; opacity: 0.7; }

.sf-callout--info    { background: var(--info-bg);    border-left-color: var(--info); }
.sf-callout--info    .sf-callout__header { color: var(--info-text); }
.sf-callout--success { background: var(--success-bg); border-left-color: var(--success); }
.sf-callout--success .sf-callout__header { color: var(--success-text); }
.sf-callout--warning { background: var(--warning-bg); border-left-color: var(--warning); }
.sf-callout--warning .sf-callout__header { color: var(--warning-text); }
.sf-callout--danger  { background: var(--danger-bg);  border-left-color: var(--danger); }
.sf-callout--danger  .sf-callout__header { color: var(--danger-text); }
.sf-callout--ai      { background: var(--ai-mist);    border-left-color: var(--ai-iris); }
.sf-callout--ai      .sf-callout__header { color: var(--ai-iris); }

/* ═══════════════════════════════════════════════════════════════════════════
   10) STEP LIST — sf-step-list--ai
═══════════════════════════════════════════════════════════════════════════ */
.sf-step-list { position: relative; padding: 0; margin: 24px 0 32px; }
.sf-step-list::before {
  content: ''; position: absolute;
  left: 19px; top: 40px; bottom: 40px;
  width: 2px; background: var(--line); z-index: 0;
}
.sf-step {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 0 18px; position: relative; z-index: 1;
  padding-bottom: 32px;
}
.sf-step:last-child { padding-bottom: 0; }
.sf-step__num {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--primary); color: var(--white);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--white);
  z-index: 1;
}
.sf-step-list--ai .sf-step__num {
  background: var(--ai-iris);
  color: var(--white);
}
.sf-step__body { padding-top: 0; min-width: 0; min-height: 40px; display: flex; flex-direction: column; justify-content: flex-start; }
.sf-doc .sf-step .sf-step__body h3.sf-step__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--deep-ink);
  margin: 0 0 10px;
  padding: 0;
}
.sf-doc .sf-step .sf-step__body p { font-size: 0.9375rem; color: var(--deep-ink); line-height: 1.65; margin: 0 0 12px; }
.sf-step__note {
  display: flex; align-items: flex-start; gap: var(--sm);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px var(--md);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--deep-ink);
  margin: var(--sm) 0 var(--md);
}
.sf-step__note .sf-icon { color: var(--info); margin-top: 2px; flex-shrink: 0; }
.sf-step__note strong { color: var(--deep-ink); font-weight: 600; }

@media (max-width: 640px) {
  .sf-step-list::before { left: 16px; }
  .sf-step { grid-template-columns: 34px 1fr; gap: 0 14px; }
  .sf-step__num { width: 34px; height: 34px; font-size: 0.8125rem; box-shadow: 0 0 0 4px var(--white); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11) TERMINAL BLOCK — always dark, theme-independent
═══════════════════════════════════════════════════════════════════════════ */
.sf-terminal {
  --t-bg: #0d1117; --t-hd: #161b22; --t-bdc: #30363d; --t-tx: #e6edf3;
  --t-dm: #8B949E; --t-gn: #56d364; --t-bl: #79c0ff; --t-yl: #e3b341;
  --t-pp: #d2a8ff; --t-rd: #ff7b72;
  background: var(--t-bg) !important;
  border: 1px solid var(--t-bdc) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  margin: var(--lg) 0;
}
.sf-terminal__header {
  display: flex !important;
  align-items: center !important;
  gap: var(--sm) !important;
  padding: 12px var(--md) !important;
  background: var(--t-hd) !important;
  border-bottom: 1px solid var(--t-bdc) !important;
}
.sf-terminal__dot {
  width: 11px; height: 11px;
  border-radius: var(--r-full);
  display: inline-block; flex-shrink: 0;
}
.sf-terminal__title {
  margin-left: 6px;
  font-family: var(--font-mono) !important;
  font-size: 0.6875rem !important;
  color: var(--t-dm) !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sf-terminal__badge {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px var(--sm);
  border-radius: var(--r-sm);
  background: rgba(86,211,100,0.15);
  color: var(--t-gn) !important;
  border: 1px solid rgba(86,211,100,0.30);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sf-terminal__body { padding: var(--md) var(--lg) !important; overflow-x: auto; background: var(--t-bg) !important; }
.sf-terminal pre, .sf-terminal__body pre {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--t-tx) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.8125rem !important;
  line-height: 1.75 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sf-terminal .t-dim { color: var(--t-dm) !important; }
.sf-terminal .t-gn  { color: var(--t-gn) !important; font-weight: 600; }
.sf-terminal .t-bl  { color: var(--t-bl) !important; }
.sf-terminal .t-yl  { color: var(--t-yl) !important; }
.sf-terminal .t-pp  { color: var(--t-pp) !important; }
.sf-terminal .t-rd  { color: var(--t-rd) !important; }
@media (max-width: 640px) {
  .sf-terminal pre, .sf-terminal__body pre { font-size: 0.75rem !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   15) PILL ROW (frameworks)
═══════════════════════════════════════════════════════════════════════════ */
.sf-pill-row { display: flex; flex-wrap: wrap; gap: var(--sm); margin: var(--md) 0 var(--lg); }

/* ═══════════════════════════════════════════════════════════════════════════
   16) LIMITATIONS GRID
═══════════════════════════════════════════════════════════════════════════ */
.sf-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--md);
  margin: var(--md) 0 var(--lg);
}
.sf-limit-card {
  display: flex; flex-direction: column; gap: var(--sm);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ai-iris);
  border-radius: var(--r-md);
  padding: var(--md) var(--lg);
}
.sf-limit-card__head {
  display: flex; align-items: center; gap: var(--sm);
  flex-wrap: wrap;
}
.sf-limit-card__icon {
  width: 18px; height: 18px;
  color: var(--ai-iris);
  flex-shrink: 0;
}
.sf-doc .sf-limit-card h4.sf-limit-card__title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--deep-ink);
  line-height: 1.3;
  margin: 0;
  flex: 1; min-width: 0;
}
.sf-limit-card__tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(220, 38, 38, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}
.sf-limit-card__tag--info {
  background: var(--info-bg);
  color: var(--info-text);
  border-color: rgba(66, 156, 191, 0.25);
}
.sf-limit-card__tag--warn {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: rgba(245, 158, 11, 0.25);
}
.sf-limit-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate);
}
.sf-limit-card p strong { color: var(--deep-ink); font-weight: 600; }
.sf-limit-card p code {
  font-size: 0.8125rem;
}
@media (max-width: 720px) {
  .sf-limit-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18) MACHINES — two-machine workflow visualization
═══════════════════════════════════════════════════════════════════════════ */
.sf-machines {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--md);
  margin: var(--md) 0 var(--xl);
}
.sf-machine {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--lg);
  overflow: hidden;
}
.sf-machine::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
}
.sf-machine--inference::before { background: var(--ai-iris); }
.sf-machine__role {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--sm);
}
.sf-machine__role-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.sf-machine--inference .sf-machine__role-dot { background: var(--ai-iris); }
.sf-machine__head {
  display: flex; align-items: center; gap: var(--sm);
  margin-bottom: var(--md);
}
.sf-machine__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sf-machine--inference .sf-machine__icon {
  background: var(--ai-mist);
  color: var(--ai-iris);
}
.sf-machine__icon svg { width: 24px; height: 24px; }
.sf-doc .sf-machine h3.sf-machine__title {
  font-family: var(--font-sans);
  font-size: 1.125rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep-ink);
  line-height: 1.25;
  margin: 0;
}
.sf-machine__subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  color: var(--slate);
  margin-top: 2px;
}
.sf-machine__copy {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--deep-ink);
  margin: 0 0 var(--md);
}
.sf-machine__copy code {
  font-size: 0.8125rem;
}
.sf-machine__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: var(--sm);
  border-top: 1px dashed var(--line);
}
.sf-machine__tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--light);
  color: var(--slate);
  border: 1px solid var(--line);
}
.sf-machine--inference .sf-machine__tag {
  background: var(--ai-mist);
  color: var(--ai-iris);
  border-color: rgba(107, 71, 240, 0.18);
}
.sf-machine__bridge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 0 var(--xs);
  min-width: 96px;
  align-self: center;
}
.sf-machine__bridge-line {
  width: 100%;
  display: flex; align-items: center; gap: 4px;
  color: var(--slate-light);
}
.sf-machine__bridge-rule {
  flex: 1;
  height: 0; border-top: 1.5px dashed currentColor;
}
.sf-machine__bridge svg {
  width: 18px; height: 18px;
  color: var(--slate);
  flex-shrink: 0;
}
.sf-machine__bridge-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.sf-machine__bridge-artifact {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  color: var(--primary);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}
@media (max-width: 820px) {
  .sf-machines { grid-template-columns: 1fr; }
  .sf-machine__bridge {
    flex-direction: row;
    min-width: 0;
    padding: var(--xs) 0;
  }
  .sf-machine__bridge-line { transform: rotate(90deg); width: 60px; }
  .sf-machine__bridge svg { transform: rotate(90deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18b) SPEC GRID — scannable spec cards
═══════════════════════════════════════════════════════════════════════════ */
.sf-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sm);
  margin: var(--md) 0 var(--lg);
}
.sf-spec {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px 14px 18px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.sf-spec::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
}
.sf-spec--optional::before {
  background: var(--slate-light);
}
.sf-spec:hover {
  border-color: var(--slate-light);
  box-shadow: var(--shadow-sm);
}
.sf-spec__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--light);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sf-spec--optional .sf-spec__icon {
  color: var(--slate);
}
.sf-spec__icon svg { width: 18px; height: 18px; }
.sf-spec__label {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.sf-spec__value {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 700;
  color: var(--deep-ink);
  line-height: 1.3;
  min-width: 0;
}
.sf-spec__value code {
  font-size: 0.8125rem; font-weight: 500;
}
.sf-spec__tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--light);
  color: var(--slate);
  border: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}
.sf-spec__note {
  grid-column: 2;
  grid-row: 3;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--slate);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.sf-spec__note code { font-size: 0.75rem; }
@media (max-width: 720px) {
  .sf-spec-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18c) PRODUCT TRANSFER GRID — per-product deploy targets
═══════════════════════════════════════════════════════════════════════════ */
.sf-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--md);
  margin: var(--md) 0 var(--lg);
}
.sf-target {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--md) var(--lg);
  overflow: hidden;
}
.sf-target::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ai-iris);
}
.sf-target__name {
  font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 700;
  color: var(--deep-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.sf-target__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--sm);
}
.sf-target__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}
.sf-target__body strong { color: var(--deep-ink); font-weight: 600; }
.sf-target__body code { font-size: 0.8125rem; }
@media (max-width: 820px) {
  .sf-targets { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   19) DARK MODE
═══════════════════════════════════════════════════════════════════════════ */
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc {
  --primary:       #034860;
  --secondary:     #00E0B8;
  --tertiary:      #1B2D45;
  --neutral:       #E8F5F0;

  --white:         #FFFFFF;
  --light:         #14222F;
  --line:          #2A3A4D;
  --slate-light:   #94A8B5;
  --slate:         #B5C3CE;
  --deep-ink:      #E8F5F0;

  --ai-mist:       #1A1538;

  --success-bg:    #052E1B;
  --warning-bg:    #2A1F05;
  --danger-bg:     #2A0E0E;
  --info-bg:       #0A2E3F;

  --success-text:  #34D399;
  --warning-text:  #FBBF24;
  --danger-text:   #F87171;
  --info-text:     #5CD3EE;

  --shadow-sm:     0 1px 2px rgba(0,0,0,0.30);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.40);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.55);
}
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc h1,
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc h3,
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc h4,
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc p,
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc li { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc li::marker { color: var(--secondary); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc h2 { color: var(--secondary); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-eyebrow { color: var(--secondary); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc a { color: var(--secondary); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc a:hover { color: var(--white); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc code { background: rgba(255,255,255,0.06); color: var(--secondary); border-color: rgba(255,255,255,0.10); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-aeo__text { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-aeo--ai { background: var(--ai-mist); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-aeo--ai .sf-aeo__label,
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-callout--ai .sf-callout__header { color: #B59CFF; }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-aeo--ai .sf-aeo__text strong { color: #B59CFF; }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-step .sf-step__body h3.sf-step__title { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-step__note { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-aeo { background: rgba(255,255,255,0.04); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-callout--info    { background: var(--info-bg); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-callout--success { background: var(--success-bg); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-callout--warning { background: var(--warning-bg); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-callout--danger  { background: var(--danger-bg); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-callout__content { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-pill { background: rgba(255,255,255,0.06); color: var(--neutral); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-meta__badge { background: rgba(255,255,255,0.06); color: var(--secondary); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-meta__badge--mint { background: rgba(0,224,184,0.14); color: var(--secondary); border-color: rgba(0,224,184,0.30); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-toc { background: rgba(255,255,255,0.04); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-toc__item { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-limit-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); border-left-color: var(--ai-iris); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-limit-card h4.sf-limit-card__title { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-limit-card p { color: var(--slate-light); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-limit-card p strong { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-machine { background: rgba(255,255,255,0.04); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-machine__icon { background: rgba(255,255,255,0.06); color: var(--secondary); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-machine--inference .sf-machine__icon { background: var(--ai-mist); color: #B59CFF; }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-machine__tag { background: rgba(255,255,255,0.06); color: var(--slate-light); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-machine--inference .sf-machine__tag { background: var(--ai-mist); color: #B59CFF; border-color: rgba(181,156,255,0.22); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-machine__bridge-artifact { background: rgba(255,255,255,0.06); color: var(--secondary); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-spec { background: rgba(255,255,255,0.04); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-spec__value { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-spec__icon { background: rgba(255,255,255,0.06); color: var(--secondary); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-target { background: rgba(255,255,255,0.04); border-color: var(--line); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-target__name { color: var(--neutral); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-target__body { color: var(--slate-light); }
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-target__body strong { color: var(--neutral); }

/* ═══════════════════════════════════════════════════════════════════════════
   20) CTA card (page-end cross-link)
═══════════════════════════════════════════════════════════════════════════ */
.sf-doc .sf-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ai-iris);
  border-radius: var(--r-xl);
  margin: var(--xl) 0 var(--lg);
  flex-wrap: wrap;
}
.sf-doc .sf-cta-card__copy { flex: 1; min-width: 240px; }
.sf-doc .sf-cta-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--deep-ink);
  margin: 0 0 4px;
}
.sf-doc .sf-cta-card__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}
.sf-doc .sf-cta-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--ai-iris);
  color: var(--on-primary) !important;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.sf-doc .sf-cta-card__btn:hover {
  background: var(--ai-iris-hover);
  transform: translateX(2px);
}
.sf-doc .sf-cta-card__btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2; fill: none;
}
[data-color-mode="dark"]:where(.rm-ReadMe,:not(:has(.rm-ReadMe:is([data-color-mode="light"],[data-color-mode="system"])))) .sf-doc .sf-cta-card { background: rgba(255,255,255,0.04); border-color: var(--line); }

/* ═══════════════════════════════════════════════════════════════════════════
   19b) DARK MODE — system preference mirror (full parity with the
        [data-color-mode="dark"] branch above; every declaration duplicated)
═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc {
    --primary:       #034860;
    --secondary:     #00E0B8;
    --tertiary:      #1B2D45;
    --neutral:       #E8F5F0;

    --white:         #FFFFFF;
    --light:         #14222F;
    --line:          #2A3A4D;
    --slate-light:   #94A8B5;
    --slate:         #B5C3CE;
    --deep-ink:      #E8F5F0;

    --ai-mist:       #1A1538;

    --success-bg:    #052E1B;
    --warning-bg:    #2A1F05;
    --danger-bg:     #2A0E0E;
    --info-bg:       #0A2E3F;

    --success-text:  #34D399;
    --warning-text:  #FBBF24;
    --danger-text:   #F87171;
    --info-text:     #5CD3EE;

    --shadow-sm:     0 1px 2px rgba(0,0,0,0.30);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.40);
    --shadow-lg:     0 12px 32px rgba(0,0,0,0.55);
  }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc h1,
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc h3,
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc h4,
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc p,
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc li { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc li::marker { color: var(--secondary); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc h2 { color: var(--secondary); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-eyebrow { color: var(--secondary); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc a { color: var(--secondary); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc a:hover { color: var(--white); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc code { background: rgba(255,255,255,0.06); color: var(--secondary); border-color: rgba(255,255,255,0.10); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-aeo__text { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-aeo--ai { background: var(--ai-mist); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-aeo--ai .sf-aeo__label,
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-callout--ai .sf-callout__header { color: #B59CFF; }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-aeo--ai .sf-aeo__text strong { color: #B59CFF; }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-step .sf-step__body h3.sf-step__title { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-step__note { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-aeo { background: rgba(255,255,255,0.04); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-callout--info { background: var(--info-bg); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-callout--success { background: var(--success-bg); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-callout--warning { background: var(--warning-bg); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-callout--danger { background: var(--danger-bg); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-callout__content { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-pill { background: rgba(255,255,255,0.06); color: var(--neutral); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-meta__badge { background: rgba(255,255,255,0.06); color: var(--secondary); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-meta__badge--mint { background: rgba(0,224,184,0.14); color: var(--secondary); border-color: rgba(0,224,184,0.30); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-toc { background: rgba(255,255,255,0.04); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-toc__item { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-limit-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); border-left-color: var(--ai-iris); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-limit-card h4.sf-limit-card__title { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-limit-card p { color: var(--slate-light); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-limit-card p strong { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-machine { background: rgba(255,255,255,0.04); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-machine__icon { background: rgba(255,255,255,0.06); color: var(--secondary); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-machine--inference .sf-machine__icon { background: var(--ai-mist); color: #B59CFF; }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-machine__tag { background: rgba(255,255,255,0.06); color: var(--slate-light); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-machine--inference .sf-machine__tag { background: var(--ai-mist); color: #B59CFF; border-color: rgba(181,156,255,0.22); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-machine__bridge-artifact { background: rgba(255,255,255,0.06); color: var(--secondary); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-spec { background: rgba(255,255,255,0.04); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-spec__value { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-spec__icon { background: rgba(255,255,255,0.06); color: var(--secondary); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-target { background: rgba(255,255,255,0.04); border-color: var(--line); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-target__name { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-target__body { color: var(--slate-light); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-target__body strong { color: var(--neutral); }
  :is(html:not([data-color-mode="light"]):where(:not(:has(.rm-ReadMe[data-color-mode="light"]))),:where(.rm-ReadMe:is([data-color-mode="system"],[data-color-mode="dark"]))) .sf-doc .sf-cta-card { background: rgba(255,255,255,0.04); border-color: var(--line); }
}
</style>


<svg xmlns="http://www.w3.org/2000/svg" style="display:none;position:absolute" aria-hidden="true">
  <symbol id="i-info" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></symbol>
  <symbol id="i-warn" viewBox="0 0 24 24"><path d="M12 2L1 21h22L12 2zm1 15h-2v-2h2v2zm0-4h-2V9h2v4z"></path></symbol>
  <symbol id="i-check" viewBox="0 0 24 24"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></symbol>
  <symbol id="i-bolt" viewBox="0 0 24 24"><path d="M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"></path></symbol>
  <symbol id="i-arrow-right" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"></path></symbol>
  <symbol id="i-spark" viewBox="0 0 24 24"><path d="M12 2l1.79 5.26L19 9l-5.21 1.74L12 16l-1.79-5.26L5 9l5.21-1.74L12 2zm6 11l.9 2.6L21 16.5l-2.1.9L18 20l-.9-2.6L15 16.5l2.1-.9L18 13zM6 14l1.2 3.4L10 18.5l-2.8 1.1L6 23l-1.2-3.4L2 18.5l2.8-1.1L6 14z"></path></symbol>
  <symbol id="i-cube" viewBox="0 0 24 24"><path d="M21 7v10l-9 5-9-5V7l9-5 9 5zm-9 4.31L19 7.5 12 4 5 7.5l7 3.81zM5 9.21V16l7 3.83V13.04L5 9.21zm14 0l-7 3.83v6.79L19 16V9.21z"></path></symbol>
  <symbol id="i-stack" viewBox="0 0 24 24"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path></symbol>
  <symbol id="i-clock" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z"></path></symbol>
  <symbol id="i-chart" viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"></path></symbol>
  <symbol id="i-server" viewBox="0 0 24 24"><path d="M4 4h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 9h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm2 3h2v2H6v-2zm0-9h2v2H6V7z"></path></symbol>
  <symbol id="i-board" viewBox="0 0 24 24"><path d="M4 4h16a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm2 2v12h12V6H6zm2 2h8v8H8V8zm-1 9h2v1H7v-1zm4 0h2v1h-2v-1zm4 0h2v1h-2v-1zM7 5h2v1H7V5zm4 0h2v1h-2V5zm4 0h2v1h-2V5z"></path></symbol>
  <symbol id="i-cpu" viewBox="0 0 24 24"><path d="M9 2h2v3H9V2zm4 0h2v3h-2V2zM9 19h2v3H9v-3zm4 0h2v3h-2v-3zM2 9h3v2H2V9zm0 4h3v2H2v-2zm17-4h3v2h-3V9zm0 4h3v2h-3v-2zM6 6h12a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm2 2v8h8V8H8z"></path></symbol>
  <symbol id="i-memory" viewBox="0 0 24 24"><path d="M3 8h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H5v-2H3a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1zm1 2v4h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-4H4z"></path></symbol>
  <symbol id="i-disk" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-13a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"></path></symbol>
  <symbol id="i-terminal" viewBox="0 0 24 24"><path d="M3 4h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm1 2v12h16V6H4zm2.5 3l3 3-3 3-1-1 2-2-2-2 1-1zm5 5h5v1.5h-5V14z"></path></symbol>
  <symbol id="i-gpu" viewBox="0 0 24 24"><path d="M2 7h18a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2v2h-2v-2H6v2H4v-2H2V7zm2 2v6h16V9H4zm3 1.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm7-1.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path></symbol>
  <symbol id="i-package" viewBox="0 0 24 24"><path d="M12 2 2 6.5v11L12 22l10-4.5v-11L12 2zm0 2.18L19.5 7.5 12 10.82 4.5 7.5 12 4.18zM4 9.21l7 3.11v7.45l-7-3.13V9.21zm9 10.56v-7.45l7-3.11v7.43l-7 3.13z"></path></symbol>
  <symbol id="i-wifi" viewBox="0 0 24 24"><path d="M12 21l3-3a4.24 4.24 0 0 0-6 0l3 3zm0-6a8.24 8.24 0 0 0-6 2.5l1.5 1.5a6.24 6.24 0 0 1 9 0L18 17.5A8.24 8.24 0 0 0 12 15zm0-4a12 12 0 0 0-8.5 3.5L5 16a10 10 0 0 1 14 0l1.5-1.5A12 12 0 0 0 12 11zm0-4a16 16 0 0 0-11 4.5L2.5 13a14 14 0 0 1 19 0L23 11.5A16 16 0 0 0 12 7z"></path></symbol>
</svg>


<div class="sf-doc">

  
  <header class="sf-hero sf-hero--ai">
    <div class="sf-hero__copy">
      <p class="sf-hero__title">Deployment Workflow</p>
      <p class="sf-hero__lead">

        End-to-end guide for compiling custom-trained ONNX models and deploying them on the DEEPX NPU
        across Sixfab AI HAT+ for Raspberry Pi 5, Sixfab Edge AI Expansion Board, and ALPON X5 AI. The
        two-machine workflow — compile once on an Ubuntu host, run forever on the target Sixfab
        device — is the same on all three products. No cloud service, no GPU at inference time.
      </p>
      <div class="sf-hero__chips">
        <span class="sf-pill sf-pill--mono">ONNX → DXNN</span>
        <span class="sf-pill sf-pill--mono">INT8 precision</span>
        <span class="sf-pill sf-pill--mono">Two-machine workflow</span>
        <span class="sf-pill sf-pill--mono">Offline inference</span>
      </div>
    </div>
  </header>

  
  <div class="sf-meta">
    <span class="sf-meta__badge">Edge AI Platform</span>
    <span class="sf-meta__sep">·</span>
    <span class="sf-meta__badge sf-meta__badge--mint">Models &amp; Deployment</span>
    <span class="sf-meta__sep">·</span>
    <span>Custom Models (DXNN SDK)</span>
    <span class="sf-meta__sep">·</span>
    <span>Deployment Workflow</span>
    <span class="sf-meta__sep">·</span>
    <span>Updated 2026-05-16</span>
  </div>

  
  <div class="sf-aeo sf-aeo--ai">
    <span class="sf-aeo__label">How do I deploy a custom model on Sixfab edge AI hardware?</span>
    <p class="sf-aeo__text">

      The <strong>DXNN SDK</strong> converts a trained ONNX model into a <code>.dxnn</code> binary
      that the DEEPX NPU can execute. The compiler runs once on an Ubuntu x86_64 machine; the
      resulting <code>.dxnn</code> file then runs offline on Sixfab AI HAT+, Edge AI Expansion
      Board, or ALPON X5 AI via the <code>dxrt-runtime</code> package on the target device.
      Quantisation to INT8 is automatic, with approximately 2 % accuracy loss versus the original
      FP32 model.
    </p>
  </div>

  
  <nav class="sf-toc" aria-label="On this page">
    <span class="sf-toc__label">In this guide</span>
    <a href="#workflow"     class="sf-toc__item"><span class="sf-toc__num">01</span>Two-machine workflow</a>
    <a href="#requirements" class="sf-toc__item"><span class="sf-toc__num">02</span>Compiler requirements</a>
    <a href="#conversion"   class="sf-toc__item"><span class="sf-toc__num">03</span>Conversion path</a>
    <a href="#ultralytics"  class="sf-toc__item"><span class="sf-toc__num">04</span>Sixfab × Ultralytics</a>
    <a href="#libraries"    class="sf-toc__item"><span class="sf-toc__num">05</span>Compatible libraries</a>
    <a href="#limitations"  class="sf-toc__item"><span class="sf-toc__num">06</span>Limitations</a>
  </nav>

  <p class="sf-lead">

    This page is the operational end-to-end guide. It walks through the three-stage conversion
    path, the constraints that catch most teams on their first deployment, and the partnership
    track that takes you from a labelled dataset to a deployed custom model in days. For the full
    JSON parameter reference of <code>config.json</code>, see the companion
    <a href="https://docs.sixfab.com/docs/ai-model-deployment-dx-com-configuration" target="_blank" rel="noopener">DX-COM Configuration Reference</a>.
  </p>


  
  <h2 id="workflow">The two-machine workflow</h2>
  <p>

    Custom-model deployment on Sixfab edge AI hardware is split between two machines because
    compilation is expensive and inference is not. Compilation runs <em>once</em> per model, on a
    desktop. Inference runs <em>every frame</em>, on the target device.
  </p>

  <div class="sf-callout sf-callout--info">
    <div class="sf-callout__header">
      <svg class="sf-icon" width="18" height="18"><use href="#i-info"></use></svg>
      <span>Compile once on Ubuntu, run forever on the target</span>
    </div>
    <div class="sf-callout__content">
      <p>

        The DEEPX compiler (DX-COM) requires Ubuntu x86_64 with at least 16 GB of RAM. The
        <code>dxrt-runtime</code> on the target device — Raspberry Pi 5 with AI HAT+ or Edge AI
        Expansion Board, or ALPON X5 AI — only loads and executes the compiled <code>.dxnn</code>
        file. No compiler toolchain is needed on the target. Once a model is compiled, it runs
        indefinitely without an internet connection.
      </p>
    </div>
  </div>

  <div class="sf-machines">
    
    <div class="sf-machine sf-machine--compile">
      <span class="sf-machine__role">
        <span class="sf-machine__role-dot"></span>
        Stage 1 · Compile
      </span>
      <div class="sf-machine__head">
        <span class="sf-machine__icon"><svg><use href="#i-server"></use></svg></span>
        <div>
          <h3 class="sf-machine__title">DX-COM compiler</h3>
          <div class="sf-machine__subtitle">Ubuntu x86_64 host</div>
        </div>
      </div>
      <p class="sf-machine__copy">

        Converts a trained ONNX model into an optimised <code>.dxnn</code> file for the DEEPX
        NPU. Quantises automatically to INT8. Runs once per model, on a desktop or a Kaggle
        Notebook.
      </p>
      <div class="sf-machine__tags">
        <span class="sf-machine__tag">One-time</span>
        <span class="sf-machine__tag">CPU only</span>
        <span class="sf-machine__tag">≥ 16 GB RAM</span>
      </div>
    </div>

    
    <div class="sf-machine__bridge" aria-hidden="true">
      <span class="sf-machine__bridge-artifact"><code>.dxnn</code></span>
      <div class="sf-machine__bridge-line">
        <span class="sf-machine__bridge-rule"></span>
        <svg><use href="#i-arrow-right"></use></svg>
        <span class="sf-machine__bridge-rule"></span>
      </div>
      <span class="sf-machine__bridge-label">Deploy</span>
    </div>

    
    <div class="sf-machine sf-machine--inference">
      <span class="sf-machine__role">
        <span class="sf-machine__role-dot"></span>
        Stage 2 · Run
      </span>
      <div class="sf-machine__head">
        <span class="sf-machine__icon"><svg><use href="#i-board"></use></svg></span>
        <div>
          <h3 class="sf-machine__title"><code>dxrt-runtime</code></h3>
          <div class="sf-machine__subtitle">Target Sixfab device</div>
        </div>
      </div>
      <p class="sf-machine__copy">

        Loads and executes the compiled <code>.dxnn</code> file on the DEEPX NPU. Runs on
        Raspberry Pi 5 with AI HAT+ or Edge AI Expansion Board, and on ALPON X5 AI. No compiler
        dependencies on the target; the runtime artifact is portable across the three products.
      </p>
      <div class="sf-machine__tags">
        <span class="sf-machine__tag">Every frame</span>
        <span class="sf-machine__tag">NPU only</span>
        <span class="sf-machine__tag">Offline</span>
      </div>
    </div>
  </div>

  <div class="sf-callout sf-callout--info">
    <div class="sf-callout__header">
      <svg class="sf-icon" width="18" height="18"><use href="#i-cube"></use></svg>
      <span>One <code>.dxnn</code> file, three deployment targets</span>
    </div>
    <div class="sf-callout__content">
      <p>

        The same compiled <code>.dxnn</code> file runs on all three Sixfab edge AI products
        without modification. The DEEPX DX-M1 family (DX-M1, DX-M1M, DX-M1ML) shares a unified
        instruction set, so a model compiled for the DEEPX NPU is portable across AI HAT+, Edge
        AI Expansion Board, and ALPON X5 AI. The only practical constraint is on-chip NPU memory:
        a model that fits the larger 25-TOPS variants may not fit the 13-TOPS DX-M1ML envelope on
        AI HAT+.
      </p>
    </div>
  </div>


  
  <h2 id="requirements">Compiler machine requirements</h2>
  <p class="sf-lead">

    DX-COM must run on a separate Ubuntu x86_64 machine, not on the target Sixfab device. Every
    item below is required unless tagged <span class="sf-spec__tag" style="vertical-align:1px">Optional</span>.
  </p>

  <div class="sf-spec-grid">
    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-cpu"></use></svg></span>
      <span class="sf-spec__label">CPU architecture</span>
      <span class="sf-spec__value"><code>x86_64</code></span>
      <span class="sf-spec__note">ARM and aarch64 are not supported for compilation.</span>
    </div>

    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-terminal"></use></svg></span>
      <span class="sf-spec__label">Operating system</span>
      <span class="sf-spec__value">Ubuntu 20.04 / 22.04 / 24.04</span>
      <span class="sf-spec__note">Ubuntu 18.04 is not supported.</span>
    </div>

    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-package"></use></svg></span>
      <span class="sf-spec__label">glibc</span>
      <span class="sf-spec__value">≥ 2.31</span>
      <span class="sf-spec__note">Verify with <code>ldd --version</code>.</span>
    </div>

    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-stack"></use></svg></span>
      <span class="sf-spec__label">Python</span>
      <span class="sf-spec__value">3.8/3.9/3.10/3.11/3.12/3.13/3.14</span>
      <span class="sf-spec__note">Required by the DX-COM wheel.</span>
    </div>

    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-memory"></use></svg></span>
      <span class="sf-spec__label">RAM</span>
      <span class="sf-spec__value">≥ 16 GB</span>
      <span class="sf-spec__note">Minimum for model compilation.</span>
    </div>

    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-disk"></use></svg></span>
      <span class="sf-spec__label">Disk space</span>
      <span class="sf-spec__value">≥ 20 GB free</span>
      <span class="sf-spec__note">Toolchain, dependencies, and intermediate build artifacts.</span>
    </div>

    <div class="sf-spec">
      <span class="sf-spec__icon"><svg><use href="#i-wifi"></use></svg></span>
      <span class="sf-spec__label">Internet</span>
      <span class="sf-spec__value">Required for install</span>
      <span class="sf-spec__note">Needed for the initial repository clone and <code>pip install</code>. Inference itself runs offline.</span>
    </div>

    <div class="sf-spec sf-spec--optional">
      <span class="sf-spec__icon"><svg><use href="#i-gpu"></use></svg></span>
      <span class="sf-spec__label">

        GPU
        <span class="sf-spec__tag">Optional</span>
      </span>
      <span class="sf-spec__value">CPU compilation only</span>
      <span class="sf-spec__note">No CUDA or accelerator required on the host machine.</span>
    </div>
  </div>

  <div class="sf-callout sf-callout--success">
    <div class="sf-callout__header">
      <svg class="sf-icon" width="18" height="18"><use href="#i-spark"></use></svg>
      <span>No Ubuntu workstation? Compile in Kaggle, no local hardware required.</span>
    </div>
    <div class="sf-callout__content">
      <p>

        Kaggle Notebooks run on Linux x86_64 with sufficient RAM, a compatible glibc, and
        internet access out of the box. Every requirement listed above is met by the free
        Kaggle environment, and Sixfab maintains a reference notebook that walks through the
        full ONNX → DXNN compile flow without installing anything on a local machine.
      </p>
      <p><strong>What the notebook does end-to-end:</strong></p>
      <ol>
        <li>Clones the <code>DEEPX-AI/dx-compiler</code> repository into the Kaggle working directory.</li>
        <li>Runs <code>install.sh</code> with a Docker volume path to stage the toolchain.</li>
        <li>Installs the DX-COM Python wheel (<code>pip install dx_com*.whl</code>).</li>
        <li>Installs <code>ultralytics</code> and exports a YOLO model to ONNX. The notebook ships with <code>yolo11n</code> as a worked example; swap in your own <code>.onnx</code> file.</li>
        <li>Writes a <code>config.json</code> with input shape, calibration settings, preprocessing, and PPU configuration.</li>
        <li>Runs <code>dxcom</code> against the ONNX model and config, then produces the compiled <code>.dxnn</code> artifact.</li>
      </ol>
      <p>

        Download the resulting <code>.dxnn</code> file from the Kaggle output panel and copy it
        to the target Sixfab device to run inference. See Stage 3 below for the runtime call.
      </p>
    </div>
  </div>

  <div class="sf-step__note">
    <svg class="sf-icon" width="16" height="16"><use href="#i-chart"></use></svg>
    <span>

      Compilation is one-time. Once compiled, the <code>.dxnn</code> file loads in milliseconds
      on the target device.
    </span>
  </div>


  
  <h2 id="conversion">Conversion path: ONNX → DXNN → deployed artifact</h2>
  <p>

    Three stages take a trained model from a development machine onto the NPU. Each stage runs
    in a different environment and produces a different artifact.
  </p>

  <div class="sf-step-list sf-step-list--ai">

    
    <div class="sf-step">
      <div class="sf-step__num">1</div>
      <div class="sf-step__body">
        <h3 class="sf-step__title">Export the trained model to ONNX</h3>
        <p>

          Train the model in any major framework, then export to ONNX on the development
          machine. ONNX is the only input format DX-COM accepts.
        </p>

        <div class="sf-pill-row">
          <span class="sf-pill">PyTorch</span>
          <span class="sf-pill">Ultralytics YOLO</span>
          <span class="sf-pill">TensorFlow</span>
          <span class="sf-pill">Keras</span>
          <span class="sf-pill">ONNX Model Zoo</span>
        </div>

        <p>

          Vision architectures — object detection, classification, segmentation, pose — are the
          supported scope on current DEEPX silicon. LLMs and audio-only transformer architectures
          are not supported today; LLMs are on the DEEPX roadmap and Sixfab will support them as
          the silicon enables.
        </p>

        <h4>PyTorch export</h4>
        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">python: export PyTorch model to ONNX</span>
            <span class="sf-terminal__badge">Ubuntu host</span>
          </div>
          <div class="sf-terminal__body">
<pre><span class="t-pp">import</span> torch

<span class="t-dim"># 1. Load your trained model and switch to eval mode</span>

model.<span class="t-gn">eval</span>()

<span class="t-dim"># 2. Provide a dummy input matching the production input shape</span>

dummy_input = torch.<span class="t-gn">randn</span>(<span class="t-bl">1</span>, <span class="t-bl">3</span>, <span class="t-bl">640</span>, <span class="t-bl">640</span>)

<span class="t-dim"># 3. Export to ONNX (opset 11 is widely compatible with DX-COM)</span>

torch.onnx.<span class="t-gn">export</span>(
    model, dummy_input,
    <span class="t-yl">"my_model.onnx"</span>,
    opset_version=<span class="t-bl">11</span>,
    input_names=[<span class="t-yl">"images"</span>],
    output_names=[<span class="t-yl">"output"</span>]
)</pre>
          </div>
        </div>

        <h4>Ultralytics YOLO export</h4>
        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">python: export Ultralytics YOLO to ONNX</span>
            <span class="sf-terminal__badge">Ubuntu host</span>
          </div>
          <div class="sf-terminal__body">
<pre><span class="t-pp">from</span> ultralytics <span class="t-pp">import</span> YOLO

model = <span class="t-gn">YOLO</span>(<span class="t-yl">"yolo11n.pt"</span>)
model.<span class="t-gn">export</span>(format=<span class="t-yl">"onnx"</span>)
<span class="t-dim"># Produces yolo11n.onnx in the working directory.</span></pre>
          </div>
        </div>

        <div class="sf-step__note">
          <svg class="sf-icon" width="16" height="16"><use href="#i-info"></use></svg>
          <span>
            <strong>Batch size must be 1.</strong> Ultralytics exports with batch size 1 by
            default. For custom exports, set the batch dimension to <code>1</code> — DX-COM does
            not support dynamic or multi-batch compilation via the CLI.
          </span>
        </div>

        <div class="sf-step__note">
          <svg class="sf-icon" width="16" height="16"><use href="#i-info"></use></svg>
          <span>

            Verify the operators in the exported ONNX graph against the DEEPX-supported list
            <em>before</em> compiling. Full operator and architecture reference:
            <a href="/docs/ai-model-deployment-supported-models" target="_blank" rel="noopener">Supported Models Catalog</a>.
            Upstream source:
            <a href="https://github.com/DEEPX-AI/dx-compiler/blob/main/source/docs/03_Building_Models.md" target="_blank" rel="noopener">github.com/DEEPX-AI/dx-compiler · Building_Models.md</a>.
          </span>
        </div>
      </div>
    </div>

    
    <div class="sf-step">
      <div class="sf-step__num">2</div>
      <div class="sf-step__body">
        <h3 class="sf-step__title">Compile ONNX to DXNN with DX-COM</h3>
        <p>

          DX-COM reads the ONNX file, calibrates it for INT8 arithmetic, and produces a
          <code>.dxnn</code> binary that runs natively on the DEEPX DX-M1 family NPU. Quantisation
          is automatic — expect approximately 2 % accuracy loss versus the original FP32 model.
          This is the published, honest accuracy envelope for INT8 inference on DEEPX silicon.
        </p>

        <h4>Install DX-COM</h4>
        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">bash: clone and install DX-COM</span>
            <span class="sf-terminal__badge">Ubuntu x86_64</span>
          </div>
          <div class="sf-terminal__body">
<pre><span class="t-dim"># 1. Clone the DEEPX compiler repository</span>
<span class="t-gn">git</span> clone https://github.com/DEEPX-AI/dx-compiler
<span class="t-gn">cd</span> dx-compiler

./install.sh

<span class="t-dim"># 2. Install the Python wheel</span>
<span class="t-gn">cd</span> dx_com
<span class="t-gn">pip</span> install dx_com*.whl

<span class="t-dim"># 3. Verify the installation</span>
<span class="t-gn">dxcom</span> --version    <span class="t-dim"># expected: DX-COM v2.3.0</span></pre>
          </div>
        </div>

        <h4>Prepare a calibration dataset</h4>
        <p>

          Quantisation requires calibration data — a small set of representative images the
          compiler uses to estimate activation ranges. Use images from your deployment domain;
          random stock images degrade quantised accuracy. Start with 100 images.
        </p>

        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">directory layout</span>
          </div>
          <div class="sf-terminal__body">
<pre>calibration_images/
├── frame_0001.jpg
├── frame_0002.jpg
└── ...</pre>
          </div>
        </div>

        <h4>Write <code>config.json</code> and compile</h4>
        <p>

          DX-COM is driven by a JSON configuration file describing input shape, calibration
          settings, and the preprocessing pipeline. A minimal YOLOv11n configuration:
        </p>

        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">config.json (minimal)</span>
          </div>
          <div class="sf-terminal__body">
<pre>{
  <span class="t-yl">"inputs"</span>:             {<span class="t-yl">"images"</span>: [<span class="t-bl">1</span>, <span class="t-bl">3</span>, <span class="t-bl">640</span>, <span class="t-bl">640</span>]},
  <span class="t-yl">"calibration_method"</span>: <span class="t-yl">"ema"</span>,
  <span class="t-yl">"calibration_num"</span>:    <span class="t-bl">100</span>,
  <span class="t-yl">"default_loader"</span>: {
    <span class="t-yl">"dataset_path"</span>:    <span class="t-yl">"./calibration_images"</span>,
    <span class="t-yl">"file_extensions"</span>: [<span class="t-yl">"jpeg"</span>, <span class="t-yl">"jpg"</span>, <span class="t-yl">"png"</span>],
    <span class="t-yl">"preprocessings"</span>: [
      {<span class="t-yl">"resize"</span>:       {<span class="t-yl">"width"</span>: <span class="t-bl">640</span>, <span class="t-yl">"height"</span>: <span class="t-bl">640</span>}},
      {<span class="t-yl">"convertColor"</span>: {<span class="t-yl">"form"</span>: <span class="t-yl">"BGR2RGB"</span>}},
      {<span class="t-yl">"div"</span>:          {<span class="t-yl">"x"</span>: <span class="t-bl">255</span>}},
      {<span class="t-yl">"transpose"</span>:    {<span class="t-yl">"axis"</span>: [<span class="t-bl">2</span>, <span class="t-bl">0</span>, <span class="t-bl">1</span>]}},
      {<span class="t-yl">"expandDim"</span>:    {<span class="t-yl">"axis"</span>: <span class="t-bl">0</span>}}
    ]
  }
}</pre>
          </div>
        </div>

        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">bash: compile ONNX → DXNN</span>
            <span class="sf-terminal__badge">Ubuntu x86_64</span>
          </div>
          <div class="sf-terminal__body">
<pre><span class="t-gn">dxcom</span> -m ./yolo11n.onnx -c config.json -o yolo11n-output

<span class="t-dim"># Successful run ends with:</span>
<span class="t-dim"># [INFO] - Compilation complete.</span>
<span class="t-dim"># [INFO] - Output: yolo11n-output/yolo11n.dxnn</span></pre>
          </div>
        </div>

        <div class="sf-callout sf-callout--ai">
          <div class="sf-callout__header">
            <svg class="sf-icon" width="18" height="18"><use href="#i-bolt"></use></svg>
            <span>Full parameter reference</span>
          </div>
          <div class="sf-callout__content">
            <p>

              For every <code>config.json</code> field — calibration algorithms, the full
              <code>preprocessings</code> operator list, all three PPU types for YOLO models, and
              DXQ accuracy-recovery schemes — see the dedicated
              <a href="https://docs.sixfab.com/docs/ai-model-deployment-dx-com-configuration" target="_blank" rel="noopener">DX-COM Configuration Reference</a>.
            </p>
          </div>
        </div>


        <h4>What the compiler does to the model</h4>
        <ul>
          <li><strong>Operator mapping.</strong> Each ONNX op is mapped to a DEEPX NPU instruction sequence. Unsupported ops either error out or fall back to CPU execution at runtime, depending on architecture.</li>
          <li><strong>INT8 quantisation.</strong> Weights and activations are calibrated against your dataset and quantised. No developer configuration required beyond the calibration set.</li>
          <li><strong>Memory planning.</strong> The compiler lays out tensors to fit NPU on-chip memory. Models that exceed available NPU memory fail at compile time.</li>
          <li><strong>Optional PPU fusion.</strong> For YOLO architectures, the post-processing graph is fused onto the NPU when PPU is enabled.</li>
        </ul>

        <p>

          Compiler upstream reference:
          <a href="https://github.com/DEEPX-AI/dx-compiler" target="_blank" rel="noopener">github.com/DEEPX-AI/dx-compiler →</a>
        </p>
      </div>
    </div>

    
    <div class="sf-step">
      <div class="sf-step__num">3</div>
      <div class="sf-step__body">
        <h3 class="sf-step__title">Deploy the <code>.dxnn</code> artifact and run inference</h3>
        <p>

          The compiled <code>.dxnn</code> file is the deployment artifact. Copy it to the target
          Sixfab device, then load it with the DEEPX runtime (<code>dxrt-runtime</code>) and run
          inference. The Python and C++ APIs are functionally equivalent; C++ runs slightly more
          efficiently on tight inference loops.
        </p>

        <h4>Transfer the artifact to the target device</h4>
        <p>

          The transfer step is the only stage where the procedure varies by product. The
          <code>.dxnn</code> file itself is identical across all three.
        </p>

        <div class="sf-targets">
          <div class="sf-target">
            <p class="sf-target__name">Sixfab AI HAT+</p>
            <p class="sf-target__sub">Raspberry Pi 5 host</p>
            <p class="sf-target__body">
              <strong>SCP</strong> from the compile host. Example: <code>scp model.dxnn pi@raspberrypi.local:~/</code>.
              Standard SSH-over-LAN deployment.
            </p>
          </div>
          <div class="sf-target">
            <p class="sf-target__name">Sixfab Edge AI Expansion Board</p>
            <p class="sf-target__sub">Raspberry Pi 5 host</p>
            <p class="sf-target__body">
              <strong>SCP</strong> from the compile host. Example: <code>scp model.dxnn pi@raspberrypi.local:~/</code>.
              Same Pi 5 deployment path as AI HAT+.
            </p>
          </div>
          <div class="sf-target">
            <p class="sf-target__name">ALPON X5 AI</p>
            <p class="sf-target__sub">Fanless industrial system</p>
            <p class="sf-target__body">

              Deployment over ALPON Cloud or direct SCP, depending on fleet management setup.
            </p>
          </div>
        </div>

        <div class="sf-step__note">
          <svg class="sf-icon" width="16" height="16"><use href="#i-chart"></use></svg>
          <span>
            <strong>Model size limit.</strong> The compiled model must fit in NPU on-chip memory.
            Models that exceed available NPU memory fail to load on the device. Check the model
            footprint reported by DX-COM at the end of compilation, then pick the target product
            whose NPU envelope fits — DX-M1M and DX-M1 are the 25-TOPS variants; DX-M1ML is the
            13-TOPS variant on AI HAT+ with the smaller on-chip memory envelope.
          </span>
        </div>

        <h4>Run inference with the Python API</h4>
        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">python: run inference on the NPU</span>
            <span class="sf-terminal__badge">Target device</span>
          </div>
          <div class="sf-terminal__body">
<pre><span class="t-pp">from</span> dx_engine <span class="t-pp">import</span> InferenceEngine
<span class="t-pp">import</span> cv2, numpy <span class="t-pp">as</span> np

<span class="t-dim"># 1. Load the compiled model</span>

engine = <span class="t-gn">InferenceEngine</span>(<span class="t-yl">"models/my_model.dxnn"</span>)

<span class="t-dim"># 2. Preprocess input (remove operations the NPU absorbed)</span>

img = cv2.<span class="t-gn">imread</span>(<span class="t-yl">"frame.jpg"</span>)
img = cv2.<span class="t-gn">resize</span>(img, (<span class="t-bl">640</span>, <span class="t-bl">640</span>))
img = cv2.<span class="t-gn">cvtColor</span>(img, cv2.COLOR_BGR2RGB)
img = np.<span class="t-gn">transpose</span>(img, (<span class="t-bl">2</span>, <span class="t-bl">0</span>, <span class="t-bl">1</span>))
img = np.<span class="t-gn">expand_dims</span>(img, <span class="t-bl">0</span>)

<span class="t-dim"># 3. Run inference</span>

output = engine.<span class="t-gn">run</span>(img)</pre>
          </div>
        </div>

        <h4>Run inference with the C++ API</h4>
        <div class="sf-terminal">
          <div class="sf-terminal__header">
            <span class="sf-terminal__dot" style="background:#ff5f57"></span>
            <span class="sf-terminal__dot" style="background:#febc2e"></span>
            <span class="sf-terminal__dot" style="background:#28c840"></span>
            <span class="sf-terminal__title">cpp: tight inference loop</span>
            <span class="sf-terminal__badge">Target device</span>
          </div>
          <div class="sf-terminal__body">
<pre><span class="t-pp">#include</span> <span class="t-yl">&lt;dxrt/inference_engine.h&gt;</span>

dxrt::<span class="t-gn">InferenceEngine</span> engine(<span class="t-yl">"models/my_model.dxnn"</span>);

<span class="t-pp">for</span> (<span class="t-pp">const</span> <span class="t-pp">auto</span>&amp; frame : frames) {
    <span class="t-pp">auto</span> output = engine.<span class="t-gn">Run</span>(frame.data());
    <span class="t-dim">// process output</span>
}</pre>
          </div>
        </div>

        <h4>Verify the NPU is being used</h4>
        <p>

          On the target device, run <code>dxrt-cli -s</code> to confirm the NPU is loaded and the
          model is dispatched correctly. For the full monitoring reference — utilisation,
          temperature, fleet integration with Prometheus and Grafana — see
          <a href="/docs/ai-model-deployment-system-monitoring" target="_blank" rel="noopener">Edge AI Platform · System Monitoring</a>.
        </p>

        <div class="sf-step__note">
          <svg class="sf-icon" width="16" height="16"><use href="#i-info"></use></svg>
          <span>
            <strong>NPU-absorbed preprocessing.</strong> Operations that the compiler absorbed
            into the NPU graph (logged at compile time) must be removed from this host-side
            preprocessing. See the
            <a href="https://docs.sixfab.com/docs/ai-model-deployment-dx-com-configuration#preprocessing-operations" target="_blank" rel="noopener">DX-COM Configuration Reference</a>
            for which operations can be absorbed.
          </span>
        </div>
      </div>
    </div>

  </div>

  <div class="sf-callout sf-callout--success">
    <div class="sf-callout__header">
      <svg class="sf-icon" width="18" height="18"><use href="#i-check"></use></svg>
      <span>Already have a compiled <code>.dxnn</code> file? Skip Stages 1 and 2.</span>
    </div>
    <div class="sf-callout__content">
      <p>

        If a pre-compiled artifact has been provided (by Sixfab, a colleague, or a partner),
        skip directly to Stage 3 and run inference on the target Sixfab device.
      </p>
    </div>
  </div>


  
  <h2 id="ultralytics">Sixfab × Ultralytics acceleration path</h2>
  <p>

    For teams that want to skip the compile workflow entirely, Sixfab offers a managed
    partnership track with Ultralytics. Bring a labelled dataset; the partnership delivers a
    trained, optimised, and deployed custom model on your target Sixfab hardware in days — no
    DX-COM toolchain on your side.
  </p>

  <div class="sf-cta-card">
    <div class="sf-cta-card__copy">
      <p class="sf-cta-card__title">Learn about the Sixfab × Ultralytics acceleration path</p>
      <p class="sf-cta-card__desc">

        What the partnership covers, what Sixfab needs from you, expected timeline, and how to
        engage.
      </p>
    </div>
    <a class="sf-cta-card__btn" href="https://docs.ultralytics.com/integrations/deepx#what-is-deepx" target="_blank" rel="noopener">

      Open partnership page
      <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"></path></svg>
    </a>
  </div>


  
  <h2 id="libraries">Compatible libraries</h2>
  <p>

    DX-COM accepts ONNX models produced by the following ecosystems. The training framework is
    independent of compilation — choose what your team already uses.
  </p>

  <ul>
    <li><strong>PyTorch</strong> — export via <code>torch.onnx.export</code>. Opset 11 is widely compatible with DX-COM.</li>
    <li><strong>TensorFlow</strong> — export via the <code>tf2onnx</code> converter. Verify input/output tensor names match what <code>config.json</code> declares.</li>
    <li><strong>Keras</strong> — export via <code>tf2onnx</code> or <code>keras2onnx</code>. Check for dynamic shape dimensions before compiling; DX-COM requires fixed input shapes.</li>
    <li><strong>Ultralytics YOLO</strong> — built-in ONNX export with <code>model.export(format="onnx")</code>. Recommended starting point for object detection, classification, segmentation, and pose.</li>
    <li><strong>ONNX Model Zoo</strong> — direct download. Verify the model's operator set against the <a href="/docs/ai-model-deployment-supported-models" target="_blank" rel="noopener">Supported Models Catalog</a> before compiling.</li>
  </ul>

  <p>

    Standard data-science and computer-vision libraries — OpenCV, NumPy, Pillow, scikit-image,
    Picamera2, libcamera — work alongside <code>dxrt-runtime</code> on the target device with no
    conflicts.
  </p>


  
  <h2 id="limitations">Limitations and constraints</h2>
  <p class="sf-lead">

    DXNN SDK has well-defined boundaries. Acknowledging them up front saves debugging time
    later.
  </p>

  <div class="sf-limit-grid">

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-cube"></use></svg>
        <h4 class="sf-limit-card__title">Vision models today</h4>
        <span class="sf-limit-card__tag sf-limit-card__tag--info">Scope</span>
      </div>
      <p>The DEEPX NPU accelerates convolutional and vision-based networks. <strong>LLMs, audio-only models, and text-based transformers are not supported</strong> on current silicon. Vision today; LLMs are on the DEEPX roadmap and Sixfab will support them as the silicon enables. No dates.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-bolt"></use></svg>
        <h4 class="sf-limit-card__title">INT8 precision only</h4>
        <span class="sf-limit-card__tag sf-limit-card__tag--warn">~2 % loss</span>
      </div>
      <p>All models run at INT8. The compiler quantises automatically. <strong>FP16 and FP32 are not supported on the NPU.</strong> Expect approximately 2 % accuracy reduction versus the original FP32 model. Plan evaluation against this envelope, not against the FP32 numbers.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-clock"></use></svg>
        <h4 class="sf-limit-card__title">Inference only</h4>
        <span class="sf-limit-card__tag">No training</span>
      </div>
      <p>Sixfab edge AI hardware runs inference exclusively. <strong>On-device training is not supported.</strong> Train on a GPU-equipped machine (or via the Sixfab × Ultralytics acceleration path), then deploy the resulting <code>.dxnn</code> file using the ONNX → DXNN compiler path described above.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-stack"></use></svg>
        <h4 class="sf-limit-card__title">Ubuntu x86_64 to compile</h4>
        <span class="sf-limit-card__tag">No ARM</span>
      </div>
      <p>DX-COM requires Ubuntu x86_64 with at least 16 GB RAM. <strong>ARM and aarch64 are not supported</strong> for compilation. The Pi 5 itself cannot compile models; neither can ALPON X5 AI.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-chart"></use></svg>
        <h4 class="sf-limit-card__title">Operator support boundary</h4>
        <span class="sf-limit-card__tag sf-limit-card__tag--warn">Verify first</span>
      </div>
      <p>Models with operators outside the DEEPX-supported list either error at compile time or fall back to CPU at runtime, depending on architecture. Verify against the <a href="/docs/ai-model-deployment-supported-models" target="_blank" rel="noopener">Supported Models Catalog</a> before exporting.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-info"></use></svg>
        <h4 class="sf-limit-card__title">No hot-plug on HAT+ or Expansion Board</h4>
        <span class="sf-limit-card__tag">Power off first</span>
      </div>
      <p>Hot-plug is not supported on AI HAT+ or Edge AI Expansion Board. <strong>Power off the Raspberry Pi 5 before mounting or removing the board.</strong> ALPON X5 AI is a sealed industrial computer; the NPU is integrated, not removable.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-server"></use></svg>
        <h4 class="sf-limit-card__title">Host compatibility</h4>
        <span class="sf-limit-card__tag sf-limit-card__tag--info">Pi 5 / CM5</span>
      </div>
      <p>Supported hosts for AI HAT+ and Edge AI Expansion Board: <strong>Raspberry Pi 5</strong> and <strong>Raspberry Pi Compute Module 5</strong> via the official Raspberry Pi CM5 IO Board. <strong>Not supported:</strong> Pi 4, CM4, non-Raspberry Pi SBCs. ALPON X5 AI ships as a complete system built on Pi CM5 + DEEPX inside a fanless enclosure.</p>
    </div>

    <div class="sf-limit-card">
      <div class="sf-limit-card__head">
        <svg class="sf-limit-card__icon"><use href="#i-arrow-right"></use></svg>
        <h4 class="sf-limit-card__title">Recompile on SDK breaks</h4>
        <span class="sf-limit-card__tag sf-limit-card__tag--info">Versioning</span>
      </div>
      <p>If a runtime SDK update introduces breaking changes, existing <code>.dxnn</code> files may need recompilation. The runtime reports a version mismatch at load time when this occurs.</p>
    </div>

  </div>


  
  <div class="sf-callout sf-callout--info">
    <div class="sf-callout__header">
      <svg class="sf-icon" width="18" height="18"><use href="#i-info"></use></svg>
      <span>Command-validation policy</span>
    </div>
    <div class="sf-callout__content">
      <p>

        Per Sixfab's content cornerstone, every command sequence on this page is re-run on the
        listed hardware within the 30 days preceding publication. If a runtime, compiler, or
        operating-system update lands inside that window, this page is reverified before the
        change is shipped.
      </p>
    </div>
  </div>


  
  <div class="sf-cta-card">
    <div class="sf-cta-card__copy">
      <p class="sf-cta-card__title">Need parameter-level detail?</p>
      <p class="sf-cta-card__desc">

        Every <code>config.json</code> field, all three PPU types with Netron walkthroughs, DXQ
        accuracy recovery, and the full preprocessing operator list live in the dedicated
        reference.
      </p>
    </div>
    <a class="sf-cta-card__btn" href="https://docs.sixfab.com/docs/ai-model-deployment-dx-com-configuration" target="_blank" rel="noopener">

      Open Configuration Reference
      <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"></path></svg>
    </a>
  </div>


</div>




`}</HTMLBlock>