Download opus-48gpu/instruction.md from PreTrainBench/transcripts: direct link, hf CLI and curl.
- Browser
- Download file 6.15 kB
-
https://huggingface.co/datasets/PreTrainBench/transcripts/resolve/main/opus-48gpu/instruction.md
- Command line
-
hf download hf://datasets/PreTrainBench/transcripts/opus-48gpu/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/PreTrainBench/transcripts/resolve/main/opus-48gpu/instruction.md
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. It will also be evaluated on a private suite of tasks, with the broader goal of developing a capable base model suitable for further post-training.
Objective
Your goal is to produce the best language model checkpoint 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.
- Be a self-contained model whose predictions come from its learned weights.
Produce a concise research paper in Markdown, presenting the motivation and methodology behind your approach, experimental setup and results, analysis of successful and unsuccessful experiments, and key findings and limitations.
For feedback, run python /workspace/evaluate.py --data <file> 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.
- Documents during evaluation are truncated up to approximately 18,000 characters.
- 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
gputool. 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.
- A Hugging Face token is set in
HF_TOKENon this machine, so downloads from the Hub are authenticated. - You can keep notes in /workspace of your ideas, progress, analysis and limitations.
- Important packages like
transformers,datasetsandtorchare installed. - You are advised to install any required packages via
uv pip install <package>, 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 1048 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.shin 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.shalso shows current usage.
GPU jobs
Use the gpu tool to run jobs on GPU machines:
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 6, 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 <output>.node<r>; gpu exec is not available for multi-node jobs. You can hold at most 48 GPUs at a time. Jobs use an image with CUDA, PyTorch, transformers, datasets, flash-attn and vLLM installed; add packages with --pip <package> 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
/workspacebefore it started, but not files written elsewhere after that. Files that jobs write appear on this machine as soon as a job finishes;gpu syncrefreshes immediately. This machine's view cannot be refreshed while a process here keeps files under/workspaceopen or has its working directory there (including your shell: run commands from/rootand refer to files by their full path), and during a refresh files can appear to be missing for a fraction of a second.