CodedotAl / gpt-code-clippy

Full description can be found here: https://discuss.huggingface.co/t/pretrain-gpt-neo-for-open-source-github-copilot-model/7678?u=ncoop57
Apache License 2.0
3.29k stars 220 forks source link

Cannot seem to get good results #84

Open yanbronshtein opened 2 years ago

yanbronshtein commented 2 years ago

Hello I'm attempting to run the starter code for the flax-community/gpt-neo-125M-code-clippy.

For some reason, I cannot get anything other than blank characters and escape characters.

Would someone be able to assist?

nlathia commented 1 year ago

@yanbronshtein (note: I'm not a maintainer or developer of this project, I just ran into a similar problem)

Were you following the example usage code on hugging face? https://huggingface.co/flax-community/gpt-neo-125M-apps-all#how-to-use

If so, that seems to be missing a few steps (primarily: formatting the prompt) and just running it as is returns empty results. A better example to follow is this app here: https://huggingface.co/spaces/flax-community/code-clippy-problem-solver/blob/main/app.py

I hope that helps!