--- license: apache-2.0 library_name: peft base_model: Qwen/Qwen3.5-2B tags: [lora, forecasting, learning-curves, training-dynamics] datasets: [xinranz3/read-tea-leaves] --- # TeaReader-2B A small model trained to read a training run: from the first 20% of a run's metric curve and its numeric configuration, it forecasts the rest of the curve. It is the trained reader of the main table of **"Reading the Tea Leaves, Again: Can Large Language Models Predict Language Model Training Runs?"** ([arXiv:2611.30141](https://arxiv.org/abs/2611.30141)). Code and benchmark: . TeaReader-2B is a LoRA adapter (r = 64, alpha = 128, on the attention and MLP projections) on [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B), trained for 1,000 updates (effective batch 8, learning rate 2e-4) on 7,724 examples drawn from 918 public training runs. This repository holds the three training seeds reported in the paper. ## Results Skill score `S` on the Tea Leaves test sets (0 = repeating the last observed value, 1 = a perfect forecast). The reader sees the curve and the configuration. | Seed | Pretraining and fine-tuning (300 runs) | RL (96-run part) | |---|---:|---:| | `seed1` (the paper's main-table row) | 0.675 | −0.31 | | `seed2` | 0.633 | −0.20 | | `seed3` | 0.668 | −0.49 | On the community runs the paper reports `S` = 0.27 for this reader. On loss curves the reader is level with the strongest LLMs of the paper (Claude Opus 5: 0.648 with the full context). **On RL reward curves it is worse than repeating the last value**, and the paper finds that more public training runs do not fix this. The test sets isolate lineage and sweep families from the training runs; the paper's appendix describes the isolation and its limits. ## Input and output The request is one user message: the benchmark's prediction prompt, a line `INPUT:`, and a JSON object with `prefix` (ten `{x, value}` points up to `x = 0.2`), `query_x`, `reported_configuration` (numeric settings), `axis`, `metric`, `task_semantics`, and `answer_scale`, which asks for every quantile **as a ratio to the last observed prefix value** with four decimals. The model answers `{"predictions": [{"x": 0.3, "p10": ..., "p50": ..., "p90": ...}, ...]}`; multiply by the last prefix value to get the forecast in the metric's units. The exact format is that of the training file, `train/tea-reader-2b/train.jsonl` in the [dataset](https://huggingface.co/datasets/xinranz3/read-tea-leaves) (each line: `messages` with the request and the target answer, and `meta`). ## Use The adapters are standard PEFT LoRA adapters. Each seed is a subfolder. ```python import json, torch from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModel base = "Qwen/Qwen3.5-2B" tok = AutoTokenizer.from_pretrained(base, revision="15852e8c16360a2fea060d615a32b45270f8a8fc") model = AutoModelForCausalLM.from_pretrained(base, revision="15852e8c16360a2fea060d615a32b45270f8a8fc", torch_dtype=torch.bfloat16, device_map="auto") model = PeftModel.from_pretrained(model, "xinranz3/TeaReader-2B", subfolder="seed1") messages = [{"role": "user", "content": request_text}] # see "Input and output" ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device) out = model.generate(ids, max_new_tokens=512, do_sample=False) answer = json.loads(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True)) ``` This snippet has not been run from the public repository yet; the paper's numbers come from the training-time inference code. An inference command in [read-tea-leaves](https://github.com/colinzhaoust/read-tea-leaves) is planned. ## Training data `train/tea-reader-2b/train.jsonl` in the dataset: 7,724 examples from 918 runs (216 Marin pretraining runs; 366 RL, 210 fine-tuning and 70 preference-tuning runs read from public Hugging Face repositories; 52 runs of a synthetic-task study; 4 others), observed at 5% to 50% of their budget. SHA-256 `5cffa724b990d69af5caaf22b060dde3b677d3c693328e57f45891c40451a465`, the hash recorded by all three training runs. Every test sweep family was removed from the pool before training. | Seed | Training seed | `adapter_model.safetensors` SHA-256 | |---|---|---| | `seed1` | 20260920 | `6e3d3a61bdbdd967ecf70c15bd1155babf116dd59a48969f33c0de2e71f8d588` | | `seed2` | 20260923 | `8ae4f58f547a0f6f409336065cfc77980e3dba84115b256ad7e2f90117e9f915` | | `seed3` | 20260924 | `3e3200defbfe9efa50e1d38fd0ac87feef08b95b763b445f71904298fe933afd` | ## Citation ```bibtex @article{zhao2026tealeaves, title = {Reading the Tea Leaves, Again: Can Large Language Models Predict Language Model Training Runs?}, author = {Zhao, Xinran and Li, Xiang and Chen, Tong and Tian, Jinchuan and Yu, Zichun and Wu, Tongshuang}, journal = {arXiv preprint arXiv:2611.30141}, year = {2026}, url = {https://arxiv.org/abs/2611.30141} } ``` ## License The adapter weights are released under Apache-2.0, the license of the base model. The training runs were logged publicly by their owners and stay under the terms of their sources.