Thanks for your interest!
The amount of memory required for training depends on many factors. If you're new, I'd recommend the following notebook that has a lot of details and runs for free on Colab:
We've even more examples that run on Colab: https://huggingface.co/docs/trl/example_overview#notebooks
Let us know how it goes!