Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
# Constants (fixed, do not modify)
# ---------------------------------------------------------------------------

MAX_SEQ_LEN = 2048 # context length
MAX_SEQ_LEN = int(os.environ.get("AUTORESEARCH_SEQ_LEN", 2048)) # context length (auto-set by train.py)
TIME_BUDGET = 300 # training time budget in seconds (5 minutes)
EVAL_TOKENS = 40 * 524288 # number of tokens for val eval
EVAL_TOKENS = int(os.environ.get("AUTORESEARCH_EVAL_TOKENS", str(40 * 524288))) # tokens for val eval (auto-set by train.py)

# ---------------------------------------------------------------------------
# Configuration
Expand Down
13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@ description = "Autonomous pretraining research swarm"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"kernels>=0.11.7",
"matplotlib>=3.10.8",
"numpy>=2.2.6",
"pandas>=2.3.3",
"pyarrow>=21.0.0",
"requests>=2.32.0",
"rustbpe>=0.1.0",
"tiktoken>=0.11.0",
"torch==2.9.1",
"torch==2.5.1",
]

[project.optional-dependencies]
# FA3 requires sm_80+ (Ampere/Hopper); install with: uv sync --extra fa3
fa3 = ["kernels>=0.11.7"]

[tool.uv.sources]
torch = [
{ index = "pytorch-cu128" },
{ index = "pytorch-cu121" },
]

[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
name = "pytorch-cu121"
url = "https://download.pytorch.org/whl/cu121"
explicit = true
Loading