Skip to content

Add autoresearch official template#107

Merged
max4c merged 3 commits intomainfrom
dj/containers-v1
Mar 10, 2026
Merged

Add autoresearch official template#107
max4c merged 3 commits intomainfrom
dj/containers-v1

Conversation

@max4c
Copy link
Contributor

@max4c max4c commented Mar 9, 2026

Summary

  • Add official pod template for Karpathy's autoresearch (autonomous ML experiment loop)
  • Builds on runpod/base with CUDA 12.8.1 for Ubuntu 22.04 and 24.04
  • Image comes pre-loaded with the repo, all dependencies, and prepared training data — zero setup on launch
  • Add build-autoresearch CI job to the existing workflow

Files added

  • official-templates/autoresearch/Dockerfile — clones repo, runs uv sync + uv run prepare.py
  • official-templates/autoresearch/docker-bake.hcl — matrix build config
  • official-templates/autoresearch/README.md — Docker Hub docs
  • .github/workflows/base.yml — added autoresearch build job

Test plan

  • Verify ./bake.sh autoresearch --load builds successfully
  • Verify the image starts and /workspace/autoresearch/ contains the repo with deps installed
  • Verify uv run train.py starts training on a GPU pod
  • Create the template in Runpod console pointing to runpod/autoresearch:1.0.2-cuda1281-ubuntu2204

🤖 Generated with Claude Code

Add pod template for Karpathy's autoresearch (autonomous ML experiment
loop). Builds on runpod/base with CUDA 12.8.1 for both Ubuntu 22.04
and 24.04. Image comes pre-loaded with the repo, dependencies, and
prepared data so users can start experimenting immediately.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e58d640a95

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +64 to +65
- 'official-templates/shared/**'
- 'official-templates/autoresearch/**'

Choose a reason for hiding this comment

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

P1 Badge Rebuild autoresearch after base image changes

The build-autoresearch change detector only watches official-templates/shared/** and official-templates/autoresearch/**, so when official-templates/base/** changes this workflow still runs build-base but skips rebuilding autoresearch. That leaves runpod/autoresearch:* tags on older base layers (including missed base fixes) until an unrelated autoresearch/shared edit happens. Add base template paths to this filter so dependent images rebuild whenever their base is rebuilt.

Useful? React with 👍 / 👎.

Comment on lines +5 to +6
ARG AUTORESEARCH_REF=main
RUN git clone --branch ${AUTORESEARCH_REF} --depth 1 \

Choose a reason for hiding this comment

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

P2 Badge Pin autoresearch checkout to an immutable ref

The image build clones runpod/autoresearch from main, so rebuilding the same release later can silently pull different code (or fail if upstream main breaks), making image tags non-reproducible. For release images, use a fixed tag or commit SHA (and set it from bake args) to keep builds deterministic.

Useful? React with 👍 / 👎.

@justinwlin justinwlin self-requested a review March 9, 2026 21:26
max4c and others added 2 commits March 9, 2026 14:43
The runpod/autoresearch repo uses master as its default branch, not main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add base template paths to the autoresearch change detector so the
image rebuilds when its base layer is updated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@max4c max4c merged commit f7b05c5 into main Mar 10, 2026
6 checks passed
@max4c max4c deleted the dj/containers-v1 branch March 10, 2026 20:23
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.

2 participants