Environment:AIScientists Dev WorldSeed Baseline Training
| Knowledge Sources | |
|---|---|
| Domains | Deep_Learning, Training |
| Last Updated | 2026-10-26 19:00 GMT |
Overview
Python 3.11+ with PyTorch 2.3+, numpy, and sentencepiece on NVIDIA A100 GPUs for running the locked autoresearch baseline GPT training script (TinyStories, ~5M param nanoGPT).
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Ubuntu 22.04 LTS | EC2 deep learning AMI |
| Hardware | NVIDIA A100 40GB+ | Baseline trains in ~3.5 min on A100 80GB |
| CUDA | >= 12.1 | Required by PyTorch 2.3+ |
| Disk | 10GB+ for dataset | Pre-tokenized TinyStories (train.bin + val.bin) |
Dependencies
System Packages
- `nvidia-driver` >= 535
- `cuda-toolkit` >= 12.1
Python Packages (Locked Baseline)
These dependencies are locked — agents cannot modify the baseline `pyproject.toml`:
- `torch` >= 2.3
- `numpy` >= 1.26
- `sentencepiece` >= 0.2
Dataset Requirements
- `FINEWEB_DATA_DIR` env var points to pre-tokenized data
- Expects `train.bin` (uint16 tokens) and `val.bin` (uint16 tokens)
- Default path: `/data/tinystories`
- Vocab: SentencePiece BPE, size 8192
Credentials
No API keys required. Data path is configurable:
- `FINEWEB_DATA_DIR`: Path to pre-tokenized dataset (default: `/data/tinystories`)
Quick Install
# Locked baseline dependencies
pip install "torch>=2.3" "numpy>=1.26" "sentencepiece>=0.2"
# Set data path
export FINEWEB_DATA_DIR="/data/tinystories"
Code Evidence
Locked baseline dependencies from `src/worldseed/autoresearch/baseline_template/pyproject.toml:1-13`:
# Locked dependencies for autoresearch baseline. Agents cannot modify this file.
# Matches what experiments are allowed to import.
[project]
name = "autoresearch-baseline"
version = "0.3.0"
requires-python = ">=3.11"
dependencies = [
"torch>=2.3",
"numpy>=1.26",
"sentencepiece>=0.2",
]
Data path configuration from `src/worldseed/autoresearch/baseline_template/train_gpt.py:34`:
DATA_DIR = Path(os.environ.get("FINEWEB_DATA_DIR", "/data/tinystories"))
Baseline training config from `src/worldseed/autoresearch/baseline_template/train_gpt.py:36-52`:
VOCAB_SIZE = 8192 # SentencePiece BPE trained on TinyStories
BLOCK_SIZE = 512
N_LAYER = 4
N_HEAD = 4
N_EMBD = 256
BATCH_SIZE = 512
GRAD_ACCUM = 1 # effective batch = 512 * 1 * 512 = 262144 tokens/step
TOTAL_STEPS = 1500
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `FileNotFoundError: train.bin` | Dataset not found at `FINEWEB_DATA_DIR` | Set correct path or pre-tokenize TinyStories |
| `CUDA out of memory` | Insufficient GPU VRAM | Baseline needs ~40GB; use A100 80GB or reduce batch size |
| `RuntimeError: CUDA not available` | No GPU or driver issue | Check `nvidia-smi` and CUDA install |
| `ModuleNotFoundError: sentencepiece` | Missing tokenizer lib | `pip install sentencepiece>=0.2` |
Compatibility Notes
- Locked dependencies: The baseline `pyproject.toml` is read-only. Agents can modify `train_gpt.py` but cannot change the locked dependency set.
- A100 80GB recommended: Baseline expects ~2.50 val_loss in ~3.5 min wall-clock on A100 80GB. Smaller GPUs may OOM at batch_size=512.
- PyTorch 2.3+ minimum: Uses modern `torch.nn.functional` APIs. PyTorch 2.0-2.2 may work but is untested.
- Val_loss parsing: The daemon greps stdout for `val_loss:` line to capture results. Custom training scripts must print this.
- Experiment budget: 600s wall-clock cap per experiment. Runs that exceed this are killed (reason: `timeout`).