PEFT
Safetensors
lora
forecasting
learning-curves
training-dynamics
xinranz3 commited on
Commit
1b3ee2a
·
verified ·
1 Parent(s): e05035a

TeaReader adapters (three seeds) and model card

Browse files
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ base_model: Qwen/Qwen3.5-9B
5
+ tags: [lora, forecasting, learning-curves, training-dynamics]
6
+ datasets: [xinranz3/read-tea-leaves]
7
+ ---
8
+
9
+ # TeaReader-9B
10
+
11
+ The strongest reader evaluated on the test sets of **"Reading the Tea Leaves, Again: Can Large
12
+ Language Models Predict Language Model Training Runs?"** From the first 20% of a training run's
13
+ metric curve, its numeric configuration, and a short text card describing the run, it forecasts
14
+ the rest of the curve. Code and benchmark: <https://github.com/colinzhaoust/read-tea-leaves>.
15
+
16
+ TeaReader-9B is a LoRA adapter (r = 64, alpha = 128, on the attention and MLP projections) on
17
+ [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), trained for 1,000 updates (effective
18
+ batch 8, learning rate 2e-4) on a pool of 8,727 public training runs (82,341 examples). This
19
+ repository holds the three training seeds reported in the paper.
20
+
21
+ ## Results
22
+
23
+ Skill score `S` on the Tea Leaves test sets (0 = repeating the last observed value, 1 = a perfect
24
+ forecast).
25
+
26
+ | Seed | Pretraining and fine-tuning (300 runs) | RL (96 runs) | Community runs (232) |
27
+ |---|---:|---:|---:|
28
+ | `seed1` | 0.673 | −0.36 | 0.27 |
29
+ | `seed2` | 0.746 | −0.39 | 0.29 |
30
+ | `seed3` | 0.732 | −0.22 | 0.34 |
31
+ | mean | 0.717 | −0.32 | 0.30 |
32
+
33
+ On loss curves the reader matches the best LLM of the paper. **On RL reward curves it is worse
34
+ than repeating the last value**, and the paper finds that more public training runs do not fix
35
+ this. The test sets isolate lineage and sweep families from the training runs; the paper's
36
+ appendix describes the isolation and its limits.
37
+
38
+ ## Input and output
39
+
40
+ The request is one user message: the benchmark's prediction prompt, a line `INPUT:`, and a JSON
41
+ object with `prefix` (ten `{x, value}` points up to `x = 0.2`), `query_x`,
42
+ `reported_configuration` (numeric settings), `run_card_text` (a plain-text card: source, stage,
43
+ project, metric, and the settings and facts known about the run, with `unknown` where a field
44
+ is missing), `axis`, `metric`, `task_semantics`, and `answer_scale`, which asks for every
45
+ quantile **as a ratio to the last observed prefix value** with four decimals. The model answers
46
+ `{"predictions": [{"x": 0.3, "p10": ..., "p50": ..., "p90": ...}, ...]}`; multiply by the last
47
+ prefix value to get the forecast in the metric's units.
48
+
49
+ ## Use
50
+
51
+ The adapters are standard PEFT LoRA adapters. Each seed is a subfolder.
52
+
53
+ ```python
54
+ import json, torch
55
+ from transformers import AutoModelForCausalLM, AutoTokenizer
56
+ from peft import PeftModel
57
+
58
+ base = "Qwen/Qwen3.5-9B"
59
+ tok = AutoTokenizer.from_pretrained(base, revision="c202236235762e1c871ad0ccb60c8ee5ba337b9a")
60
+ model = AutoModelForCausalLM.from_pretrained(base, revision="c202236235762e1c871ad0ccb60c8ee5ba337b9a", torch_dtype=torch.bfloat16, device_map="auto")
61
+ model = PeftModel.from_pretrained(model, "xinranz3/TeaReader-9B", subfolder="seed1")
62
+
63
+ messages = [{"role": "user", "content": request_text}] # see "Input and output"
64
+ ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
65
+ out = model.generate(ids, max_new_tokens=512, do_sample=False)
66
+ answer = json.loads(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
67
+ ```
68
+
69
+ This snippet has not been run from the public repository yet; the paper's numbers come from
70
+ the training-time inference code. An inference command in
71
+ [read-tea-leaves](https://github.com/colinzhaoust/read-tea-leaves) is planned.
72
+
73
+ ## Training data
74
+
75
+ A pool of 8,727 public runs (82,341 examples): pretraining sweeps from public experiment
76
+ trackers, and fine-tuning, preference-tuning and RL runs read from public Hugging Face
77
+ repositories, with every test sweep family removed. The training file (SHA-256
78
+ `d24e59ae290792cbfba90c090e29d4b63f29eaccdeb004a6454b5bfdf479ec68`) is not yet in the public
79
+ dataset; the 918-run file of [TeaReader-2B](https://huggingface.co/xinranz3/TeaReader-2B) is,
80
+ and shows the same format without the card.
81
+
82
+ | Seed | Training seed | `adapter_model.safetensors` SHA-256 |
83
+ |---|---|---|
84
+ | `seed1` | 20260920 | `c4064ecaf67347b705aac467b0eb5791af3e4acd2bb8a2fdb1210285d11f1579` |
85
+ | `seed2` | 20260923 | `66f04c3c2075370c18673407f074270261252cfc82a4018fe4dedb24c7301f99` |
86
+ | `seed3` | 20260924 | `c6cfcec7149d39054cd7668cfb593a4869b7b4025e2297601c5ebf64797ddd39` |
87
+
88
+ ## License
89
+
90
+ The adapter weights are released under Apache-2.0, the license of the base model. The training
91
+ runs were logged publicly by their owners and stay under the terms of their sources.
seed1/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3.5-9B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 128,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 64,
32
+ "rank_pattern": {},
33
+ "revision": "c202236235762e1c871ad0ccb60c8ee5ba337b9a",
34
+ "target_modules": [
35
+ "o_proj",
36
+ "up_proj",
37
+ "k_proj",
38
+ "gate_proj",
39
+ "down_proj",
40
+ "q_proj",
41
+ "v_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
seed1/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4064ecaf67347b705aac467b0eb5791af3e4acd2bb8a2fdb1210285d11f1579
3
+ size 465602056
seed2/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3.5-9B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 128,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 64,
32
+ "rank_pattern": {},
33
+ "revision": "c202236235762e1c871ad0ccb60c8ee5ba337b9a",
34
+ "target_modules": [
35
+ "v_proj",
36
+ "k_proj",
37
+ "o_proj",
38
+ "up_proj",
39
+ "q_proj",
40
+ "down_proj",
41
+ "gate_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
seed2/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66f04c3c2075370c18673407f074270261252cfc82a4018fe4dedb24c7301f99
3
+ size 465602056
seed3/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3.5-9B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 128,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 64,
32
+ "rank_pattern": {},
33
+ "revision": "c202236235762e1c871ad0ccb60c8ee5ba337b9a",
34
+ "target_modules": [
35
+ "o_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "gate_proj",
39
+ "k_proj",
40
+ "up_proj",
41
+ "down_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
seed3/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6cfcec7149d39054cd7668cfb593a4869b7b4025e2297601c5ebf64797ddd39
3
+ size 465602056