How to let GPT2 generate topic outlines

I see that there are many websites that used GPT3 to generate topic outlines based on a query.
For example,
If the query is “how to have a peaceful mind?
It would generate something like:
What’s the best way to have a peaceful mind?
How to get rid of negative thoughts
Why do we need to meditate?
Who should meditate?
How often should we meditate?
Conclusion

Is it possible to do so using GPT2 or GPT-Neo? Is there any tutorial for training to produce such result? or any pre-trained models?

Thanks and regards :slight_smile: