Uvicorn is an ASGI server that runs FastAPI. Gunicorn is a process manager (originally for WSGI) that can supervise several Uvicorn worker processes for restarts and multi-core use; Uvicorn also supports --workers directly.
Each worker is a separate process with its own memory (and its own copy of a loaded ML model), so more workers raise throughput and memory use; a common starting point for CPU cores is between 1 and 2 times the core count for I/O-bound apps, tuned by load testing.
In containers and Kubernetes the usual guidance is one Uvicorn process per container and scaling with more replicas, letting the orchestrator handle restarts.
uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w 4 -b 0.0.0.0:8000 # needs the uvicorn worker package on newer versions