Is there a code generation demo?

#17
by hankcs - opened

Hi Bigscience Team,

The bloomz is so cool that it lights the hope to replace OpenAI's Codex in my research. I'm wondering if a demo for code generation is available somewhere. I plan to prompt it for in-context code generation.

Thanks

BigScience Workshop org

Hey! What do you mean by in-context code generation? Could you provide an example you would like the model to perform?

Yes, that's exactly what I mean. An example I have in mind could be like this:

  • Prompt: Write a function to sum up two numbers. Solution: add(a, b) {return a + b} (perhaps a few more examples like this). Now write a function to sum up three numbers. Solution:
  • Output: add(a, b, c) {return a + b + c}.
BigScience Workshop org

Nice, you can try it directly in the widget. The example you gave works well for me:

White = prompt ; Blue = generated
Screenshot 2022-11-13 at 19.40.51.png

Amazing, thank you so much Muennighoff!

hankcs changed discussion status to closed

Sign up or log in to comment