How are you running the agent? If you’re running in a VM, the agent will be constrained by the size of the VM. If you’re running in a container in Kubernetes, the agent will be constrained by the resource request/limit settings.
Infrastructure blocks provide a flexible way to run flows, which may be in a remote Kubernetes cluster, a service like Cloud Run/ECS — so those are the ways to achieve your goal of running computation outside the agent