Skip to content

Add GEAK v4 agent integration - #73

Merged
irvineoy merged 4 commits into
mainfrom
geak-v4-integration
Jul 29, 2026
Merged

Add GEAK v4 agent integration#73
irvineoy merged 4 commits into
mainfrom
geak-v4-integration

Conversation

@yueliu14

@yueliu14 yueliu14 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Integrates the GEAK v4 agent as a kernel-optimization backend in AgentKernelArena, targeting AMD MI300 (gfx942).

GEAK runs through an SDK bridge that drives a multi-role workflow pipeline:

author → profile → engineer(s) → verify → integrator → director validation

AgentArena then independently re-measures every result using its centralized evaluator, ensuring an authoritative, apples-to-apples performance score.

What's Included

  • agents/geak_v4/ SDK bridge:

    • workflow_runner.py

    • launch_agent.py

  • Integration of GEAK's kernel_workflow.js pipeline with the Arena agent interface.

  • Example configuration:

    • quickstart_geak_v4_mi300.yaml

Test Results

Environment: AMD MI300
Test scope: 9-task smoke run across 6 GPUs

The nine tasks consist of:

  • 5 hip2hip/others tasks

  • 4 triton2triton/geak_eval tasks

The results below are based on Arena's authoritative independent re-measurement, rather than GEAK's internal director-reported numbers.

Category Result
hip2hip/others (5) 5/5 sped up, average speedup 8.97×: ball_query 18.78×, roiaware_pool3d 17.91×, assign_score_withk 5.58×, points_in_boxes 1.30×, matrix_multiplication 1.29×
triton2triton/geak_eval (4) 3/4 sped up, average speedup 1.55×: llama_ff 2.50×, topk 1.50×, refk_identity 1.34×, fused_qkv_rope 0.86× (regression, correctly flagged)

Register a `geak_v4` agent that drives GEAK's kernel_workflow via an
SDK-based background-Workflow runner and applies the validated patch
in place (apply_to_original="true"), letting the Arena harness enforce
integrity and re-score. All changes are confined to agents/geak_v4/,
example_configs/, module_registration, and tests — the runner is
configured purely through environment variables (GEAK_V4_WORKFLOW_DIR)
with no changes to Docker/Makefile/docs, mirroring the `forge` agent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yueliu14
yueliu14 marked this pull request as ready for review July 28, 2026 14:22
@yueliu14 yueliu14 changed the title Add lean GEAK v4 agent integration Add GEAK v4 agent integration Jul 28, 2026

@irvineoy irvineoy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found two integration issues that should be addressed before relying on the new GEAK v4 quickstart.

Comment thread example_configs/quickstart_geak_v4_mi300.yaml
Comment thread agents/geak_v4/workflow_runner.py
yueliu14 and others added 3 commits July 29, 2026 07:35
Addresses the two PR #73 review comments:

P1: Map the geak_v4 template to Claude Code provisioning/checks in the
Docker-first runner, mount+forward the host's GEAK_V4_WORKFLOW_DIR, and add
a supported SDK setup step (make docker-setup-geak / container_setup_geak).
The setup installs claude-agent-sdk into the persistent pip user-base via
`pip install --target` (venv rejects --user, /opt/venv is unwritable by the
non-root runner user) and forwards it on PYTHONPATH; it short-circuits when
the image already ships the SDK. Also forward the host's Claude gateway auth
(Core42/Primus-safe: ANTHROPIC_AUTH_TOKEN + ANTHROPIC_BASE_URL + model/TLS/
timeout vars) by name so the in-container CLI can authenticate.

P2: normalize_result() gains require_applied; when the run requested
apply_to_original, an accepted gain is only "ok" if applied_to_original ==
"true", otherwise it is an error (Arena would re-score the unmodified
baseline). Covered by regression tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
RTD builds with Python 3.10; recompiled requirements.txt so transitive
pins (ipython, sphinx, myst-parser) resolve to 3.10-compatible versions.
@irvineoy
irvineoy merged commit 2623c6f into main Jul 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants