mirror of
https://github.com/hanzoai/papers.git
synced 2026-10-30 14:58:42 +00:00
61 lines
1.7 KiB
TeX
61 lines
1.7 KiB
TeX
\section{Production Deployment}
|
|
|
|
\label{sec:production}
|
|
|
|
\subsection{Deployment at Hanzo AI}
|
|
|
|
Candle powers inference serving in the Hanzo ecosystem:
|
|
|
|
\begin{itemize}[leftmargin=1.1em]
|
|
\item \textbf{Embedding service}: CLIP and BGE models for Hanzo Search vector index (2.1M queries/day).
|
|
\item \textbf{Classification}: Content moderation, intent classification, and sentiment analysis (800K classifications/day).
|
|
\item \textbf{Local inference}: Phi-3 and Mistral-7B serving for privacy-sensitive workloads.
|
|
\item \textbf{Multimodal}: Whisper transcription and image understanding pipelines.
|
|
\end{itemize}
|
|
|
|
\subsection{Production Statistics (14 Months)}
|
|
|
|
\begin{table}[H]
|
|
\centering
|
|
\begin{tabular}{lr}
|
|
\toprule
|
|
\textbf{Metric} & \textbf{Value} \\
|
|
\midrule
|
|
Total inference requests & 47.2M \\
|
|
Total tokens generated & 18.7B \\
|
|
Average throughput & 1.4M tokens/hour \\
|
|
P50 latency (embedding) & 4.2ms \\
|
|
P99 latency (embedding) & 6.1ms \\
|
|
P50 latency (generation) & 15.3ms/token \\
|
|
P99 latency (generation) & 17.8ms/token \\
|
|
Uptime & 99.99\% \\
|
|
Zero GC-related incidents & 0 \\
|
|
\bottomrule
|
|
\end{tabular}
|
|
\caption{Candle production statistics (Dec 2024 -- Feb 2026).}
|
|
\label{tab:prod_stats}
|
|
\end{table}
|
|
|
|
\subsection{Comparison with Previous Stack}
|
|
|
|
Before migrating to Candle, Hanzo used PyTorch-based inference:
|
|
|
|
\begin{table}[H]
|
|
\centering
|
|
\small
|
|
\begin{tabular}{lcc}
|
|
\toprule
|
|
\textbf{Metric} & \textbf{PyTorch} & \textbf{Candle} \\
|
|
\midrule
|
|
Throughput (tokens/s) & 42K & 58K (+38\%) \\
|
|
P99 latency & 48ms & 18ms ($-$63\%) \\
|
|
GPU utilization & 67\% & 82\% (+22\%) \\
|
|
Monthly GPU cost & \$12,400 & \$8,900 ($-$28\%) \\
|
|
GC-related incidents & 3/month & 0 \\
|
|
\bottomrule
|
|
\end{tabular}
|
|
\caption{Before/after migration to Candle inference.}
|
|
\label{tab:migration}
|
|
\end{table}
|
|
|