It is also possible to install Mastodon with a single account, just for yourself (SINGLE_USER_MODE=true, see https://docs.joinmastodon.org/admin/config/#single_user_mode). In this case a 2GB VPS is sufficient. Otherwise (in multiple user mode) I would recommend at least 4GB RAM.