Read this:
https://machinelearninginterview.com/topics/natural-language-processing/what-is-the-difference-between-word2vec-and-glove/#:~:text=Glove model is based on,similar results for many tasks.