-
Notifications
You must be signed in to change notification settings - Fork 121
Add autoresearch official template #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| ARG BASE_IMAGE=non-existing | ||
| FROM ${BASE_IMAGE} | ||
|
|
||
| # Clone autoresearch into workspace | ||
| ARG AUTORESEARCH_REF=master | ||
| RUN git clone --branch ${AUTORESEARCH_REF} --depth 1 \ | ||
| https://github.com/runpod/autoresearch.git /workspace/autoresearch | ||
|
|
||
| WORKDIR /workspace/autoresearch | ||
|
|
||
| # Install Python dependencies | ||
| RUN uv sync | ||
|
|
||
| # Download data and train tokenizer (~2 min) | ||
| RUN uv run prepare.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| ### Runpod AutoResearch | ||
|
|
||
| **Pre-configured environment for [autoresearch](https://github.com/runpod/autoresearch), Karpathy's autonomous ML research loop.** | ||
|
|
||
| An AI coding agent autonomously runs ML experiments: it modifies `train.py`, trains for 5 minutes, checks if val_bpb improved, keeps or discards, and repeats. ~100 experiments overnight on a single GPU. | ||
|
|
||
| ### What's included | ||
|
|
||
| - **Zero setup**: Dependencies installed, data prepared, ready to go on launch. | ||
| - **GPU accelerated**: Full CUDA 12.8 support with PyTorch 2.9.1. | ||
| - **Agent ready**: SSH in, connect your coding agent, and start experimenting. | ||
|
|
||
| ### Getting started | ||
|
|
||
| 1. Launch a pod with this template | ||
| 2. Connect your coding agent (Claude Code, Cursor, etc.) via SSH | ||
| 3. Tell the agent: | ||
| ``` | ||
| Read /workspace/autoresearch/program.md and let's kick off a new experiment! | ||
| ``` | ||
|
|
||
| ### GPU recommendations | ||
|
|
||
| | GPU | VRAM | Notes | | ||
| |-----|------|-------| | ||
| | RTX 4090 | 24 GB | Budget option. Smaller optimal model size. | | ||
| | A40 | 48 GB | Good middle ground. | | ||
| | A100 80GB | 80 GB | Plenty of room for larger models. | | ||
| | H100 | 80 GB | Fastest. What Karpathy used. | | ||
|
|
||
| The 5-minute fixed time budget means cheaper GPUs work fine — you get a different optimal model size. Results are comparable within the same GPU type. | ||
|
|
||
| ### Available images | ||
|
|
||
| - Ubuntu 22.04: `runpod/autoresearch:1.0.2-cuda1281-ubuntu2204` | ||
| - Ubuntu 24.04: `runpod/autoresearch:1.0.2-cuda1281-ubuntu2404` | ||
|
|
||
| ### Links | ||
|
|
||
| - [autoresearch repo](https://github.com/runpod/autoresearch) (Runpod fork) | ||
| - [Original repo](https://github.com/karpathy/autoresearch) by Karpathy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Autoresearch template | ||
| # Builds on runpod/base with CUDA 12.8.1 (matches torch cu128 wheels) | ||
|
|
||
| variable "AUTORESEARCH_BUILDS" { | ||
| default = flatten([ | ||
| for ubuntu in UBUNTU_VERSIONS : { | ||
| ubuntu_version = ubuntu.version | ||
| ubuntu_name = ubuntu.name | ||
| } | ||
| ]) | ||
| } | ||
|
|
||
| group "default" { | ||
| targets = [ | ||
| for build in AUTORESEARCH_BUILDS : | ||
| "autoresearch-${build.ubuntu_name}" | ||
| ] | ||
| } | ||
|
|
||
| target "autoresearch-base" { | ||
| context = "official-templates/autoresearch" | ||
| dockerfile = "Dockerfile" | ||
| platforms = ["linux/amd64"] | ||
| } | ||
|
|
||
| target "autoresearch-matrix" { | ||
| inherits = ["autoresearch-base"] | ||
|
|
||
| matrix = { | ||
| build = AUTORESEARCH_BUILDS | ||
| } | ||
|
|
||
| name = "autoresearch-${build.ubuntu_name}" | ||
|
|
||
| args = { | ||
| BASE_IMAGE = "runpod/base:${RELEASE_VERSION}${RELEASE_SUFFIX}-cuda1281-${build.ubuntu_name}" | ||
| } | ||
|
|
||
| tags = [ | ||
| "runpod/autoresearch:${RELEASE_VERSION}${RELEASE_SUFFIX}-cuda1281-${build.ubuntu_name}", | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
build-autoresearchchange detector only watchesofficial-templates/shared/**andofficial-templates/autoresearch/**, so whenofficial-templates/base/**changes this workflow still runsbuild-basebut skips rebuilding autoresearch. That leavesrunpod/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 👍 / 👎.