Advertisement

Use the free CodeGemma

). Today, let's take a look at his CodeGemma, which is said to be more useful than CodeLlama. (I also shared CodeLlama before

For detailed Colab code, see:

The following environment needs to be configured before running:

  1. Create a new API token in the Kaggle settings.
  2. .

In addition, you need to sign an agreement to download CodeGemma in the model card on Kaggle.

After completing the above configuration, you can run CodeGemma.

For example, I asked CodeGemma to write code for a 2048 game for me.

generation_prompt= """Write 2048 game"""
print(gemma_lm.generate(generation_prompt, max_length=5000))