Tech
What I Learned Quantizing DistilBERT to ONNX for Browser Inference
What I Learned Quantizing DistilBERT to ONNX for Browser Inference
I built a support-ticket classifier — 77 banking intents, fine-tuned DistilBERT, Banking77 — and got it to 92.2% accuracy. Then I tried to ship it, and ran into the actual problem: the checkpoint was 256 MB and took ~9 ms per query on CPU. That's fine on a GPU server. It is not fine as a static site with no backend, which is what I wanted this to be — no server to pay for, no cold start, no infra to babysit.
The fix was exp...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to