XStack / data /test.jsonl
LinRongCai's picture
XStack benchmark: 20 tasks (card, data, figures)
52d6701 verified
Raw History Blame Contribute Delete
213 kB
{"task_id": "mingpt", "name": "minGPT", "domain": "language modeling", "source_repo": "https://github.com/karpathy/minGPT", "source_commit": "37baab71b9abea1b76ab957409a1cc2fbfba8a26", "source_at_commit": "https://github.com/karpathy/minGPT/tree/37baab71b9abea1b76ab957409a1cc2fbfba8a26", "source_license": "MIT", "source_drop": "[\".gitignore\", \"demo.ipynb\", \"generate.ipynb\", \"mingpt.jpg\"]", "source_tree_sha256": "e2695296b424109c28798e69b2e3cf882962099ed6619c1ab6b580443e4c1c6b", "pipeline": "the source repository's adder demo", "graded_quantity": "at least 495 of 500 correct adder test answers", "bar": "at least 495", "bar_cmp": "ge", "bar_value": 495, "bar_value_2": null, "bar_kind": "rule", "dataset": "the source-generated addition dataset", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 0.2, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's adder demo, `projects/adder/adder.py`, at its default configuration: `ndigit` 2, the `gpt-nano` model (3 layers, 3 heads, embedding width 48, a vocabulary of the 10 digits, block size 6), and the source's trainer defaults except its own learning rate of 5e-4 (batch size 64, AdamW with betas 0.9/0.95, weight decay 0.1 on matrix weights, gradient-norm clip 1.0). Build the addition dataset the way the source does: all 10,000 two-digit problems permuted by the source's fixed generator seed, the first 500 held out as the test split and the rest used for training, each problem rendered as the digits of a, b and the reversed zero-padded sum, with the loss masked to the answer positions. Train with the source's sampling-with-replacement loader and, every 500 iterations, evaluate the way the source's `eval_split` does: feed the first four digits of each problem, greedily decode the three answer digits, reverse them, and count a problem correct when the decoded integer equals a plus b, over the whole training split and the whole 500-problem test split. The source's loop is open-ended, so apply this stop rule: stop when the test-split correct count has not improved for 5 consecutive evaluations, and in any case after at most 20,000 iterations. The number to report is the best test-split correct count seen at any evaluation of the run, out of the 500 test problems.\nWrite the metrics JSON with at least: {\"adder_test_correct\": int, \"adder_test_total\": int}\n", "criteria": "{\"dataset\": \"the source-generated addition dataset\", \"pipeline\": \"the source repository's adder demo\", \"bar_sentence\": \"at least 495 of 500 correct adder test answers\", \"protocol_sentence\": \"scored by the source's own evaluation\", \"bar\": 495, \"bar_cmp\": \"ge\", \"metric_re\": \"test.*(correct|acc|score)|(correct|acc|score).*test|final.*correct|correct.*final\", \"repo\": \"mingpt\", \"seed\": 1337, \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar_provenance\": {\"kind\": \"rule\", \"quote\": \"`adder_test_correct` is the graded number: PASS iff >= 495 of 500 (source expectation is 500/500; below 495 indicates a real defect).\", \"verified\": true, \"note\": \"minGPT publishes no adder result anywhere in the tree (projects/adder/readme.md is three lines), so 495/500 is our rule against the source's own \\\"%s final score: %d/%d\\\" print.\"}, \"expected_grade_wall_h\": 0.2, \"phase2_recipe\": \"Run the source repository's adder demo, `projects/adder/adder.py`, at its default configuration: `ndigit` 2, the `gpt-nano` model (3 layers, 3 heads, embedding width 48, a vocabulary of the 10 digits, block size 6), and the source's trainer defaults except its own learning rate of 5e-4 (batch size 64, AdamW with betas 0.9/0.95, weight decay 0.1 on matrix weights, gradient-norm clip 1.0). Build the addition dataset the way the source does: all 10,000 two-digit problems permuted by the source's fixed generator seed, the first 500 held out as the test split and the rest used for training, each problem rendered as the digits of a, b and the reversed zero-padded sum, with the loss masked to the answer positions. Train with the source's sampling-with-replacement loader and, every 500 iterations, evaluate the way the source's `eval_split` does: feed the first four digits of each problem, greedily decode the three answer digits, reverse them, and count a problem correct when the decoded integer equals a plus b, over the whole training split and the whole 500-problem test split. The source's loop is open-ended, so apply this stop rule: stop when the test-split correct count has not improved for 5 consecutive evaluations, and in any case after at most 20,000 iterations. The number to report is the best test-split correct count seen at any evaluation of the run, out of the 500 test problems.\\nWrite the metrics JSON with at least: {\\\"adder_test_correct\\\": int, \\\"adder_test_total\\\": int}\"}"}
{"task_id": "makemore", "name": "makemore", "domain": "language modeling", "source_repo": "https://github.com/karpathy/makemore", "source_commit": "988aa59e4d8fefa526d06f3b453ad116258398d4", "source_at_commit": "https://github.com/karpathy/makemore/tree/988aa59e4d8fefa526d06f3b453ad116258398d4", "source_license": "MIT", "source_drop": "[]", "source_tree_sha256": "bbff2dd5575af05617ba6ab9956b440736a4839b7b86239be98b5c4551d1cbdb", "pipeline": "the source repository's character-level training pipeline", "graded_quantity": "a best test NLL of at most 1.95", "bar": "at most 2.023", "bar_cmp": "le", "bar_value": 2.023, "bar_value_2": null, "bar_kind": "readme", "dataset": "the bundled names.txt dataset", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 0.25, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's `makemore.py` at its defaults: the `transformer` model type with 4 layers, 4 heads and 64 feature channels, on the bundled `names.txt`. Build the datasets the way the source's `create_datasets` does: read the names, hold out a test split of min(1,000, 10 percent of the words) chosen by a random permutation, use the rest for training, and keep the source's character vocabulary and block size (the longest word plus one). Optimise with the source's AdamW (learning rate 5e-4, weight decay 0.01, betas 0.9/0.99, eps 1e-8) at batch size 32 through the source's infinite loader. Evaluate at the source's cadence, every 500 steps, computing the mean test-split loss the way the source's `evaluate` function does (shuffled batches of 100, capped at the source's batch count, in inference mode), and track the best test loss seen, which is the quantity the source checkpoints on. The source's loop is open-ended, so apply this stop rule: run at most 25,000 optimizer steps, and stop earlier if the best test loss has not improved for 5 consecutive evaluations. Report the best test negative log-likelihood (the source's mean cross-entropy loss on the test split) over the run and the number of optimizer steps actually run.\nWrite the metrics JSON with at least: {\"best_test_nll\": float, \"steps_run\": int}\n", "criteria": "{\"dataset\": \"the bundled names.txt dataset\", \"pipeline\": \"the source repository's character-level training pipeline\", \"bar_sentence\": \"a best test NLL of at most 1.95\", \"protocol_sentence\": \"evaluated the way the source does\", \"bar\": 2.023, \"bar_cmp\": \"le\", \"metric_re\": \"test.*(nll|loss)|(nll|loss).*test\", \"repo\": \"makemore\", \"seed\": 1337, \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"Here are some unique baby names that get eventually generated from current default settings (test logprob of ~1.92, though much lower logprobs are achievable with some hyperparameter tuning):\", \"verified\": true, \"note\": \"Bar 1.95 is this ~1.92 plus a tolerance.\"}, \"expected_grade_wall_h\": 0.25, \"phase2_recipe\": \"Run the source repository's `makemore.py` at its defaults: the `transformer` model type with 4 layers, 4 heads and 64 feature channels, on the bundled `names.txt`. Build the datasets the way the source's `create_datasets` does: read the names, hold out a test split of min(1,000, 10 percent of the words) chosen by a random permutation, use the rest for training, and keep the source's character vocabulary and block size (the longest word plus one). Optimise with the source's AdamW (learning rate 5e-4, weight decay 0.01, betas 0.9/0.99, eps 1e-8) at batch size 32 through the source's infinite loader. Evaluate at the source's cadence, every 500 steps, computing the mean test-split loss the way the source's `evaluate` function does (shuffled batches of 100, capped at the source's batch count, in inference mode), and track the best test loss seen, which is the quantity the source checkpoints on. The source's loop is open-ended, so apply this stop rule: run at most 25,000 optimizer steps, and stop earlier if the best test loss has not improved for 5 consecutive evaluations. Report the best test negative log-likelihood (the source's mean cross-entropy loss on the test split) over the run and the number of optimizer steps actually run.\\nWrite the metrics JSON with at least: {\\\"best_test_nll\\\": float, \\\"steps_run\\\": int}\"}"}
{"task_id": "lora", "name": "LoRA", "domain": "fine-tuning", "source_repo": "https://github.com/microsoft/LoRA", "source_commit": "c4593f060e6a368d7bb5af5273b8e42810cdef90", "source_at_commit": "https://github.com/microsoft/LoRA/tree/c4593f060e6a368d7bb5af5273b8e42810cdef90", "source_license": "MIT", "source_drop": "[\"examples/NLU\"]", "source_tree_sha256": "1e161c11010c7e5295949ee554e6073d2f658819f5590f459b02a2989e013e65", "pipeline": "the source repository's E2E NLG reproduction pipeline (LoRA fine-tuning of the public GPT-2 medium checkpoint, then beam-search decoding of the test set)", "graded_quantity": "a corpus BLEU of at least 0.680 on the E2E test set (the source scorer's 0-1 scale; published 0.704)", "bar": "band 0.68 to 1.0", "bar_cmp": "band", "bar_value": 0.68, "bar_value_2": 1.0, "bar_kind": "readme", "dataset": "the E2E NLG Challenge dataset bundled in the source repository", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 1.5, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nFollow the source repository's `examples/NLG/README.md` section \"Replicating Our Result on E2E\" end to end, on the E2E NLG Challenge data bundled at `examples/NLG/data/e2e/`. Setup is the README's two scripts: `download_pretrained_checkpoints.sh` fetches the public GPT-2 medium pretrained weights (`gpt2-medium-pytorch_model.bin`; any public serialization of that same checkpoint is equivalent), and `create_datasets.sh` converts `data/e2e/{train,valid,test}.txt` with `src/format_converting_e2e.py` and BPE-encodes them with `src/gpt2_encode.py --add_bos --add_eos` using the vendored `vocab/`. Train with `src/gpt2_ft.py` exactly as the README's command sets it: model card `gpt2.md` (24 layers, 16 heads, width 1024) initialized from that checkpoint, all base weights frozen via `mark_only_lora_as_trainable`, LoRA on the query and value parts of the fused `c_attn` projection with `lora_dim` 4, `lora_alpha` 32 and `lora_dropout` 0.1, `train_batch_size` 8, `grad_acc` 1, `seq_len` 512, `lr` 0.0002, `weight_decay` 0.01, `correct_bias`, `adam_beta2` 0.999, linear schedule with `warmup_step` 500, `clip` 0.0, `label_smooth` 0.1, and `max_epoch` 5 (26,290 optimizer steps over the 42,061 training examples), with the validation loss on `valid.jsonl` at `valid_batch_size` 4 computed every 2,000 steps as the source does. Decode the test set from the weights at the end of training (the checkpoint the README's decode command names as `model.26289.pt`) with `src/gpt2_beam.py` as the README's command sets it: `data/e2e/test.jsonl`, `batch_size` 1, `seq_len` 512, `eval_len` 64, `beam` 10, `length_penalty` 0.8, `no_repeat_ngram_size` 4, `repetition_penalty` 1.0, and `--eos_token_id 628` added to the default end-of-text id 50256. Convert the beam output with `src/gpt2_decode.py` against `data/e2e/test_formatted.jsonl`, which groups the references by identical meaning representation into `e2e_ref.txt` and writes one hypothesis per meaning representation into `e2e_pred.txt`. Score with the scorer the README's `eval/download_evalscript.sh` clones (`tuetschek/e2e-metrics`, checked out as `eval/e2e/`) via `python eval/e2e/measure_scores.py e2e_ref.txt e2e_pred.txt -p`, and report the corpus BLEU that command prints, on the 0 to 1 scale it prints (not multiplied by 100).\nWrite the metrics JSON with at least: {\"bleu\": float}\n", "criteria": "{\"repo\": \"lora\", \"seed\": 1337, \"dataset\": \"the E2E NLG Challenge dataset bundled in the source repository\", \"pipeline\": \"the source repository's E2E NLG reproduction pipeline (LoRA fine-tuning of the public GPT-2 medium checkpoint, then beam-search decoding of the test set)\", \"bar_sentence\": \"a corpus BLEU of at least 0.680 on the E2E test set (the source scorer's 0-1 scale; published 0.704)\", \"protocol_sentence\": \"(pymteval BLEU over the 630 multi-reference test MRs grouped the way the source's decode step does; the band's upper bound 1.0 is the metric ceiling, so a x100-scaled field cannot false-PASS)\", \"bar\": 0.68, \"bar2\": 1.0, \"bar_cmp\": \"band\", \"metric_re\": \"bleu(?!.*(bp|brevity|prec|ngram|hit|len|smooth))\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"GPT-2 M (LoRA), # of Trainable Params: 0.35M, E2E (BLEU): 70.4±.1, DART (BLEU): 47.1±.2, WebNLG (BLEU-U/S/A): 46.7±.4/62.1±.2/55.3±.2\", \"verified\": true, \"note\": \"The row's <b> bold tags are dropped in this transcription; 70.4 is the paper Table 3 three-seed mean (Table 18 unrounded 70.38) and the bar is the band [0.680, 1.0] on the source scorer's 0-1 scale.\"}, \"expected_grade_wall_h\": 1.5, \"phase2_recipe\": \"Follow the source repository's `examples/NLG/README.md` section \\\"Replicating Our Result on E2E\\\" end to end, on the E2E NLG Challenge data bundled at `examples/NLG/data/e2e/`. Setup is the README's two scripts: `download_pretrained_checkpoints.sh` fetches the public GPT-2 medium pretrained weights (`gpt2-medium-pytorch_model.bin`; any public serialization of that same checkpoint is equivalent), and `create_datasets.sh` converts `data/e2e/{train,valid,test}.txt` with `src/format_converting_e2e.py` and BPE-encodes them with `src/gpt2_encode.py --add_bos --add_eos` using the vendored `vocab/`. Train with `src/gpt2_ft.py` exactly as the README's command sets it: model card `gpt2.md` (24 layers, 16 heads, width 1024) initialized from that checkpoint, all base weights frozen via `mark_only_lora_as_trainable`, LoRA on the query and value parts of the fused `c_attn` projection with `lora_dim` 4, `lora_alpha` 32 and `lora_dropout` 0.1, `train_batch_size` 8, `grad_acc` 1, `seq_len` 512, `lr` 0.0002, `weight_decay` 0.01, `correct_bias`, `adam_beta2` 0.999, linear schedule with `warmup_step` 500, `clip` 0.0, `label_smooth` 0.1, and `max_epoch` 5 (26,290 optimizer steps over the 42,061 training examples), with the validation loss on `valid.jsonl` at `valid_batch_size` 4 computed every 2,000 steps as the source does. Decode the test set from the weights at the end of training (the checkpoint the README's decode command names as `model.26289.pt`) with `src/gpt2_beam.py` as the README's command sets it: `data/e2e/test.jsonl`, `batch_size` 1, `seq_len` 512, `eval_len` 64, `beam` 10, `length_penalty` 0.8, `no_repeat_ngram_size` 4, `repetition_penalty` 1.0, and `--eos_token_id 628` added to the default end-of-text id 50256. Convert the beam output with `src/gpt2_decode.py` against `data/e2e/test_formatted.jsonl`, which groups the references by identical meaning representation into `e2e_ref.txt` and writes one hypothesis per meaning representation into `e2e_pred.txt`. Score with the scorer the README's `eval/download_evalscript.sh` clones (`tuetschek/e2e-metrics`, checked out as `eval/e2e/`) via `python eval/e2e/measure_scores.py e2e_ref.txt e2e_pred.txt -p`, and report the corpus BLEU that command prints, on the 0 to 1 scale it prints (not multiplied by 100).\\nWrite the metrics JSON with at least: {\\\"bleu\\\": float}\"}"}
{"task_id": "ast", "name": "AST", "domain": "audio classification", "source_repo": "https://github.com/YuanGongND/ast", "source_commit": "31088be8a3f6ef96416145c4b8d43c81f99eba7a", "source_at_commit": "https://github.com/YuanGongND/ast/tree/31088be8a3f6ef96416145c4b8d43c81f99eba7a", "source_license": "BSD-3-Clause", "source_drop": "[]", "source_tree_sha256": "28340425946ad0a93f31a909163d3a7bb0e0c8e061464a3fed6b01caf996e334", "pipeline": "the source repository's Speech Commands V2-35 reproduction recipe (AST base384 initialized from ImageNet DeiT, 30 epochs)", "graded_quantity": "a test-split top-1 accuracy of at least 0.975", "bar": "band 0.975 to 1.0", "bar_cmp": "band", "bar_value": 0.975, "bar_value_2": 1.0, "bar_kind": "readme", "dataset": "the Speech Commands V2 dataset (35-class version) with the train/validation/test split shipped inside the archive", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 1.0, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's Speech Commands recipe `egs/speechcommands/run_sc.sh` (not the ESC-50 or AudioSet recipes), which runs `prep_sc.py` and then `src/run.py` with the script's variables. Data is `speech_commands_v0.02`, downloaded from the URL in `prep_sc.py` and split the way that script does: the archive's `validation_list.txt` is the validation set, its `testing_list.txt` is the evaluation set, and every other clip outside `_background_noise_` is training data, over the 35 classes in `data/speechcommands_class_labels_indices.csv`. The model is `ast` with `fstride` and `tstride` 10 on `audio_length` 128 frames of 128-bin filterbank features normalised with `dataset_mean` -6.845978 and `dataset_std` 5.5654526, initialised from the ImageNet DeiT weights (`imagenet_pretrain=True`) and not from AudioSet (`audioset_pretrain=False`). Training is 30 epochs at batch size 128 with the source's Adam (learning rate 2.5e-4, weight decay 5e-7, betas 0.95/0.999), BCE loss, no warmup, a MultiStepLR starting at epoch 5 with step 1 and decay 0.85, `freqm` and `timem` 48, mixup 0.6, `noise=True` and `bal=none`. Validate after every epoch on the validation set with the source's accuracy metric and keep the checkpoint with the best validation accuracy, as the source does. After training, load that checkpoint and evaluate it once on the validation set and once on the evaluation set the way the `speechcommands` tail of `run.py` does, computing accuracy as the fraction of clips whose argmax over the 35 logits matches the label. Report the evaluation-set accuracy as the number, on the source's 0 to 1 scale, together with the validation accuracy of the same checkpoint, its epoch, and the three split sizes.\nWrite the metrics JSON with at least: {\"eval_acc\": float, \"val_acc\": float, \"best_epoch\": int, \"n_train\": int, \"n_val\": int, \"n_eval\": int}\n", "criteria": "{\"repo\": \"ast\", \"seed\": 1337, \"dataset\": \"the Speech Commands V2 dataset (35-class version) with the train/validation/test split shipped inside the archive\", \"pipeline\": \"the source repository's Speech Commands V2-35 reproduction recipe (AST base384 initialized from ImageNet DeiT, 30 epochs)\", \"bar_sentence\": \"a test-split top-1 accuracy of at least 0.975\", \"protocol_sentence\": \"evaluated the way the source does: argmax over the 35 logits on the 11,005-clip testing_list.txt split, on the best-validation-accuracy checkpoint\", \"bar\": 0.975, \"bar_cmp\": \"band\", \"metric_re\": \"(test|eval).*(acc|top.?1)|(acc|top.?1).*(test|eval)\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar2\": 1.0, \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"We attached our log file in `ast/egs/speechcommends/test-speechcommands-f10-t10-p-b128-lr2.5e-4-0.5-false`, the model achieves `98.12%` accuracy.\", \"verified\": true, \"note\": \"Bar 0.975 is this 98.12 (and paper arXiv:2104.01778 Table 3, AST-S, 98.11 +/- 0.05) minus about 1.2 pp, because the shipped 98.128 log used mixup 0.5 and the pre-refactor LR milestones rather than the committed run_sc.sh config; README.md:35 states the same result rounded to 98.1%.\"}, \"expected_grade_wall_h\": 1.0, \"phase2_recipe\": \"Run the source repository's Speech Commands recipe `egs/speechcommands/run_sc.sh` (not the ESC-50 or AudioSet recipes), which runs `prep_sc.py` and then `src/run.py` with the script's variables. Data is `speech_commands_v0.02`, downloaded from the URL in `prep_sc.py` and split the way that script does: the archive's `validation_list.txt` is the validation set, its `testing_list.txt` is the evaluation set, and every other clip outside `_background_noise_` is training data, over the 35 classes in `data/speechcommands_class_labels_indices.csv`. The model is `ast` with `fstride` and `tstride` 10 on `audio_length` 128 frames of 128-bin filterbank features normalised with `dataset_mean` -6.845978 and `dataset_std` 5.5654526, initialised from the ImageNet DeiT weights (`imagenet_pretrain=True`) and not from AudioSet (`audioset_pretrain=False`). Training is 30 epochs at batch size 128 with the source's Adam (learning rate 2.5e-4, weight decay 5e-7, betas 0.95/0.999), BCE loss, no warmup, a MultiStepLR starting at epoch 5 with step 1 and decay 0.85, `freqm` and `timem` 48, mixup 0.6, `noise=True` and `bal=none`. Validate after every epoch on the validation set with the source's accuracy metric and keep the checkpoint with the best validation accuracy, as the source does. After training, load that checkpoint and evaluate it once on the validation set and once on the evaluation set the way the `speechcommands` tail of `run.py` does, computing accuracy as the fraction of clips whose argmax over the 35 logits matches the label. Report the evaluation-set accuracy as the number, on the source's 0 to 1 scale, together with the validation accuracy of the same checkpoint, its epoch, and the three split sizes.\\nWrite the metrics JSON with at least: {\\\"eval_acc\\\": float, \\\"val_acc\\\": float, \\\"best_epoch\\\": int, \\\"n_train\\\": int, \\\"n_val\\\": int, \\\"n_eval\\\": int}\"}"}
{"task_id": "x_transformers", "name": "x-transformers", "domain": "language modeling", "source_repo": "https://github.com/lucidrains/x-transformers", "source_commit": "dfd829b8c1e291ad03c95f509fc874d55f3da40d", "source_at_commit": "https://github.com/lucidrains/x-transformers/tree/dfd829b8c1e291ad03c95f509fc874d55f3da40d", "source_license": "MIT", "source_drop": "[\".gitignore\", \"data/enwik8.gz\", \"images\"]", "source_tree_sha256": "1e502d82fc69c21377d7d8235f58fac69caf078dc0a30230128a7ef20ed89f5c", "pipeline": "the source repository's canonical enwik8 training demo", "graded_quantity": "a validation loss between 0.8788 and 0.9788", "bar": "band 0.878835 to 0.978835", "bar_cmp": "band", "bar_value": 0.878835, "bar_value_2": 0.978835, "bar_kind": "anchor", "dataset": "the enwik8 dataset", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 1.5, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's enwik8 demo `train_enwik8.py` (at the repository root) with its `train` defaults and nothing changed in substance. Data is the enwik8 corpus named in the source's `data/README.md`, read from `./data/enwik8.gz` as the first 95e6 decompressed bytes, split at byte 90e6 into training and validation, and sampled as random windows of `seq_len` 1024 plus one byte. The model is the demo's `TransformerWrapper` with 256 tokens, `max_seq_len` 1024 and a `Decoder` of dim 512, depth 6, 8 heads, `rotary_pos_emb=False`, `polar_pos_emb=True` and `pre_and_post_norm=True`, wrapped in `AutoregressiveWrapper`. Train for the demo's full `num_batches` of 100,000 optimizer steps, each accumulating `gradient_accumulate_every` 4 micro-batches of `batch_size` 4, with Adam at learning rate 1e-4 and gradient-norm clipping at 0.5. Keep the demo's validation protocol and cadence unchanged: every 100 steps, one validation batch of the demo's batch size and sequence length drawn uniformly at random from the validation split, in eval mode; and keep its sample generation every 500 steps with `generate_length` equal to `seq_len` and KV-cache decoding. Report every validation loss in order, the last one, and the mean of the last 10, plus the counts the field names describe: optimizer steps run, training tokens seen (steps times accumulation times batch size times sequence length), training wall seconds, device count, the sha256 of the 95e6 bytes as read, and the byte sizes of the two splits.\nWrite the metrics JSON with at least: {\"final_val_loss\": float, \"smoothed_val_loss\": float, \"val_losses\": [float, ...], \"iters_run\": int, \"tokens_seen\": int, \"wall_seconds\": float, \"device_count\": int, \"data_sha256\": str, \"train_split_bytes\": int, \"val_split_bytes\": int}\n", "criteria": "{\"repo\": \"x_transformers\", \"seed\": 1337, \"dataset\": \"the enwik8 dataset\", \"pipeline\": \"the source repository's canonical enwik8 training demo\", \"bar_sentence\": \"a validation loss between 0.8788 and 0.9788\", \"protocol_sentence\": \"(the anchor band of the unmodified source demo, seeds within 0.05)\", \"bar\": 0.878835, \"bar2\": 0.978835, \"bar_cmp\": \"band\", \"metric_re\": \"smoothed.*val.*loss(?!.*window)|val.*loss(?!.*window)|loss.*val(?!.*window)\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar_provenance\": {\"kind\": \"anchor\", \"quote\": \"anchor1 smoothed_last10: 0.9061592996120453, anchor2 smoothed_last10: 0.9515106797218322, mean: 0.9288349896669388, spread: 0.0453513801097869\", \"verified\": true, \"note\": \"The bar 0.878835 is the anchor mean 0.9288349896669388 minus the pre-registered 0.05 band. The anchor spread 0.0454 nearly saturates the 0.05 band.\"}, \"expected_grade_wall_h\": 1.5, \"phase2_recipe\": \"Run the source repository's enwik8 demo `train_enwik8.py` (at the repository root) with its `train` defaults and nothing changed in substance. Data is the enwik8 corpus named in the source's `data/README.md`, read from `./data/enwik8.gz` as the first 95e6 decompressed bytes, split at byte 90e6 into training and validation, and sampled as random windows of `seq_len` 1024 plus one byte. The model is the demo's `TransformerWrapper` with 256 tokens, `max_seq_len` 1024 and a `Decoder` of dim 512, depth 6, 8 heads, `rotary_pos_emb=False`, `polar_pos_emb=True` and `pre_and_post_norm=True`, wrapped in `AutoregressiveWrapper`. Train for the demo's full `num_batches` of 100,000 optimizer steps, each accumulating `gradient_accumulate_every` 4 micro-batches of `batch_size` 4, with Adam at learning rate 1e-4 and gradient-norm clipping at 0.5. Keep the demo's validation protocol and cadence unchanged: every 100 steps, one validation batch of the demo's batch size and sequence length drawn uniformly at random from the validation split, in eval mode; and keep its sample generation every 500 steps with `generate_length` equal to `seq_len` and KV-cache decoding. Report every validation loss in order, the last one, and the mean of the last 10, plus the counts the field names describe: optimizer steps run, training tokens seen (steps times accumulation times batch size times sequence length), training wall seconds, device count, the sha256 of the 95e6 bytes as read, and the byte sizes of the two splits.\\nWrite the metrics JSON with at least: {\\\"final_val_loss\\\": float, \\\"smoothed_val_loss\\\": float, \\\"val_losses\\\": [float, ...], \\\"iters_run\\\": int, \\\"tokens_seen\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int, \\\"data_sha256\\\": str, \\\"train_split_bytes\\\": int, \\\"val_split_bytes\\\": int}\"}"}
{"task_id": "llama2c", "name": "llama2.c", "domain": "language modeling", "source_repo": "https://github.com/karpathy/llama2.c", "source_commit": "350e04fe35433e6d2941dce5a1f53308f87058eb", "source_at_commit": "https://github.com/karpathy/llama2.c/tree/350e04fe35433e6d2941dce5a1f53308f87058eb", "source_license": "MIT", "source_drop": "[]", "source_tree_sha256": "c4e6cfd3d2939f5c43bdde3b9aa4ea4b3110fc1bb64c5a43049f878de7961eaf", "pipeline": "the source repository's default TinyStories Llama-2 pretraining pipeline (train.py defaults)", "graded_quantity": "a best validation loss of at most 1.130 at the source's own 100,000-iteration default horizon (two-seed anchor of the unmodified source: 1.0992 / 1.0978, plus 0.03)", "bar": "at most 1.13", "bar_cmp": "le", "bar_value": 1.13, "bar_value_2": null, "bar_kind": "anchor", "dataset": "the TinyStories dataset", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 3, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nPrepare TinyStories the way the source repository does: `python tinystories.py download` fetches `TinyStories_all_data.tar.gz` from the `roneneldan/TinyStories` dataset repository and unpacks its JSON shards, and `python tinystories.py pretokenize` encodes every story with the vendored Llama-2 `tokenizer.model` (32,000-token vocabulary, BOS prepended, no EOS) into `uint16` `.bin` shards, of which shard 0 is the validation split and shards 1 onward are the training split. Then run `python train.py` at its own defaults with nothing overridden: dim 288, 6 layers, 6 heads, 6 key-value heads, `multiple_of` 32, max sequence length 256, dropout 0.0, micro-batch 128 with 4 gradient-accumulation steps (131,072 tokens per iteration), AdamW with peak learning rate 5e-4, betas 0.9 and 0.95, weight decay 0.1, gradient clipping 1.0, 1,000 warmup iterations, and cosine decay to a minimum learning rate of 0.0 at iteration 100,000. Train for the source's default `max_iters` of 100,000 optimizer iterations and stop there. Every 2,000 iterations, including iteration 0, evaluate the way the source's `estimate_loss` does: 100 batches of 128 sequences of 256 tokens from the validation shard, drawn by a fresh instance of the source's batch iterator (fixed shuffle seed 42, so every evaluation scores the same subsample), mean cross-entropy over the 100 batches. The number to report is the lowest validation loss observed at any evaluation over the run, the running minimum the source keeps as `best_val_loss`, together with the number of optimizer iterations actually run.\nWrite the metrics JSON with at least: {\"best_val_loss\": float, \"iters_run\": int}\n", "criteria": "{\"repo\": \"llama2c\", \"seed\": 1337, \"dataset\": \"the TinyStories dataset\", \"pipeline\": \"the source repository's default TinyStories Llama-2 pretraining pipeline (train.py defaults)\", \"bar_sentence\": \"a best validation loss of at most 1.130 at the source's own 100,000-iteration default horizon (two-seed anchor of the unmodified source: 1.0992 / 1.0978, plus 0.03)\", \"protocol_sentence\": \"under the source repository's own evaluation protocol (estimate_loss over 100 fixed-order batches of the shard-0 validation split)\", \"bar\": 1.13, \"bar_cmp\": \"le\", \"metric_re\": \"val.*loss|loss.*val\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"anchor\", \"quote\": \"seed 1337 best_val_loss 1.0992, seed 2024 best_val_loss 1.0978, both at iteration 100000 (final = best), 51 evals each, ~2.5 h per seed; spread 0.0014\", \"verified\": true, \"note\": \"No published number is usable at the graded horizon (the README's 1.072 is at 300k iterations, 3x the train.py default), so the bar is the pre-registered ceil3(worse anchor seed + 0.03) = 1.130.\"}, \"expected_grade_wall_h\": 3, \"phase2_recipe\": \"Prepare TinyStories the way the source repository does: `python tinystories.py download` fetches `TinyStories_all_data.tar.gz` from the `roneneldan/TinyStories` dataset repository and unpacks its JSON shards, and `python tinystories.py pretokenize` encodes every story with the vendored Llama-2 `tokenizer.model` (32,000-token vocabulary, BOS prepended, no EOS) into `uint16` `.bin` shards, of which shard 0 is the validation split and shards 1 onward are the training split. Then run `python train.py` at its own defaults with nothing overridden: dim 288, 6 layers, 6 heads, 6 key-value heads, `multiple_of` 32, max sequence length 256, dropout 0.0, micro-batch 128 with 4 gradient-accumulation steps (131,072 tokens per iteration), AdamW with peak learning rate 5e-4, betas 0.9 and 0.95, weight decay 0.1, gradient clipping 1.0, 1,000 warmup iterations, and cosine decay to a minimum learning rate of 0.0 at iteration 100,000. Train for the source's default `max_iters` of 100,000 optimizer iterations and stop there. Every 2,000 iterations, including iteration 0, evaluate the way the source's `estimate_loss` does: 100 batches of 128 sequences of 256 tokens from the validation shard, drawn by a fresh instance of the source's batch iterator (fixed shuffle seed 42, so every evaluation scores the same subsample), mean cross-entropy over the 100 batches. The number to report is the lowest validation loss observed at any evaluation over the run, the running minimum the source keeps as `best_val_loss`, together with the number of optimizer iterations actually run.\\nWrite the metrics JSON with at least: {\\\"best_val_loss\\\": float, \\\"iters_run\\\": int}\"}"}
{"task_id": "modded_nanogpt", "name": "modded-nanoGPT", "domain": "language modeling", "source_repo": "https://github.com/KellerJordan/modded-nanogpt", "source_commit": "1b51e26d304f647c7c12201b3f1513ee5a429ec4", "source_at_commit": "https://github.com/KellerJordan/modded-nanogpt/tree/1b51e26d304f647c7c12201b3f1513ee5a429ec4", "source_license": "MIT", "source_drop": "[\"img\", \"records\"]", "source_tree_sha256": "4b3ef87959e84e1a23f8c687cc0dcc68cdcafb7d043224a9339619caa32a060b", "pipeline": "the source repository's NanoGPT speedrun training pipeline (run.sh: torchrun train_gpt.py, the current-record recipe)", "graded_quantity": "a FineWeb validation cross-entropy loss of at most 3.285 (the source's 3.28 mean-of-N target plus a 0.005 single-run tolerance)", "bar": "at most 3.285", "bar_cmp": "le", "bar_value": 3.285, "bar_value_2": null, "bar_kind": "readme", "dataset": "the FineWeb dataset (the GPT-2-tokenized 10B-token sample the repository downloads as fineweb_{train,val}_*.bin shards)", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 1, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's current-record recipe exactly as `run.sh` runs it, `torchrun --standalone --nproc_per_node=8 train_gpt.py`, with the data prepared by `python data/cached_fineweb10B.py 8`, which downloads `fineweb_val_000000.bin` and `fineweb_train_000001.bin` through `fineweb_train_000008.bin` from the `kjj0/fineweb10B-gpt2` dataset repository into `data/fineweb10B/` (GPT-2 tokens, with the end-of-text token 50256 preceding every document). `train_gpt.py` takes no command-line options: its `Hyperparameters` class fixes `num_iterations` 1750, `cooldown_frac` 0.45, `val_loss_every` 125, `val_tokens` 10485760, `train_seq_len` 48*1024 and `val_seq_len` 4*64*1024; the model is `GPT(vocab_size=50257, num_layers=12, num_heads=6, model_dim=768)`; and the architecture, the Muon and DistAdam optimizers with their learning rates, the stable-then-linear-cooldown learning-rate schedule, the Muon momentum warm-up over the first 300 steps, and the linearly growing block-sparse sliding-window schedule are all hard-coded in that file and must be kept as written. Each optimizer step consumes 8 sequences of 49,152 tokens (393,216 tokens per step), every sequence starting on a document boundary as the source's `find_batch_starts` chooses them with `align_to_bos=True`, and training runs for exactly 1750 such steps; the source's ten kernel warm-up steps are discarded (model and optimizer state reset, data loader re-created), so the training stream starts at the beginning of `fineweb_train_000001.bin`. At step 0, every 125 steps, and at step 1750 (which is evaluation only), compute the validation loss the way the source does: mean per-token cross-entropy in eval mode over the first 10,485,760 tokens of `fineweb_val_000000.bin`, read contiguously (`align_to_bos=False`) in chunks of 262,144 tokens, with the attention window at its value for that step. The number to report is the validation loss at step 1750.\nWrite the metrics JSON with at least: {\"val_loss\": float}\n", "criteria": "{\"repo\": \"modded_nanogpt\", \"seed\": 1337, \"dataset\": \"the FineWeb dataset (the GPT-2-tokenized 10B-token sample the repository downloads as fineweb_{train,val}_*.bin shards)\", \"pipeline\": \"the source repository's NanoGPT speedrun training pipeline (run.sh: torchrun train_gpt.py, the current-record recipe)\", \"bar_sentence\": \"a FineWeb validation cross-entropy loss of at most 3.285 (the source's 3.28 mean-of-N target plus a 0.005 single-run tolerance)\", \"protocol_sentence\": \"under the source repository's own evaluation protocol (mean per-token cross-entropy over the first 10,485,760 tokens of fineweb_val_000000.bin at the end of the 1750-step schedule)\", \"bar\": 3.285, \"bar_cmp\": \"le\", \"metric_re\": \"val.*loss|loss.*val\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"2. Attain ≤3.28 mean val loss.\", \"verified\": true, \"note\": \"Bar 3.285 is this 3.28 plus a 0.005 single-run tolerance because the source's own rule is a mean-of-N significance test; the same target is stated at README.md:3, :72 and :125.\"}, \"expected_grade_wall_h\": 1, \"phase2_recipe\": \"Run the source repository's current-record recipe exactly as `run.sh` runs it, `torchrun --standalone --nproc_per_node=8 train_gpt.py`, with the data prepared by `python data/cached_fineweb10B.py 8`, which downloads `fineweb_val_000000.bin` and `fineweb_train_000001.bin` through `fineweb_train_000008.bin` from the `kjj0/fineweb10B-gpt2` dataset repository into `data/fineweb10B/` (GPT-2 tokens, with the end-of-text token 50256 preceding every document). `train_gpt.py` takes no command-line options: its `Hyperparameters` class fixes `num_iterations` 1750, `cooldown_frac` 0.45, `val_loss_every` 125, `val_tokens` 10485760, `train_seq_len` 48*1024 and `val_seq_len` 4*64*1024; the model is `GPT(vocab_size=50257, num_layers=12, num_heads=6, model_dim=768)`; and the architecture, the Muon and DistAdam optimizers with their learning rates, the stable-then-linear-cooldown learning-rate schedule, the Muon momentum warm-up over the first 300 steps, and the linearly growing block-sparse sliding-window schedule are all hard-coded in that file and must be kept as written. Each optimizer step consumes 8 sequences of 49,152 tokens (393,216 tokens per step), every sequence starting on a document boundary as the source's `find_batch_starts` chooses them with `align_to_bos=True`, and training runs for exactly 1750 such steps; the source's ten kernel warm-up steps are discarded (model and optimizer state reset, data loader re-created), so the training stream starts at the beginning of `fineweb_train_000001.bin`. At step 0, every 125 steps, and at step 1750 (which is evaluation only), compute the validation loss the way the source does: mean per-token cross-entropy in eval mode over the first 10,485,760 tokens of `fineweb_val_000000.bin`, read contiguously (`align_to_bos=False`) in chunks of 262,144 tokens, with the attention window at its value for that step. The number to report is the validation loss at step 1750.\\nWrite the metrics JSON with at least: {\\\"val_loss\\\": float}\"}"}
{"task_id": "airbench", "name": "airbench", "domain": "image classification", "source_repo": "https://github.com/KellerJordan/cifar10-airbench", "source_commit": "4c1b6d1e3889b037efadcfd5c0ea65b246592362", "source_at_commit": "https://github.com/KellerJordan/cifar10-airbench/tree/4c1b6d1e3889b037efadcfd5c0ea65b246592362", "source_license": "MIT", "source_drop": "[]", "source_tree_sha256": "7f67cfa9b1382cb9540279f7f816424117ff912ea98c507adc04ca852223ee69", "pipeline": "the source repository's airbench94 CIFAR-10 speedrun training pipeline at its own 9.9-epoch (476-step) budget, run the way the script's own __main__ runs it", "graded_quantity": "a test-time-augmented CIFAR-10 test accuracy of at least 0.9393, taken as the mean over the source's own 25-trial loop (published mean 94.01%, per-run stddev 0.128 points at n=10,000)", "bar": "band 0.9393 to 1.0", "bar_cmp": "band", "bar_value": 0.9393, "bar_value_2": 1.0, "bar_kind": "paper", "dataset": "the CIFAR-10 dataset (the standard 50,000-image training and 10,000-image test splits, obtained by the source repository's own torchvision download)", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 1.5, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's `legacy/airbench94.py` the way its own `__main__` runs it: 25 independent trainings via `main(run)` for `run` in 0 to 24, followed by the script's print of the mean and standard deviation of their accuracies. Each training uses the script's `hyp` dictionary unchanged: 9.9 epochs at batch size 1024 (476 optimizer steps, the last epoch cut short), the script's learning rate 11.5 per 1024 examples, momentum 0.85, decoupled weight decay 0.0153 per 1024 examples, a 64x bias learning-rate multiplier, label smoothing 0.2, the whitening-bias freeze after 3 epochs, the linear warmup-then-decay schedule, and the lookahead averaging over the whole state including BatchNorm statistics. Data is CIFAR-10 obtained by the script's own torchvision download: the 50,000-image training split with the script's flip-and-2-pixel-translate augmentation and the 10,000-image test split, both normalised with the script's `CIFAR_MEAN` and `CIFAR_STD`. The network is the script's `make_net` (the whitening conv initialised from the first 5,000 training images, three conv groups at widths 64/256/256, the 1/9 logit scale). At the end of each training, evaluate on the whole test split with the script's `evaluate(model, test_loader, tta_level=2)`, the mirror-and-translate test-time augmentation, on the 0 to 1 fraction scale. Report the mean of that test-time-augmented accuracy over the 25 trainings as the number, with its standard deviation and the trial count.\nWrite the metrics JSON with at least: {\"mean_tta_val_acc\": float, \"tta_val_acc_std\": float, \"num_trials\": int}\n", "criteria": "{\"repo\": \"airbench\", \"seed\": 1337, \"dataset\": \"the CIFAR-10 dataset (the standard 50,000-image training and 10,000-image test splits, obtained by the source repository's own torchvision download)\", \"pipeline\": \"the source repository's airbench94 CIFAR-10 speedrun training pipeline at its own 9.9-epoch (476-step) budget, run the way the script's own __main__ runs it\", \"bar_sentence\": \"a test-time-augmented CIFAR-10 test accuracy of at least 0.9393, taken as the mean over the source's own 25-trial loop (published mean 94.01%, per-run stddev 0.128 points at n=10,000)\", \"protocol_sentence\": \"(the source's own evaluate(model, test_loader, tta_level=2) over the whole 10,000-image test split with its 6-view mirror-and-translate averaging, returned on the 0-1 fraction scale; the band's upper bound 1.0 is the accuracy ceiling, and a percent-scaled report is rescaled /100 by the comparator rather than failing)\", \"bar\": 0.9393, \"bar2\": 1.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*(?:^|[^a-z])(?:train|std|stdev|stddev|stderr|sem|var|variance|err|loss|time)(?:[^a-z]|$))(?=.*acc(?!um|el)).*$\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"paper\", \"quote\": \"epochs: 1x, width: 1x, TTA: Yes, mean accuracy: 94.01%, test-set stddev: 0.128%, dist-wise stddev: 0.029%\", \"verified\": true, \"note\": \"Bar 0.9393 is 94.01 minus three standard errors of a 25-trial mean (0.128/sqrt(25)); 94.01 alone is also in the vendored tree at README.md:42 and legacy/airbench94.py:3, but only Table 4 carries the 0.128 stddev the tolerance uses.\"}, \"expected_grade_wall_h\": 1.5, \"phase2_recipe\": \"Run the source repository's `legacy/airbench94.py` the way its own `__main__` runs it: 25 independent trainings via `main(run)` for `run` in 0 to 24, followed by the script's print of the mean and standard deviation of their accuracies. Each training uses the script's `hyp` dictionary unchanged: 9.9 epochs at batch size 1024 (476 optimizer steps, the last epoch cut short), the script's learning rate 11.5 per 1024 examples, momentum 0.85, decoupled weight decay 0.0153 per 1024 examples, a 64x bias learning-rate multiplier, label smoothing 0.2, the whitening-bias freeze after 3 epochs, the linear warmup-then-decay schedule, and the lookahead averaging over the whole state including BatchNorm statistics. Data is CIFAR-10 obtained by the script's own torchvision download: the 50,000-image training split with the script's flip-and-2-pixel-translate augmentation and the 10,000-image test split, both normalised with the script's `CIFAR_MEAN` and `CIFAR_STD`. The network is the script's `make_net` (the whitening conv initialised from the first 5,000 training images, three conv groups at widths 64/256/256, the 1/9 logit scale). At the end of each training, evaluate on the whole test split with the script's `evaluate(model, test_loader, tta_level=2)`, the mirror-and-translate test-time augmentation, on the 0 to 1 fraction scale. Report the mean of that test-time-augmented accuracy over the 25 trainings as the number, with its standard deviation and the trial count.\\nWrite the metrics JSON with at least: {\\\"mean_tta_val_acc\\\": float, \\\"tta_val_acc_std\\\": float, \\\"num_trials\\\": int}\"}"}
{"task_id": "simcse", "name": "SimCSE", "domain": "sentence embeddings", "source_repo": "https://github.com/princeton-nlp/SimCSE", "source_commit": "49fa580a853752ede55b8c76d9debf748e214d3f", "source_at_commit": "https://github.com/princeton-nlp/SimCSE/tree/49fa580a853752ede55b8c76d9debf748e214d3f", "source_license": "MIT", "source_drop": "[\"figure\", \"slides\"]", "source_tree_sha256": "a75c53c270539bdcff30d261bb2104c8fc411bd87f214089141bbe6135af315e", "pipeline": "the source repository's unsupervised SimCSE sentence-embedding training pipeline (run_unsup_example.sh)", "graded_quantity": "an average Spearman correlation of at least 73.5 across the seven STS test sets", "bar": "band 73.5 to 100.0", "bar_cmp": "band", "bar_value": 73.5, "bar_value_2": 100.0, "bar_kind": "readme", "dataset": "the 1-million-sentence English Wikipedia corpus the source repository trains on (wiki1m_for_simcse.txt)", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 2, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's unsupervised recipe, `run_unsup_example.sh`, which invokes `train.py` with `--model_name_or_path bert-base-uncased`, `--train_file data/wiki1m_for_simcse.txt`, `--num_train_epochs 1`, `--per_device_train_batch_size 64`, `--learning_rate 3e-5`, `--max_seq_length 32`, `--temp 0.05`, `--pooler_type cls`, `--mlp_only_train`, `--evaluation_strategy steps`, `--eval_steps 125`, `--metric_for_best_model stsb_spearman`, `--load_best_model_at_end`, `--do_train`, `--do_eval` and `--fp16`. Obtain the data the way the source does: `data/download_wiki.sh` fetches the 1,000,000-sentence `wiki1m_for_simcse.txt` and `SentEval/data/downstream/download_dataset.sh` fetches and unpacks `senteval.tar`; initialize the encoder from the public `bert-base-uncased` checkpoint. Training is one epoch over the 1,000,000 sentences at batch size 64 (15,625 optimizer steps), each sentence forwarded twice under independent dropout masks to form its own positive pair, with the in-batch contrastive loss on cosine similarity at temperature 0.05 over the `[CLS]` representation fed through the source's MLP head, which is used in training only. Every 125 steps, evaluate the STS-B and SICK-R development-set Spearman correlations the way the source's trainer does, keep the checkpoint with the best STS-B development Spearman, and reload it at the end, as `--load_best_model_at_end` does. Then evaluate that selected checkpoint with the source's own `python evaluation.py --pooler cls_before_pooler --task_set sts --mode test`: the raw `[CLS]` output of the encoder's last layer with no MLP head, cosine similarity, on the test sets of STS12, STS13, STS14, STS15, STS16, STS-B and SICK-R, Spearman correlation times 100 per task with the \"all\" aggregation for STS12 through STS16, and the average of the seven per-task numbers as the last column of the printed `------ test ------` table. The number to report is that seven-task test average, on the times-100 scale the table prints.\nWrite the metrics JSON with at least: {\"avg_sts\": float}\n", "criteria": "{\"repo\": \"simcse\", \"seed\": 1337, \"dataset\": \"the 1-million-sentence English Wikipedia corpus the source repository trains on (wiki1m_for_simcse.txt)\", \"pipeline\": \"the source repository's unsupervised SimCSE sentence-embedding training pipeline (run_unsup_example.sh)\", \"bar_sentence\": \"an average Spearman correlation of at least 73.5 across the seven STS test sets\", \"protocol_sentence\": \"measured by the source repository's own evaluation protocol (evaluation.py --pooler cls_before_pooler --task_set sts --mode test; published 76.25 minus a seed tolerance, see grading_note)\", \"bar\": 73.5, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*eval_avg_sts)(?!.*(sts1[2-6]|stsb|sts[-_]b|sick|pearson|dev|best|nli|(?<!un)sup)).*((avg|average|mean).*(sts|spearman)|(sts|spearman).*(avg|average|mean)|^avg\\\\.$)\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"bar2\": 100.0, \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"Model: princeton-nlp/unsup-simcse-bert-base-uncased, Avg. STS: 76.25\", \"verified\": true, \"note\": \"Bar 73.5 is 76.25 minus a seed tolerance taken from the 50-seed hppRC/simple-simcse reproduction (mean 75.11, sd 0.84); the same 76.25 is the paper's Table 5 unsupervised BERT-base average.\"}, \"expected_grade_wall_h\": 2, \"phase2_recipe\": \"Run the source repository's unsupervised recipe, `run_unsup_example.sh`, which invokes `train.py` with `--model_name_or_path bert-base-uncased`, `--train_file data/wiki1m_for_simcse.txt`, `--num_train_epochs 1`, `--per_device_train_batch_size 64`, `--learning_rate 3e-5`, `--max_seq_length 32`, `--temp 0.05`, `--pooler_type cls`, `--mlp_only_train`, `--evaluation_strategy steps`, `--eval_steps 125`, `--metric_for_best_model stsb_spearman`, `--load_best_model_at_end`, `--do_train`, `--do_eval` and `--fp16`. Obtain the data the way the source does: `data/download_wiki.sh` fetches the 1,000,000-sentence `wiki1m_for_simcse.txt` and `SentEval/data/downstream/download_dataset.sh` fetches and unpacks `senteval.tar`; initialize the encoder from the public `bert-base-uncased` checkpoint. Training is one epoch over the 1,000,000 sentences at batch size 64 (15,625 optimizer steps), each sentence forwarded twice under independent dropout masks to form its own positive pair, with the in-batch contrastive loss on cosine similarity at temperature 0.05 over the `[CLS]` representation fed through the source's MLP head, which is used in training only. Every 125 steps, evaluate the STS-B and SICK-R development-set Spearman correlations the way the source's trainer does, keep the checkpoint with the best STS-B development Spearman, and reload it at the end, as `--load_best_model_at_end` does. Then evaluate that selected checkpoint with the source's own `python evaluation.py --pooler cls_before_pooler --task_set sts --mode test`: the raw `[CLS]` output of the encoder's last layer with no MLP head, cosine similarity, on the test sets of STS12, STS13, STS14, STS15, STS16, STS-B and SICK-R, Spearman correlation times 100 per task with the \\\"all\\\" aggregation for STS12 through STS16, and the average of the seven per-task numbers as the last column of the printed `------ test ------` table. The number to report is that seven-task test average, on the times-100 scale the table prints.\\nWrite the metrics JSON with at least: {\\\"avg_sts\\\": float}\"}"}
{"task_id": "generative_recommenders", "name": "HSTU", "domain": "recommendation", "source_repo": "https://github.com/meta-recsys/generative-recommenders", "source_commit": "fb0ba644be8dd1c7b072199c9c8bc6ce3adaf3d8", "source_at_commit": "https://github.com/meta-recsys/generative-recommenders/tree/fb0ba644be8dd1c7b072199c9c8bc6ce3adaf3d8", "source_license": "Apache-2.0", "source_drop": "[]", "source_tree_sha256": "805952475eca5328488a017e4d703dcb1e5e03297c813ee5515959fa1235d1af", "pipeline": "the source repository's HSTU-large MovieLens-20M reproduction pipeline (configs/ml-20m/hstu-sampled-softmax-n128-large-final.gin)", "graded_quantity": "a MovieLens-20M HR@10 of at least 0.3450 (the source's own 0-1 fraction; published 0.3556)", "bar": "band 0.345 to 1.0", "bar_cmp": "band", "bar_value": 0.345, "bar_value_2": 1.0, "bar_kind": "readme", "dataset": "the MovieLens-20M dataset (ml-20m), downloaded and preprocessed the way the source repository does", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 2, "contract_lines": "[\"- The graded run trains the HSTU-large configuration on the MovieLens-20M dataset.\"]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n- The graded run trains the HSTU-large configuration on the MovieLens-20M dataset.\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's MovieLens-20M HSTU-large recipe, `python3 main.py --gin_config_file=configs/ml-20m/hstu-sampled-softmax-n128-large-final.gin`, with every setting taken from that gin file and the remaining defaults of `train_fn` in `generative_recommenders/trainer/train.py`. Obtain and preprocess the data the way `preprocess_public_data.py` does for `ml-20m`: download `ml-20m.zip` from the GroupLens URL in `generative_recommenders/data/preprocessor.py`, run the source's `preprocess_rating` to produce `tmp/ml-20m/sasrec_format.csv`, and build the datasets as `generative_recommenders/data/reco_dataset.py` does, with each user's chronological history minus its last interaction as the training sequence (`ignore_last_n=1`) and the full history as the evaluation sequence (`ignore_last_n=0`), truncated to the 200 most recent items. Train the HSTU encoder at the gin settings, which are 16 blocks, 8 heads, dqk and dv of 32, item embedding dimension 256, dropout 0.2, L2-normalised user and item embeddings, the sampled softmax loss with 128 local negatives at temperature 0.05, AdamW with learning rate 1e-3, betas (0.9, 0.98) and weight decay 0, no warmup, local batch size 128, for 101 epochs. After every epoch run the source's full per-epoch evaluation over every user (the per-epoch evaluation logged under `eval_epoch`, not the 128-user batch-stat evaluation that runs every 100 steps): rank each user's held-out last item against the full item catalog from `movies.csv` with the user's already-seen items filtered out, and compute HR@10, NDCG@10, HR@50, NDCG@50 and MRR exactly as `eval_metrics_v2_from_tensors` in `generative_recommenders/data/eval.py` does. The number to write is the full-evaluation HR@10 of the final epoch as a fraction between 0 and 1, together with the highest full-evaluation HR@10 seen at any epoch and the final-epoch NDCG@10.\nWrite the metrics JSON with at least: {\"hr@10\": float, \"best_hr@10\": float, \"ndcg@10\": float, \"epochs\": int, \"num_eval_users\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"generative_recommenders\", \"seed\": 1337, \"dataset\": \"the MovieLens-20M dataset (ml-20m), downloaded and preprocessed the way the source repository does\", \"pipeline\": \"the source repository's HSTU-large MovieLens-20M reproduction pipeline (configs/ml-20m/hstu-sampled-softmax-n128-large-final.gin)\", \"bar_sentence\": \"a MovieLens-20M HR@10 of at least 0.3450 (the source's own 0-1 fraction; published 0.3556)\", \"protocol_sentence\": \"under the source repository's own evaluation protocol (leave-one-out last interaction, ranked against the full 27,278-item catalog with the user's seen items filtered, all 138,493 users; the band's upper bound 1.0 is the metric ceiling, so a x100-scaled field cannot false-PASS)\", \"bar\": 0.345, \"bar2\": 1.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*(train|loss|ndcg|mrr|partial|sampled(?![-_ ]?softmax)|batch|>=|ge_?4|rating|pos))(.*[^a-z]|^)(hr|hits?|hit[_ ]?rate|hitrate|recall)[^a-z0-9]{0,4}(at[^a-z0-9]{0,2})?10(?!\\\\d)\", \"dataset_regex\": \"ml[-_ ]?20m|movielens[-_ ]?20m|ml20m\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [\"- The graded run trains the HSTU-large configuration on the MovieLens-20M dataset.\"], \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"Method: HSTU-large, HR@10: 0.3556 (+23.1%), NDCG@10: 0.2098 (+29.4%), HR@50: 0.6143 (+11.6%), NDCG@50: 0.2671 (+21.5%), HR@200: 0.8074 (+5.4%), NDCG@200: 0.2965 (+17.4%)\", \"verified\": true, \"note\": \"Bar 0.3450 is the HR@10 cell 0.3556 minus a 3 percent tolerance; the ML-1M HSTU-large row (0.3294, README.md:57) is the row the bar has to reject.\"}, \"expected_grade_wall_h\": 2, \"phase2_recipe\": \"Run the source repository's MovieLens-20M HSTU-large recipe, `python3 main.py --gin_config_file=configs/ml-20m/hstu-sampled-softmax-n128-large-final.gin`, with every setting taken from that gin file and the remaining defaults of `train_fn` in `generative_recommenders/trainer/train.py`. Obtain and preprocess the data the way `preprocess_public_data.py` does for `ml-20m`: download `ml-20m.zip` from the GroupLens URL in `generative_recommenders/data/preprocessor.py`, run the source's `preprocess_rating` to produce `tmp/ml-20m/sasrec_format.csv`, and build the datasets as `generative_recommenders/data/reco_dataset.py` does, with each user's chronological history minus its last interaction as the training sequence (`ignore_last_n=1`) and the full history as the evaluation sequence (`ignore_last_n=0`), truncated to the 200 most recent items. Train the HSTU encoder at the gin settings, which are 16 blocks, 8 heads, dqk and dv of 32, item embedding dimension 256, dropout 0.2, L2-normalised user and item embeddings, the sampled softmax loss with 128 local negatives at temperature 0.05, AdamW with learning rate 1e-3, betas (0.9, 0.98) and weight decay 0, no warmup, local batch size 128, for 101 epochs. After every epoch run the source's full per-epoch evaluation over every user (the per-epoch evaluation logged under `eval_epoch`, not the 128-user batch-stat evaluation that runs every 100 steps): rank each user's held-out last item against the full item catalog from `movies.csv` with the user's already-seen items filtered out, and compute HR@10, NDCG@10, HR@50, NDCG@50 and MRR exactly as `eval_metrics_v2_from_tensors` in `generative_recommenders/data/eval.py` does. The number to write is the full-evaluation HR@10 of the final epoch as a fraction between 0 and 1, together with the highest full-evaluation HR@10 seen at any epoch and the final-epoch NDCG@10.\\nWrite the metrics JSON with at least: {\\\"hr@10\\\": float, \\\"best_hr@10\\\": float, \\\"ndcg@10\\\": float, \\\"epochs\\\": int, \\\"num_eval_users\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "s4", "name": "S4", "domain": "long-sequence modeling", "source_repo": "https://github.com/state-spaces/s4", "source_commit": "e757cef57d89e448c413de7325ed5601aceaac13", "source_at_commit": "https://github.com/state-spaces/s4/tree/e757cef57d89e448c413de7325ed5601aceaac13", "source_license": "Apache-2.0", "source_drop": "[\".flake8\", \".github\", \".gitignore\", \".isort.cfg\", \".pre-commit-config.yaml\", \"CHANGELOG.md\", \"Makefile\", \"assets\", \"checkpoints\", \"configs\", \"extensions\", \"generate.py\", \"models/README.md\", \"models/dss\", \"models/hippo\", \"models/related\", \"models/s4/experiments.md\", \"models/s4/lssl.md\", \"models/s4nd\", \"models/sashimi\", \"notebooks\", \"requirements-dev.txt\", \"requirements.txt\", \"src/callbacks\", \"src/dataloaders\", \"src/models/README.md\", \"src/models/baselines\", \"src/models/functional\", \"src/models/hippo\", \"src/models/nn/adaptive_softmax.py\", \"src/models/nn/dxt.py\", \"src/models/nn/exprnn\", \"src/models/nn/gate.py\", \"src/models/nn/initialization.py\", \"src/models/nn/orthogonal.py\", \"src/models/nn/residual.py\", \"src/models/nn/utils.py\", \"src/models/s4\", \"src/models/sequence\", \"src/tasks\", \"src/utils\", \"train.py\"]", "source_tree_sha256": "3a1bdfb5f9dae3973941e95c29e857cdf8385cd4d9f277049a7c1962e4e8b7dc", "pipeline": "the source repository's standalone sequential-CIFAR training script (example.py) at its default settings", "graded_quantity": "a top-1 accuracy of at least 87.0 percent on a held-out CIFAR-10 split (published 88%, README.md:78)", "bar": "band 87.0 to 100.0", "bar_cmp": "band", "bar_value": 87.0, "bar_value_2": 100.0, "bar_kind": "readme", "dataset": "sequential CIFAR-10, each image flattened to a 1,024-step sequence of 3-channel pixels", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 2.5, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's standalone script `example.py` at its argparse defaults with no flags: dataset `cifar10`, `--grayscale` unset, 100 epochs, batch size 64, learning rate 0.01, weight decay 0.01, 4 layers, `d_model` 128, dropout 0.1, and post-norm because `--prenorm` is unset. Obtain CIFAR-10 the way the script does, through the torchvision CIFAR-10 download into `./data/cifar/`, normalise each image with the script's per-channel mean and standard deviation constants, and flatten it by `view(3, 1024).t()` into a 1,024-step sequence of 3-channel pixels, with no augmentation on any split. Split the 50,000 training images into 45,000 training and 5,000 validation images the way `split_train_val` does with `val_split` 0.1, and use the 10,000 images of the official test set as the test split; the training loader shuffles, and the two evaluation loaders neither shuffle nor drop a partial batch. Build the `S4Model` of `example.py` (a linear encoder, four residual S4D blocks each with `d_state` 64, the tied-mask dropout of the source, and a LayerNorm, mean pooling over the sequence, and a linear decoder) and the two-group optimizer of `setup_optimizer`: AdamW at learning rate 0.01 and weight decay 0.01 for every parameter without an `_optim` attribute, and one further group at learning rate 0.001 and weight decay 0 for the S4D kernel tensors that carry one (`log_dt`, `log_A_real` and `A_imag`), under `CosineAnnealingLR` with `T_max` equal to the epoch count, stepped once per epoch. Train with cross-entropy for the full 100 epochs, and after every epoch evaluate top-1 accuracy as the script's `eval()` computes it (100 times correct over total) on the whole validation split and on the whole test split. The numbers to write are the final-epoch test accuracy and validation accuracy in percent, plus the highest validation accuracy over the run as the script's `best_acc` tracks it.\nWrite the metrics JSON with at least: {\"test_acc\": float, \"val_acc\": float, \"best_val_acc\": float, \"epochs\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"s4\", \"seed\": 1337, \"dataset\": \"sequential CIFAR-10, each image flattened to a 1,024-step sequence of 3-channel pixels\", \"pipeline\": \"the source repository's standalone sequential-CIFAR training script (example.py) at its default settings\", \"bar_sentence\": \"a top-1 accuracy of at least 87.0 percent on a held-out CIFAR-10 split (published 88%, README.md:78)\", \"protocol_sentence\": \"(the source's default 100-epoch example.py recipe: images normalised with the source's per-channel constants then flattened by view(3,1024).t() to 1,024-step 3-channel sequences with no augmentation, a 45,000/5,000 train/val split of the CIFAR-10 training set with sizes graded and exact membership not, the two-group AdamW of example.py:247-291 under CosineAnnealingLR(T_max=100), scored by the source's own eval() accuracy at example.py:353; either held-out split is accepted because val and test estimate the same quantity within 0.56 points of standard error; the band's upper bound 100.0 is the percent-accuracy ceiling, and keeping it exactly 100.0 is what lets a fraction-scale report be rescaled x100 rather than false-FAIL)\", \"bar\": 87.0, \"bar2\": 100.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*(?:mnist|gray))(?!.*(?:^|[^a-z])train(?:[^a-z]|$))(?=.*(?:^|[^a-z])(?:test|validation|valid|val|eval)(?:[^a-z]|$))(?=.*acc(?!um))\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"The default settings `python example.py` reaches 88% accuracy on sequential CIFAR with a very simple S4D model of 200k parameters.\", \"verified\": true, \"note\": \"Restated at models/s4/README.md:91 in the same tree (grep-confirmed); the bar 87.0 is 88 minus a 1.0 point tolerance, and the sentence names no train/val/test split.\"}, \"expected_grade_wall_h\": 2.5, \"phase2_recipe\": \"Run the source repository's standalone script `example.py` at its argparse defaults with no flags: dataset `cifar10`, `--grayscale` unset, 100 epochs, batch size 64, learning rate 0.01, weight decay 0.01, 4 layers, `d_model` 128, dropout 0.1, and post-norm because `--prenorm` is unset. Obtain CIFAR-10 the way the script does, through the torchvision CIFAR-10 download into `./data/cifar/`, normalise each image with the script's per-channel mean and standard deviation constants, and flatten it by `view(3, 1024).t()` into a 1,024-step sequence of 3-channel pixels, with no augmentation on any split. Split the 50,000 training images into 45,000 training and 5,000 validation images the way `split_train_val` does with `val_split` 0.1, and use the 10,000 images of the official test set as the test split; the training loader shuffles, and the two evaluation loaders neither shuffle nor drop a partial batch. Build the `S4Model` of `example.py` (a linear encoder, four residual S4D blocks each with `d_state` 64, the tied-mask dropout of the source, and a LayerNorm, mean pooling over the sequence, and a linear decoder) and the two-group optimizer of `setup_optimizer`: AdamW at learning rate 0.01 and weight decay 0.01 for every parameter without an `_optim` attribute, and one further group at learning rate 0.001 and weight decay 0 for the S4D kernel tensors that carry one (`log_dt`, `log_A_real` and `A_imag`), under `CosineAnnealingLR` with `T_max` equal to the epoch count, stepped once per epoch. Train with cross-entropy for the full 100 epochs, and after every epoch evaluate top-1 accuracy as the script's `eval()` computes it (100 times correct over total) on the whole validation split and on the whole test split. The numbers to write are the final-epoch test accuracy and validation accuracy in percent, plus the highest validation accuracy over the run as the script's `best_acc` tracks it.\\nWrite the metrics JSON with at least: {\\\"test_acc\\\": float, \\\"val_acc\\\": float, \\\"best_val_acc\\\": float, \\\"epochs\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "tdmpc2", "name": "TD-MPC2", "domain": "reinforcement learning", "source_repo": "https://github.com/nicklashansen/tdmpc2", "source_commit": "e9f59321933cbc8e11a002b842adc7d4ffae8ff1", "source_at_commit": "https://github.com/nicklashansen/tdmpc2/tree/e9f59321933cbc8e11a002b842adc7d4ffae8ff1", "source_license": "MIT", "source_drop": "[]", "source_tree_sha256": "6d2564ebde5cdc53a21b3eaa7c525ed7f9331297e49a31fcadbca62451c9153e", "pipeline": "the source repository's single-task online TD-MPC2 training pipeline at its default hyperparameters", "graded_quantity": "a mean evaluation return of at least 750.0 over the source's 10-episode evaluation on DMControl walker-run, reached at any evaluation checkpoint at or before 500,000 environment steps (published 3-seed mean 820.4 at 500k, worst seed 811.6; the repo's own SAC baseline never exceeds 747.1 in 4M steps)", "bar": "band 750.0 to 1000.0", "bar_cmp": "band", "bar_value": 750.0, "bar_value_2": 1000.0, "bar_kind": "readme", "dataset": "the DeepMind Control Suite task walker-run, simulated with MuJoCo through the dm_control package (no external dataset)", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --task walker-run --max-steps 500000 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 6, "contract_lines": "[\"- `run_train.py` must additionally honor `--task NAME` (the environment task to train on, named as the source repository names its tasks) and `--max-steps N` (a cap on the number of environment steps to train for) when passed.\"]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n- `run_train.py` must additionally honor `--task NAME` (the environment task to train on, named as the source repository names its tasks) and `--max-steps N` (a cap on the number of environment steps to train for) when passed.\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's single-task online recipe, the equivalent of `python train.py task=walker-run steps=500000` with every other setting at its `config.yaml` default; the invocation passes `--task walker-run --max-steps 500000`, and those two values must be mapped onto the source's `task` and `steps` arguments. Build the environment as `envs/dmcontrol.py` does: `suite.load('walker', 'run')` with the run seed, state observations, actions rescaled to [-1, 1] and applied twice per agent step, and a 500-step episode timeout. Use the default architecture (`model_size` left unset, which gives the 5M-parameter configuration of `config.yaml`), batch size 256, learning rate 3e-4, and the planning, actor and critic defaults of `config.yaml`. Follow `OnlineTrainer.train` in `trainer/online_trainer.py`: uniformly random actions for the first `seed_steps` environment steps (max(1000, 5 times the episode length)), a burst of `seed_steps` updates when that count is reached, and from then on one gradient update per environment step until the step counter passes 500,000. Every `eval_freq` (50,000) environment steps, starting at step 0 and at the next episode boundary, run `OnlineTrainer.eval`: 10 episodes with `eval_mode=True`, and record the mean undiscounted return over those 10 episodes, the quantity the source logs as `eval/episode_reward`. The numbers to write are that mean evaluation return at the final evaluation, the highest mean evaluation return over all evaluations of the run, and the environment step at which the highest occurred, each as a top-level scalar field (a per-evaluation history may be added under a separate key but does not replace them).\nWrite the metrics JSON with at least: {\"eval_episode_reward_best\": float, \"eval_episode_reward_final\": float, \"eval_step_best\": int, \"env_steps\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"tdmpc2\", \"seed\": 1337, \"dataset\": \"the DeepMind Control Suite task walker-run, simulated with MuJoCo through the dm_control package (no external dataset)\", \"pipeline\": \"the source repository's single-task online TD-MPC2 training pipeline at its default hyperparameters\", \"bar_sentence\": \"a mean evaluation return of at least 750.0 over the source's 10-episode evaluation on DMControl walker-run, reached at any evaluation checkpoint at or before 500,000 environment steps (published 3-seed mean 820.4 at 500k, worst seed 811.6; the repo's own SAC baseline never exceeds 747.1 in 4M steps)\", \"protocol_sentence\": \"(the source's own OnlineTrainer.eval protocol: the mean undiscounted return over 10 episodes played with eval_mode=True, 500 agent steps per episode at action-repeat 2, so 1,000 dm_control control steps; the band's upper bound 1000 is the task's reward ceiling, 1,000 control steps times a per-step reward of at most 1, so a mis-scaled field cannot false-PASS)\", \"bar\": 750.0, \"bar2\": 1000.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?=.*(?:reward|return))(?!.*(?:loss|coef|scale|norm|entropy|pred|target|discount|buffer|per_?step|std|var|_sem))(?!.*(?:^|[^a-z])train(?:ing)?(?:[^a-z]|$)).*\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --task walker-run --max-steps 500000 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [\"- `run_train.py` must additionally honor `--task NAME` (the environment task to train on, named as the source repository names its tasks) and `--max-steps N` (a cap on the number of environment steps to train for) when passed.\"], \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"step: 500000, reward: 811.6, seed: 1\", \"verified\": true, \"note\": \"Kind \\\"readme\\\" stands for an in-tree published result, here a committed benchmark CSV rather than README.md; this is the worst of the three seeds the file gives at 500,000 steps (815.2 at :7, 811.6 at :48, 834.4 at :89, mean 820.4) and the bar 750.0 sits 8.0 percent below it.\"}, \"expected_grade_wall_h\": 6, \"phase2_recipe\": \"Run the source repository's single-task online recipe, the equivalent of `python train.py task=walker-run steps=500000` with every other setting at its `config.yaml` default; the invocation passes `--task walker-run --max-steps 500000`, and those two values must be mapped onto the source's `task` and `steps` arguments. Build the environment as `envs/dmcontrol.py` does: `suite.load('walker', 'run')` with the run seed, state observations, actions rescaled to [-1, 1] and applied twice per agent step, and a 500-step episode timeout. Use the default architecture (`model_size` left unset, which gives the 5M-parameter configuration of `config.yaml`), batch size 256, learning rate 3e-4, and the planning, actor and critic defaults of `config.yaml`. Follow `OnlineTrainer.train` in `trainer/online_trainer.py`: uniformly random actions for the first `seed_steps` environment steps (max(1000, 5 times the episode length)), a burst of `seed_steps` updates when that count is reached, and from then on one gradient update per environment step until the step counter passes 500,000. Every `eval_freq` (50,000) environment steps, starting at step 0 and at the next episode boundary, run `OnlineTrainer.eval`: 10 episodes with `eval_mode=True`, and record the mean undiscounted return over those 10 episodes, the quantity the source logs as `eval/episode_reward`. The numbers to write are that mean evaluation return at the final evaluation, the highest mean evaluation return over all evaluations of the run, and the environment step at which the highest occurred, each as a top-level scalar field (a per-evaluation history may be added under a separate key but does not replace them).\\nWrite the metrics JSON with at least: {\\\"eval_episode_reward_best\\\": float, \\\"eval_episode_reward_final\\\": float, \\\"eval_step_best\\\": int, \\\"env_steps\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "nanochat_core", "name": "nanochat", "domain": "language modeling", "source_repo": "https://github.com/karpathy/nanochat", "source_commit": "dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a", "source_at_commit": "https://github.com/karpathy/nanochat/tree/dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a", "source_license": "MIT", "source_drop": "[\".claude\", \".gitignore\", \"dev\", \"uv.lock\"]", "source_tree_sha256": "a973b5b6006d584098ff6941e2930479f3d2bfc6ba013b795f87487c5fd21af4", "pipeline": "the source repository's flagship speedrun pipeline", "graded_quantity": "a base-evaluation-suite score of at least 0.256525", "bar": "band 0.256525 to 1.0", "bar_cmp": "band", "bar_value": 0.256525, "bar_value_2": 1.0, "bar_kind": "readme", "dataset": "the source repository's own pretraining corpus", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 7, "contract_lines": "[\"- `run_train.py` must honor `--max-iters N` (a cap on optimizer iterations) when passed.\"]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n- `run_train.py` must honor `--max-iters N` (a cap on optimizer iterations) when passed.\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's `runs/speedrun.sh` up to and including the base-model evaluation, at its own scale. Obtain the pretraining data the way the script does with `python -m nanochat.dataset -n 170` (170 training shards of the ClimbMix parquet set that `nanochat/dataset.py` downloads, plus the validation shard it always fetches), and train the tokenizer with `scripts.tok_train` at its defaults (vocabulary size 32,768 on the first 2 billion characters). Pretrain with `scripts.base_train` at the script's flags `--depth=24 --target-param-data-ratio=8 --device-batch-size=16` and everything else at the script's defaults (the `--fp8` flag selects a GPU precision mode and fixes no other setting): sequence length 2,048, the total batch size, learning-rate scaling and weight-decay scaling the script derives for that depth, and the number of optimizer iterations it derives from the data-to-parameter ratio rule, which for this configuration is 5,568 iterations at a total batch of 1,048,576 tokens; do not apply any `--max-iters` cap. Then run the source's base evaluation, `scripts.base_eval` at its defaults, on the final model: the CORE evaluation over every task in the source's evaluation bundle (`eval_bundle.zip` from the URL in `scripts/base_eval.py`), using all examples of each task (`--max-per-task -1`), scoring each task as the source's `evaluate_task` does, centering each accuracy against the bundle's random baseline and averaging the centered results into `core_metric`, plus bits per byte on the validation split over the default `--split-tokens` count. The number to write is that `core_metric` as `core_score`, on the source's own 0 to 1 scale (a centered accuracy, not a percent), with the validation bits per byte as `val_bpb`.\nWrite the metrics JSON with at least: {\"core_score\": float, \"val_bpb\": float, \"tokens_seen\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"nanochat_core\", \"seed\": 1337, \"dataset\": \"the source repository's own pretraining corpus\", \"pipeline\": \"the source repository's flagship speedrun pipeline\", \"bar_sentence\": \"a base-evaluation-suite score of at least 0.256525\", \"protocol_sentence\": \"computed with the source's own evaluation bundle and conventions\", \"bar\": 0.256525, \"bar_cmp\": \"band\", \"dataset_regex\": \"\", \"metric_re\": \"core\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [\"- `run_train.py` must honor `--max-iters N` (a cap on optimizer iterations) when passed.\"], \"bar2\": 1.0, \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"The GPT-2 CORE score is 0.256525.\", \"verified\": true, \"note\": \"The bar is the repository's own success threshold (GPT-2 XL's CORE under nanochat's base_eval), not the pinned recipe's own outcome of 0.2626; README.md:193 restates it as 'getting a CORE score above 0.256525'.\"}, \"expected_grade_wall_h\": 7, \"phase2_recipe\": \"Run the source repository's `runs/speedrun.sh` up to and including the base-model evaluation, at its own scale. Obtain the pretraining data the way the script does with `python -m nanochat.dataset -n 170` (170 training shards of the ClimbMix parquet set that `nanochat/dataset.py` downloads, plus the validation shard it always fetches), and train the tokenizer with `scripts.tok_train` at its defaults (vocabulary size 32,768 on the first 2 billion characters). Pretrain with `scripts.base_train` at the script's flags `--depth=24 --target-param-data-ratio=8 --device-batch-size=16` and everything else at the script's defaults (the `--fp8` flag selects a GPU precision mode and fixes no other setting): sequence length 2,048, the total batch size, learning-rate scaling and weight-decay scaling the script derives for that depth, and the number of optimizer iterations it derives from the data-to-parameter ratio rule, which for this configuration is 5,568 iterations at a total batch of 1,048,576 tokens; do not apply any `--max-iters` cap. Then run the source's base evaluation, `scripts.base_eval` at its defaults, on the final model: the CORE evaluation over every task in the source's evaluation bundle (`eval_bundle.zip` from the URL in `scripts/base_eval.py`), using all examples of each task (`--max-per-task -1`), scoring each task as the source's `evaluate_task` does, centering each accuracy against the bundle's random baseline and averaging the centered results into `core_metric`, plus bits per byte on the validation split over the default `--split-tokens` count. The number to write is that `core_metric` as `core_score`, on the source's own 0 to 1 scale (a centered accuracy, not a percent), with the validation bits per byte as `val_bpb`.\\nWrite the metrics JSON with at least: {\\\"core_score\\\": float, \\\"val_bpb\\\": float, \\\"tokens_seen\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "tensorf", "name": "TensoRF", "domain": "neural fields", "source_repo": "https://github.com/apchenstu/TensoRF", "source_commit": "6a1e23b10b9521221049aec843ab370a747a7982", "source_at_commit": "https://github.com/apchenstu/TensoRF/tree/6a1e23b10b9521221049aec843ab370a747a7982", "source_license": "MIT", "source_drop": "[]", "source_tree_sha256": "a46faaecdd91a538c6728f6dab0d761949dcb1696d7119db5c31f39d27285ae2", "pipeline": "the source repository's TensoRF-VM-192 per-scene radiance-field reconstruction pipeline at its configs/lego.txt settings", "graded_quantity": "a mean test-view PSNR of at least 36.10 dB on Synthetic-NeRF lego (published 36.46)", "bar": "band 36.1 to 45.0", "bar_cmp": "band", "bar_value": 36.1, "bar_value_2": 45.0, "bar_kind": "paper", "dataset": "the Synthetic-NeRF lego scene (100 training views and 200 held-out test views at 800x800)", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 6, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's Quick Start recipe, `python train.py --config configs/lego.txt`, with every setting from that config file and the remaining defaults of `opt.py`. Obtain the Synthetic-NeRF lego scene (the `nerf_synthetic/lego` folder with `transforms_train.json`, `transforms_test.json` and their PNG frames) and load it the way `dataLoader/blender.py` does: 800 by 800 (downsample 1.0), each RGBA PNG alpha-blended onto a white background, rays from `camera_angle_x`, scene bounding box [-1.5, 1.5] on each axis and near/far [2.0, 6.0], with the train split for fitting and the test split for evaluation. Fit the `TensorVMSplit` model with `n_lamb_sigma` [16,16,16] and `n_lamb_sh` [48,48,48], shading `MLP_Fea`, `fea2denseAct` softplus, `view_pe` 2, `fea_pe` 2, `data_dim_color` 27, `featureC` 128, `distance_scale` 25, `density_shift` -10 and `step_ratio` 0.5, starting from `N_voxel_init` 128^3 and upsampling toward `N_voxel_final` 300^3 at iterations 2000, 3000, 4000, 5500 and 7000 (log-spaced voxel counts), with alpha-mask updates at iterations 2000 and 4000, the bounding-box shrink at 2000, the training-ray re-filter at 4000, and the density L1 weight switching from 8e-5 to 4e-5 at the first alpha-mask update. Optimise on 4096 rays per iteration with the per-ray MSE loss, using Adam with betas (0.9, 0.99) at `lr_init` 0.02 and `lr_basis` 1e-3, multiplying the learning rate by 0.1^(1/30000) every iteration and rebuilding the optimizer at the initial rates after each upsample, for exactly 30,000 iterations. After training, as `render_test = 1` requires, run the source's `evaluation()` over the whole test split: every one of the 200 views of `transforms_test.json` rendered at 800 by 800 (`N_vis=-1`), predictions clamped to [0, 1], PSNR computed per image from that image's own MSE against the white-composited ground truth, then averaged over the 200 images (SSIM and LPIPS are extras the source also computes and are not required). The number to write is that mean test-view PSNR in dB, the value the source prints as `test all psnr`.\nWrite the metrics JSON with at least: {\"test_psnr\": float, \"n_iters\": int, \"n_test_views\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"tensorf\", \"seed\": 1337, \"dataset\": \"the Synthetic-NeRF lego scene (100 training views and 200 held-out test views at 800x800)\", \"pipeline\": \"the source repository's TensoRF-VM-192 per-scene radiance-field reconstruction pipeline at its configs/lego.txt settings\", \"bar_sentence\": \"a mean test-view PSNR of at least 36.10 dB on Synthetic-NeRF lego (published 36.46)\", \"protocol_sentence\": \"(the source's own evaluation() protocol: all 200 transforms_test.json views rendered at 800x800, ground truth alpha-composited onto white, predictions clamped to [0,1], per-image PSNR computed first and then averaged over images, after exactly 30,000 optimisation steps; the band's upper bound 45.0 dB is a degenerate-report guard, not a metric ceiling)\", \"bar\": 36.1, \"bar2\": 45.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*(?:^|[^a-z])(?:train|val|vali|valid|validation)(?:[^a-z]|$))(?!.*(?:view|image|img|frame|max|min|best|std|var|sem))(?:(?=.*psnr)(?=.*(?:^|[^a-z])(?:test|eval)).*|(?:.*/)?psnr$)\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"paper\", \"quote\": \"Ours-VM-192-30k, Lego: 36.46\", \"verified\": true, \"note\": \"The quote is the Ours-VM-192-30k cell of the paper's Lego column (Table 7); the repository README publishes no number.\"}, \"expected_grade_wall_h\": 6, \"phase2_recipe\": \"Run the source repository's Quick Start recipe, `python train.py --config configs/lego.txt`, with every setting from that config file and the remaining defaults of `opt.py`. Obtain the Synthetic-NeRF lego scene (the `nerf_synthetic/lego` folder with `transforms_train.json`, `transforms_test.json` and their PNG frames) and load it the way `dataLoader/blender.py` does: 800 by 800 (downsample 1.0), each RGBA PNG alpha-blended onto a white background, rays from `camera_angle_x`, scene bounding box [-1.5, 1.5] on each axis and near/far [2.0, 6.0], with the train split for fitting and the test split for evaluation. Fit the `TensorVMSplit` model with `n_lamb_sigma` [16,16,16] and `n_lamb_sh` [48,48,48], shading `MLP_Fea`, `fea2denseAct` softplus, `view_pe` 2, `fea_pe` 2, `data_dim_color` 27, `featureC` 128, `distance_scale` 25, `density_shift` -10 and `step_ratio` 0.5, starting from `N_voxel_init` 128^3 and upsampling toward `N_voxel_final` 300^3 at iterations 2000, 3000, 4000, 5500 and 7000 (log-spaced voxel counts), with alpha-mask updates at iterations 2000 and 4000, the bounding-box shrink at 2000, the training-ray re-filter at 4000, and the density L1 weight switching from 8e-5 to 4e-5 at the first alpha-mask update. Optimise on 4096 rays per iteration with the per-ray MSE loss, using Adam with betas (0.9, 0.99) at `lr_init` 0.02 and `lr_basis` 1e-3, multiplying the learning rate by 0.1^(1/30000) every iteration and rebuilding the optimizer at the initial rates after each upsample, for exactly 30,000 iterations. After training, as `render_test = 1` requires, run the source's `evaluation()` over the whole test split: every one of the 200 views of `transforms_test.json` rendered at 800 by 800 (`N_vis=-1`), predictions clamped to [0, 1], PSNR computed per image from that image's own MSE against the white-composited ground truth, then averaged over the 200 images (SSIM and LPIPS are extras the source also computes and are not required). The number to write is that mean test-view PSNR in dB, the value the source prints as `test all psnr`.\\nWrite the metrics JSON with at least: {\\\"test_psnr\\\": float, \\\"n_iters\\\": int, \\\"n_test_views\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "nanogpt", "name": "nanoGPT", "domain": "language modeling", "source_repo": "https://github.com/karpathy/nanoGPT", "source_commit": "3adf61e154c3fe3fca428ad6bc3818b27a3b8291", "source_at_commit": "https://github.com/karpathy/nanoGPT/tree/3adf61e154c3fe3fca428ad6bc3818b27a3b8291", "source_license": "MIT", "source_drop": "[\".gitattributes\", \".gitignore\", \"assets\", \"scaling_laws.ipynb\", \"transformer_sizing.ipynb\"]", "source_tree_sha256": "5fad491f81a735ced8cb887c091a79f7fe4215023a09d40e4a9dc596af595ab4", "pipeline": "the source repository's GPT-2 reproduction pipeline", "graded_quantity": "a validation loss bar at the graded iteration budget", "bar": "at most 3.12", "bar_cmp": "le", "bar_value": 3.12, "bar_value_2": null, "bar_kind": "readme", "dataset": "the OpenWebText dataset", "seed": 1337, "grade_cmd": "python run_train.py --max-iters 120000 --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 11, "contract_lines": "[\"- `run_train.py` must honor `--max-iters N` (a cap on optimizer iterations) when passed.\", \"- The graded run is the repository's GPT-2 (124M) reproduction on OpenWebText.\"]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n- `run_train.py` must honor `--max-iters N` (a cap on optimizer iterations) when passed.\n- The graded run is the repository's GPT-2 (124M) reproduction on OpenWebText.\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nPrepare the data the way the source repository does: `data/openwebtext/prepare.py` downloads OpenWebText through the `datasets` library, holds out a 0.05% validation split (shuffle seed 2357), tokenizes with the GPT-2 BPE via `tiktoken` with an end-of-text token appended to each document, and writes `train.bin` and `val.bin` as `uint16` token streams. Train the GPT-2 (124M) OpenWebText reproduction exactly as `train.py config/train_gpt2.py` defines it: 12 layers, 12 heads, embedding width 768, block size 1024, no bias, dropout 0.0, micro-batch 12 with 40 gradient-accumulation steps (491,520 tokens per optimizer iteration in total, however the work is distributed), AdamW with peak learning rate 6e-4, betas 0.9 and 0.95, weight decay 0.1, gradient clipping 1.0, 2,000 warmup iterations, and cosine decay to a minimum learning rate of 6e-5 at iteration 600,000. Keep that learning-rate schedule exactly as written: `--max-iters` is a cap on optimizer iterations that stops training early and does not rescale the schedule, and the invocation supplies `--max-iters 120000`. Every 1,000 optimizer iterations, including iteration 0, evaluate the way the source's `estimate_loss` does: 200 randomly sampled batches of 12 sequences of 1,024 tokens from `val.bin`, mean cross-entropy over the 200 batches. Record the validation loss at the last evaluation before stopping and the lowest validation loss seen at any evaluation (the running minimum the source keeps as `best_val_loss`), together with the number of optimizer iterations actually run, the total training tokens consumed, the wall-clock seconds of the run, and the number of devices used.\nWrite the metrics JSON with at least: {\"final_val_loss\": float, \"best_val_loss\": float, \"iters_run\": int, \"tokens_seen\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"nanogpt\", \"seed\": 1337, \"dataset\": \"the OpenWebText dataset\", \"pipeline\": \"the source repository's GPT-2 reproduction pipeline\", \"bar_sentence\": \"a validation loss bar at the graded iteration budget\", \"protocol_sentence\": \"under the source repository's own evaluation protocol\", \"bar\": 3.12, \"bar_cmp\": \"le\", \"dataset_regex\": \"openwebtext|open[-_ ]?web[-_ ]?text|\\\\bowt\\\\b\", \"metric_re\": \"val.*loss|loss.*val\", \"grade_cmd\": \"python run_train.py --max-iters 120000 --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [\"- `run_train.py` must honor `--max-iters N` (a cap on optimizer iterations) when passed.\", \"- The graded run is the repository's GPT-2 (124M) reproduction on OpenWebText.\"], \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"| gpt2 | 124M | 3.11 | 3.12 |\", \"verified\": true, \"note\": \"The bar is the val-loss cell of the GPT-2 124M row, 3.12, used verbatim with comparator le at the 120,000-iteration cap; no tolerance is added.\"}, \"expected_grade_wall_h\": 11, \"phase2_recipe\": \"Prepare the data the way the source repository does: `data/openwebtext/prepare.py` downloads OpenWebText through the `datasets` library, holds out a 0.05% validation split (shuffle seed 2357), tokenizes with the GPT-2 BPE via `tiktoken` with an end-of-text token appended to each document, and writes `train.bin` and `val.bin` as `uint16` token streams. Train the GPT-2 (124M) OpenWebText reproduction exactly as `train.py config/train_gpt2.py` defines it: 12 layers, 12 heads, embedding width 768, block size 1024, no bias, dropout 0.0, micro-batch 12 with 40 gradient-accumulation steps (491,520 tokens per optimizer iteration in total, however the work is distributed), AdamW with peak learning rate 6e-4, betas 0.9 and 0.95, weight decay 0.1, gradient clipping 1.0, 2,000 warmup iterations, and cosine decay to a minimum learning rate of 6e-5 at iteration 600,000. Keep that learning-rate schedule exactly as written: `--max-iters` is a cap on optimizer iterations that stops training early and does not rescale the schedule, and the invocation supplies `--max-iters 120000`. Every 1,000 optimizer iterations, including iteration 0, evaluate the way the source's `estimate_loss` does: 200 randomly sampled batches of 12 sequences of 1,024 tokens from `val.bin`, mean cross-entropy over the 200 batches. Record the validation loss at the last evaluation before stopping and the lowest validation loss seen at any evaluation (the running minimum the source keeps as `best_val_loss`), together with the number of optimizer iterations actually run, the total training tokens consumed, the wall-clock seconds of the run, and the number of devices used.\\nWrite the metrics JSON with at least: {\\\"final_val_loss\\\": float, \\\"best_val_loss\\\": float, \\\"iters_run\\\": int, \\\"tokens_seen\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "nanovlm", "name": "nanoVLM", "domain": "vision-language", "source_repo": "https://github.com/huggingface/nanoVLM", "source_commit": "6ba9082e16f1fc8c21a1f8d0c54b26c9233c8771", "source_at_commit": "https://github.com/huggingface/nanoVLM/tree/6ba9082e16f1fc8c21a1f8d0c54b26c9233c8771", "source_license": "Apache-2.0", "source_drop": "[\"assets\"]", "source_tree_sha256": "14eb343ec3235e6fd4cb0779a996c54af994c5a08993ccfef71c36b7034a1885", "pipeline": "the source repository's default nanoVLM-222M training pipeline (its configured SigLIP-B/16-224 and SmolLM2-135M backbones, the 45 cauldron subsets its config names, batch 256, five epochs)", "graded_quantity": "a best MMStar accuracy of at least 0.353 (fraction scale; published 0.353)", "bar": "band 0.353 to 1.0", "bar_cmp": "band", "bar_value": 0.353, "bar_value_2": 1.0, "bar_kind": "readme", "dataset": "the 45 named subsets of HuggingFaceM4/the_cauldron that the source's default config lists", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 6, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's default training recipe, `python train.py` with the unmodified `models/config.py`: the nanoVLM-222M model built from the `google/siglip-base-patch16-224` vision tower and the `HuggingFaceTB/SmolLM2-135M` decoder, both initialised from their Hugging Face `model.safetensors` files as `vlm_load_backbone_weights True` does, with the tied language-model head, the `HuggingFaceTB/cosmo2-tokenizer`, and a randomly initialised pixel-shuffle projector with factor 2. The training data is the `train` split of the 45 `HuggingFaceM4/the_cauldron` subsets named in `TrainConfig.train_dataset_name`, concatenated, shuffled with seed 0, and cut with `val_ratio 0.01` into the training set and a held-out validation set, with images resized to 224x224 by `ToTensor` and no mean/std normalisation. Train for 5 epochs at batch size 256 with `drop_last`, AdamW with `lr_mp 2e-3` for the projector and `lr_backbones 1e-4` for both backbones, under the source's `get_lr` warmup-plus-cosine schedule (3 percent warmup, floor at one tenth of the peak, horizon equal to batches per epoch times 5). The run must train from these two backbones; it must not load the repository's released trained nanoVLM checkpoint or any other trained nanoVLM weights. Every 250 optimizer steps, and once more after the last epoch, evaluate MMStar accuracy exactly as `test_mmstar` does: all 1,500 rows of the `val` split of `Lin-Chen/MMStar`, batch 32 unshuffled, the prompt `Question: {question} \\nAnswer only with the letter! \\nAnswer:`, `generate` with `max_new_tokens=5` and the source's multinomial sampling, scored by `check_multiple_choice_with_regex` against the decoded gold letter, accuracy equal to correct over total. The number to report is the best MMStar accuracy over all of those evaluations, on the 0 to 1 fraction scale, which is the same statistic the source uses to choose the checkpoint it saves; report the final evaluation as well.\nWrite the metrics JSON with at least: {\"mmstar_accuracy_best\": float, \"mmstar_accuracy_final\": float, \"steps_run\": int, \"samples_seen\": int}\n", "criteria": "{\"repo\": \"nanovlm\", \"seed\": 1337, \"dataset\": \"the 45 named subsets of HuggingFaceM4/the_cauldron that the source's default config lists\", \"pipeline\": \"the source repository's default nanoVLM-222M training pipeline (its configured SigLIP-B/16-224 and SmolLM2-135M backbones, the 45 cauldron subsets its config names, batch 256, five epochs)\", \"bar_sentence\": \"a best MMStar accuracy of at least 0.353 (fraction scale; published 0.353)\", \"protocol_sentence\": \"(the source's own MMStar protocol at train.py:114-137 and models/utils.py:4-22 over all 1,500 rows of the Lin-Chen/MMStar val split, best over the run per the source's own checkpoint-selection rule at train.py:257-259; the band's upper bound 1.0 is the accuracy ceiling, so a x100-scaled field cannot false-PASS)\", \"bar\": 0.353, \"bar2\": 1.0, \"bar_cmp\": \"band\", \"metric_re\": \"(best.*(mmstar|acc)|(mmstar|acc).*best)(?!.*(_n_|num|count|every|steps|examples|rows|batch|size|loss|time))|mmstar(?!.*(_n_|num|count|every|steps|examples|rows|batch|size|loss|time))\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"readme\", \"quote\": \"Training this for ~6h on a single H100 GPU on ~1.7M samples of [the cauldron](https://huggingface.co/datasets/HuggingFaceM4/the_cauldron) results in an accuracy of 35.3% on MMStar.\", \"verified\": true, \"note\": \"Bar 0.353 is this number unchanged, with no tolerance, graded as the source's own best-over-run statistic (train.py:257-259 saves the argmax checkpoint); the released checkpoint card lusxvr/nanoVLM-222M restates it as 'MMStar Accuracy: 35.3%'.\"}, \"expected_grade_wall_h\": 6, \"phase2_recipe\": \"Run the source repository's default training recipe, `python train.py` with the unmodified `models/config.py`: the nanoVLM-222M model built from the `google/siglip-base-patch16-224` vision tower and the `HuggingFaceTB/SmolLM2-135M` decoder, both initialised from their Hugging Face `model.safetensors` files as `vlm_load_backbone_weights True` does, with the tied language-model head, the `HuggingFaceTB/cosmo2-tokenizer`, and a randomly initialised pixel-shuffle projector with factor 2. The training data is the `train` split of the 45 `HuggingFaceM4/the_cauldron` subsets named in `TrainConfig.train_dataset_name`, concatenated, shuffled with seed 0, and cut with `val_ratio 0.01` into the training set and a held-out validation set, with images resized to 224x224 by `ToTensor` and no mean/std normalisation. Train for 5 epochs at batch size 256 with `drop_last`, AdamW with `lr_mp 2e-3` for the projector and `lr_backbones 1e-4` for both backbones, under the source's `get_lr` warmup-plus-cosine schedule (3 percent warmup, floor at one tenth of the peak, horizon equal to batches per epoch times 5). The run must train from these two backbones; it must not load the repository's released trained nanoVLM checkpoint or any other trained nanoVLM weights. Every 250 optimizer steps, and once more after the last epoch, evaluate MMStar accuracy exactly as `test_mmstar` does: all 1,500 rows of the `val` split of `Lin-Chen/MMStar`, batch 32 unshuffled, the prompt `Question: {question} \\\\nAnswer only with the letter! \\\\nAnswer:`, `generate` with `max_new_tokens=5` and the source's multinomial sampling, scored by `check_multiple_choice_with_regex` against the decoded gold letter, accuracy equal to correct over total. The number to report is the best MMStar accuracy over all of those evaluations, on the 0 to 1 fraction scale, which is the same statistic the source uses to choose the checkpoint it saves; report the final evaluation as well.\\nWrite the metrics JSON with at least: {\\\"mmstar_accuracy_best\\\": float, \\\"mmstar_accuracy_final\\\": float, \\\"steps_run\\\": int, \\\"samples_seen\\\": int}\"}"}
{"task_id": "deepspeech", "name": "deepspeech", "domain": "speech recognition", "source_repo": "https://github.com/SeanNaren/deepspeech.pytorch", "source_commit": "b88a631ef6b96553e16bbaa5bd6a621435bed278", "source_at_commit": "https://github.com/SeanNaren/deepspeech.pytorch/tree/b88a631ef6b96553e16bbaa5bd6a621435bed278", "source_license": "MIT", "source_drop": "[]", "source_tree_sha256": "8d2d5f0b6d25d0d0cce21f9c81813f8b95d4ec82e3f30a09966c7d3ad4293ffe", "pipeline": "the source repository's AN4 DeepSpeech2 CTC training recipe, the one its own configs/an4.yaml drives, followed by its own greedy-decoder evaluation of the AN4 test manifest", "graded_quantity": "a word error rate of at most 20.0 percent on the AN4 test set (published 9.573; the band floor 1.5 is a unit guard, not a bar)", "bar": "band 1.5 to 20.0", "bar_cmp": "band", "bar_value": 1.5, "bar_value_2": 20.0, "bar_kind": "released-checkpoint", "dataset": "the AN4 speech corpus as the source repository packages it (the an4.tar.gz release asset its own data/an4.py downloads, already split into train, val and test)", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 2.0, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's AN4 recipe, the README's `cd data/ && python an4.py && cd ..` then `python train.py +configs=an4`, followed by its own test step `python test.py model.model_path=<kept checkpoint> test_path=data/an4_test_manifest.json`, with every setting taken from `configs/an4.yaml` and the remaining dataclass defaults of `deepspeech_pytorch/configs/train_config.py`, the seed supplied by `--seed` in place of the config's `seed: 123456`. Obtain the data the way `data/an4.py` does: download `an4.tar.gz` from `https://github.com/SeanNaren/deepspeech.pytorch/releases/download/V3.0/an4.tar.gz`, extract it into `an4_dataset/` (853 train, 95 val and 130 test utterances, 16 kHz mono 16-bit WAV under `<split>/an4/wav/` with same-named transcripts under the sibling `txt/`, upper-case A to Z and space) and build the three manifests as `create_manifest` does, in directory-walk order (the source does not sort): keep only train and val utterances of 1 to 15 seconds inclusive (`--min-duration 1 --max-duration 15`: 809 train, 88 val) and all 130 test utterances, which are not pruned. Compute features as `SpectrogramParser.compute_spectrogram` does with `normalize=True`: `librosa.stft` with n_fft 320 (the 0.02 s window), hop 160 (the 0.01 s stride), a Hamming window and its other defaults, magnitude, `log1p`, then subtract that utterance's own mean and divide by its own standard deviation, 161 bins per frame, no augmentation (every `AugmentationConfig` option is off); map transcripts to indices in `labels.json` (29 symbols: the blank `_` at 0, apostrophe, A to Z, space at 28), dropping any character outside it. Build the model as `DeepSpeech.__init__` in `model.py` does: two Conv2d, BatchNorm2d, `Hardtanh` blocks of 32 channels (kernels 41 by 11 and 21 by 11, strides (2, 2) and (2, 1), half-kernel padding, outputs zeroed past each utterance's length by `MaskConv`), 1312 features per frame; five bidirectional LSTM layers with `hidden_size` 1024, the first without batch norm, the other four preceded by a `SequenceWise` BatchNorm1d over all frames including padding, each layer's two directions summed, not concatenated, so the width stays 1024; then a BatchNorm1d and a bias-free linear layer to the 29 classes; 86,618,400 trainable parameters from random initialisation, no pretrained weights. Train with `CTCLoss(blank=0, reduction='sum', zero_infinity=True)` on the log-softmax outputs, output lengths from the convolution stride arithmetic (`get_seq_lens`), targets as one flat concatenated buffer with per-sample sizes, in batches of 8 formed as `DSRandomSampler` and `_collate_fn` do: bin the 809 train utterances into 102 contiguous blocks of 8 once (the last holds 1), reshuffle the block order and the order within each block every epoch, and sort each batch by descending length; AdamW at learning rate 0.00015, betas (0.9, 0.999), eps 1e-8, weight decay 1e-5, the rate multiplied by 0.99 after every epoch (`ExponentialLR`), gradient norm clipped at 400, 70 epochs (7,140 optimizer steps), under 16-bit mixed precision as the source trains. After every epoch run the 88 val utterances in eval mode (batch-norm running statistics, softmax over the classes) through the greedy CTC decoder (`GreedyDecoder.decode`: argmax over the classes at every frame up to the output length, drop blanks, collapse consecutive repeats, index 28 to a space) and compute the corpus-level word error rate as `WordErrorRate` in `validation.py` does: the Levenshtein distance between hypothesis and reference word sequences (split on whitespace, the reference decoded from the target indices without repeat collapsing) summed over utterances, divided by the summed reference word count, times 100; keep the single checkpoint with the lowest validation word error rate (`save_top_k: 1`, `monitor: \"wer\"`, mode `min`). After the 70 epochs reload that checkpoint and evaluate the 130-utterance test manifest with the same decoder and corpus-level computation in full precision (`ModelConfig.precision` 32): total word edit distance over its 773 reference words, times 100, what `testing.py` prints as `Average WER`; the character error rate is the same computation over non-space characters. The number to write is that test word error rate as a percentage on the 0 to 100 scale (the source's `compute` multiplies by 100), not a 0 to 1 fraction, not the validation value, not a mean of per-utterance rates and not the character error rate, together with the best validation word error rate, the epoch it came from and the number of epochs run.\nWrite the metrics JSON with at least: {\"test_wer\": float, \"test_cer\": float, \"best_val_wer\": float, \"best_epoch\": int, \"epochs_run\": int, \"n_test_utterances\": int, \"n_reference_words\": int, \"n_parameters\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"deepspeech\", \"seed\": 1337, \"dataset\": \"the AN4 speech corpus as the source repository packages it (the an4.tar.gz release asset its own data/an4.py downloads, already split into train, val and test)\", \"pipeline\": \"the source repository's AN4 DeepSpeech2 CTC training recipe, the one its own configs/an4.yaml drives, followed by its own greedy-decoder evaluation of the AN4 test manifest\", \"bar_sentence\": \"a word error rate of at most 20.0 percent on the AN4 test set (published 9.573; the band floor 1.5 is a unit guard, not a bar)\", \"protocol_sentence\": \"(the source's own greedy CTC decoder and corpus-level word error rate, total word Levenshtein distance over the 130 utterances of data/an4_test_manifest.json divided by their 773 reference words times 100, on the checkpoint the source's own save_top_k 1 / monitor wer rule keeps from a 70-epoch +configs=an4 run; the band exists because under le a 0-1 fraction report of a fully broken run, wer 1.0 meaning 100 percent, would false-PASS)\", \"bar\": 1.5, \"bar2\": 20.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*(?:^|[_./])(?:train|val|dev|best|running|epoch|std|var|sem|cer))(?=.*(?:^|[_./])(?:wer|word_error_rate|worderrorrate)(?:$|[_./])).*\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"released-checkpoint\", \"quote\": \"AN4 test | 9.573 | 5.515\", \"verified\": true, \"note\": \"The V3.0 release body contains the row '|AN4 test | 9.573 | 5.515 |' verbatim. The number is absent from the vendored tree by design; the graded band's upper bound 20.0 sits 8.9 WER points above it.\"}, \"expected_grade_wall_h\": 2.0, \"phase2_recipe\": \"Run the source repository's AN4 recipe, the README's `cd data/ && python an4.py && cd ..` then `python train.py +configs=an4`, followed by its own test step `python test.py model.model_path=<kept checkpoint> test_path=data/an4_test_manifest.json`, with every setting taken from `configs/an4.yaml` and the remaining dataclass defaults of `deepspeech_pytorch/configs/train_config.py`, the seed supplied by `--seed` in place of the config's `seed: 123456`. Obtain the data the way `data/an4.py` does: download `an4.tar.gz` from `https://github.com/SeanNaren/deepspeech.pytorch/releases/download/V3.0/an4.tar.gz`, extract it into `an4_dataset/` (853 train, 95 val and 130 test utterances, 16 kHz mono 16-bit WAV under `<split>/an4/wav/` with same-named transcripts under the sibling `txt/`, upper-case A to Z and space) and build the three manifests as `create_manifest` does, in directory-walk order (the source does not sort): keep only train and val utterances of 1 to 15 seconds inclusive (`--min-duration 1 --max-duration 15`: 809 train, 88 val) and all 130 test utterances, which are not pruned. Compute features as `SpectrogramParser.compute_spectrogram` does with `normalize=True`: `librosa.stft` with n_fft 320 (the 0.02 s window), hop 160 (the 0.01 s stride), a Hamming window and its other defaults, magnitude, `log1p`, then subtract that utterance's own mean and divide by its own standard deviation, 161 bins per frame, no augmentation (every `AugmentationConfig` option is off); map transcripts to indices in `labels.json` (29 symbols: the blank `_` at 0, apostrophe, A to Z, space at 28), dropping any character outside it. Build the model as `DeepSpeech.__init__` in `model.py` does: two Conv2d, BatchNorm2d, `Hardtanh` blocks of 32 channels (kernels 41 by 11 and 21 by 11, strides (2, 2) and (2, 1), half-kernel padding, outputs zeroed past each utterance's length by `MaskConv`), 1312 features per frame; five bidirectional LSTM layers with `hidden_size` 1024, the first without batch norm, the other four preceded by a `SequenceWise` BatchNorm1d over all frames including padding, each layer's two directions summed, not concatenated, so the width stays 1024; then a BatchNorm1d and a bias-free linear layer to the 29 classes; 86,618,400 trainable parameters from random initialisation, no pretrained weights. Train with `CTCLoss(blank=0, reduction='sum', zero_infinity=True)` on the log-softmax outputs, output lengths from the convolution stride arithmetic (`get_seq_lens`), targets as one flat concatenated buffer with per-sample sizes, in batches of 8 formed as `DSRandomSampler` and `_collate_fn` do: bin the 809 train utterances into 102 contiguous blocks of 8 once (the last holds 1), reshuffle the block order and the order within each block every epoch, and sort each batch by descending length; AdamW at learning rate 0.00015, betas (0.9, 0.999), eps 1e-8, weight decay 1e-5, the rate multiplied by 0.99 after every epoch (`ExponentialLR`), gradient norm clipped at 400, 70 epochs (7,140 optimizer steps), under 16-bit mixed precision as the source trains. After every epoch run the 88 val utterances in eval mode (batch-norm running statistics, softmax over the classes) through the greedy CTC decoder (`GreedyDecoder.decode`: argmax over the classes at every frame up to the output length, drop blanks, collapse consecutive repeats, index 28 to a space) and compute the corpus-level word error rate as `WordErrorRate` in `validation.py` does: the Levenshtein distance between hypothesis and reference word sequences (split on whitespace, the reference decoded from the target indices without repeat collapsing) summed over utterances, divided by the summed reference word count, times 100; keep the single checkpoint with the lowest validation word error rate (`save_top_k: 1`, `monitor: \\\"wer\\\"`, mode `min`). After the 70 epochs reload that checkpoint and evaluate the 130-utterance test manifest with the same decoder and corpus-level computation in full precision (`ModelConfig.precision` 32): total word edit distance over its 773 reference words, times 100, what `testing.py` prints as `Average WER`; the character error rate is the same computation over non-space characters. The number to write is that test word error rate as a percentage on the 0 to 100 scale (the source's `compute` multiplies by 100), not a 0 to 1 fraction, not the validation value, not a mean of per-utterance rates and not the character error rate, together with the best validation word error rate, the epoch it came from and the number of epochs run.\\nWrite the metrics JSON with at least: {\\\"test_wer\\\": float, \\\"test_cer\\\": float, \\\"best_val_wer\\\": float, \\\"best_epoch\\\": int, \\\"epochs_run\\\": int, \\\"n_test_utterances\\\": int, \\\"n_reference_words\\\": int, \\\"n_parameters\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "tgn", "name": "TGN", "domain": "temporal graph learning", "source_repo": "https://github.com/twitter-research/tgn", "source_commit": "d55bbe678acabb9fc3879c408fd1f2e15919667c", "source_at_commit": "https://github.com/twitter-research/tgn/tree/d55bbe678acabb9fc3879c408fd1f2e15919667c", "source_license": "Apache-2.0", "source_drop": "[\"figures\"]", "source_tree_sha256": "edf31095118a6dc2d8bbb6a608786b11ecba3f69a2ff8c7f2e5e4aaf003492a1", "pipeline": "the source repository's self-supervised temporal link prediction pipeline at its published TGN-attn configuration", "graded_quantity": "a transductive test average precision of at least 0.980 for future edge prediction on JODIE Wikipedia (the source's own test_ap on the 0-1 fraction scale; published 0.9846)", "bar": "band 0.98 to 1.0", "bar_cmp": "band", "bar_value": 0.98, "bar_value_2": 1.0, "bar_kind": "paper", "dataset": "the JODIE Wikipedia temporal interaction dataset, 157,474 timestamped user-page edit events over 9,227 nodes with 172-dimensional edge features, split chronologically 70/15/15 by timestamp", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 0.2, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun one run of the source repository's TGN-attn recipe, the README's `python train_self_supervised.py --use_memory --prefix tgn-attn` at the parser defaults of `train_self_supervised.py`, on JODIE Wikipedia. Obtain and preprocess the data the way the source does: download `wikipedia.csv` from the JODIE page the README links (`http://snap.stanford.edu/jodie/`) into `data/` and run `python utils/preprocess_data.py --data wikipedia --bipartite`, which reads the user, page, timestamp, label and 172 feature columns of the 157,474 events, reindexes the bipartite graph so that page ids follow the user ids and 0 is the padding node and padding edge, prepends an all-zero edge-feature row, and writes `data/ml_wikipedia.csv`, `data/ml_wikipedia.npy` and the all-zero 172-wide node features `data/ml_wikipedia_node.npy`. Split as `get_data` in `utils/data_processing.py` does: validation and test cuts at the 0.70 and 0.85 quantiles of the timestamps (chronological 70/15/15, 23,621 test interactions), with 10 percent of all nodes, drawn with Python's `random` seeded at 2020 from the nodes active after the validation cut, held out as new nodes whose edges are all removed from the training split; validation and test keep every edge in their windows, and the new-node splits are the edges in those windows touching a node absent from training. Build the model as the script configures it (`model/tgn.py`): a node memory of width 172 reset to zeros at the start of every epoch and updated at the start of each batch from the stored raw messages, last message per node, through a GRU cell; the identity message function, so a message is the 688-wide concatenation of source memory, destination memory, the 172 edge features and the cosine time encoding of the time since the node's last update, with the one `TimeEncode` of width 172 (weights initialised to `1 / 10 ** linspace(0, 9, 172)`, zero bias, then trained) shared between message construction and the embedding module; one temporal graph attention layer with 2 heads and dropout 0.1 over each node's 10 most recent temporal neighbours (`--uniform` unset), embedding width 172 on top of memory plus the zero node features; and the `MergeLayer` affinity MLP (a 172-unit ReLU layer and one output) whose sigmoid is the edge probability. Train with `BCELoss` on each positive edge plus one negative destination drawn uniformly from the training split's unique destinations, Adam at learning rate 0.0001 with no weight decay and no schedule, batches of 200 in time order, one optimizer step per batch with the memory and stored messages detached afterwards, and a neighbour finder built from training edges only. After every epoch switch to the full-graph neighbour finder and evaluate as `eval_edge_prediction` in `evaluation/evaluation.py` does: batches of 200 in time order with the memory advancing through the evaluated edges, one negative per positive from the seeded `RandEdgeSampler` reset at the top of each evaluation (seed 0 over the full graph for validation, 2 over the full graph for test, 3 over the new-node test split's nodes), and per batch sklearn's `average_precision_score` and `roc_auc_score` over the 200 positive and 200 negative scores, averaged without weighting over the batches; evaluate the validation split, then the new-node validation split from the post-training memory, then restore the post-validation memory. Early-stop on validation AP with patience 5 over at most 50 epochs, checkpointing after every epoch; on stopping, reload the best-validation epoch's checkpoint, whose saved memory is that epoch's post-validation state (a run that uses all 50 epochs keeps its final model), then run the test split from that memory, which has already consumed the validation edges and is not reset, followed by the new-node test split from the same state. The number to write is the old-nodes (transductive) test AP of that pass as a fraction between 0 and 1, not the new-node AP and not the ROC AUC; take initialisation, dropout and training negatives from `--seed` in place of the script's hard-coded seed and leave the evaluation samplers and the holdout draw at the source's fixed seeds.\nWrite the metrics JSON with at least: {\"test_ap\": float, \"new_node_test_ap\": float, \"best_val_ap\": float, \"best_epoch\": int, \"epochs_run\": int, \"n_test\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"tgn\", \"seed\": 1337, \"dataset\": \"the JODIE Wikipedia temporal interaction dataset, 157,474 timestamped user-page edit events over 9,227 nodes with 172-dimensional edge features, split chronologically 70/15/15 by timestamp\", \"pipeline\": \"the source repository's self-supervised temporal link prediction pipeline at its published TGN-attn configuration\", \"bar_sentence\": \"a transductive test average precision of at least 0.980 for future edge prediction on JODIE Wikipedia (the source's own test_ap on the 0-1 fraction scale; published 0.9846)\", \"protocol_sentence\": \"(the source's own eval_edge_prediction protocol -- the unweighted mean of 119 per-batch average precisions, each over 200 positive and 200 seeded-negative edges, on the timestamps > 0.85-quantile test split of 23,621 interactions, with the node memory advancing through the evaluation from the post-validation state carried by the reloaded best-validation checkpoint; the band's upper bound 1.0 is the AP ceiling, so a percent-scaled field is rescaled by the comparator rather than false-PASSing)\", \"bar\": 0.98, \"bar2\": 1.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*auc)(?!.*(?:^|[_./-])(?:train|training|val|valid|validation|dev|nn|new|newnode|inductive)(?:$|[_./-])).*(?:^|[_./-])(?:ap|aps|average_precision|avg_precision|auprc)(?:$|[_./-])\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"paper\", \"quote\": \"TGN-attn, Wikipedia transductive: 98.46 ± 0.1, Wikipedia inductive: 97.81± 0.1, Reddit: 98.70± 0.1 and 97.55± 0.1, Twitter: 94.52± 0.5 and 91.37± 1.1\", \"verified\": true, \"note\": \"The vendored README publishes no number at all (grep for 98.46 / 0.9846 / \\\"average precision\\\" returns nothing), so the paper is the only source; bar 0.980 is 0.9846 minus a tolerance, corroborated by DyGLib (arXiv 2303.13047) at 98.45 +/- 0.06 over five seeds.\"}, \"expected_grade_wall_h\": 0.2, \"phase2_recipe\": \"Run one run of the source repository's TGN-attn recipe, the README's `python train_self_supervised.py --use_memory --prefix tgn-attn` at the parser defaults of `train_self_supervised.py`, on JODIE Wikipedia. Obtain and preprocess the data the way the source does: download `wikipedia.csv` from the JODIE page the README links (`http://snap.stanford.edu/jodie/`) into `data/` and run `python utils/preprocess_data.py --data wikipedia --bipartite`, which reads the user, page, timestamp, label and 172 feature columns of the 157,474 events, reindexes the bipartite graph so that page ids follow the user ids and 0 is the padding node and padding edge, prepends an all-zero edge-feature row, and writes `data/ml_wikipedia.csv`, `data/ml_wikipedia.npy` and the all-zero 172-wide node features `data/ml_wikipedia_node.npy`. Split as `get_data` in `utils/data_processing.py` does: validation and test cuts at the 0.70 and 0.85 quantiles of the timestamps (chronological 70/15/15, 23,621 test interactions), with 10 percent of all nodes, drawn with Python's `random` seeded at 2020 from the nodes active after the validation cut, held out as new nodes whose edges are all removed from the training split; validation and test keep every edge in their windows, and the new-node splits are the edges in those windows touching a node absent from training. Build the model as the script configures it (`model/tgn.py`): a node memory of width 172 reset to zeros at the start of every epoch and updated at the start of each batch from the stored raw messages, last message per node, through a GRU cell; the identity message function, so a message is the 688-wide concatenation of source memory, destination memory, the 172 edge features and the cosine time encoding of the time since the node's last update, with the one `TimeEncode` of width 172 (weights initialised to `1 / 10 ** linspace(0, 9, 172)`, zero bias, then trained) shared between message construction and the embedding module; one temporal graph attention layer with 2 heads and dropout 0.1 over each node's 10 most recent temporal neighbours (`--uniform` unset), embedding width 172 on top of memory plus the zero node features; and the `MergeLayer` affinity MLP (a 172-unit ReLU layer and one output) whose sigmoid is the edge probability. Train with `BCELoss` on each positive edge plus one negative destination drawn uniformly from the training split's unique destinations, Adam at learning rate 0.0001 with no weight decay and no schedule, batches of 200 in time order, one optimizer step per batch with the memory and stored messages detached afterwards, and a neighbour finder built from training edges only. After every epoch switch to the full-graph neighbour finder and evaluate as `eval_edge_prediction` in `evaluation/evaluation.py` does: batches of 200 in time order with the memory advancing through the evaluated edges, one negative per positive from the seeded `RandEdgeSampler` reset at the top of each evaluation (seed 0 over the full graph for validation, 2 over the full graph for test, 3 over the new-node test split's nodes), and per batch sklearn's `average_precision_score` and `roc_auc_score` over the 200 positive and 200 negative scores, averaged without weighting over the batches; evaluate the validation split, then the new-node validation split from the post-training memory, then restore the post-validation memory. Early-stop on validation AP with patience 5 over at most 50 epochs, checkpointing after every epoch; on stopping, reload the best-validation epoch's checkpoint, whose saved memory is that epoch's post-validation state (a run that uses all 50 epochs keeps its final model), then run the test split from that memory, which has already consumed the validation edges and is not reset, followed by the new-node test split from the same state. The number to write is the old-nodes (transductive) test AP of that pass as a fraction between 0 and 1, not the new-node AP and not the ROC AUC; take initialisation, dropout and training negatives from `--seed` in place of the script's hard-coded seed and leave the evaluation samplers and the holdout draw at the source's fixed seeds.\\nWrite the metrics JSON with at least: {\\\"test_ap\\\": float, \\\"new_node_test_ap\\\": float, \\\"best_val_ap\\\": float, \\\"best_epoch\\\": int, \\\"epochs_run\\\": int, \\\"n_test\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}
{"task_id": "patchtst", "name": "PatchTST", "domain": "time-series forecasting", "source_repo": "https://github.com/yuqinie98/PatchTST", "source_commit": "204c21efe0b39603ad6e2ca640ef5896646ab1a9", "source_at_commit": "https://github.com/yuqinie98/PatchTST/tree/204c21efe0b39603ad6e2ca640ef5896646ab1a9", "source_license": "Apache-2.0", "source_drop": "[\"PatchTST_supervised/Formers/FEDformer\", \"PatchTST_supervised/Formers/Pyraformer\", \"pic\"]", "source_tree_sha256": "afb5e77566e347c292dfa835b25c526efbb4f7224701c95421f51d154f7cb254", "pipeline": "the source repository's supervised PatchTST/42 long-term forecasting pipeline at look-back 336 and prediction horizon 96", "graded_quantity": "a test mean squared error of at most 0.380 in standardized units (published 0.367; 5-seed mean 0.3669 +/- 0.0006)", "bar": "at most 0.38", "bar_cmp": "le", "bar_value": 0.38, "bar_value_2": null, "bar_kind": "paper", "dataset": "the Traffic dataset (traffic.csv, 862 channels, 17,544 hourly steps) as the source repository splits and standardizes it", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 0.7, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's supervised long-term forecasting pipeline, `PatchTST_supervised/run_longExp.py`, exactly as the first iteration of `PatchTST_supervised/scripts/PatchTST/traffic.sh` invokes it (`--pred_len 96`, the first of its `96 192 336 720` loop), on the Traffic dataset and nothing else: not ETTh1, ETTm1, weather or any other csv the repository ships scripts for. The data is `traffic.csv` from the Autoformer dataset bundle the source `README.md` \"Download data\" step links (its Google Drive folder; the same file from any public mirror is equivalent), placed where the script's `--root_path ./dataset/ --data_path traffic.csv` expect it: a header plus 17,544 hourly rows and 863 columns, `date` followed by 862 channels, the last named `OT`. Load it the way `data_provider/data_loader.py`'s `Dataset_Custom` does under `--data custom --features M --target OT --seq_len 336 --label_len 48 --pred_len 96`: all 862 channels as both inputs and targets, rows cut 0.7/0.1/0.2 into 12,280 training rows and validation and test segments that each start 336 rows before their boundary (2,092 and 3,844 rows), a `StandardScaler` fit on the training rows only and applied to all three splits so every value the model sees is standardized, and sliding windows of 336 input and 96 target steps (11,849 training, 1,661 validation, 3,413 test windows). Build the `PatchTST` model from the script's flags, `--enc_in 862 --e_layers 3 --n_heads 16 --d_model 128 --d_ff 256 --dropout 0.2 --fc_dropout 0.2 --head_dropout 0 --patch_len 16 --stride 8`, and the `run_longExp.py` defaults the script leaves alone: `--revin 1 --affine 0 --subtract_last 0` (each channel of each window normalized by its own mean and biased standard deviation with `eps` 1e-5, no learned affine, undone on the output), `--padding_patch end` (replication padding by one stride, so 42 patches per channel), `--decomposition 0`, `--individual 0`, the channel-independent encoder with batch-norm, residual attention, GELU, `attn_dropout` 0 and a learnable positional table, and the flatten head with one linear layer shared across channels. Train with `--train_epochs 100 --patience 10 --batch_size 24 --learning_rate 0.0001 --lradj TST --pct_start 0.2 --itr 1`, seeded from the invocation's `--seed` in place of the script's `--random_seed 2021`: MSE loss, Adam at the library defaults with no weight decay, and `OneCycleLR` as `exp/exp_main.py` builds it (`max_lr` 0.0001, `pct_start` 0.2, `epochs` 100, `steps_per_epoch` 493, so 49,300 scheduled steps, with the PyTorch defaults of cosine annealing, `div_factor` 25, `final_div_factor` 1e4 and beta1 cycling between 0.85 and 0.95) stepped once per optimizer iteration and not rescaled if early stopping cuts it short; the training and validation loaders both shuffle and drop their last partial batch (493 and 69 batches), the test loader neither shuffles nor keeps its last partial batch (142 batches, 3,408 windows). After every epoch compute the validation loss as `vali()` does, the mean over the validation batches of each batch's MSE in standardized units, save the parameters whenever it is strictly lower than the best so far (`utils/tools.py` `EarlyStopping`, `delta` 0), and stop after 10 consecutive epochs without improvement or after epoch 100, whichever comes first. Then restore the best-validation parameters, as `train()` reloads `checkpoint.pth`, and evaluate them once over the test loader as `test()` does: concatenate the predictions and targets of the 142 full batches into `[3408, 96, 862]` arrays, in standardized units with no inverse transform, and compute `utils/metrics.py` `MSE` (`np.mean((pred - true) ** 2)`) and `MAE` over every element, the two values the source prints as `mse:{}, mae:{}`. The number to write is that test MSE, with the test MAE beside it, plus the 1-based epoch whose validation loss was lowest and the number of epochs actually run.\nWrite the metrics JSON with at least: {\"test_mse\": float, \"test_mae\": float, \"best_epoch\": int, \"epochs_run\": int, \"n_test_windows\": int, \"wall_seconds\": float, \"device_count\": int, \"dataset\": \"traffic\"}\n", "criteria": "{\"repo\": \"patchtst\", \"seed\": 1337, \"dataset\": \"the Traffic dataset (traffic.csv, 862 channels, 17,544 hourly steps) as the source repository splits and standardizes it\", \"pipeline\": \"the source repository's supervised PatchTST/42 long-term forecasting pipeline at look-back 336 and prediction horizon 96\", \"bar_sentence\": \"a test mean squared error of at most 0.380 in standardized units (published 0.367; 5-seed mean 0.3669 +/- 0.0006)\", \"protocol_sentence\": \"(the mean over the [3408, 96, 862] test tensor in the source's own protocol: standardized units with no inverse transform, the validation-selected checkpoint, the source's 0.7/0.1/0.2 row split with the scaler fit on training rows only, and the last partial test batch dropped at batch size 24; MSE has no ceiling, so the bar stays le)\", \"bar\": 0.38, \"bar_cmp\": \"le\", \"metric_re\": \"^(?!.*(?:^|_)(?:train|val|dev|loss|weather|electricity|ecl|ett|illness|ili|exchange|std|var|sem|horizon|step|chan|h\\\\d|t\\\\d))(?=.*(?:^|[_./])mse(?:$|[_./])).*\", \"dataset_regex\": \"traffic\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"paper\", \"quote\": \"Traffic, 96: PatchTST/42 MSE: 0.367, PatchTST/42 MAE: 0.251\", \"verified\": true, \"note\": \"The vendored README shows Table 3 only as an image (README.md:33, pic/table3.png) so the paper is the authority; Table 14 gives the same cell as a 5-seed mean 0.3669 +/- 0.0006 and the bar adds 0.013.\"}, \"expected_grade_wall_h\": 0.7, \"phase2_recipe\": \"Run the source repository's supervised long-term forecasting pipeline, `PatchTST_supervised/run_longExp.py`, exactly as the first iteration of `PatchTST_supervised/scripts/PatchTST/traffic.sh` invokes it (`--pred_len 96`, the first of its `96 192 336 720` loop), on the Traffic dataset and nothing else: not ETTh1, ETTm1, weather or any other csv the repository ships scripts for. The data is `traffic.csv` from the Autoformer dataset bundle the source `README.md` \\\"Download data\\\" step links (its Google Drive folder; the same file from any public mirror is equivalent), placed where the script's `--root_path ./dataset/ --data_path traffic.csv` expect it: a header plus 17,544 hourly rows and 863 columns, `date` followed by 862 channels, the last named `OT`. Load it the way `data_provider/data_loader.py`'s `Dataset_Custom` does under `--data custom --features M --target OT --seq_len 336 --label_len 48 --pred_len 96`: all 862 channels as both inputs and targets, rows cut 0.7/0.1/0.2 into 12,280 training rows and validation and test segments that each start 336 rows before their boundary (2,092 and 3,844 rows), a `StandardScaler` fit on the training rows only and applied to all three splits so every value the model sees is standardized, and sliding windows of 336 input and 96 target steps (11,849 training, 1,661 validation, 3,413 test windows). Build the `PatchTST` model from the script's flags, `--enc_in 862 --e_layers 3 --n_heads 16 --d_model 128 --d_ff 256 --dropout 0.2 --fc_dropout 0.2 --head_dropout 0 --patch_len 16 --stride 8`, and the `run_longExp.py` defaults the script leaves alone: `--revin 1 --affine 0 --subtract_last 0` (each channel of each window normalized by its own mean and biased standard deviation with `eps` 1e-5, no learned affine, undone on the output), `--padding_patch end` (replication padding by one stride, so 42 patches per channel), `--decomposition 0`, `--individual 0`, the channel-independent encoder with batch-norm, residual attention, GELU, `attn_dropout` 0 and a learnable positional table, and the flatten head with one linear layer shared across channels. Train with `--train_epochs 100 --patience 10 --batch_size 24 --learning_rate 0.0001 --lradj TST --pct_start 0.2 --itr 1`, seeded from the invocation's `--seed` in place of the script's `--random_seed 2021`: MSE loss, Adam at the library defaults with no weight decay, and `OneCycleLR` as `exp/exp_main.py` builds it (`max_lr` 0.0001, `pct_start` 0.2, `epochs` 100, `steps_per_epoch` 493, so 49,300 scheduled steps, with the PyTorch defaults of cosine annealing, `div_factor` 25, `final_div_factor` 1e4 and beta1 cycling between 0.85 and 0.95) stepped once per optimizer iteration and not rescaled if early stopping cuts it short; the training and validation loaders both shuffle and drop their last partial batch (493 and 69 batches), the test loader neither shuffles nor keeps its last partial batch (142 batches, 3,408 windows). After every epoch compute the validation loss as `vali()` does, the mean over the validation batches of each batch's MSE in standardized units, save the parameters whenever it is strictly lower than the best so far (`utils/tools.py` `EarlyStopping`, `delta` 0), and stop after 10 consecutive epochs without improvement or after epoch 100, whichever comes first. Then restore the best-validation parameters, as `train()` reloads `checkpoint.pth`, and evaluate them once over the test loader as `test()` does: concatenate the predictions and targets of the 142 full batches into `[3408, 96, 862]` arrays, in standardized units with no inverse transform, and compute `utils/metrics.py` `MSE` (`np.mean((pred - true) ** 2)`) and `MAE` over every element, the two values the source prints as `mse:{}, mae:{}`. The number to write is that test MSE, with the test MAE beside it, plus the 1-based epoch whose validation loss was lowest and the number of epochs actually run.\\nWrite the metrics JSON with at least: {\\\"test_mse\\\": float, \\\"test_mae\\\": float, \\\"best_epoch\\\": int, \\\"epochs_run\\\": int, \\\"n_test_windows\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int, \\\"dataset\\\": \\\"traffic\\\"}\"}"}
{"task_id": "tabr", "name": "TabR", "domain": "tabular learning", "source_repo": "https://github.com/yandex-research/tabular-dl-tabr", "source_commit": "17baa9082506f8e7a0f8d11bb1e08212926a1507", "source_at_commit": "https://github.com/yandex-research/tabular-dl-tabr/tree/17baa9082506f8e7a0f8d11bb1e08212926a1507", "source_license": "MIT", "source_drop": "[\"exp/anp\", \"exp/catboost_/adult\", \"exp/catboost_/black-friday\", \"exp/catboost_/california\", \"exp/catboost_/churn\", \"exp/catboost_/covtype/2-ensemble-5\", \"exp/catboost_/covtype/2-evaluation/0\", \"exp/catboost_/covtype/2-evaluation/1\", \"exp/catboost_/covtype/2-evaluation/10\", \"exp/catboost_/covtype/2-evaluation/11\", \"exp/catboost_/covtype/2-evaluation/12\", \"exp/catboost_/covtype/2-evaluation/13\", \"exp/catboost_/covtype/2-evaluation/14\", \"exp/catboost_/covtype/2-evaluation/2\", \"exp/catboost_/covtype/2-evaluation/3\", \"exp/catboost_/covtype/2-evaluation/4\", \"exp/catboost_/covtype/2-evaluation/5\", \"exp/catboost_/covtype/2-evaluation/6\", \"exp/catboost_/covtype/2-evaluation/7\", \"exp/catboost_/covtype/2-evaluation/8\", \"exp/catboost_/covtype/2-evaluation/9\", \"exp/catboost_/covtype/2-tuning\", \"exp/catboost_/covtype/default2-ensemble-5\", \"exp/catboost_/covtype/default2-evaluation/0\", \"exp/catboost_/covtype/default2-evaluation/1\", \"exp/catboost_/covtype/default2-evaluation/10\", \"exp/catboost_/covtype/default2-evaluation/11\", \"exp/catboost_/covtype/default2-evaluation/12\", \"exp/catboost_/covtype/default2-evaluation/13\", \"exp/catboost_/covtype/default2-evaluation/14\", \"exp/catboost_/covtype/default2-evaluation/2\", \"exp/catboost_/covtype/default2-evaluation/3\", \"exp/catboost_/covtype/default2-evaluation/4\", \"exp/catboost_/covtype/default2-evaluation/5\", \"exp/catboost_/covtype/default2-evaluation/6\", \"exp/catboost_/covtype/default2-evaluation/7\", \"exp/catboost_/covtype/default2-evaluation/8\", \"exp/catboost_/covtype/default2-evaluation/9\", \"exp/catboost_/diamond\", \"exp/catboost_/higgs-small\", \"exp/catboost_/house\", \"exp/catboost_/microsoft\", \"exp/catboost_/otto\", \"exp/catboost_/weather-small\", \"exp/catboost_/why\", \"exp/dkl\", \"exp/dnnr\", \"exp/ft_transformer\", \"exp/knn/adult\", \"exp/knn/black-friday\", \"exp/knn/california\", \"exp/knn/churn\", \"exp/knn/covtype/0-evaluation/0\", \"exp/knn/diamond\", \"exp/knn/higgs-small\", \"exp/knn/house\", \"exp/knn/microsoft\", \"exp/knn/otto\", \"exp/knn/weather-small\", \"exp/lightgbm_/adult\", \"exp/lightgbm_/black-friday\", \"exp/lightgbm_/california\", \"exp/lightgbm_/churn\", \"exp/lightgbm_/covtype/2-ensemble-5\", \"exp/lightgbm_/covtype/2-evaluation/0\", \"exp/lightgbm_/covtype/2-evaluation/1\", \"exp/lightgbm_/covtype/2-evaluation/10\", \"exp/lightgbm_/covtype/2-evaluation/11\", \"exp/lightgbm_/covtype/2-evaluation/12\", \"exp/lightgbm_/covtype/2-evaluation/13\", \"exp/lightgbm_/covtype/2-evaluation/14\", \"exp/lightgbm_/covtype/2-evaluation/2\", \"exp/lightgbm_/covtype/2-evaluation/3\", \"exp/lightgbm_/covtype/2-evaluation/4\", \"exp/lightgbm_/covtype/2-evaluation/5\", \"exp/lightgbm_/covtype/2-evaluation/6\", \"exp/lightgbm_/covtype/2-evaluation/7\", \"exp/lightgbm_/covtype/2-evaluation/8\", \"exp/lightgbm_/covtype/2-evaluation/9\", \"exp/lightgbm_/covtype/2-tuning\", \"exp/lightgbm_/covtype/default2-ensemble-5\", \"exp/lightgbm_/covtype/default2-evaluation/0\", \"exp/lightgbm_/covtype/default2-evaluation/1\", \"exp/lightgbm_/covtype/default2-evaluation/10\", \"exp/lightgbm_/covtype/default2-evaluation/11\", \"exp/lightgbm_/covtype/default2-evaluation/12\", \"exp/lightgbm_/covtype/default2-evaluation/13\", \"exp/lightgbm_/covtype/default2-evaluation/14\", \"exp/lightgbm_/covtype/default2-evaluation/2\", \"exp/lightgbm_/covtype/default2-evaluation/3\", \"exp/lightgbm_/covtype/default2-evaluation/4\", \"exp/lightgbm_/covtype/default2-evaluation/5\", \"exp/lightgbm_/covtype/default2-evaluation/6\", \"exp/lightgbm_/covtype/default2-evaluation/7\", \"exp/lightgbm_/covtype/default2-evaluation/8\", \"exp/lightgbm_/covtype/default2-evaluation/9\", \"exp/lightgbm_/diamond\", \"exp/lightgbm_/higgs-small\", \"exp/lightgbm_/house\", \"exp/lightgbm_/microsoft\", \"exp/lightgbm_/otto\", \"exp/lightgbm_/weather-big\", \"exp/lightgbm_/weather-small\", \"exp/lightgbm_/why\", \"exp/mlp/adult\", \"exp/mlp/black-friday\", \"exp/mlp/california\", \"exp/mlp/churn\", \"exp/mlp/covtype/0-ensemble-5\", \"exp/mlp/covtype/0-evaluation/0\", \"exp/mlp/covtype/0-evaluation/1\", \"exp/mlp/covtype/0-evaluation/10\", \"exp/mlp/covtype/0-evaluation/11\", \"exp/mlp/covtype/0-evaluation/12\", \"exp/mlp/covtype/0-evaluation/13\", \"exp/mlp/covtype/0-evaluation/14\", \"exp/mlp/covtype/0-evaluation/2\", \"exp/mlp/covtype/0-evaluation/3\", \"exp/mlp/covtype/0-evaluation/4\", \"exp/mlp/covtype/0-evaluation/5\", \"exp/mlp/covtype/0-evaluation/6\", \"exp/mlp/covtype/0-evaluation/7\", \"exp/mlp/covtype/0-evaluation/8\", \"exp/mlp/covtype/0-evaluation/9\", \"exp/mlp/covtype/0-tuning\", \"exp/mlp/covtype/lr-ensemble-5\", \"exp/mlp/covtype/lr-evaluation/0\", \"exp/mlp/covtype/lr-evaluation/1\", \"exp/mlp/covtype/lr-evaluation/10\", \"exp/mlp/covtype/lr-evaluation/11\", \"exp/mlp/covtype/lr-evaluation/12\", \"exp/mlp/covtype/lr-evaluation/13\", \"exp/mlp/covtype/lr-evaluation/14\", \"exp/mlp/covtype/lr-evaluation/2\", \"exp/mlp/covtype/lr-evaluation/3\", \"exp/mlp/covtype/lr-evaluation/4\", \"exp/mlp/covtype/lr-evaluation/5\", \"exp/mlp/covtype/lr-evaluation/6\", \"exp/mlp/covtype/lr-evaluation/7\", \"exp/mlp/covtype/lr-evaluation/8\", \"exp/mlp/covtype/lr-evaluation/9\", \"exp/mlp/covtype/lr-tuning\", \"exp/mlp/covtype/plr-ensemble-5\", \"exp/mlp/covtype/plr-evaluation/0\", \"exp/mlp/covtype/plr-evaluation/1\", \"exp/mlp/covtype/plr-evaluation/10\", \"exp/mlp/covtype/plr-evaluation/11\", \"exp/mlp/covtype/plr-evaluation/12\", \"exp/mlp/covtype/plr-evaluation/13\", \"exp/mlp/covtype/plr-evaluation/14\", \"exp/mlp/covtype/plr-evaluation/2\", \"exp/mlp/covtype/plr-evaluation/3\", \"exp/mlp/covtype/plr-evaluation/4\", \"exp/mlp/covtype/plr-evaluation/5\", \"exp/mlp/covtype/plr-evaluation/6\", \"exp/mlp/covtype/plr-evaluation/7\", \"exp/mlp/covtype/plr-evaluation/8\", \"exp/mlp/covtype/plr-evaluation/9\", \"exp/mlp/covtype/plr-lite-ensemble-5\", \"exp/mlp/covtype/plr-lite-evaluation/0\", \"exp/mlp/covtype/plr-lite-evaluation/1\", \"exp/mlp/covtype/plr-lite-evaluation/10\", \"exp/mlp/covtype/plr-lite-evaluation/11\", \"exp/mlp/covtype/plr-lite-evaluation/12\", \"exp/mlp/covtype/plr-lite-evaluation/13\", \"exp/mlp/covtype/plr-lite-evaluation/14\", \"exp/mlp/covtype/plr-lite-evaluation/2\", \"exp/mlp/covtype/plr-lite-evaluation/3\", \"exp/mlp/covtype/plr-lite-evaluation/4\", \"exp/mlp/covtype/plr-lite-evaluation/5\", \"exp/mlp/covtype/plr-lite-evaluation/6\", \"exp/mlp/covtype/plr-lite-evaluation/7\", \"exp/mlp/covtype/plr-lite-evaluation/8\", \"exp/mlp/covtype/plr-lite-evaluation/9\", \"exp/mlp/covtype/plr-lite-tuning\", \"exp/mlp/covtype/plr-tuning\", \"exp/mlp/diamond\", \"exp/mlp/higgs-small\", \"exp/mlp/house\", \"exp/mlp/microsoft\", \"exp/mlp/otto\", \"exp/mlp/weather-small\", \"exp/mlp/why\", \"exp/neighbors/adult\", \"exp/neighbors/black-friday\", \"exp/neighbors/california\", \"exp/neighbors/churn\", \"exp/neighbors/covtype/0\", \"exp/neighbors/diamond\", \"exp/neighbors/higgs-small\", \"exp/neighbors/house\", \"exp/neighbors/microsoft\", \"exp/neighbors/otto\", \"exp/neighbors/weather-small\", \"exp/npt\", \"exp/saint/adult\", \"exp/saint/black-friday\", \"exp/saint/california\", \"exp/saint/churn\", \"exp/saint/covtype/default-ensemble-5\", \"exp/saint/covtype/default-evaluation/0\", \"exp/saint/covtype/default-evaluation/1\", \"exp/saint/covtype/default-evaluation/10\", \"exp/saint/covtype/default-evaluation/11\", \"exp/saint/covtype/default-evaluation/12\", \"exp/saint/covtype/default-evaluation/13\", \"exp/saint/covtype/default-evaluation/14\", \"exp/saint/covtype/default-evaluation/2\", \"exp/saint/covtype/default-evaluation/3\", \"exp/saint/covtype/default-evaluation/4\", \"exp/saint/covtype/default-evaluation/5\", \"exp/saint/covtype/default-evaluation/6\", \"exp/saint/covtype/default-evaluation/7\", \"exp/saint/covtype/default-evaluation/8\", \"exp/saint/covtype/default-evaluation/9\", \"exp/saint/diamond\", \"exp/saint/higgs-small\", \"exp/saint/house\", \"exp/saint/microsoft\", \"exp/saint/otto\", \"exp/saint/weather-small\", \"exp/tabr/adult\", \"exp/tabr/black-friday\", \"exp/tabr/california\", \"exp/tabr/churn\", \"exp/tabr/covtype/0-ensemble-5\", \"exp/tabr/covtype/0-evaluation/0\", \"exp/tabr/covtype/0-evaluation/1\", \"exp/tabr/covtype/0-evaluation/10\", \"exp/tabr/covtype/0-evaluation/11\", \"exp/tabr/covtype/0-evaluation/12\", \"exp/tabr/covtype/0-evaluation/13\", \"exp/tabr/covtype/0-evaluation/14\", \"exp/tabr/covtype/0-evaluation/2\", \"exp/tabr/covtype/0-evaluation/3\", \"exp/tabr/covtype/0-evaluation/4\", \"exp/tabr/covtype/0-evaluation/5\", \"exp/tabr/covtype/0-evaluation/6\", \"exp/tabr/covtype/0-evaluation/7\", \"exp/tabr/covtype/0-evaluation/8\", \"exp/tabr/covtype/0-evaluation/9\", \"exp/tabr/covtype/0-tuning\", \"exp/tabr/covtype/2-lr-ensemble-5\", \"exp/tabr/covtype/2-lr-evaluation/0\", \"exp/tabr/covtype/2-lr-evaluation/1\", \"exp/tabr/covtype/2-lr-evaluation/10\", \"exp/tabr/covtype/2-lr-evaluation/11\", \"exp/tabr/covtype/2-lr-evaluation/12\", \"exp/tabr/covtype/2-lr-evaluation/13\", \"exp/tabr/covtype/2-lr-evaluation/14\", \"exp/tabr/covtype/2-lr-evaluation/2\", \"exp/tabr/covtype/2-lr-evaluation/3\", \"exp/tabr/covtype/2-lr-evaluation/4\", \"exp/tabr/covtype/2-lr-evaluation/5\", \"exp/tabr/covtype/2-lr-evaluation/6\", \"exp/tabr/covtype/2-lr-evaluation/7\", \"exp/tabr/covtype/2-lr-evaluation/8\", \"exp/tabr/covtype/2-lr-evaluation/9\", \"exp/tabr/covtype/2-lr-tuning\", \"exp/tabr/covtype/default-ensemble-5\", \"exp/tabr/covtype/default-evaluation/0\", \"exp/tabr/covtype/default-evaluation/1\", \"exp/tabr/covtype/default-evaluation/10\", \"exp/tabr/covtype/default-evaluation/11\", \"exp/tabr/covtype/default-evaluation/12\", \"exp/tabr/covtype/default-evaluation/13\", \"exp/tabr/covtype/default-evaluation/14\", \"exp/tabr/covtype/default-evaluation/2\", \"exp/tabr/covtype/default-evaluation/3\", \"exp/tabr/covtype/default-evaluation/4\", \"exp/tabr/covtype/default-evaluation/5\", \"exp/tabr/covtype/default-evaluation/6\", \"exp/tabr/covtype/default-evaluation/7\", \"exp/tabr/covtype/default-evaluation/8\", \"exp/tabr/covtype/default-evaluation/9\", \"exp/tabr/diamond\", \"exp/tabr/higgs-small\", \"exp/tabr/house\", \"exp/tabr/microsoft\", \"exp/tabr/otto\", \"exp/tabr/weather-big\", \"exp/tabr/weather-small\", \"exp/tabr/why\", \"exp/tabr_add_candidates_after_training\", \"exp/tabr_design/adult\", \"exp/tabr_design/black-friday\", \"exp/tabr_design/california\", \"exp/tabr_design/churn\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-ensemble-5\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/0\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/1\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/10\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/11\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/12\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/13\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/14\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/2\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/3\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/4\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/5\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/6\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/7\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/8\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-evaluation/9\", \"exp/tabr_design/covtype/dp-qk-v-self-scaled-tuning\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-ensemble-5\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/0\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/1\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/10\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/11\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/12\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/13\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/14\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/2\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/3\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/4\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/5\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/6\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/7\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/8\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-evaluation/9\", \"exp/tabr_design/covtype/dp-qk-yv-self-scaled-tuning\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-ensemble-5\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/0\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/1\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/10\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/11\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/12\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/13\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/14\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/2\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/3\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/4\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/5\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/6\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/7\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/8\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-evaluation/9\", \"exp/tabr_design/covtype/l2-k-yt-self-scaled-tuning\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-ensemble-5\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/0\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/1\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/10\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/11\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/12\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/13\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/14\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/2\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/3\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/4\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/5\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/6\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/7\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/8\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-evaluation/9\", \"exp/tabr_design/covtype/l2-k-yv-self-scaled-tuning\", \"exp/tabr_design/diamond\", \"exp/tabr_design/higgs-small\", \"exp/tabr_design/house\", \"exp/tabr_design/microsoft\", \"exp/tabr_design/otto\", \"exp/tabr_design/weather-small\", \"exp/tabr_scaling/adult\", \"exp/tabr_scaling/black-friday\", \"exp/tabr_scaling/california\", \"exp/tabr_scaling/churn\", \"exp/tabr_scaling/covtype/default-freeze-0-ensemble-5\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/0\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/1\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/10\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/11\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/12\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/13\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/14\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/2\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/3\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/4\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/5\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/6\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/7\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/8\", \"exp/tabr_scaling/covtype/default-freeze-0-evaluation/9\", \"exp/tabr_scaling/covtype/default-freeze-1-ensemble-5\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/0\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/1\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/10\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/11\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/12\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/13\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/14\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/2\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/3\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/4\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/5\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/6\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/7\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/8\", \"exp/tabr_scaling/covtype/default-freeze-1-evaluation/9\", \"exp/tabr_scaling/covtype/default-freeze-2-ensemble-5\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/0\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/1\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/10\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/11\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/12\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/13\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/14\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/2\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/3\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/4\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/5\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/6\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/7\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/8\", \"exp/tabr_scaling/covtype/default-freeze-2-evaluation/9\", \"exp/tabr_scaling/covtype/default-freeze-4-ensemble-5\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/0\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/1\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/10\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/11\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/12\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/13\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/14\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/2\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/3\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/4\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/5\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/6\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/7\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/8\", \"exp/tabr_scaling/covtype/default-freeze-4-evaluation/9\", \"exp/tabr_scaling/covtype/default-freeze-5-ensemble-5\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/0\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/1\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/10\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/11\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/12\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/13\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/14\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/2\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/3\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/4\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/5\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/6\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/7\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/8\", \"exp/tabr_scaling/covtype/default-freeze-5-evaluation/9\", \"exp/tabr_scaling/covtype/default-freeze-8-ensemble-5\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/0\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/1\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/10\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/11\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/12\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/13\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/14\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/2\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/3\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/4\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/5\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/6\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/7\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/8\", \"exp/tabr_scaling/covtype/default-freeze-8-evaluation/9\", \"exp/tabr_scaling/diamond\", \"exp/tabr_scaling/higgs-small\", \"exp/tabr_scaling/house\", \"exp/tabr_scaling/microsoft\", \"exp/tabr_scaling/otto\", \"exp/tabr_scaling/weather-big\", \"exp/tabr_scaling/weather-small\", \"exp/xgboost_/adult\", \"exp/xgboost_/black-friday\", \"exp/xgboost_/california\", \"exp/xgboost_/churn\", \"exp/xgboost_/covtype/2-ensemble-5\", \"exp/xgboost_/covtype/2-evaluation/0\", \"exp/xgboost_/covtype/2-evaluation/1\", \"exp/xgboost_/covtype/2-evaluation/10\", \"exp/xgboost_/covtype/2-evaluation/11\", \"exp/xgboost_/covtype/2-evaluation/12\", \"exp/xgboost_/covtype/2-evaluation/13\", \"exp/xgboost_/covtype/2-evaluation/14\", \"exp/xgboost_/covtype/2-evaluation/2\", \"exp/xgboost_/covtype/2-evaluation/3\", \"exp/xgboost_/covtype/2-evaluation/4\", \"exp/xgboost_/covtype/2-evaluation/5\", \"exp/xgboost_/covtype/2-evaluation/6\", \"exp/xgboost_/covtype/2-evaluation/7\", \"exp/xgboost_/covtype/2-evaluation/8\", \"exp/xgboost_/covtype/2-evaluation/9\", \"exp/xgboost_/covtype/2-k96-ensemble-5\", \"exp/xgboost_/covtype/2-k96-evaluation/0\", \"exp/xgboost_/covtype/2-k96-evaluation/1\", \"exp/xgboost_/covtype/2-k96-evaluation/10\", \"exp/xgboost_/covtype/2-k96-evaluation/11\", \"exp/xgboost_/covtype/2-k96-evaluation/12\", \"exp/xgboost_/covtype/2-k96-evaluation/13\", \"exp/xgboost_/covtype/2-k96-evaluation/14\", \"exp/xgboost_/covtype/2-k96-evaluation/2\", \"exp/xgboost_/covtype/2-k96-evaluation/3\", \"exp/xgboost_/covtype/2-k96-evaluation/4\", \"exp/xgboost_/covtype/2-k96-evaluation/5\", \"exp/xgboost_/covtype/2-k96-evaluation/6\", \"exp/xgboost_/covtype/2-k96-evaluation/7\", \"exp/xgboost_/covtype/2-k96-evaluation/8\", \"exp/xgboost_/covtype/2-k96-evaluation/9\", \"exp/xgboost_/covtype/2-k96-tuning\", \"exp/xgboost_/covtype/2-tuning\", \"exp/xgboost_/covtype/default2-ensemble-5\", \"exp/xgboost_/covtype/default2-evaluation/0\", \"exp/xgboost_/covtype/default2-evaluation/1\", \"exp/xgboost_/covtype/default2-evaluation/10\", \"exp/xgboost_/covtype/default2-evaluation/11\", \"exp/xgboost_/covtype/default2-evaluation/12\", \"exp/xgboost_/covtype/default2-evaluation/13\", \"exp/xgboost_/covtype/default2-evaluation/14\", \"exp/xgboost_/covtype/default2-evaluation/2\", \"exp/xgboost_/covtype/default2-evaluation/3\", \"exp/xgboost_/covtype/default2-evaluation/4\", \"exp/xgboost_/covtype/default2-evaluation/5\", \"exp/xgboost_/covtype/default2-evaluation/6\", \"exp/xgboost_/covtype/default2-evaluation/7\", \"exp/xgboost_/covtype/default2-evaluation/8\", \"exp/xgboost_/covtype/default2-evaluation/9\", \"exp/xgboost_/diamond\", \"exp/xgboost_/higgs-small\", \"exp/xgboost_/house\", \"exp/xgboost_/microsoft\", \"exp/xgboost_/otto\", \"exp/xgboost_/weather-small\", \"exp/xgboost_/why\"]", "source_tree_sha256": "e6899fcb73af14794f03769dbbc2f32f8210f48f4d9e11ed79e2075d9feb3545", "pipeline": "the source repository's TabR reproduction pipeline at its published Covertype configuration", "graded_quantity": "a test accuracy of at least 0.9745 on the Covertype test split of 116,203 rows (the source's own unnegated 0-1 accuracy; published 0.976, 15-seed committed mean 0.976145)", "bar": "band 0.9745 to 1.0", "bar_cmp": "band", "bar_value": 0.9745, "bar_value_2": 1.0, "bar_kind": "paper", "dataset": "the Covertype tabular dataset (covtype) as packaged by the source repository", "seed": 1337, "grade_cmd": "python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}", "expected_grade_wall_h": 0.3, "contract_lines": "[]", "prompt": "# PyTorch → JAX on TPU: whole-repo transfer\n\nPort the fixed-commit PyTorch repository under `source_torch/` entirely to a\nworking JAX/Flax/Optax repository, and make it work at real scale on the TPU machine\ndescribed in `TPU_ACCESS.md` — a clean machine: set it up yourself. You have\nfull access to that machine to develop, run, and test your port. The\ndeliverable is the working repository itself: produce a faithful port and\nrun it the way the source does.\n\nDeliverables at this workspace root:\n\n- `setup_env.sh` — prepares a worker of the TPU machine from clean state,\n including any data the repository's pipeline needs, obtained and prepared\n the way the source repository does. It is sourced before the entry point\n runs.\n- `run_train.py --seed S --out DIR --metrics PATH` — runs the repository's\n training pipelines the way the repository runs them, at their own scale,\n and writes the numbers the repository itself reports to the metrics JSON. It\n checkpoints to `--out` as it trains and resumes from an existing\n checkpoint in `--out`.\n- `export_torch.py --ckpt DIR --out PATH` — writes the trained weights as\n an `.npz` of numpy arrays keyed by the source model's own parameter names\n (exact names and shapes).\n\nYour submission is collected from this workspace and executed on a fresh\nmachine of the same type. It is judged on behavior that is fundamental to\nthe source repository, not all of which is spelled out here.\n\nRules:\n\n- Do not import or call PyTorch anywhere in your submission at runtime.\n- Data, library, and package downloads are allowed; do not fetch, clone, or\n copy model or porting code from the internet.\n\n## Goal\n\nKeep working until your submission passes grading.\n", "phase2": "Your submission is now frozen: from this point do not change your ported code, setup, or any other file. Edit only `run_train.py` so that one invocation does exactly the following, using your ported code as it is:\n\nRun the source repository's TabR evaluation on Covertype exactly as `python bin/tabr.py exp/tabr/covtype/2-lr-evaluation/0.toml --force` runs it, with every setting taken from that config and the remaining defaults of `Model` in `bin/tabr.py`, the training seed (`delu.random.seed(C.seed)`) supplied by `--seed` in place of the config's top-level `seed`. Obtain the data the way the README's Data section does: download `data.tar` from `https://huggingface.co/datasets/puhsu/tabular-benchmarks/resolve/main/data.tar` and extract `data/covtype/`, whose fixed split (`X_num_*.npy`, 10 float32 numeric columns; `X_bin_*.npy`, 44 float32 0/1 columns; `Y_*.npy`, int64 labels 0 to 6; `info.json` with `task_type` multiclass) has 371,847 train, 92,962 val and 116,203 test rows; do not re-split or reshuffle it, and the test split contains all 7 classes. Preprocess as `lib.build_dataset` does for the config's `num_policy = \"quantile\"` with `[data] seed = 0` (`transform_num` in `lib/data.py`): fit `sklearn.preprocessing.QuantileTransformer(output_distribution=\"normal\", n_quantiles=max(min(N // 30, 1000), 10), subsample=1_000_000_000, random_state=0)` on the training numeric columns after adding per-column Gaussian noise of scale `1e-3 / max(std, 1e-3)` from `np.random.default_rng(0)`, then transform the un-noised train, val and test numeric columns; the 44 binary columns pass through untouched, there are no categorical columns, and `cat_policy` and `y_policy` are null. Build the `Model` of `bin/tabr.py` at the config: `LREmbeddings` with `d_embedding` 36 on the 10 numeric features, `d_main` 130, `d_multiplier` 2.0, `encoder_n_blocks` 1, `predictor_n_blocks` 1, `mixer_normalization` auto, `context_dropout` 0.0437357558538884, `dropout0` 0.5343904237887059, `dropout1` 0.0, LayerNorm, ReLU, and a 7-way output head (`lib.get_d_out(7)`), 276,847 parameters in total. Retrieval is the source's exact squared-L2 nearest-neighbour search with `context_size` 96 over the training split: during training the current batch is removed from the candidates in `apply_model`, concatenated back at the front of the candidate keys inside `forward`, searched with k = 97, and each row's own index is removed so that 96 neighbours remain; when val or test rows are scored all 371,847 training rows are candidates and k = 96, and candidate keys are re-encoded on every forward pass (`memory_efficient` is False by default). Train with `F.cross_entropy` on the 7-way logits, batch size 1024 drawn from a fresh random permutation of the training rows every epoch (364 batches, the last one partial), AdamW at learning rate 0.0004585278054026558 with weight decay 0.0 and PyTorch's default betas and epsilon, no learning-rate schedule and no gradient clipping, `n_epochs = inf`. After every epoch score the val and test splits in eval mode with all dropout off, every row once in order (the source's `evaluate`, `eval_batch_size` 32768), computing accuracy as `lib.metrics.calculate_metrics` does for `prediction_type = \"logits\"` on a NumPy copy of the logits: softmax over the 7 classes, argmax, then `sklearn.metrics.classification_report(y_true, labels, output_dict=True)[\"accuracy\"]`, i.e. plain top-1 accuracy over all 7 classes as a fraction on the 0 to 1 scale, which is the `score` for this multiclass task; the log-loss the source also records is not needed. Early stopping is delu's `ProgressTracker(patience=16)` on the validation score: a strictly higher validation accuracy makes a new best epoch whose parameters are checkpointed, and training stops once more than 16 consecutive epochs pass without one. At the end reload the best-epoch checkpoint and re-score train, val and test with the same procedure, as `bin/tabr.py` does before writing `report.json` (train rows are still excluded from their own candidates there, as `apply_model` does for `part == \"train\"`). The number to write is that reloaded single model's test accuracy, with no ensembling, together with its val and train accuracies, the best epoch and the number of epochs run.\nWrite the metrics JSON with at least: {\"test_accuracy\": float, \"val_accuracy\": float, \"train_accuracy\": float, \"best_epoch\": int, \"epochs_run\": int, \"n_parameters\": int, \"wall_seconds\": float, \"device_count\": int}\n", "criteria": "{\"repo\": \"tabr\", \"seed\": 1337, \"dataset\": \"the Covertype tabular dataset (covtype) as packaged by the source repository\", \"pipeline\": \"the source repository's TabR reproduction pipeline at its published Covertype configuration\", \"bar_sentence\": \"a test accuracy of at least 0.9745 on the Covertype test split of 116,203 rows (the source's own unnegated 0-1 accuracy; published 0.976, 15-seed committed mean 0.976145)\", \"protocol_sentence\": \"(the best-validation-epoch checkpoint reloaded and re-scored through the source's own calculate_metrics path -- softmax, argmax, sklearn accuracy -- single model, no ensembling; the band's upper bound 1.0 is the accuracy ceiling, so a x100-scaled field cannot false-PASS)\", \"bar\": 0.9745, \"bar2\": 1.0, \"bar_cmp\": \"band\", \"metric_re\": \"^(?!.*f1)(?!.*(^|[^a-z])(train|val(id)?)([^a-z]|$))(?:test$|(?=.*(^|[^a-z])test([^a-z]|$))(?=.*(acc(?!um)|score)))\", \"dataset_regex\": \"\", \"grade_cmd\": \"python run_train.py --seed 1337 --out {OUT} --metrics {METRICS}\", \"contract_lines\": [], \"bar_provenance\": {\"kind\": \"paper\", \"quote\": \"model: TabR, dataset CO: 0.976 (same table, model TabR-S: 0.973)\", \"verified\": true, \"note\": \"The quote is a cell transcription, not a full labelled row. The bar 0.9745 is actually pinned 0.00063 below the repo's own committed 15-seed minimum 0.975130 for exp/tabr/covtype/2-lr-evaluation; those report.json files were pruned from the vendored tree, so nothing in the tree quotes the number.\"}, \"expected_grade_wall_h\": 0.3, \"phase2_recipe\": \"Run the source repository's TabR evaluation on Covertype exactly as `python bin/tabr.py exp/tabr/covtype/2-lr-evaluation/0.toml --force` runs it, with every setting taken from that config and the remaining defaults of `Model` in `bin/tabr.py`, the training seed (`delu.random.seed(C.seed)`) supplied by `--seed` in place of the config's top-level `seed`. Obtain the data the way the README's Data section does: download `data.tar` from `https://huggingface.co/datasets/puhsu/tabular-benchmarks/resolve/main/data.tar` and extract `data/covtype/`, whose fixed split (`X_num_*.npy`, 10 float32 numeric columns; `X_bin_*.npy`, 44 float32 0/1 columns; `Y_*.npy`, int64 labels 0 to 6; `info.json` with `task_type` multiclass) has 371,847 train, 92,962 val and 116,203 test rows; do not re-split or reshuffle it, and the test split contains all 7 classes. Preprocess as `lib.build_dataset` does for the config's `num_policy = \\\"quantile\\\"` with `[data] seed = 0` (`transform_num` in `lib/data.py`): fit `sklearn.preprocessing.QuantileTransformer(output_distribution=\\\"normal\\\", n_quantiles=max(min(N // 30, 1000), 10), subsample=1_000_000_000, random_state=0)` on the training numeric columns after adding per-column Gaussian noise of scale `1e-3 / max(std, 1e-3)` from `np.random.default_rng(0)`, then transform the un-noised train, val and test numeric columns; the 44 binary columns pass through untouched, there are no categorical columns, and `cat_policy` and `y_policy` are null. Build the `Model` of `bin/tabr.py` at the config: `LREmbeddings` with `d_embedding` 36 on the 10 numeric features, `d_main` 130, `d_multiplier` 2.0, `encoder_n_blocks` 1, `predictor_n_blocks` 1, `mixer_normalization` auto, `context_dropout` 0.0437357558538884, `dropout0` 0.5343904237887059, `dropout1` 0.0, LayerNorm, ReLU, and a 7-way output head (`lib.get_d_out(7)`), 276,847 parameters in total. Retrieval is the source's exact squared-L2 nearest-neighbour search with `context_size` 96 over the training split: during training the current batch is removed from the candidates in `apply_model`, concatenated back at the front of the candidate keys inside `forward`, searched with k = 97, and each row's own index is removed so that 96 neighbours remain; when val or test rows are scored all 371,847 training rows are candidates and k = 96, and candidate keys are re-encoded on every forward pass (`memory_efficient` is False by default). Train with `F.cross_entropy` on the 7-way logits, batch size 1024 drawn from a fresh random permutation of the training rows every epoch (364 batches, the last one partial), AdamW at learning rate 0.0004585278054026558 with weight decay 0.0 and PyTorch's default betas and epsilon, no learning-rate schedule and no gradient clipping, `n_epochs = inf`. After every epoch score the val and test splits in eval mode with all dropout off, every row once in order (the source's `evaluate`, `eval_batch_size` 32768), computing accuracy as `lib.metrics.calculate_metrics` does for `prediction_type = \\\"logits\\\"` on a NumPy copy of the logits: softmax over the 7 classes, argmax, then `sklearn.metrics.classification_report(y_true, labels, output_dict=True)[\\\"accuracy\\\"]`, i.e. plain top-1 accuracy over all 7 classes as a fraction on the 0 to 1 scale, which is the `score` for this multiclass task; the log-loss the source also records is not needed. Early stopping is delu's `ProgressTracker(patience=16)` on the validation score: a strictly higher validation accuracy makes a new best epoch whose parameters are checkpointed, and training stops once more than 16 consecutive epochs pass without one. At the end reload the best-epoch checkpoint and re-score train, val and test with the same procedure, as `bin/tabr.py` does before writing `report.json` (train rows are still excluded from their own candidates there, as `apply_model` does for `part == \\\"train\\\"`). The number to write is that reloaded single model's test accuracy, with no ensembling, together with its val and train accuracies, the best epoch and the number of epochs run.\\nWrite the metrics JSON with at least: {\\\"test_accuracy\\\": float, \\\"val_accuracy\\\": float, \\\"train_accuracy\\\": float, \\\"best_epoch\\\": int, \\\"epochs_run\\\": int, \\\"n_parameters\\\": int, \\\"wall_seconds\\\": float, \\\"device_count\\\": int}\"}"}