whatisgithub

What is alphaevolve-on-googlecloud?

google-cloud-ai/alphaevolve-on-googlecloud — explained in plain English

Analysis updated 2026-05-18

75PythonAudience · developerComplexity · 4/5LicenseSetup · hard

In one sentence

A Python library and examples for running AlphaEvolve, Google's Gemini powered agent that evolves and scores code automatically to improve it over many rounds.

Mindmap

mindmap
  root((AlphaEvolve on GCP))
    What it does
      Evolves code with Gemini
      Scores candidates
      Improves over generations
    Tech stack
      Python
      Gemini models
      Google Cloud
      GKE
    Use cases
      Circle packing
      Route optimization
      Signal processing
      LoRA fine tuning
    Audience
      Developers
      ML engineers
    Setup
      GCP project
      Gemini Enterprise app ID
      uv and gcloud CLI

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Evolve a seed algorithm toward a better score, like packing circles more tightly or shortening a travel route.

USE CASE 2

Tune a LoRA fine-tuning setup automatically to reduce evaluation loss.

USE CASE 3

Wire AlphaEvolve into your own Google Cloud project to optimize a custom scoring problem.

USE CASE 4

Run GPU-backed evolutionary search on GKE for larger optimization tasks.

What is it built with?

PythonGeminiGoogle CloudGKEuvgcloud CLI

How does it compare?

google-cloud-ai/alphaevolve-on-googlecloudhumanmllm/swimigorbarshteyn/jlens-gguf
Stars757575
LanguagePythonPythonPython
Setup difficultyhardhardhard
Complexity4/55/55/5
Audiencedeveloperresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a Google Cloud project with AlphaEvolve provisioned and a Gemini Enterprise app or engine ID before any example will run.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

AlphaEvolve on Google Cloud is a Python library and a set of runnable examples for using AlphaEvolve, an evolutionary coding agent built on Google's Gemini models. You give it a starting piece of code and a way to score how good a candidate solution is, and it repeatedly asks Gemini to propose changes to that code, tests each new version, and keeps the better ones. Over many rounds the candidates gradually improve past the original. The repository holds the client side Python package, found under src/alpha_evolve, plus several examples that show how to connect AlphaEvolve to real Google Cloud setups, ranging from a plain local Python loop with no extra infrastructure to GPU training on Google Kubernetes Engine. The examples include circle packing, which tries to fit circles into a shape while maximizing the total of their radii, tsp, which searches for shorter travel routes, signal processing, which balances several scoring goals at once, and llm fine tuning, which tunes a LoRA setup to lower its evaluation loss. The system splits into two halves. The generation half runs as a managed Google Cloud service and includes a prompt sampler, a mix of Gemini models that suggest new candidate programs, and a program database that tracks every candidate tried so far. The evaluation half is code you write yourself, since scoring depends on your particular problem. You mark the section of your seed program to be evolved with EVOLVE-BLOCK comments, write an evaluator function that returns one or more scores, and a controller loop pulls candidates from the service, runs your evaluator, and reports the results back so the next generation can improve on them. To try it, you need a Google Cloud project with AlphaEvolve already set up, meaning a Gemini Enterprise app or engine ID, along with Python 3.9 or newer, the uv package manager, and the gcloud command line tool. The quickstart example, circle packing, runs the whole loop locally without needing extra cloud infrastructure beyond calling the AlphaEvolve API itself, and can be working within about five minutes once the prerequisites are in place. The project is released under the Apache 2.0 license.

Copy-paste prompts

Prompt 1
Help me write an evaluator function for AlphaEvolve that scores my candidate programs against a custom metric.
Prompt 2
Walk me through setting up a Google Cloud project with AlphaEvolve provisioned so I can run the circle packing example.
Prompt 3
Show me how to mark the EVOLVE-BLOCK section in my seed program so AlphaEvolve knows what to evolve.
Prompt 4
Explain the difference between the generation and evaluation halves of AlphaEvolve's loop.
Prompt 5
Suggest how to adapt the tsp example in this repo to my own routing optimization problem.

Frequently asked questions

What is alphaevolve-on-googlecloud?

A Python library and examples for running AlphaEvolve, Google's Gemini powered agent that evolves and scores code automatically to improve it over many rounds.

What language is alphaevolve-on-googlecloud written in?

Mainly Python. The stack also includes Python, Gemini, Google Cloud.

What license does alphaevolve-on-googlecloud use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is alphaevolve-on-googlecloud to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is alphaevolve-on-googlecloud for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.