salesforce / CodeGen

CodeGen is a family of open-source model for program synthesis. Trained on TPU-v4. Competitive with OpenAI Codex.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated outputs are often ended with '#'

xu3kev opened this issue · comments

Hi,

When we use the sampling code jaxformer/hf/sample.py, we notice that a lot of generated outputs ended with '#'. Is this the expected behavior? Could you help us figure out why?

For example, in the offical colab. The output of last cell is before truncation is

sampling
====================================================================================================

    print("Hello World")

hello_world()

#
====================================================================================================

which is also the case.

Yeah

But it's ok because it's python, probably it wanted to make comments, it doesn't affect a lot. And it can notice you to make comment :).