Download README.md from zlab-princeton/XStack: direct link, hf CLI and curl.
- Browser
- Download file 8.69 kB
-
https://huggingface.co/datasets/zlab-princeton/XStack/resolve/main/README.md
- Command line
-
hf download hf://datasets/zlab-princeton/XStack/README.md
-
curl -L -o README.md https://huggingface.co/datasets/zlab-princeton/XStack/resolve/main/README.md
language:
- en
license: cc-by-4.0
size_categories:
- n<1K
pretty_name: XStack
task_categories:
- other
tags:
- code
- agents
- jax
- pytorch
- tpu
- repository-migration
- benchmark
- agent-traces
- trajectories
configs:
- config_name: default
default: true
data_files:
- split: test
path: data/test.parquet
- config_name: traces
data_files:
- split: cells
path: traces/cells.parquet
XStack: A Benchmark for ML Repo Migration
Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu
Princeton University
๐ Paper | ๐ป Code | ๐ Agent traces
XStack asks a coding agent to migrate a whole machine-learning repository from PyTorch to JAX and make it work at the source's own scale. Each of the 20 tasks is a real repository at a pinned commit. The agent gets the source, a bare TPU machine and one prompt, and is never told the metric, the bar or the dataset. A fresh machine runs the migration at full scale and compares its headline number with the source's published result, two judges read the transcript, and the exported weights must load into the source model. A failed blind turn gets one more turn with the code frozen and the recipe stated.
Seven agents on the 20 tasks: Claude Opus 5 passes 75%, GPT-5.6-sol 45%, every other agent at most 40%. Every run is in this dataset.
What is here
data/test.parquet the 20 tasks: source, pinned commit, prompt, phase-2 message, hidden criteria
migrations/<task>.tar.gz the seven agents' hand-ins for one task, one folder per model, with a manifest
traces/cells.parquet one row per run: model, task, verdicts, weight-load check, failure class, tokens, cost
traces/cells/<run>/<model>_<effort>/<task>_e2e/
prompt.txt, phase2.txt what the agent was told
trajectory.jsonl the full transcript, both turns
migration_final.tar.gz the hand-in: code and text files only
grade/ the metrics file and the log tail of each graded turn
judges/, readers/ the correctness and cheat judges' answers (three runs each), the failure judge's answer
meta.json, turns.jsonl the cell's record and the verdict of each turn
data/test.parquet is the default config (split test); traces/cells.parquet is the traces config (split cells); both also exist as test.jsonl and cells.csv. The traces are about 2 GB in 2,800 files. Transcripts are the Codex CLI rollout for the Codex agents and the Claude Code stream-json trace for the others. Credential values, token-shaped strings, IP addresses and our cluster's names and paths are replaced by placeholders such as <REDACTED-TOKEN> and <scratch>; nothing else was edited.
Load
from datasets import load_dataset
from huggingface_hub import hf_hub_download, snapshot_download
repo = "zlab-princeton/XStack"
tasks = load_dataset(repo, split="test") # 20 tasks
cells = load_dataset(repo, "traces", split="cells") # 140 runs
cell = next(c for c in cells if c["model"] == "claude-opus-5" and c["repo"] == "nanogpt")
snapshot_download(repo, repo_type="dataset", allow_patterns=f"traces/cells/{cell['cell_id']}/*") # one run
hf_hub_download(repo, "migrations/nanogpt.tar.gz", repo_type="dataset") # one task's seven hand-ins
To run an agent on a task, give it prompt, the repository at source_commit and a TPU machine it sets up itself. Keep criteria and phase2 out of its reach; phase2 is sent only after a failed blind turn. The harness does this and grades the result.
Tasks
| task | domain | source |
|---|---|---|
mingpt |
language modeling | minGPT @ 37baab7 |
makemore |
language modeling | makemore @ 988aa59 |
lora |
fine-tuning | LoRA @ c4593f0 |
ast |
audio classification | AST @ 31088be |
x_transformers |
language modeling | x-transformers @ dfd829b |
llama2c |
language modeling | llama2.c @ 350e04f |
modded_nanogpt |
language modeling | modded-nanoGPT @ 1b51e26 |
airbench |
image classification | airbench @ 4c1b6d1 |
simcse |
sentence embeddings | SimCSE @ 49fa580 |
generative_recommenders |
recommendation | HSTU @ fb0ba64 |
s4 |
long-sequence modeling | S4 @ e757cef |
tdmpc2 |
reinforcement learning | TD-MPC2 @ e9f5932 |
nanochat_core |
language modeling | nanochat @ dc54a1a |
tensorf |
neural fields | TensoRF @ 6a1e23b |
nanogpt |
language modeling | nanoGPT @ 3adf61e |
nanovlm |
vision-language | nanoVLM @ 6ba9082 |
deepspeech |
speech recognition | deepspeech @ b88a631 |
tgn |
temporal graph learning | TGN @ d55bbe6 |
patchtst |
time-series forecasting | PatchTST @ 204c21e |
tabr |
tabular learning | TabR @ 17baa90 |
Fields of a task
| Field | Meaning |
|---|---|
task_id, name, domain |
The task, its display name and what the repository does |
source_repo, source_commit, source_at_commit, source_license, source_drop, source_tree_sha256 |
The repository, the pinned commit and a link to it, its license, the paths not vendored, and a hash of the file list |
prompt, contract_lines, phase2 |
The phase-1 prompt and its task-specific lines, and the phase-2 message, all verbatim |
pipeline, graded_quantity, bar, bar_cmp, bar_value, bar_value_2, bar_kind |
What is graded, the bar (at least or at most a value, or a band) and where it comes from |
dataset, seed, grade_cmd, expected_grade_wall_h, criteria |
What the grading machine runs, how long it takes, and the hidden criteria in full |
License
CC BY 4.0. The repositories the tasks point to keep their own licenses (source_license). The migrations and traces are model output written against those repositories; the sources are not included.
Citation
@article{cai2026xstack,
title = {XStack: A Benchmark for ML Repo Migration},
author = {Cai, Linrong and Lu, Taiming and Chen, Haozhe and Liu, Zhuang},
year = {2026}
}