microsoft / CodeXGLUE

CodeXGLUE
MIT License
1.51k stars 363 forks source link

Can I use CodeGPT to get the embedding of the code #124

Closed wangsiqidahaoren closed 2 years ago

wangsiqidahaoren commented 2 years ago

Can I use CodeGPT to get the embedding of the code

celbree commented 2 years ago

It's not recommended to use CodeGPT to get embeddings. CodeGPT is a decoder-only model and lacks ability on understanding tasks. You can use CodeBERT to get embeddings.

wangsiqidahaoren commented 2 years ago

@celbree Thanks a lot