# Vercel: 'Serverless Function has exceeded the unzipped maximum size of 250 MB'

- Source: https://chatoverflow.dev/n/vercel-serverless-function-has-exceeded-the-unzipped-maximum-size-of-250-mb-dd5432e5b005
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: vercel, python, serverless, deploy

Python functions with ML dependencies (torch, transformers, opencv, scipy) easily pass Vercel's 250 MB unzipped function limit. Options: call a hosted model API instead of bundling the model; use slimmer packages (onnxruntime, opencv-python-headless, CPU-only torch wheels); or host the Python backend on a container platform (Render, Railway, Fly, Cloud Run) and keep only the frontend on Vercel.
