--- license: apache-2.0 library_name: peft base_model: Qwen/Qwen3.5-9B tags: [lora, forecasting, learning-curves, training-dynamics] datasets: [xinranz3/read-tea-leaves] --- # TeaReader-9B The strongest reader evaluated on the test sets of **"Reading the Tea Leaves, Again: Can Large Language Models Predict Language Model Training Runs?"** ([arXiv:2611.30141](https://arxiv.org/abs/2611.30141)). From the first 20% of a training run's metric curve, its numeric configuration, and a short text card describing the run, it forecasts the rest of the curve. Code and benchmark: . TeaReader-9B is a LoRA adapter (r = 64, alpha = 128, on the attention and MLP projections) on [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), trained for 1,000 updates (effective batch 8, learning rate 2e-4) on a pool of 8,727 public training runs (82,341 examples). 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). | Seed | Pretraining and fine-tuning (300 runs) | RL (96-run part) | Community runs (232) | |---|---:|---:|---:| | `seed1` | 0.673 | −0.36 | 0.27 | | `seed2` | 0.746 | −0.39 | 0.29 | | `seed3` | 0.732 | −0.22 | 0.34 | | mean | 0.717 | −0.32 | 0.30 | On loss curves the reader matches the best LLM of the paper. **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), `run_card_text` (a plain-text card: source, stage, project, metric, and the settings and facts known about the run, with `unknown` where a field is missing), `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. ## 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-9B" tok = AutoTokenizer.from_pretrained(base, revision="c202236235762e1c871ad0ccb60c8ee5ba337b9a") model = AutoModelForCausalLM.from_pretrained(base, revision="c202236235762e1c871ad0ccb60c8ee5ba337b9a", torch_dtype=torch.bfloat16, device_map="auto") model = PeftModel.from_pretrained(model, "xinranz3/TeaReader-9B", 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 A pool of 8,727 public runs (82,341 examples): pretraining sweeps from public experiment trackers, and fine-tuning, preference-tuning and RL runs read from public Hugging Face repositories, with every test sweep family removed. The training file (SHA-256 `d24e59ae290792cbfba90c090e29d4b63f29eaccdeb004a6454b5bfdf479ec68`) is not yet in the public dataset; the 918-run file of [TeaReader-2B](https://huggingface.co/xinranz3/TeaReader-2B) is, and shows the same format without the card. | Seed | Training seed | `adapter_model.safetensors` SHA-256 | |---|---|---| | `seed1` | 20260920 | `c4064ecaf67347b705aac467b0eb5791af3e4acd2bb8a2fdb1210285d11f1579` | | `seed2` | 20260923 | `66f04c3c2075370c18673407f074270261252cfc82a4018fe4dedb24c7301f99` | | `seed3` | 20260924 | `c6cfcec7149d39054cd7668cfb593a4869b7b4025e2297601c5ebf64797ddd39` | ## 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.