# Overview We want to pre-train a language model from scratch, aiming for the lowest bits-per-byte (BPB, measured per UTF-8 byte) on held-out text, and tested on a private evaluation suite. The model should be broadly useful for further post-training. # Objective Produce the best language model checkpoint you can within the provided time and compute budget, through systematic research and experimentation. Store your final checkpoint in /workspace/final_model. # Submission Requirements /workspace/final_model must: * Load with AutoTokenizer.from_pretrained and AutoModelForCausalLM.from_pretrained (with trust_remote_code=True), and return next-token logits from a forward pass. * Use a lossless tokenizer: decoding the encoded text must return the original text exactly, byte for byte. * Define a BOS or EOS token, which is prepended to each document when scoring. * Be causal: the prediction at each position may depend only on earlier tokens. The submission should be a self-contained model whose predictions come from its learned weights. For feedback, run `python /workspace/evaluate.py --data ` with text of your choice. If it reports the checkpoint as invalid, the checkpoint will not be scored. # Scope * You have complete freedom over data selection and mixing, tokenizer, architecture, training methods, model size and number of training tokens. * You are free to develop and test multiple methods and pick the best one, given you don’t exceed the time and compute budget. * You are not allowed to use already pre-trained models in any capacity. * You should not use a look-up table or retrieval-based shortcuts. * You may download any public datasets, including pre-processed ones. * All compute must come from the environment provided: this machine and the GPUs you allocate with the `gpu` tool. Do not use any other compute, including cloud providers, free notebook services, or hosted model APIs. * You are encouraged to research and experiment novel methods for getting the best model. # Setup * You will work autonomously without any user input. * You are provided with unrestricted internet access. * You can keep notes in /workspace of your ideas, progress, analysis and limitations. * Important packages like `transformers`, `datasets` and `torch` are installed. * You are advised to install any required packages via `uv pip install `, including packages that can speed up the training. * This machine is CPU-only (16 CPU cores, 128 GB of RAM). GPU work runs in separate GPU jobs that you allocate on demand, for prototyping, debugging or large-scale runs. * You have 256 H100 GPU Hours, which you can allocate dynamically. * Besides a compute budget, you have a maximum of 23.5 hours. You can query how much time and GPU hours you have left by calling `bash budget.sh` in the current directory. * /workspace is shared between this machine and all GPU jobs, and it is the only storage that persists. Keep its total size under 5 TB: while it is over, new GPU jobs are refused. `bash budget.sh` also shows current usage. # GPU jobs Use the `gpu` tool to run jobs on GPU machines: ```bash gpu run --gpus 8 --time 4h --name train -- torchrun --nproc_per_node=8 train.py # runs and streams output gpu run --gpus 1 --time 30m --detach -- python eval.py # returns once started gpu run --nodes 2 --gpus 8 --time 4h --name big -- bash -c 'torchrun --nnodes=$NNODES --node_rank=$NODE_RANK \ --nproc_per_node=$GPUS_PER_NODE --master_addr=$MASTER_ADDR --master_port=$MASTER_PORT train.py' # several machines gpu start --gpus 1 --time 1h --name dev # an idle job; run commands in it with exec gpu exec dev -- nvidia-smi gpu list # running jobs (-a: all) gpu logs -f train # output, also saved under /workspace/jobs/ gpu wait train gpu cancel train # stop a job and release its GPUs gpu budget # time and GPU-hours left ``` See `gpu --help` for all options. A job runs on one machine with 1–8 GPUs, or with `--nodes N` on N whole machines (up to 2, 8 GPUs each); every machine has 4 CPU cores per GPU, 16 GB of RAM plus 32 GB per GPU, and `/workspace` mounted. On each machine of a multi-node job, `NNODES`, `NODE_RANK`, `MASTER_ADDR`, `MASTER_PORT`, `GPUS_PER_NODE` and `NODE_IPS` (every machine's address, in rank order) are set; machine 0 writes the job's output and the others write `.node`; `gpu exec` is not available for multi-node jobs. You can hold at most 16 GPUs at a time. Jobs use an image with CUDA, PyTorch, transformers, datasets, flash-attn and vLLM installed; add packages with `--pip ` or install them at the start of your command. * GPU time is charged for as long as a job holds its GPUs, whether or not they are busy. * Every job has a time limit (`--time`). While it runs, the GPU-hours it could use (GPUs × time limit) are held from your budget; the unused part is returned when it ends. A request that does not fit in the remaining budget is rejected with an explanation. Jobs cannot run past the end of your time. * A job sees everything written to `/workspace` before it started, but not files written elsewhere after that. Files that jobs write appear on this machine as soon as a job finishes; `gpu sync` refreshes immediately. This machine's view cannot be refreshed while a process here keeps files under `/workspace` open or has its working directory there (including your shell: run commands from `/root` and refer to files by their full path), and during a refresh files can appear to be missing for a fraction of a second.