Apple silicon shares memory between the CPU, GPU and applications. Size a machine for the combined workload you intend to keep open.