weystrom commited on
Commit
c7753e0
·
verified ·
1 Parent(s): dad788a

Upload folder using huggingface_hub

Browse files
corpus_eval/REPORT.md ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Text fine-tune comparison: which tune drives episode/podcast generation?
2
+
3
+ 2026-06-10. Base model `google/gemma-4-31B`. Candidates: base (no adapter), 10 dedicated
4
+ per-character LoRAs (r=32), one all-speaker ensemble LoRA (r=64). Evaluated on held-out
5
+ val episodes (never trained on), 11 val sets, masked completion loss; plus 40 sampled
6
+ generations (4 per character, base/dedicated/ensemble side by side). Sources:
7
+ `eval/quant_matrix.{json,md}`, `eval/samples.{jsonl,md}`.
8
+
9
+ ## Recommendation
10
+
11
+ **Use the single all-speaker ensemble LoRA (r=64) for episode/podcast generation.
12
+ Retire the 10 per-character adapters.**
13
+
14
+ Why:
15
+
16
+ 1. **It wins the perplexity comparison everywhere — including on each character's own
17
+ val set.** The ensemble beats every dedicated r=32 adapter on that adapter's home
18
+ character (Δ from −0.011 on pearl to −0.113 on mrs_puff), and beats base on every set
19
+ (mean Δ −0.666 vs −0.55 to −0.60 for the dedicated adapters). There is no character
20
+ for which the dedicated adapter is the quantitatively better choice.
21
+ 2. **The samples do not show the dedicated adapters sounding more like the characters.**
22
+ Reading all 40 side-by-sides: both fine-tunes produce short, show-style script lines
23
+ with inline `[stage directions]`; they are comparable in voice fidelity, with wins and
24
+ losses on both sides (examples below). The ensemble is, if anything, slightly more
25
+ scene-grounded (it picks up props and running gags from context); the dedicated
26
+ adapters occasionally nail character canon better. Neither systematically beats the
27
+ other on voice, so the quant matrix is the tiebreaker — and it isn't close.
28
+ 3. **Base is recognizably generic.** Untuned gemma-4-31B produces longer, explainy,
29
+ sometimes register-breaking lines ("Wow, Sandy. You're the best lassoer I've ever
30
+ seen.") and occasionally drifts badly off-tone (Squidward sample 4). It is plausible
31
+ prose but not transcript-style dialogue; both fine-tunes are clearly better.
32
+ 4. **Operationally it's the best fit for the episode pipeline anyway:** one adapter for
33
+ the whole cast, character selected purely by the prompt's trailing `<Character>:` cue —
34
+ no adapter switching per line, no 10x GGUF conversion/serving surface.
35
+
36
+ On gold-adjacent plausibility: with only a 2-line context window, many gold lines depend
37
+ on plot knowledge the model can't have, so exact gold matches are rare for everyone. Both
38
+ tunes regularly produce lines that would pass as real script lines (and occasionally hit
39
+ gold nearly verbatim — Mrs. Puff sample 4, Mr. Krabs sample 3 dedicated); base rarely does.
40
+
41
+ ## Quantitative results
42
+
43
+ Masked val loss (token-weighted mean NLL over the completion; lower is better). Each
44
+ column is one adapter config evaluated on all 11 val sets.
45
+
46
+ | val set \ config | base | ensemble | spongebob | patrick | squidward | mr_krabs | plankton | sandy | mrs_puff | karen | gary | pearl |
47
+ |---|---|---|---|---|---|---|---|---|---|---|---|---|
48
+ | spongebob (n=1434) | 2.4966 | **1.8824** | 1.9136 | 1.9584 | 1.9599 | 1.9651 | 1.9601 | 1.9783 | 1.9920 | 1.9889 | 2.0040 | 1.9676 |
49
+ | patrick (n=881) | 2.6757 | **1.9520** | 2.0256 | 1.9917 | 2.0513 | 2.0569 | 2.0556 | 2.0744 | 2.0880 | 2.0822 | 2.1110 | 2.0538 |
50
+ | squidward (n=444) | 2.5061 | **1.9352** | 2.0122 | 2.0262 | 1.9790 | 2.0208 | 2.0136 | 2.0388 | 2.0484 | 2.0419 | 2.0688 | 2.0150 |
51
+ | mr_krabs (n=633) | 2.4928 | **1.9953** | 2.0992 | 2.1096 | 2.1075 | 2.0402 | 2.1025 | 2.1191 | 2.1442 | 2.1129 | 2.1208 | 2.0968 |
52
+ | plankton (n=581) | 2.5243 | **2.0330** | 2.1063 | 2.1252 | 2.1226 | 2.1239 | 2.0835 | 2.1313 | 2.1540 | 2.1393 | 2.1564 | 2.1140 |
53
+ | sandy (n=273) | 2.4949 | **1.9401** | 2.0092 | 2.0475 | 2.0569 | 2.0260 | 2.0431 | 2.0257 | 2.0604 | 2.0624 | 2.0560 | 2.0210 |
54
+ | mrs_puff (n=32) | 2.7816 | **1.9149** | 1.9684 | 2.0248 | 2.0255 | 2.0014 | 2.0366 | 2.0308 | 2.0280 | 2.0514 | 2.0945 | 2.0583 |
55
+ | karen (n=105) | 2.5326 | **1.9224** | 1.9952 | 2.0071 | 2.0124 | 1.9898 | 1.9900 | 2.0222 | 2.0180 | 2.0078 | 2.0320 | 1.9830 |
56
+ | gary (n=31) | 2.6714 | **1.3705** | 1.4656 | 1.4371 | 1.5072 | 1.4629 | 1.4397 | 1.4014 | 1.4782 | 1.4638 | 1.4448 | 1.4518 |
57
+ | pearl (n=24) | 2.4184 | **1.9298** | 1.9822 | 1.9696 | 1.9854 | 2.0194 | 2.0207 | 1.9778 | 2.0223 | 2.0143 | 1.9775 | 1.9404 |
58
+ | _ensemble (n=5392) | 2.5623 | **1.9588** | 2.0299 | 2.0438 | 2.0515 | 2.0456 | 2.0476 | 2.0674 | 2.0850 | 2.0723 | 2.0901 | 2.0502 |
59
+ | **mean Δ vs base (11 sets)** | +0.0000 | **−0.6657** | −0.5954 | −0.5832 | −0.5725 | −0.5822 | −0.5785 | −0.5718 | −0.5489 | −0.5563 | −0.5455 | −0.5823 |
60
+
61
+ Ensemble vs dedicated on each character's own val set:
62
+
63
+ | val set | base | dedicated | ensemble | ens Δ vs base | ens Δ vs dedicated |
64
+ |---|---|---|---|---|---|
65
+ | spongebob | 2.4966 | 1.9136 | 1.8824 | −0.6142 | −0.0312 |
66
+ | patrick | 2.6757 | 1.9917 | 1.9520 | −0.7237 | −0.0397 |
67
+ | squidward | 2.5061 | 1.9790 | 1.9352 | −0.5709 | −0.0438 |
68
+ | mr_krabs | 2.4928 | 2.0402 | 1.9953 | −0.4975 | −0.0449 |
69
+ | plankton | 2.5243 | 2.0835 | 2.0330 | −0.4913 | −0.0505 |
70
+ | sandy | 2.4949 | 2.0257 | 1.9401 | −0.5548 | −0.0856 |
71
+ | mrs_puff | 2.7816 | 2.0280 | 1.9149 | −0.8667 | −0.1131 |
72
+ | karen | 2.5326 | 2.0078 | 1.9224 | −0.6102 | −0.0854 |
73
+ | gary | 2.6714 | 1.4448 | 1.3705 | −1.3009 | −0.0743 |
74
+ | pearl | 2.4184 | 1.9404 | 1.9298 | −0.4886 | −0.0106 |
75
+
76
+ **Interpretation (three sentences).** The ensemble wins every single row, and its margin
77
+ over the dedicated adapter is largest exactly on the low-data characters (mrs_puff
78
+ −0.113, sandy −0.086, karen −0.085, gary −0.074 — characters with 1k–4k train lines),
79
+ which is the classic multi-task transfer pattern: shared show style and scene structure
80
+ learned from 70k+ lines flows to characters whose own corpus is too small to learn it,
81
+ while the dedicated adapters on those characters are data-starved rather than overfit
82
+ (each still beats base on its own set and degrades gracefully off-character, so there is
83
+ no overfit pathology either). The smallest ensemble margins are on the data-rich/easy
84
+ ends (pearl −0.011, spongebob −0.031), i.e. where a dedicated adapter has the best shot,
85
+ and it still loses. Two reading cautions: the gary row is uniformly low for *all*
86
+ adapters (1.37–1.51 vs base 2.67) because its 31 val lines are formulaic "Meow" variants
87
+ — easy to fit, not a degenerate cell — and the mrs_puff/gary/pearl rows rest on tiny val
88
+ sets (n=32/31/24), so treat their exact deltas as noisy (no zero-val-set oddities exist
89
+ in this run; all 12x11 cells are populated and sane).
90
+
91
+ ## Side-by-side examples (from `eval/samples.md`, all 40 read)
92
+
93
+ Picked to contrast, not to flatter the winner. Context shown abridged.
94
+
95
+ ### 1. Ensemble clearly wins — Mr. Krabs, sample 4 (scene-grounded and in-character)
96
+
97
+ > *Narlene: [disappointed] Well, guess we oughta be escapin' now. [escapes from the store while riding Nobby]*
98
+
99
+ - **GOLD:** [calling] Somebody get the sheriff! [trips on a gumball and falls down] Whoa!
100
+ - **base:** [angrily] Wait a minute! You ain't takin' nothin' outta here, not a single nickel!
101
+ - **dedicated:** [screams and runs after them] Stop! Thief! [accidentally bumps into SpongeBob]
102
+ - **ensemble:** [crying] All my gumballs! [sobs, then sees the burnt gumballs on the floor] Hey, hey! [picks up a burnt gumball] You can still chew 'em!
103
+
104
+ The ensemble remembers the gumball machine from the scene *and* lands the
105
+ miser-recovers-instantly beat that defines Krabs. The dedicated line is generic chase
106
+ filler; base is plausible but flat.
107
+
108
+ ### 2. Ensemble wins — Karen, sample 3 (deadpan sarcasm is the character)
109
+
110
+ > *Plankton: Wait, come back! Oh, come on, Karen, what happened?*
111
+
112
+ - **GOLD:** I just did what you asked. [...] I analyzed the contents of your stomach and used them to synthesize a [...] Krabby Patty.
113
+ - **base:** I think the problem is in the new formula.
114
+ - **dedicated:** Well, when you started your little experiment, you forgot to add one key ingredient.
115
+ - **ensemble:** Oh, nothing. I just set the patty recipe to "maximum gross."
116
+
117
+ Same passive-aggressive "I did exactly what you asked" energy as gold. Base is a
118
+ helpful-assistant diagnosis.
119
+
120
+ ### 3. Ensemble wins — Pearl, sample 4 (follows through on the scene's physical logic)
121
+
122
+ > *SpongeBob: You've got to help Sandy. She needs to share your air. / Sandy: [whimpers]*
123
+
124
+ - **GOLD:** I guess us mammals have to stick together.
125
+ - **base:** I'm here to help.
126
+ - **dedicated:** Oh, I don't know, SpongeBob.
127
+ - **ensemble:** Oh, okay. [Pearl pulls her nose and blows air in Sandy's helmet]
128
+
129
+ Only the ensemble actually executes the air-sharing the scene set up.
130
+
131
+ ### 4. Dedicated wins — Squidward, sample 1 (purer character voice)
132
+
133
+ > *All: Yee-haw! / Patrick: Hooray!*
134
+
135
+ - **GOLD:** Hm.
136
+ - **base:** Ugh.
137
+ - **dedicated:** [sighs] I hate this place.
138
+ - **ensemble:** [puts on cowboy hat] Huh? Oh.
139
+
140
+ "[sighs] I hate this place" is peak Squidward; the ensemble's line could belong to
141
+ anyone. (Base's "Ugh." is actually fine here — short reactions are easy.)
142
+
143
+ ### 5. Dedicated wins — Plankton, sample 2 (ensemble makes a canon error)
144
+
145
+ > *Two campers: [scream and run away as Narlene and Nobby approach the canteen]*
146
+
147
+ - **GOLD:** Huh?
148
+ - **dedicated:** [dressed as a sheriff, and is sitting on top of the canteen] This canteen is my territory! [chuckles] And I'm not gonna share it with you varmints!
149
+ - **ensemble:** [walks over to Narlene and Nobby] Welcome to the Krusty Kanteen. [holds out a patty] Would you like to try one of our delicious Krabby Patties?
150
+
151
+ The dedicated adapter gives territorial-megalomaniac Plankton. The ensemble has Plankton
152
+ cheerfully serving "our delicious Krabby Patties" — off-canon (that is the product he
153
+ steals, not serves), the kind of character-knowledge slip a per-character tune avoids.
154
+
155
+ ### 6. Dedicated wins — Plankton, sample 3 (ensemble degenerates into echoing context)
156
+
157
+ > *Plankton: Huh? / Narlene: [hits away a can] Milk.*
158
+
159
+ - **GOLD:** [instantly puts two milk glasses on the counter]
160
+ - **dedicated:** Ah! [gets hit by Narlene]
161
+ - **ensemble:** [throws away a can] Milk.
162
+
163
+ The ensemble parrots the previous line nearly verbatim — a context-echo failure mode
164
+ worth watching at temperature 0.8.
165
+
166
+ ### 7. Everyone fails — Mr. Krabs, sample 1 (gold depends on unseen plot)
167
+
168
+ > *Patrick: Hooray! / Squidward: Hm.*
169
+
170
+ - **GOLD:** [takes the microphone] And for you wannabe buckaroos, I have a one for the price of two Western wear [puts on cowboy hat] sale happening at the general store!
171
+ - **base:** Yee-haw!
172
+ - **dedicated:** Yee-haw.
173
+ - **ensemble:** [laughs]
174
+
175
+ Gold launches a sales pitch no model could infer from two crowd-reaction lines. A
176
+ reminder that gold-match is the wrong bar for short contexts; "would this pass in the
177
+ script" is the realistic one. (Similarly, Gary's set is a floor: everyone meows; and in
178
+ Mrs. Puff sample 4 all three configs emit the gold "[snapping, singing]" verbatim.)
179
+
180
+ ## Caveats
181
+
182
+ - **Loss != voice quality.** Masked NLL rewards predicting transcript tokens, including
183
+ stage-direction formatting and short formulaic reactions; a model can score well while
184
+ being bland. The samples are the check on that, and they do not contradict the matrix.
185
+ - **4 samples per character is anecdotal.** 40 generations total, single sample per
186
+ (context, config) at temperature 0.8 / top_p 0.9 — single-draw variance is large, and
187
+ cherry-picking in either direction is easy. The examples above illustrate failure
188
+ modes; they do not have statistical weight.
189
+ - **Tiny val sets for mrs_puff (n=32), gary (n=31), pearl (n=24)** — their per-row deltas
190
+ are noisy; the recommendation rests on the pattern across all 11 rows, not any one of
191
+ them.
192
+ - The samples were drawn from a handful of val episodes (Wild West Day dominates), so
193
+ qualitative coverage of each character's range is narrow.
194
+ - The ensemble's two observed failure modes — context echo (#6) and cross-character canon
195
+ slips (#5) — are real but rare in this sample (2 of 40); spot-check the first generated
196
+ episode for both.
197
+
198
+ ## What this means for the parked TTS problem
199
+
200
+ Nothing, directly — the text tune and the TTS engine are independent layers: this
201
+ comparison fixes *what each character says*, and whichever TTS approach eventually wins
202
+ consumes that text regardless of which adapter produced it. The one coupling worth
203
+ noting: the chosen ensemble tune emits transcript-style lines with inline
204
+ `[stage directions]`, so the episode-to-TTS handoff will need a strip/translate pass
205
+ (directions become silence, SFX cues, or delivery hints depending on the engine), and
206
+ standardizing on a single ensemble adapter keeps the text side a one-model service no
207
+ matter how many character *voices* the TTS side ends up running. Decide TTS on its own
208
+ merits later; the text decision is settled.
corpus_eval/gen_quant_jobs.sh ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Emits 12 k8s Job manifests: base, ensemble, and 10 per-char adapter evals.
3
+ set -eu
4
+ emit() { # $1=job-suffix $2=eval args
5
+ cat <<YAML
6
+ apiVersion: batch/v1
7
+ kind: Job
8
+ metadata:
9
+ name: sbob-cmp-q-$1
10
+ namespace: sbob
11
+ labels: {app: sbob-cmp-q}
12
+ spec:
13
+ backoffLimit: 0
14
+ template:
15
+ metadata:
16
+ labels: {app: sbob-cmp-q}
17
+ spec:
18
+ restartPolicy: Never
19
+ containers:
20
+ - name: eval
21
+ image: nvcr.io/nvidia/pytorch:26.05-py3
22
+ command: ["bash","-lc"]
23
+ args:
24
+ - |
25
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
26
+ cd /work && python eval_ensemble.py $2
27
+ env:
28
+ - {name: HF_HOME, value: /hf}
29
+ - {name: HF_HUB_OFFLINE, value: "1"}
30
+ - {name: PYTHONUNBUFFERED, value: "1"}
31
+ resources:
32
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
33
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
34
+ volumeMounts:
35
+ - {name: work, mountPath: /work}
36
+ - {name: hf, mountPath: /hf}
37
+ volumes:
38
+ - name: work
39
+ persistentVolumeClaim: {claimName: sbob-work}
40
+ - name: hf
41
+ hostPath: {path: /opt/sbob-hf, type: Directory}
42
+ YAML
43
+ echo "---"
44
+ }
45
+ emit base "--base-only"
46
+ emit ensemble "--adapter /work/adapters/_ensemble/final"
47
+ for s in spongebob patrick squidward mr_krabs plankton sandy mrs_puff karen gary pearl; do
48
+ emit "${s//_/-}" "--adapter /work/adapters/$s/final"
49
+ done
corpus_eval/gen_samples.py ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Generation side-by-sides on held-out val prompts: base google/gemma-4-31B vs each
4
+ character's dedicated LoRA (r=32) vs the all-speaker ensemble LoRA (r=64).
5
+
6
+ One GPU, ONE base load. PEFT multi-adapter: PeftModel.from_pretrained with the
7
+ ensemble, then load_adapter() x10; set_adapter() swaps, disable_adapter() context
8
+ gives the raw base. Reuses the trainer's exact load_model/load_tokenizer chain
9
+ (train_ensemble_31b.py must sit next to this file's staged copy at /work/).
10
+
11
+ For each of the 10 characters: first 4 val records whose prompt has >= 3 context
12
+ lines; sample (temperature 0.8, top_p 0.9, max_new_tokens 120, stop at first
13
+ newline), seed deterministic per (context, config). Results appended (flushed
14
+ per record) to /work/eval_results/samples.jsonl as
15
+ {char, ctx_tail, gold, base, dedicated, ensemble}
16
+
17
+ Run inside nvcr.io/nvidia/pytorch:26.05-py3 with transformers==5.5.0 + peft:
18
+ python /work/gen_samples.py
19
+ """
20
+ import json
21
+ import os
22
+ import sys
23
+ import zlib
24
+
25
+ sys.path.insert(0, "/work")
26
+ from train_ensemble_31b import load_model, load_tokenizer # noqa: E402
27
+
28
+ MODEL = "google/gemma-4-31B"
29
+ SLUGS = ["spongebob", "patrick", "squidward", "mr_krabs", "plankton",
30
+ "sandy", "mrs_puff", "karen", "gary", "pearl"]
31
+ ENSEMBLE_DIR = "/work/adapters/_ensemble/final"
32
+ ADAPTER_DIR = "/work/adapters/{slug}/final"
33
+ DATA_DIR = "/work/dataset"
34
+ OUT_PATH = "/work/eval_results/samples.jsonl"
35
+ N_PER_CHAR = 4
36
+ MIN_CTX_LINES = 3
37
+
38
+ GEN_ARGS = dict(do_sample=True, temperature=0.8, top_p=0.9, max_new_tokens=120)
39
+
40
+
41
+ def pick_records(slug):
42
+ """First N val records whose prompt carries >= MIN_CTX_LINES context lines.
43
+ The prompt's last \n-piece is the bare '<Character>:' cue, not context."""
44
+ out = []
45
+ with open(f"{DATA_DIR}/{slug}/val.jsonl") as f:
46
+ for ln in f:
47
+ r = json.loads(ln)
48
+ if len(r["prompt"].split("\n")[:-1]) >= MIN_CTX_LINES:
49
+ out.append(r)
50
+ if len(out) == N_PER_CHAR:
51
+ break
52
+ return out
53
+
54
+
55
+ def seed_for(prompt, config):
56
+ """Deterministic per (context, config) so reruns reproduce exactly."""
57
+ return zlib.crc32(f"{prompt}\x00{config}".encode()) & 0x7FFFFFFF
58
+
59
+
60
+ def main():
61
+ import peft
62
+ import torch
63
+ from peft import PeftModel
64
+ from transformers import StoppingCriteria, StoppingCriteriaList
65
+
66
+ print(f"peft {peft.__version__}", flush=True)
67
+
68
+ tok = load_tokenizer(MODEL)
69
+ model = load_model(MODEL)
70
+ model.config.get_text_config().use_cache = True # generation wants the KV cache
71
+
72
+ model = PeftModel.from_pretrained(model, ENSEMBLE_DIR, adapter_name="_ensemble")
73
+ # the task plan leans on these three APIs — fail loudly if this peft lacks them
74
+ for api in ("load_adapter", "set_adapter", "disable_adapter"):
75
+ assert hasattr(model, api), f"installed peft {peft.__version__} lacks PeftModel.{api}"
76
+ for slug in SLUGS:
77
+ model.load_adapter(ADAPTER_DIR.format(slug=slug), adapter_name=slug)
78
+ print(f"loaded adapter: {slug}", flush=True)
79
+ model.to("cuda").eval()
80
+
81
+ class StopOnNewline(StoppingCriteria):
82
+ """Stop as soon as the generated text (decoded, batch=1) contains \n.
83
+ Decoding the suffix each step is cheap at <=120 tokens and immune to the
84
+ many tokenizations a newline can hide in (e.g. merged punctuation+\n)."""
85
+
86
+ def __init__(self, prompt_len):
87
+ self.prompt_len = prompt_len
88
+
89
+ def __call__(self, input_ids, scores, **kw):
90
+ return "\n" in tok.decode(input_ids[0, self.prompt_len:],
91
+ skip_special_tokens=True)
92
+
93
+ # gemma4's training forward refuses to run without mm_token_type_ids (the
94
+ # collator injects zeros). Probe whether generate() needs it too, once.
95
+ def probe_mm_mode():
96
+ enc = tok("Hello", return_tensors="pt").to("cuda")
97
+ for mode in ("plain", "mm_zeros"):
98
+ kw = dict(**enc, max_new_tokens=2, do_sample=False,
99
+ pad_token_id=tok.pad_token_id)
100
+ if mode == "mm_zeros":
101
+ kw["mm_token_type_ids"] = torch.zeros_like(enc["input_ids"])
102
+ try:
103
+ with torch.inference_mode():
104
+ model.generate(**kw)
105
+ print(f"generate() convention: {mode}", flush=True)
106
+ return mode
107
+ except Exception as e:
108
+ print(f"probe {mode} failed: {type(e).__name__}: {e}", flush=True)
109
+ raise RuntimeError("generate() works neither with nor without mm_token_type_ids")
110
+
111
+ mm_mode = probe_mm_mode()
112
+
113
+ def generate(prompt, config):
114
+ enc = tok(prompt, add_special_tokens=True, return_tensors="pt").to("cuda")
115
+ n = enc["input_ids"].shape[1]
116
+ kw = dict(**enc, **GEN_ARGS,
117
+ stopping_criteria=StoppingCriteriaList([StopOnNewline(n)]),
118
+ pad_token_id=tok.pad_token_id)
119
+ if mm_mode == "mm_zeros":
120
+ kw["mm_token_type_ids"] = torch.zeros_like(enc["input_ids"])
121
+ seed = seed_for(prompt, config)
122
+ torch.manual_seed(seed)
123
+ torch.cuda.manual_seed_all(seed)
124
+ with torch.inference_mode():
125
+ out = model.generate(**kw)
126
+ text = tok.decode(out[0, n:], skip_special_tokens=True)
127
+ return text.split("\n")[0].strip() # post-trim: keep only the first line
128
+
129
+ os.makedirs(os.path.dirname(OUT_PATH), exist_ok=True)
130
+ n_done = 0
131
+ with open(OUT_PATH, "w") as out:
132
+ for slug in SLUGS:
133
+ recs = pick_records(slug)
134
+ print(f"\n=== {slug}: {len(recs)} prompts ===", flush=True)
135
+ for i, r in enumerate(recs):
136
+ prompt = r["prompt"]
137
+ row = {
138
+ "char": slug,
139
+ "ctx_tail": prompt.split("\n")[:-1][-2:],
140
+ "gold": r["completion"].strip(),
141
+ }
142
+ with model.disable_adapter():
143
+ row["base"] = generate(prompt, "base")
144
+ model.set_adapter(slug)
145
+ row["dedicated"] = generate(prompt, "dedicated")
146
+ model.set_adapter("_ensemble")
147
+ row["ensemble"] = generate(prompt, "ensemble")
148
+ out.write(json.dumps(row, ensure_ascii=False) + "\n")
149
+ out.flush()
150
+ n_done += 1
151
+ print(f" [{n_done}] {slug}#{i} gold={row['gold'][:50]!r}\n"
152
+ f" base={row['base'][:50]!r}\n"
153
+ f" dedicated={row['dedicated'][:50]!r}\n"
154
+ f" ensemble={row['ensemble'][:50]!r}", flush=True)
155
+
156
+ print(f"\nALL DONE: {n_done} records -> {OUT_PATH}", flush=True)
157
+
158
+
159
+ if __name__ == "__main__":
160
+ main()
corpus_eval/job_gen.yaml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: batch/v1
2
+ kind: Job
3
+ metadata:
4
+ name: sbob-cmp-gen
5
+ namespace: sbob
6
+ spec:
7
+ backoffLimit: 0
8
+ template:
9
+ spec:
10
+ restartPolicy: Never
11
+ containers:
12
+ - name: gen
13
+ image: nvcr.io/nvidia/pytorch:26.05-py3
14
+ command: ["bash", "-lc"]
15
+ args:
16
+ - >-
17
+ pip install -q transformers==5.5.0 peft datasets accelerate
18
+ sentencepiece huggingface_hub &&
19
+ python /work/gen_samples.py
20
+ env:
21
+ - { name: HF_HOME, value: /hf }
22
+ - { name: HF_HUB_OFFLINE, value: "1" }
23
+ - { name: PYTHONUNBUFFERED, value: "1" }
24
+ resources:
25
+ requests: { nvidia.com/gpu: 1, cpu: "16", memory: 256Gi }
26
+ limits: { nvidia.com/gpu: 1, cpu: "16", memory: 256Gi }
27
+ volumeMounts:
28
+ - { name: work, mountPath: /work }
29
+ - { name: hf, mountPath: /hf }
30
+ volumes:
31
+ - name: work
32
+ persistentVolumeClaim: { claimName: sbob-work }
33
+ - name: hf
34
+ hostPath: { path: /opt/sbob-hf }
corpus_eval/parse_quant_matrix.py ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Parse sbob-cmp-q-* job logs into quant_matrix.{json,md}.
3
+
4
+ Each eval_ensemble.py run prints a final table:
5
+ val set examples loss ppl
6
+ spongebob 1434 2.0123 7.48
7
+ ...
8
+ Rows = 11 val sets; we collect them per config (base / ensemble / 10 per-char).
9
+ """
10
+ import json, re, subprocess, sys, os
11
+
12
+ NS = "sbob"
13
+ SLUGS = ["spongebob", "patrick", "squidward", "mr_krabs", "plankton",
14
+ "sandy", "mrs_puff", "karen", "gary", "pearl", "_ensemble"]
15
+ # config key -> k8s job name
16
+ CONFIGS = {"base": "sbob-cmp-q-base", "ensemble": "sbob-cmp-q-ensemble"}
17
+ for s in SLUGS[:-1]:
18
+ CONFIGS[s] = "sbob-cmp-q-" + s.replace("_", "-")
19
+
20
+ ROW_RE = re.compile(r"^(_?[a-z_]+)\s+(\d+)\s+([0-9.]+)\s+([0-9.]+)\s*$")
21
+
22
+ def logs(job):
23
+ out = subprocess.run(
24
+ ["kubectl", "-n", NS, "logs", f"job/{job}", "--tail=200"],
25
+ capture_output=True, text=True)
26
+ return out.stdout
27
+
28
+ def parse(text):
29
+ rows = {}
30
+ for ln in text.splitlines():
31
+ m = ROW_RE.match(ln.strip())
32
+ if m and m.group(1) in SLUGS:
33
+ rows[m.group(1)] = {"examples": int(m.group(2)),
34
+ "loss": float(m.group(3)),
35
+ "ppl": float(m.group(4))}
36
+ return rows
37
+
38
+ def main():
39
+ matrix, missing = {}, []
40
+ for cfg, job in CONFIGS.items():
41
+ rows = parse(logs(job))
42
+ if len(rows) != len(SLUGS):
43
+ missing.append((cfg, sorted(set(SLUGS) - set(rows))))
44
+ matrix[cfg] = rows
45
+ out_dir = os.path.dirname(os.path.abspath(__file__))
46
+ with open(os.path.join(out_dir, "quant_matrix.json"), "w") as f:
47
+ json.dump(matrix, f, indent=2)
48
+
49
+ cfg_order = ["base", "ensemble"] + SLUGS[:-1]
50
+ # main table: rows = val sets, cols = configs, cell = loss, bold row-best
51
+ lines = ["# Quant matrix — masked val loss (gemma-4-31B base vs LoRAs)",
52
+ "",
53
+ "Configs: `base` = no adapter; `ensemble` = all-speaker r=64 LoRA; "
54
+ "others = dedicated per-character r=32 LoRAs. "
55
+ "Each column is one 1-GPU job evaluating all 11 val sets "
56
+ "(token-weighted mean masked NLL; lower is better). 2026-06-10.",
57
+ "",
58
+ "| val set \\ config | " + " | ".join(cfg_order) + " |",
59
+ "|---|" + "---|" * len(cfg_order)]
60
+ flags = []
61
+ for slug in SLUGS:
62
+ vals = {c: matrix.get(c, {}).get(slug, {}).get("loss") for c in cfg_order}
63
+ present = {c: v for c, v in vals.items() if v is not None}
64
+ best = min(present.values()) if present else None
65
+ cells = []
66
+ for c in cfg_order:
67
+ v = vals[c]
68
+ if v is None:
69
+ cells.append("—")
70
+ continue
71
+ if v > 5 or v < 0.5:
72
+ flags.append(f"{c} on {slug}: loss {v}")
73
+ cells.append(f"**{v:.4f}**" if v == best else f"{v:.4f}")
74
+ n = matrix.get("base", {}).get(slug, {}).get("examples", "?")
75
+ lines.append(f"| {slug} (n={n}) | " + " | ".join(cells) + " |")
76
+
77
+ # summary row: mean delta vs base across the 11 val sets, per config
78
+ deltas = []
79
+ for c in cfg_order:
80
+ ds = [matrix[c][s]["loss"] - matrix["base"][s]["loss"]
81
+ for s in SLUGS if s in matrix.get(c, {}) and s in matrix.get("base", {})]
82
+ deltas.append(f"{sum(ds)/len(ds):+.4f}" if ds else "—")
83
+ lines.append("| **mean Δ vs base (11 sets)** | " + " | ".join(deltas) + " |")
84
+
85
+ # per-character summary: base vs dedicated vs ensemble on the char's own val set
86
+ lines += ["", "## Ensemble vs dedicated, on each character's own val set", "",
87
+ "| val set | base | dedicated | ensemble | ens Δ vs base | ens Δ vs dedicated |",
88
+ "|---|---|---|---|---|---|"]
89
+ for slug in SLUGS[:-1]:
90
+ b = matrix.get("base", {}).get(slug, {}).get("loss")
91
+ d = matrix.get(slug, {}).get(slug, {}).get("loss")
92
+ e = matrix.get("ensemble", {}).get(slug, {}).get("loss")
93
+ if None in (b, d, e):
94
+ lines.append(f"| {slug} | — | — | — | — | — |")
95
+ continue
96
+ lines.append(f"| {slug} | {b:.4f} | {d:.4f} | {e:.4f} | "
97
+ f"{e-b:+.4f} | {e-d:+.4f} |")
98
+ b = matrix.get("base", {}).get("_ensemble", {}).get("loss")
99
+ e = matrix.get("ensemble", {}).get("_ensemble", {}).get("loss")
100
+ if b is not None and e is not None:
101
+ lines.append(f"| _ensemble (own set) | {b:.4f} | — | {e:.4f} | {e-b:+.4f} | — |")
102
+
103
+ # sanity checks
104
+ lines += ["", "## Sanity checks", ""]
105
+ for slug, known in [("squidward", 1.935), ("spongebob", 1.882)]:
106
+ v = matrix.get("ensemble", {}).get(slug, {}).get("loss")
107
+ if v is None:
108
+ lines.append(f"- ensemble on {slug}: MISSING (expected ~{known})")
109
+ else:
110
+ ok = abs(v - known) < 0.05
111
+ lines.append(f"- ensemble on {slug}: {v:.4f} vs known {known} -> "
112
+ + ("OK" if ok else "MISMATCH"))
113
+ lines.append("- degenerate cells (loss >5 or <0.5): "
114
+ + ("; ".join(flags) if flags else "none"))
115
+ if missing:
116
+ lines.append("- incomplete configs: " + "; ".join(
117
+ f"{c} missing {m}" for c, m in missing))
118
+
119
+ with open(os.path.join(out_dir, "quant_matrix.md"), "w") as f:
120
+ f.write("\n".join(lines) + "\n")
121
+ print(json.dumps({"missing": missing, "flags": flags}, indent=2))
122
+
123
+ if __name__ == "__main__":
124
+ main()
corpus_eval/quant_jobs.yaml ADDED
@@ -0,0 +1,444 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: batch/v1
2
+ kind: Job
3
+ metadata:
4
+ name: sbob-cmp-q-base
5
+ namespace: sbob
6
+ labels: {app: sbob-cmp-q}
7
+ spec:
8
+ backoffLimit: 0
9
+ template:
10
+ metadata:
11
+ labels: {app: sbob-cmp-q}
12
+ spec:
13
+ restartPolicy: Never
14
+ containers:
15
+ - name: eval
16
+ image: nvcr.io/nvidia/pytorch:26.05-py3
17
+ command: ["bash","-lc"]
18
+ args:
19
+ - |
20
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
21
+ cd /work && python eval_ensemble.py --base-only
22
+ env:
23
+ - {name: HF_HOME, value: /hf}
24
+ - {name: HF_HUB_OFFLINE, value: "1"}
25
+ - {name: PYTHONUNBUFFERED, value: "1"}
26
+ resources:
27
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
28
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
29
+ volumeMounts:
30
+ - {name: work, mountPath: /work}
31
+ - {name: hf, mountPath: /hf}
32
+ volumes:
33
+ - name: work
34
+ persistentVolumeClaim: {claimName: sbob-work}
35
+ - name: hf
36
+ hostPath: {path: /opt/sbob-hf, type: Directory}
37
+ ---
38
+ apiVersion: batch/v1
39
+ kind: Job
40
+ metadata:
41
+ name: sbob-cmp-q-ensemble
42
+ namespace: sbob
43
+ labels: {app: sbob-cmp-q}
44
+ spec:
45
+ backoffLimit: 0
46
+ template:
47
+ metadata:
48
+ labels: {app: sbob-cmp-q}
49
+ spec:
50
+ restartPolicy: Never
51
+ containers:
52
+ - name: eval
53
+ image: nvcr.io/nvidia/pytorch:26.05-py3
54
+ command: ["bash","-lc"]
55
+ args:
56
+ - |
57
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
58
+ cd /work && python eval_ensemble.py --adapter /work/adapters/_ensemble/final
59
+ env:
60
+ - {name: HF_HOME, value: /hf}
61
+ - {name: HF_HUB_OFFLINE, value: "1"}
62
+ - {name: PYTHONUNBUFFERED, value: "1"}
63
+ resources:
64
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
65
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
66
+ volumeMounts:
67
+ - {name: work, mountPath: /work}
68
+ - {name: hf, mountPath: /hf}
69
+ volumes:
70
+ - name: work
71
+ persistentVolumeClaim: {claimName: sbob-work}
72
+ - name: hf
73
+ hostPath: {path: /opt/sbob-hf, type: Directory}
74
+ ---
75
+ apiVersion: batch/v1
76
+ kind: Job
77
+ metadata:
78
+ name: sbob-cmp-q-spongebob
79
+ namespace: sbob
80
+ labels: {app: sbob-cmp-q}
81
+ spec:
82
+ backoffLimit: 0
83
+ template:
84
+ metadata:
85
+ labels: {app: sbob-cmp-q}
86
+ spec:
87
+ restartPolicy: Never
88
+ containers:
89
+ - name: eval
90
+ image: nvcr.io/nvidia/pytorch:26.05-py3
91
+ command: ["bash","-lc"]
92
+ args:
93
+ - |
94
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
95
+ cd /work && python eval_ensemble.py --adapter /work/adapters/spongebob/final
96
+ env:
97
+ - {name: HF_HOME, value: /hf}
98
+ - {name: HF_HUB_OFFLINE, value: "1"}
99
+ - {name: PYTHONUNBUFFERED, value: "1"}
100
+ resources:
101
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
102
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
103
+ volumeMounts:
104
+ - {name: work, mountPath: /work}
105
+ - {name: hf, mountPath: /hf}
106
+ volumes:
107
+ - name: work
108
+ persistentVolumeClaim: {claimName: sbob-work}
109
+ - name: hf
110
+ hostPath: {path: /opt/sbob-hf, type: Directory}
111
+ ---
112
+ apiVersion: batch/v1
113
+ kind: Job
114
+ metadata:
115
+ name: sbob-cmp-q-patrick
116
+ namespace: sbob
117
+ labels: {app: sbob-cmp-q}
118
+ spec:
119
+ backoffLimit: 0
120
+ template:
121
+ metadata:
122
+ labels: {app: sbob-cmp-q}
123
+ spec:
124
+ restartPolicy: Never
125
+ containers:
126
+ - name: eval
127
+ image: nvcr.io/nvidia/pytorch:26.05-py3
128
+ command: ["bash","-lc"]
129
+ args:
130
+ - |
131
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
132
+ cd /work && python eval_ensemble.py --adapter /work/adapters/patrick/final
133
+ env:
134
+ - {name: HF_HOME, value: /hf}
135
+ - {name: HF_HUB_OFFLINE, value: "1"}
136
+ - {name: PYTHONUNBUFFERED, value: "1"}
137
+ resources:
138
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
139
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
140
+ volumeMounts:
141
+ - {name: work, mountPath: /work}
142
+ - {name: hf, mountPath: /hf}
143
+ volumes:
144
+ - name: work
145
+ persistentVolumeClaim: {claimName: sbob-work}
146
+ - name: hf
147
+ hostPath: {path: /opt/sbob-hf, type: Directory}
148
+ ---
149
+ apiVersion: batch/v1
150
+ kind: Job
151
+ metadata:
152
+ name: sbob-cmp-q-squidward
153
+ namespace: sbob
154
+ labels: {app: sbob-cmp-q}
155
+ spec:
156
+ backoffLimit: 0
157
+ template:
158
+ metadata:
159
+ labels: {app: sbob-cmp-q}
160
+ spec:
161
+ restartPolicy: Never
162
+ containers:
163
+ - name: eval
164
+ image: nvcr.io/nvidia/pytorch:26.05-py3
165
+ command: ["bash","-lc"]
166
+ args:
167
+ - |
168
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
169
+ cd /work && python eval_ensemble.py --adapter /work/adapters/squidward/final
170
+ env:
171
+ - {name: HF_HOME, value: /hf}
172
+ - {name: HF_HUB_OFFLINE, value: "1"}
173
+ - {name: PYTHONUNBUFFERED, value: "1"}
174
+ resources:
175
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
176
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
177
+ volumeMounts:
178
+ - {name: work, mountPath: /work}
179
+ - {name: hf, mountPath: /hf}
180
+ volumes:
181
+ - name: work
182
+ persistentVolumeClaim: {claimName: sbob-work}
183
+ - name: hf
184
+ hostPath: {path: /opt/sbob-hf, type: Directory}
185
+ ---
186
+ apiVersion: batch/v1
187
+ kind: Job
188
+ metadata:
189
+ name: sbob-cmp-q-mr-krabs
190
+ namespace: sbob
191
+ labels: {app: sbob-cmp-q}
192
+ spec:
193
+ backoffLimit: 0
194
+ template:
195
+ metadata:
196
+ labels: {app: sbob-cmp-q}
197
+ spec:
198
+ restartPolicy: Never
199
+ containers:
200
+ - name: eval
201
+ image: nvcr.io/nvidia/pytorch:26.05-py3
202
+ command: ["bash","-lc"]
203
+ args:
204
+ - |
205
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
206
+ cd /work && python eval_ensemble.py --adapter /work/adapters/mr_krabs/final
207
+ env:
208
+ - {name: HF_HOME, value: /hf}
209
+ - {name: HF_HUB_OFFLINE, value: "1"}
210
+ - {name: PYTHONUNBUFFERED, value: "1"}
211
+ resources:
212
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
213
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
214
+ volumeMounts:
215
+ - {name: work, mountPath: /work}
216
+ - {name: hf, mountPath: /hf}
217
+ volumes:
218
+ - name: work
219
+ persistentVolumeClaim: {claimName: sbob-work}
220
+ - name: hf
221
+ hostPath: {path: /opt/sbob-hf, type: Directory}
222
+ ---
223
+ apiVersion: batch/v1
224
+ kind: Job
225
+ metadata:
226
+ name: sbob-cmp-q-plankton
227
+ namespace: sbob
228
+ labels: {app: sbob-cmp-q}
229
+ spec:
230
+ backoffLimit: 0
231
+ template:
232
+ metadata:
233
+ labels: {app: sbob-cmp-q}
234
+ spec:
235
+ restartPolicy: Never
236
+ containers:
237
+ - name: eval
238
+ image: nvcr.io/nvidia/pytorch:26.05-py3
239
+ command: ["bash","-lc"]
240
+ args:
241
+ - |
242
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
243
+ cd /work && python eval_ensemble.py --adapter /work/adapters/plankton/final
244
+ env:
245
+ - {name: HF_HOME, value: /hf}
246
+ - {name: HF_HUB_OFFLINE, value: "1"}
247
+ - {name: PYTHONUNBUFFERED, value: "1"}
248
+ resources:
249
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
250
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
251
+ volumeMounts:
252
+ - {name: work, mountPath: /work}
253
+ - {name: hf, mountPath: /hf}
254
+ volumes:
255
+ - name: work
256
+ persistentVolumeClaim: {claimName: sbob-work}
257
+ - name: hf
258
+ hostPath: {path: /opt/sbob-hf, type: Directory}
259
+ ---
260
+ apiVersion: batch/v1
261
+ kind: Job
262
+ metadata:
263
+ name: sbob-cmp-q-sandy
264
+ namespace: sbob
265
+ labels: {app: sbob-cmp-q}
266
+ spec:
267
+ backoffLimit: 0
268
+ template:
269
+ metadata:
270
+ labels: {app: sbob-cmp-q}
271
+ spec:
272
+ restartPolicy: Never
273
+ containers:
274
+ - name: eval
275
+ image: nvcr.io/nvidia/pytorch:26.05-py3
276
+ command: ["bash","-lc"]
277
+ args:
278
+ - |
279
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
280
+ cd /work && python eval_ensemble.py --adapter /work/adapters/sandy/final
281
+ env:
282
+ - {name: HF_HOME, value: /hf}
283
+ - {name: HF_HUB_OFFLINE, value: "1"}
284
+ - {name: PYTHONUNBUFFERED, value: "1"}
285
+ resources:
286
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
287
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
288
+ volumeMounts:
289
+ - {name: work, mountPath: /work}
290
+ - {name: hf, mountPath: /hf}
291
+ volumes:
292
+ - name: work
293
+ persistentVolumeClaim: {claimName: sbob-work}
294
+ - name: hf
295
+ hostPath: {path: /opt/sbob-hf, type: Directory}
296
+ ---
297
+ apiVersion: batch/v1
298
+ kind: Job
299
+ metadata:
300
+ name: sbob-cmp-q-mrs-puff
301
+ namespace: sbob
302
+ labels: {app: sbob-cmp-q}
303
+ spec:
304
+ backoffLimit: 0
305
+ template:
306
+ metadata:
307
+ labels: {app: sbob-cmp-q}
308
+ spec:
309
+ restartPolicy: Never
310
+ containers:
311
+ - name: eval
312
+ image: nvcr.io/nvidia/pytorch:26.05-py3
313
+ command: ["bash","-lc"]
314
+ args:
315
+ - |
316
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
317
+ cd /work && python eval_ensemble.py --adapter /work/adapters/mrs_puff/final
318
+ env:
319
+ - {name: HF_HOME, value: /hf}
320
+ - {name: HF_HUB_OFFLINE, value: "1"}
321
+ - {name: PYTHONUNBUFFERED, value: "1"}
322
+ resources:
323
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
324
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
325
+ volumeMounts:
326
+ - {name: work, mountPath: /work}
327
+ - {name: hf, mountPath: /hf}
328
+ volumes:
329
+ - name: work
330
+ persistentVolumeClaim: {claimName: sbob-work}
331
+ - name: hf
332
+ hostPath: {path: /opt/sbob-hf, type: Directory}
333
+ ---
334
+ apiVersion: batch/v1
335
+ kind: Job
336
+ metadata:
337
+ name: sbob-cmp-q-karen
338
+ namespace: sbob
339
+ labels: {app: sbob-cmp-q}
340
+ spec:
341
+ backoffLimit: 0
342
+ template:
343
+ metadata:
344
+ labels: {app: sbob-cmp-q}
345
+ spec:
346
+ restartPolicy: Never
347
+ containers:
348
+ - name: eval
349
+ image: nvcr.io/nvidia/pytorch:26.05-py3
350
+ command: ["bash","-lc"]
351
+ args:
352
+ - |
353
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
354
+ cd /work && python eval_ensemble.py --adapter /work/adapters/karen/final
355
+ env:
356
+ - {name: HF_HOME, value: /hf}
357
+ - {name: HF_HUB_OFFLINE, value: "1"}
358
+ - {name: PYTHONUNBUFFERED, value: "1"}
359
+ resources:
360
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
361
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
362
+ volumeMounts:
363
+ - {name: work, mountPath: /work}
364
+ - {name: hf, mountPath: /hf}
365
+ volumes:
366
+ - name: work
367
+ persistentVolumeClaim: {claimName: sbob-work}
368
+ - name: hf
369
+ hostPath: {path: /opt/sbob-hf, type: Directory}
370
+ ---
371
+ apiVersion: batch/v1
372
+ kind: Job
373
+ metadata:
374
+ name: sbob-cmp-q-gary
375
+ namespace: sbob
376
+ labels: {app: sbob-cmp-q}
377
+ spec:
378
+ backoffLimit: 0
379
+ template:
380
+ metadata:
381
+ labels: {app: sbob-cmp-q}
382
+ spec:
383
+ restartPolicy: Never
384
+ containers:
385
+ - name: eval
386
+ image: nvcr.io/nvidia/pytorch:26.05-py3
387
+ command: ["bash","-lc"]
388
+ args:
389
+ - |
390
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
391
+ cd /work && python eval_ensemble.py --adapter /work/adapters/gary/final
392
+ env:
393
+ - {name: HF_HOME, value: /hf}
394
+ - {name: HF_HUB_OFFLINE, value: "1"}
395
+ - {name: PYTHONUNBUFFERED, value: "1"}
396
+ resources:
397
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
398
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
399
+ volumeMounts:
400
+ - {name: work, mountPath: /work}
401
+ - {name: hf, mountPath: /hf}
402
+ volumes:
403
+ - name: work
404
+ persistentVolumeClaim: {claimName: sbob-work}
405
+ - name: hf
406
+ hostPath: {path: /opt/sbob-hf, type: Directory}
407
+ ---
408
+ apiVersion: batch/v1
409
+ kind: Job
410
+ metadata:
411
+ name: sbob-cmp-q-pearl
412
+ namespace: sbob
413
+ labels: {app: sbob-cmp-q}
414
+ spec:
415
+ backoffLimit: 0
416
+ template:
417
+ metadata:
418
+ labels: {app: sbob-cmp-q}
419
+ spec:
420
+ restartPolicy: Never
421
+ containers:
422
+ - name: eval
423
+ image: nvcr.io/nvidia/pytorch:26.05-py3
424
+ command: ["bash","-lc"]
425
+ args:
426
+ - |
427
+ pip install -q transformers==5.5.0 peft datasets accelerate sentencepiece huggingface_hub
428
+ cd /work && python eval_ensemble.py --adapter /work/adapters/pearl/final
429
+ env:
430
+ - {name: HF_HOME, value: /hf}
431
+ - {name: HF_HUB_OFFLINE, value: "1"}
432
+ - {name: PYTHONUNBUFFERED, value: "1"}
433
+ resources:
434
+ requests: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
435
+ limits: {nvidia.com/gpu: 1, cpu: "16", memory: 256Gi}
436
+ volumeMounts:
437
+ - {name: work, mountPath: /work}
438
+ - {name: hf, mountPath: /hf}
439
+ volumes:
440
+ - name: work
441
+ persistentVolumeClaim: {claimName: sbob-work}
442
+ - name: hf
443
+ hostPath: {path: /opt/sbob-hf, type: Directory}
444
+ ---
corpus_eval/quant_matrix.json ADDED
@@ -0,0 +1,686 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base": {
3
+ "spongebob": {
4
+ "examples": 1434,
5
+ "loss": 2.4966,
6
+ "ppl": 12.14
7
+ },
8
+ "patrick": {
9
+ "examples": 881,
10
+ "loss": 2.6757,
11
+ "ppl": 14.52
12
+ },
13
+ "squidward": {
14
+ "examples": 444,
15
+ "loss": 2.5061,
16
+ "ppl": 12.26
17
+ },
18
+ "mr_krabs": {
19
+ "examples": 633,
20
+ "loss": 2.4928,
21
+ "ppl": 12.09
22
+ },
23
+ "plankton": {
24
+ "examples": 581,
25
+ "loss": 2.5243,
26
+ "ppl": 12.48
27
+ },
28
+ "sandy": {
29
+ "examples": 273,
30
+ "loss": 2.4949,
31
+ "ppl": 12.12
32
+ },
33
+ "mrs_puff": {
34
+ "examples": 32,
35
+ "loss": 2.7816,
36
+ "ppl": 16.15
37
+ },
38
+ "karen": {
39
+ "examples": 105,
40
+ "loss": 2.5326,
41
+ "ppl": 12.59
42
+ },
43
+ "gary": {
44
+ "examples": 31,
45
+ "loss": 2.6714,
46
+ "ppl": 14.46
47
+ },
48
+ "pearl": {
49
+ "examples": 24,
50
+ "loss": 2.4184,
51
+ "ppl": 11.23
52
+ },
53
+ "_ensemble": {
54
+ "examples": 5392,
55
+ "loss": 2.5623,
56
+ "ppl": 12.97
57
+ }
58
+ },
59
+ "ensemble": {
60
+ "spongebob": {
61
+ "examples": 1434,
62
+ "loss": 1.8824,
63
+ "ppl": 6.57
64
+ },
65
+ "patrick": {
66
+ "examples": 881,
67
+ "loss": 1.952,
68
+ "ppl": 7.04
69
+ },
70
+ "squidward": {
71
+ "examples": 444,
72
+ "loss": 1.9352,
73
+ "ppl": 6.93
74
+ },
75
+ "mr_krabs": {
76
+ "examples": 633,
77
+ "loss": 1.9953,
78
+ "ppl": 7.35
79
+ },
80
+ "plankton": {
81
+ "examples": 581,
82
+ "loss": 2.033,
83
+ "ppl": 7.64
84
+ },
85
+ "sandy": {
86
+ "examples": 273,
87
+ "loss": 1.9401,
88
+ "ppl": 6.96
89
+ },
90
+ "mrs_puff": {
91
+ "examples": 32,
92
+ "loss": 1.9149,
93
+ "ppl": 6.79
94
+ },
95
+ "karen": {
96
+ "examples": 105,
97
+ "loss": 1.9224,
98
+ "ppl": 6.84
99
+ },
100
+ "gary": {
101
+ "examples": 31,
102
+ "loss": 1.3705,
103
+ "ppl": 3.94
104
+ },
105
+ "pearl": {
106
+ "examples": 24,
107
+ "loss": 1.9298,
108
+ "ppl": 6.89
109
+ },
110
+ "_ensemble": {
111
+ "examples": 5392,
112
+ "loss": 1.9588,
113
+ "ppl": 7.09
114
+ }
115
+ },
116
+ "spongebob": {
117
+ "spongebob": {
118
+ "examples": 1434,
119
+ "loss": 1.9136,
120
+ "ppl": 6.78
121
+ },
122
+ "patrick": {
123
+ "examples": 881,
124
+ "loss": 2.0256,
125
+ "ppl": 7.58
126
+ },
127
+ "squidward": {
128
+ "examples": 444,
129
+ "loss": 2.0122,
130
+ "ppl": 7.48
131
+ },
132
+ "mr_krabs": {
133
+ "examples": 633,
134
+ "loss": 2.0992,
135
+ "ppl": 8.16
136
+ },
137
+ "plankton": {
138
+ "examples": 581,
139
+ "loss": 2.1063,
140
+ "ppl": 8.22
141
+ },
142
+ "sandy": {
143
+ "examples": 273,
144
+ "loss": 2.0092,
145
+ "ppl": 7.46
146
+ },
147
+ "mrs_puff": {
148
+ "examples": 32,
149
+ "loss": 1.9684,
150
+ "ppl": 7.16
151
+ },
152
+ "karen": {
153
+ "examples": 105,
154
+ "loss": 1.9952,
155
+ "ppl": 7.35
156
+ },
157
+ "gary": {
158
+ "examples": 31,
159
+ "loss": 1.4656,
160
+ "ppl": 4.33
161
+ },
162
+ "pearl": {
163
+ "examples": 24,
164
+ "loss": 1.9822,
165
+ "ppl": 7.26
166
+ },
167
+ "_ensemble": {
168
+ "examples": 5392,
169
+ "loss": 2.0299,
170
+ "ppl": 7.61
171
+ }
172
+ },
173
+ "patrick": {
174
+ "spongebob": {
175
+ "examples": 1434,
176
+ "loss": 1.9584,
177
+ "ppl": 7.09
178
+ },
179
+ "patrick": {
180
+ "examples": 881,
181
+ "loss": 1.9917,
182
+ "ppl": 7.33
183
+ },
184
+ "squidward": {
185
+ "examples": 444,
186
+ "loss": 2.0262,
187
+ "ppl": 7.59
188
+ },
189
+ "mr_krabs": {
190
+ "examples": 633,
191
+ "loss": 2.1096,
192
+ "ppl": 8.24
193
+ },
194
+ "plankton": {
195
+ "examples": 581,
196
+ "loss": 2.1252,
197
+ "ppl": 8.37
198
+ },
199
+ "sandy": {
200
+ "examples": 273,
201
+ "loss": 2.0475,
202
+ "ppl": 7.75
203
+ },
204
+ "mrs_puff": {
205
+ "examples": 32,
206
+ "loss": 2.0248,
207
+ "ppl": 7.57
208
+ },
209
+ "karen": {
210
+ "examples": 105,
211
+ "loss": 2.0071,
212
+ "ppl": 7.44
213
+ },
214
+ "gary": {
215
+ "examples": 31,
216
+ "loss": 1.4371,
217
+ "ppl": 4.21
218
+ },
219
+ "pearl": {
220
+ "examples": 24,
221
+ "loss": 1.9696,
222
+ "ppl": 7.17
223
+ },
224
+ "_ensemble": {
225
+ "examples": 5392,
226
+ "loss": 2.0438,
227
+ "ppl": 7.72
228
+ }
229
+ },
230
+ "squidward": {
231
+ "spongebob": {
232
+ "examples": 1434,
233
+ "loss": 1.9599,
234
+ "ppl": 7.1
235
+ },
236
+ "patrick": {
237
+ "examples": 881,
238
+ "loss": 2.0513,
239
+ "ppl": 7.78
240
+ },
241
+ "squidward": {
242
+ "examples": 444,
243
+ "loss": 1.979,
244
+ "ppl": 7.24
245
+ },
246
+ "mr_krabs": {
247
+ "examples": 633,
248
+ "loss": 2.1075,
249
+ "ppl": 8.23
250
+ },
251
+ "plankton": {
252
+ "examples": 581,
253
+ "loss": 2.1226,
254
+ "ppl": 8.35
255
+ },
256
+ "sandy": {
257
+ "examples": 273,
258
+ "loss": 2.0569,
259
+ "ppl": 7.82
260
+ },
261
+ "mrs_puff": {
262
+ "examples": 32,
263
+ "loss": 2.0255,
264
+ "ppl": 7.58
265
+ },
266
+ "karen": {
267
+ "examples": 105,
268
+ "loss": 2.0124,
269
+ "ppl": 7.48
270
+ },
271
+ "gary": {
272
+ "examples": 31,
273
+ "loss": 1.5072,
274
+ "ppl": 4.51
275
+ },
276
+ "pearl": {
277
+ "examples": 24,
278
+ "loss": 1.9854,
279
+ "ppl": 7.28
280
+ },
281
+ "_ensemble": {
282
+ "examples": 5392,
283
+ "loss": 2.0515,
284
+ "ppl": 7.78
285
+ }
286
+ },
287
+ "mr_krabs": {
288
+ "spongebob": {
289
+ "examples": 1434,
290
+ "loss": 1.9651,
291
+ "ppl": 7.14
292
+ },
293
+ "patrick": {
294
+ "examples": 881,
295
+ "loss": 2.0569,
296
+ "ppl": 7.82
297
+ },
298
+ "squidward": {
299
+ "examples": 444,
300
+ "loss": 2.0208,
301
+ "ppl": 7.54
302
+ },
303
+ "mr_krabs": {
304
+ "examples": 633,
305
+ "loss": 2.0402,
306
+ "ppl": 7.69
307
+ },
308
+ "plankton": {
309
+ "examples": 581,
310
+ "loss": 2.1239,
311
+ "ppl": 8.36
312
+ },
313
+ "sandy": {
314
+ "examples": 273,
315
+ "loss": 2.026,
316
+ "ppl": 7.58
317
+ },
318
+ "mrs_puff": {
319
+ "examples": 32,
320
+ "loss": 2.0014,
321
+ "ppl": 7.4
322
+ },
323
+ "karen": {
324
+ "examples": 105,
325
+ "loss": 1.9898,
326
+ "ppl": 7.31
327
+ },
328
+ "gary": {
329
+ "examples": 31,
330
+ "loss": 1.4629,
331
+ "ppl": 4.32
332
+ },
333
+ "pearl": {
334
+ "examples": 24,
335
+ "loss": 2.0194,
336
+ "ppl": 7.53
337
+ },
338
+ "_ensemble": {
339
+ "examples": 5392,
340
+ "loss": 2.0456,
341
+ "ppl": 7.73
342
+ }
343
+ },
344
+ "plankton": {
345
+ "spongebob": {
346
+ "examples": 1434,
347
+ "loss": 1.9601,
348
+ "ppl": 7.1
349
+ },
350
+ "patrick": {
351
+ "examples": 881,
352
+ "loss": 2.0556,
353
+ "ppl": 7.81
354
+ },
355
+ "squidward": {
356
+ "examples": 444,
357
+ "loss": 2.0136,
358
+ "ppl": 7.49
359
+ },
360
+ "mr_krabs": {
361
+ "examples": 633,
362
+ "loss": 2.1025,
363
+ "ppl": 8.19
364
+ },
365
+ "plankton": {
366
+ "examples": 581,
367
+ "loss": 2.0835,
368
+ "ppl": 8.03
369
+ },
370
+ "sandy": {
371
+ "examples": 273,
372
+ "loss": 2.0431,
373
+ "ppl": 7.71
374
+ },
375
+ "mrs_puff": {
376
+ "examples": 32,
377
+ "loss": 2.0366,
378
+ "ppl": 7.66
379
+ },
380
+ "karen": {
381
+ "examples": 105,
382
+ "loss": 1.99,
383
+ "ppl": 7.32
384
+ },
385
+ "gary": {
386
+ "examples": 31,
387
+ "loss": 1.4397,
388
+ "ppl": 4.22
389
+ },
390
+ "pearl": {
391
+ "examples": 24,
392
+ "loss": 2.0207,
393
+ "ppl": 7.54
394
+ },
395
+ "_ensemble": {
396
+ "examples": 5392,
397
+ "loss": 2.0476,
398
+ "ppl": 7.75
399
+ }
400
+ },
401
+ "sandy": {
402
+ "spongebob": {
403
+ "examples": 1434,
404
+ "loss": 1.9783,
405
+ "ppl": 7.23
406
+ },
407
+ "patrick": {
408
+ "examples": 881,
409
+ "loss": 2.0744,
410
+ "ppl": 7.96
411
+ },
412
+ "squidward": {
413
+ "examples": 444,
414
+ "loss": 2.0388,
415
+ "ppl": 7.68
416
+ },
417
+ "mr_krabs": {
418
+ "examples": 633,
419
+ "loss": 2.1191,
420
+ "ppl": 8.32
421
+ },
422
+ "plankton": {
423
+ "examples": 581,
424
+ "loss": 2.1313,
425
+ "ppl": 8.43
426
+ },
427
+ "sandy": {
428
+ "examples": 273,
429
+ "loss": 2.0257,
430
+ "ppl": 7.58
431
+ },
432
+ "mrs_puff": {
433
+ "examples": 32,
434
+ "loss": 2.0308,
435
+ "ppl": 7.62
436
+ },
437
+ "karen": {
438
+ "examples": 105,
439
+ "loss": 2.0222,
440
+ "ppl": 7.55
441
+ },
442
+ "gary": {
443
+ "examples": 31,
444
+ "loss": 1.4014,
445
+ "ppl": 4.06
446
+ },
447
+ "pearl": {
448
+ "examples": 24,
449
+ "loss": 1.9778,
450
+ "ppl": 7.23
451
+ },
452
+ "_ensemble": {
453
+ "examples": 5392,
454
+ "loss": 2.0674,
455
+ "ppl": 7.9
456
+ }
457
+ },
458
+ "mrs_puff": {
459
+ "spongebob": {
460
+ "examples": 1434,
461
+ "loss": 1.992,
462
+ "ppl": 7.33
463
+ },
464
+ "patrick": {
465
+ "examples": 881,
466
+ "loss": 2.088,
467
+ "ppl": 8.07
468
+ },
469
+ "squidward": {
470
+ "examples": 444,
471
+ "loss": 2.0484,
472
+ "ppl": 7.76
473
+ },
474
+ "mr_krabs": {
475
+ "examples": 633,
476
+ "loss": 2.1442,
477
+ "ppl": 8.54
478
+ },
479
+ "plankton": {
480
+ "examples": 581,
481
+ "loss": 2.154,
482
+ "ppl": 8.62
483
+ },
484
+ "sandy": {
485
+ "examples": 273,
486
+ "loss": 2.0604,
487
+ "ppl": 7.85
488
+ },
489
+ "mrs_puff": {
490
+ "examples": 32,
491
+ "loss": 2.028,
492
+ "ppl": 7.6
493
+ },
494
+ "karen": {
495
+ "examples": 105,
496
+ "loss": 2.018,
497
+ "ppl": 7.52
498
+ },
499
+ "gary": {
500
+ "examples": 31,
501
+ "loss": 1.4782,
502
+ "ppl": 4.39
503
+ },
504
+ "pearl": {
505
+ "examples": 24,
506
+ "loss": 2.0223,
507
+ "ppl": 7.56
508
+ },
509
+ "_ensemble": {
510
+ "examples": 5392,
511
+ "loss": 2.085,
512
+ "ppl": 8.04
513
+ }
514
+ },
515
+ "karen": {
516
+ "spongebob": {
517
+ "examples": 1434,
518
+ "loss": 1.9889,
519
+ "ppl": 7.31
520
+ },
521
+ "patrick": {
522
+ "examples": 881,
523
+ "loss": 2.0822,
524
+ "ppl": 8.02
525
+ },
526
+ "squidward": {
527
+ "examples": 444,
528
+ "loss": 2.0419,
529
+ "ppl": 7.71
530
+ },
531
+ "mr_krabs": {
532
+ "examples": 633,
533
+ "loss": 2.1129,
534
+ "ppl": 8.27
535
+ },
536
+ "plankton": {
537
+ "examples": 581,
538
+ "loss": 2.1393,
539
+ "ppl": 8.49
540
+ },
541
+ "sandy": {
542
+ "examples": 273,
543
+ "loss": 2.0624,
544
+ "ppl": 7.86
545
+ },
546
+ "mrs_puff": {
547
+ "examples": 32,
548
+ "loss": 2.0514,
549
+ "ppl": 7.78
550
+ },
551
+ "karen": {
552
+ "examples": 105,
553
+ "loss": 2.0078,
554
+ "ppl": 7.45
555
+ },
556
+ "gary": {
557
+ "examples": 31,
558
+ "loss": 1.4638,
559
+ "ppl": 4.32
560
+ },
561
+ "pearl": {
562
+ "examples": 24,
563
+ "loss": 2.0143,
564
+ "ppl": 7.5
565
+ },
566
+ "_ensemble": {
567
+ "examples": 5392,
568
+ "loss": 2.0723,
569
+ "ppl": 7.94
570
+ }
571
+ },
572
+ "gary": {
573
+ "spongebob": {
574
+ "examples": 1434,
575
+ "loss": 2.004,
576
+ "ppl": 7.42
577
+ },
578
+ "patrick": {
579
+ "examples": 881,
580
+ "loss": 2.111,
581
+ "ppl": 8.26
582
+ },
583
+ "squidward": {
584
+ "examples": 444,
585
+ "loss": 2.0688,
586
+ "ppl": 7.92
587
+ },
588
+ "mr_krabs": {
589
+ "examples": 633,
590
+ "loss": 2.1208,
591
+ "ppl": 8.34
592
+ },
593
+ "plankton": {
594
+ "examples": 581,
595
+ "loss": 2.1564,
596
+ "ppl": 8.64
597
+ },
598
+ "sandy": {
599
+ "examples": 273,
600
+ "loss": 2.056,
601
+ "ppl": 7.81
602
+ },
603
+ "mrs_puff": {
604
+ "examples": 32,
605
+ "loss": 2.0945,
606
+ "ppl": 8.12
607
+ },
608
+ "karen": {
609
+ "examples": 105,
610
+ "loss": 2.032,
611
+ "ppl": 7.63
612
+ },
613
+ "gary": {
614
+ "examples": 31,
615
+ "loss": 1.4448,
616
+ "ppl": 4.24
617
+ },
618
+ "pearl": {
619
+ "examples": 24,
620
+ "loss": 1.9775,
621
+ "ppl": 7.22
622
+ },
623
+ "_ensemble": {
624
+ "examples": 5392,
625
+ "loss": 2.0901,
626
+ "ppl": 8.09
627
+ }
628
+ },
629
+ "pearl": {
630
+ "spongebob": {
631
+ "examples": 1434,
632
+ "loss": 1.9676,
633
+ "ppl": 7.15
634
+ },
635
+ "patrick": {
636
+ "examples": 881,
637
+ "loss": 2.0538,
638
+ "ppl": 7.8
639
+ },
640
+ "squidward": {
641
+ "examples": 444,
642
+ "loss": 2.015,
643
+ "ppl": 7.5
644
+ },
645
+ "mr_krabs": {
646
+ "examples": 633,
647
+ "loss": 2.0968,
648
+ "ppl": 8.14
649
+ },
650
+ "plankton": {
651
+ "examples": 581,
652
+ "loss": 2.114,
653
+ "ppl": 8.28
654
+ },
655
+ "sandy": {
656
+ "examples": 273,
657
+ "loss": 2.021,
658
+ "ppl": 7.55
659
+ },
660
+ "mrs_puff": {
661
+ "examples": 32,
662
+ "loss": 2.0583,
663
+ "ppl": 7.83
664
+ },
665
+ "karen": {
666
+ "examples": 105,
667
+ "loss": 1.983,
668
+ "ppl": 7.26
669
+ },
670
+ "gary": {
671
+ "examples": 31,
672
+ "loss": 1.4518,
673
+ "ppl": 4.27
674
+ },
675
+ "pearl": {
676
+ "examples": 24,
677
+ "loss": 1.9404,
678
+ "ppl": 6.96
679
+ },
680
+ "_ensemble": {
681
+ "examples": 5392,
682
+ "loss": 2.0502,
683
+ "ppl": 7.77
684
+ }
685
+ }
686
+ }
corpus_eval/quant_matrix.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Quant matrix — masked val loss (gemma-4-31B base vs LoRAs)
2
+
3
+ Configs: `base` = no adapter; `ensemble` = all-speaker r=64 LoRA; others = dedicated per-character r=32 LoRAs. Each column is one 1-GPU job evaluating all 11 val sets (token-weighted mean masked NLL; lower is better). 2026-06-10.
4
+
5
+ | val set \ config | base | ensemble | spongebob | patrick | squidward | mr_krabs | plankton | sandy | mrs_puff | karen | gary | pearl |
6
+ |---|---|---|---|---|---|---|---|---|---|---|---|---|
7
+ | spongebob (n=1434) | 2.4966 | **1.8824** | 1.9136 | 1.9584 | 1.9599 | 1.9651 | 1.9601 | 1.9783 | 1.9920 | 1.9889 | 2.0040 | 1.9676 |
8
+ | patrick (n=881) | 2.6757 | **1.9520** | 2.0256 | 1.9917 | 2.0513 | 2.0569 | 2.0556 | 2.0744 | 2.0880 | 2.0822 | 2.1110 | 2.0538 |
9
+ | squidward (n=444) | 2.5061 | **1.9352** | 2.0122 | 2.0262 | 1.9790 | 2.0208 | 2.0136 | 2.0388 | 2.0484 | 2.0419 | 2.0688 | 2.0150 |
10
+ | mr_krabs (n=633) | 2.4928 | **1.9953** | 2.0992 | 2.1096 | 2.1075 | 2.0402 | 2.1025 | 2.1191 | 2.1442 | 2.1129 | 2.1208 | 2.0968 |
11
+ | plankton (n=581) | 2.5243 | **2.0330** | 2.1063 | 2.1252 | 2.1226 | 2.1239 | 2.0835 | 2.1313 | 2.1540 | 2.1393 | 2.1564 | 2.1140 |
12
+ | sandy (n=273) | 2.4949 | **1.9401** | 2.0092 | 2.0475 | 2.0569 | 2.0260 | 2.0431 | 2.0257 | 2.0604 | 2.0624 | 2.0560 | 2.0210 |
13
+ | mrs_puff (n=32) | 2.7816 | **1.9149** | 1.9684 | 2.0248 | 2.0255 | 2.0014 | 2.0366 | 2.0308 | 2.0280 | 2.0514 | 2.0945 | 2.0583 |
14
+ | karen (n=105) | 2.5326 | **1.9224** | 1.9952 | 2.0071 | 2.0124 | 1.9898 | 1.9900 | 2.0222 | 2.0180 | 2.0078 | 2.0320 | 1.9830 |
15
+ | gary (n=31) | 2.6714 | **1.3705** | 1.4656 | 1.4371 | 1.5072 | 1.4629 | 1.4397 | 1.4014 | 1.4782 | 1.4638 | 1.4448 | 1.4518 |
16
+ | pearl (n=24) | 2.4184 | **1.9298** | 1.9822 | 1.9696 | 1.9854 | 2.0194 | 2.0207 | 1.9778 | 2.0223 | 2.0143 | 1.9775 | 1.9404 |
17
+ | _ensemble (n=5392) | 2.5623 | **1.9588** | 2.0299 | 2.0438 | 2.0515 | 2.0456 | 2.0476 | 2.0674 | 2.0850 | 2.0723 | 2.0901 | 2.0502 |
18
+ | **mean Δ vs base (11 sets)** | +0.0000 | -0.6657 | -0.5954 | -0.5832 | -0.5725 | -0.5822 | -0.5785 | -0.5718 | -0.5489 | -0.5563 | -0.5455 | -0.5823 |
19
+
20
+ ## Ensemble vs dedicated, on each character's own val set
21
+
22
+ | val set | base | dedicated | ensemble | ens Δ vs base | ens Δ vs dedicated |
23
+ |---|---|---|---|---|---|
24
+ | spongebob | 2.4966 | 1.9136 | 1.8824 | -0.6142 | -0.0312 |
25
+ | patrick | 2.6757 | 1.9917 | 1.9520 | -0.7237 | -0.0397 |
26
+ | squidward | 2.5061 | 1.9790 | 1.9352 | -0.5709 | -0.0438 |
27
+ | mr_krabs | 2.4928 | 2.0402 | 1.9953 | -0.4975 | -0.0449 |
28
+ | plankton | 2.5243 | 2.0835 | 2.0330 | -0.4913 | -0.0505 |
29
+ | sandy | 2.4949 | 2.0257 | 1.9401 | -0.5548 | -0.0856 |
30
+ | mrs_puff | 2.7816 | 2.0280 | 1.9149 | -0.8667 | -0.1131 |
31
+ | karen | 2.5326 | 2.0078 | 1.9224 | -0.6102 | -0.0854 |
32
+ | gary | 2.6714 | 1.4448 | 1.3705 | -1.3009 | -0.0743 |
33
+ | pearl | 2.4184 | 1.9404 | 1.9298 | -0.4886 | -0.0106 |
34
+ | _ensemble (own set) | 2.5623 | — | 1.9588 | -0.6035 | — |
35
+
36
+ ## Sanity checks
37
+
38
+ - ensemble on squidward: 1.9352 vs known 1.935 -> OK
39
+ - ensemble on spongebob: 1.8824 vs known 1.882 -> OK
40
+ - degenerate cells (loss >5 or <0.5): none
corpus_eval/samples.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"char": "spongebob", "ctx_tail": ["Sandy: [points to the stable doors, which SpongeBob and Patrick are holding shut] Release the broncos!", "Anchovies: [meeping as they are released into the area, then get lassoed by Sandy and tied by their legs]"], "gold": "[stops stopwatch] Wow! Four seconds.", "base": "Wow, Sandy. You’re the best lassoer I’ve ever seen.", "dedicated": "[he and Patrick are cheering] Whoo-hoo! Whoo-hoo!", "ensemble": "Wow. Sandy, how did you learn to do that?"}
2
+ {"char": "spongebob", "ctx_tail": ["Sandy: What's that? Trouble at the old mine? Lead the way!", "Nobby: [gibbering while running away as Sandy follows]"], "gold": "Wow! [gets hit with a pea and falls over] Whoa!", "base": "[sees a camper being chased by a rattlesnake] Hey, that one's mine! [stops stopwatch] Six seconds. [puts the rattlesnake in a bag]", "dedicated": "[he and Patrick catch up with Sandy] The old mine? I thought we were ridin' the rodeo.", "ensemble": "[runs away] I'm going with you!"}
3
+ {"char": "spongebob", "ctx_tail": ["SpongeBob and Patrick: [nervous, put all their candy in the sack]", "Narlene: [sticks her arm into one of SpongeBob's holes] I know you're hidin' more candy in those holes, SpongeVarmit."], "gold": "[laughs] Hey, that tickles.", "base": "[screams]", "dedicated": "[gets pulled out of his holes] Whoa!", "ensemble": "[yells]"}
4
+ {"char": "spongebob", "ctx_tail": ["SpongeBob: [laughs] Hey, that tickles.", "Narlene: [pulls out a Jack-o'lantern bucket with candy] Hoo-whee! Trick or treat! Thank you kindly, stranger. [walks away] Hoo-hoo!"], "gold": "[tries to run forward, but gets hit with more projectiles and falls down] Whoa!", "base": "[confused] What just happened?", "dedicated": "But I need that candy for the trick-or-treaters.", "ensemble": "[waves] Bye, Narlene. [he and Patrick look at each other]"}
5
+ {"char": "patrick", "ctx_tail": ["Sandy: So, let me hear ya say, yee-haw! [takes off hat and swings it]", "All: Yee-haw!"], "gold": "Hooray!", "base": "Hey, I'm already dressed like a cowboy.", "dedicated": "[leans back and falls down]", "ensemble": "[spits]"}
6
+ {"char": "patrick", "ctx_tail": ["Narlene: [pulls out a Jack-o'lantern bucket with candy] Hoo-whee! Trick or treat! Thank you kindly, stranger. [walks away] Hoo-hoo!", "SpongeBob: [tries to run forward, but gets hit with more projectiles and falls down] Whoa!"], "gold": "[pats belly] Well, she didn't check every hole. [candy is in his belly button]", "base": "[gets up] What's going on?", "dedicated": "[tries to run forward, but also gets hit with projectiles and falls down] Whoa!", "ensemble": "[gets hit with a projectile and falls down, groans]"}
7
+ {"char": "patrick", "ctx_tail": ["Sandy: [flinging her paddleball] Hi-yah! [the pea gets destroyed by the paddleball]", "Narlene: Huh? Dagnabbit!"], "gold": "[shoots a pea from his butt]", "base": "[runs out of straws] Oh, no! [aims his butt and farts]", "dedicated": "[shoots a pea with his butt]", "ensemble": "[aims his butt] My turn! [shoots peas, which knock over the Klopnodians]"}
8
+ {"char": "patrick", "ctx_tail": ["[The TV shows the Krusty Krab.]", "Mr. Krabs: [exits the Krusty Krab] Attention, Krusty Krab lovers!"], "gold": "I'm listening.", "base": "[gasps] Oh, the Krusty Krab!", "dedicated": "[excited] Oh, new Krabby Patty flavor!", "ensemble": "[gasps] Mr. Krabs!"}
9
+ {"char": "squidward", "ctx_tail": ["All: Yee-haw!", "Patrick: Hooray!"], "gold": "Hm.", "base": "Ugh.", "dedicated": "[sighs] I hate this place.", "ensemble": "[puts on cowboy hat] Huh? Oh."}
10
+ {"char": "squidward", "ctx_tail": ["Sandy: [dismounts the horse] Lookie here. I run a clean town, so let's keep it friendly boys, or y'all will have to spend a night in the [points away] hoosegow.", "Girl: [holding in her bladder with another girl in front of the \"jail\" outhouse] Will someone arrest me? I need to use the jail."], "gold": "[inside the jail, plays harmonica] This jail stinks. [holds nose] Literally.", "base": "[off-screen] Ho ho!", "dedicated": "[in the outhouse, sighs]", "ensemble": "[holds a magazine] Oh, I could use the outhouse too. [points to himself] I've been holding it all day."}
11
+ {"char": "squidward", "ctx_tail": ["Narlene: [disappointed] Well, guess we oughta be escapin' now. [escapes from the store while riding Nobby]", "Mr. Krabs: [calling] Somebody get the sheriff! [trips on a gumball and falls down] Whoa!"], "gold": "[plays the harmonica while sitting on a barrel]", "base": "I'm tellin' ya, Mr. Krabs, it's true.", "dedicated": "[in sheriff outfit] What seems to be the problem?", "ensemble": "[comes out from the bathroom with toilet paper around his head and his clothes ripped] I got the runs! [sees the destruction and Mr. Krabs on the floor] What happened?"}
12
+ {"char": "squidward", "ctx_tail": ["Plankton: [puts two baby bottles of milk on the counter]", "Narlene and Nobby: [take the bottles and drink them like babies, then spit out the milk]"], "gold": "[playing the harmonica]", "base": "[as a Native American] The Great White Father says, \"This is not milk. This is goat's milk.\"", "dedicated": "[runs away with a tray of food and a drink, which he spills on Narlene and Nobby]", "ensemble": "[groans]"}
13
+ {"char": "mr_krabs", "ctx_tail": ["Patrick: Hooray!", "Squidward: Hm."], "gold": "[takes the microphone] And for you wannabe buckaroos, I have a one for the price of two Western wear [puts on cowboy hat] sale happening at the general store!", "base": "Yee-haw!", "dedicated": "Yee-haw.", "ensemble": "[laughs]"}
14
+ {"char": "mr_krabs", "ctx_tail": ["Sandy: I can't believe I fell for the ol' trouble at the mine bit.", "[Cowboy boots fly across the screen as it transitions to Mr. Krabs reading the newspaper in the general store. Several shots are fired at the newspaper, and it rips apart. Narlene enters the store.]"], "gold": "[holding his claws up] All right, you got the drop on me. What do you want there, Clamity Jane?", "base": "What in the hay is goin' on out there, Narlene?", "dedicated": "[gasps]", "ensemble": "[looks up] Huh?"}
15
+ {"char": "mr_krabs", "ctx_tail": ["Mr. Krabs: [holding his claws up] All right, you got the drop on me. What do you want there, Clamity Jane?", "Narlene: You can call me Narlene the Bandit Queen, [points to the gumball machine] and I want the combination to that there gumball machine."], "gold": "Never!", "base": "The combination? You mean the combination to the gumball machine?", "dedicated": "Never!", "ensemble": "[shrugs] Sorry, but you're gonna have to shoot me first."}
16
+ {"char": "mr_krabs", "ctx_tail": ["Nobby: [giggles and shrugs]", "Narlene: [disappointed] Well, guess we oughta be escapin' now. [escapes from the store while riding Nobby]"], "gold": "[calling] Somebody get the sheriff! [trips on a gumball and falls down] Whoa!", "base": "[angrily] Wait a minute! You ain't takin' nothin' outta here, not a single nickel!", "dedicated": "[screams and runs after them] Stop! Thief! [accidentally bumps into SpongeBob]", "ensemble": "[crying] All my gumballs! [sobs, then sees the burnt gumballs on the floor] Hey, hey! [picks up a burnt gumball] You can still chew 'em!"}
17
+ {"char": "plankton", "ctx_tail": ["[Bubble transition to a saloon door, where Patrick opens it. He is standing on SpongeBob, and they are both wearing Western outfits. The door shuts on them, and catches SpongeBob's nose. Campers are seen at the tables, some playing cards, and some cheering. One camper is passed out on the table. Plankton lands on the root beer dispenser to dispense it into a mug.]", "Camper: [blows away the foam and chugs the root beer]"], "gold": "[has bubbles on his face that resemble a beard and mustache]", "base": "[walks up to the camper] Hey, you! Do you know where I can find a cowboy hat that fits me?", "dedicated": "[blows away the foam and drinks the root beer]", "ensemble": "[jumps to the next mug]"}
18
+ {"char": "plankton", "ctx_tail": ["Kidferatu: [plays Western music on the piano again]", "Two campers: [scream and run away as Narlene and Nobby approach the canteen]"], "gold": "Huh?", "base": "[walking up to Narlene and Nobby] Well, well, well, if it isn't Narlene and Nobby. [chuckles]", "dedicated": "[dressed as a sheriff, and is sitting on top of the canteen] This canteen is my territory! [chuckles] And I'm not gonna share it with you varmints!", "ensemble": "[walks over to Narlene and Nobby] Welcome to the Krusty Kanteen. [holds out a patty] Would you like to try one of our delicious Krabby Patties?"}
19
+ {"char": "plankton", "ctx_tail": ["Plankton: Huh?", "Narlene: [hits away a can] Milk."], "gold": "[instantly puts two milk glasses on the counter]", "base": "[drops a can] You two are a day late and a dollar short.", "dedicated": "Ah! [gets hit by Narlene]", "ensemble": "[throws away a can] Milk."}
20
+ {"char": "plankton", "ctx_tail": ["Plankton: [instantly puts two milk glasses on the counter]", "Narlene: [hits away the glasses, breaking them] Give me the bottle."], "gold": "[puts two baby bottles of milk on the counter]", "base": "Yes, ma'am. [gets the milk bottle and pours it into a glass]", "dedicated": "[grumbles as he opens a refrigerator and gets a milk bottle]", "ensemble": "[gives her the bottle]"}
21
+ {"char": "sandy", "ctx_tail": ["Sandy: [through watchtower loudspeaker] Yee-haw!", "SpongeBob: Huh?"], "gold": "Howdy, howdy, campers. I'm proud to announce today is the first ever Kamp Korral Wild West Day! We're all gonna dress like cowboys and a full day o' western fun!", "base": "[through watchtower loudspeaker] Yee-haw!", "dedicated": "[over loudspeaker] Attention all campers!", "ensemble": "Attention, Kamp Koral!"}
22
+ {"char": "sandy", "ctx_tail": ["Sandy: Howdy, howdy, campers. I'm proud to announce today is the first ever Kamp Korral Wild West Day! We're all gonna dress like cowboys and a full day o' western fun!", "Campers: [cheering]"], "gold": "So, let me hear ya say, yee-haw! [takes off hat and swings it]", "base": "First, y'all gotta have a costume! Y'all can't go through the day without it. So, let's see what y'all have.", "dedicated": "[pointing] You can pick up your cowboy gear in the arts and crafts tent.", "ensemble": "Y'all head on down to the cabin for your costumes! [presses a button to release the watchtower's arm]"}
23
+ {"char": "sandy", "ctx_tail": ["Orange camper and Bubble Bass: [each glare at each other, then inhale, but not before their straws are slapped away by a paddle] Huh?", "Bubble Bass: [off-screen, gasps upon seeing Sandy with a paddleball on a seahorse] Sheriff Sandy."], "gold": "[dismounts the horse] Lookie here. I run a clean town, so let's keep it friendly boys, or y'all will have to spend a night in the [points away] hoosegow.", "base": "[pulls out a badge and puts it on] Well, howdy, campers. [turns to the campers] The sheriff's in town, and she's here to make sure there's no more cheatin', lyin', or shootin' in her camp! [points to SpongeBob] You there, sir, you're a cheater, and cheaters never prosper.", "dedicated": "[off-screen] That's Sheriff Star to you. [on-screen] Howdy, campers. [points] It's time for paddleball.", "ensemble": "[pointing] Put them peashooters down! [Bubble Bass and the orange camper put their peashooters down] You boys were fightin'."}
24
+ {"char": "sandy", "ctx_tail": ["[Bubble transition to the campers watching Sandy use a lasso in an enclosed fence.]", "Campers: [cheering]"], "gold": "Yeah, yeah, yeah, yeah! [extends her lasso and jumps in the hole] Whoop! Whoop, whoop, whoop! [turns her lasso into a Texas shape] Whoop, [lassos her hat to launch it in the air, then fall back on her head] whoop, whoop! Whoo!", "base": "I'll show y'all the finer points of lassoing.", "dedicated": "[lassos a hay bale] Yee-haw! Now you try.", "ensemble": "[throws lasso]"}
25
+ {"char": "mrs_puff", "ctx_tail": ["Patrick: [tired] Oh. [goes to Bubble Bass] Okay, what are your demands?", "Bubble Bass: I would like a full country breakfast, [Patrick gives him eggs, bacon, biscuits, and orange juice] some silver age comic books, [Patrick brings him comic books] a smart TV, [Patrick brings him a large TV] a life-size Man Ray action figure, [Patrick brings him a large Man Ray figure] and an ergonomic computer chair. [Patrick brings him a computer chair]"], "gold": "[laughing, off-screen]", "base": "Patrick, what's the big idea?", "dedicated": "[panting, runs to Patrick, hands him a note]", "ensemble": "[off-screen] Oh, my! [on the poster with a tiara]"}
26
+ {"char": "mrs_puff", "ctx_tail": ["Mrs. Puff: [laughing, off-screen]", "Patrick: Huh?"], "gold": "[exits, holding the Patty Kake] I can't believe I got here first.", "base": "[laughing] Well, well, well. I should've known that you'd get your own little boat. [laughs]", "dedicated": "[laughing] I haven't had this much fun since I was a teenager.", "ensemble": "[laughing on a bus with the old people]"}
27
+ {"char": "mrs_puff", "ctx_tail": ["Patrick: [ominously] Now, where's Mrs. Puff? [turns his eyes into binoculars, sees her driving] Aha! [leaves his binoculars and eyes behind]", "[Patrick looks at Mrs. Puff and turns his head to an empty boat. He starts the motor and takes a stance on the front of the boat. It cuts between Patrick's boat with intense music and Mrs. Puff listening to slow music.]"], "gold": "[snapping, singing]", "base": "[looks at Patrick, surprised] Hey!", "dedicated": "[looks at Patrick's boat] Oh, my!", "ensemble": "[humming]"}
28
+ {"char": "mrs_puff", "ctx_tail": ["Mrs. Puff: [snapping, singing]", "Patrick: [on the boat]"], "gold": "[snapping, singing]", "base": "[snapping]", "dedicated": "[snapping, singing]", "ensemble": "[snapping, singing]"}
29
+ {"char": "karen", "ctx_tail": ["[Mr. Krabs picks up Plankton and throws him back to the Chum Bucket. He slides into the lab and gets on to a table.]", "Plankton: Karen, quick! You gotta cut this Krabby Patty out of me, stat!"], "gold": "But what about anesthetic?", "base": "Oh, it's too late. The Krabby Patty has already begun to take over your body.", "dedicated": "Oh, no, you don't. You're not getting out of this one, Sheldon.", "ensemble": "[She scans him.] Huh? You don't have a Krabby Patty in you."}
30
+ {"char": "karen", "ctx_tail": ["Plankton: There's no time! I can feel it digesting!", "[Karen lifts her arm revealing that there is a saw attachment on the end of it.]"], "gold": "Whatever you say, dear. Hold still. [The exterior of the Chum Bucket is shown] This may pinch a little.", "base": "Then let's get started.", "dedicated": "I'll have to saw through your stomach lining.", "ensemble": "Okay. Here we go."}
31
+ {"char": "karen", "ctx_tail": ["[All of the customers scream and run away.]", "Plankton: Wait, come back! Oh, come on, Karen, what happened?"], "gold": "I just did what you asked. [She lifts up a bag of Plankton's stomach contents.] I analyzed the contents of your stomach and used them to synthesize a [She lifts up a Krabby Patty that is messed up.] Krabby Patty.", "base": "I think the problem is in the new formula.", "dedicated": "Well, when you started your little experiment, you forgot to add one key ingredient.", "ensemble": "Oh, nothing. I just set the patty recipe to \"maximum gross.\""}
32
+ {"char": "karen", "ctx_tail": ["Plankton: You'll regret this one day! [lands in a pile of trash] Ouch! [emerges and looks at the half of his recipe that says \"And a pinch of chum\"] Huh? [offscreen, narrating] Our little squabble only got me part of the recipe. [Back to present]", "SpongeBob: Gosh, Mr. Plankton! That doesn't sound like the Mr. Krabs story at all."], "gold": "That's because it isn't.", "base": "[in a mocking voice] Oh, no! That's not the story!", "dedicated": "The recipe was originally in your family. So, why would you steal it?", "ensemble": "I told you. Plankton's memory is shot. He's been making that story up for years."}
33
+ {"char": "gary", "ctx_tail": ["[The time closet teleports again. Three children are now on posters. Patrick blows them away with a reef blower. Patrick #2 is seen running with the sticks for Bubble Bass's cage. Patrick goes back in time again. A doctor is on the poster. The time closet teleports again. Gary is on the poster. Patrick looks in the Krusty Krab in frustration, then stomps in anger and storms outside.]", "Patrick: [growls, sees Gary]"], "gold": "Meow?", "base": "Meow.", "dedicated": "Meow.", "ensemble": "Meow."}
34
+ {"char": "gary", "ctx_tail": ["Gary: Meow?", "Patrick: [takes out a laser pointer and shines it on the ground]"], "gold": "[meowing, follows the laser]", "base": "Meow?", "dedicated": "Meow? [follows the light]", "ensemble": "[meows and chases the laser pointer as Patrick runs away]"}
35
+ {"char": "gary", "ctx_tail": ["Scallop: [cawing, flying]", "[Patrick takes the scallop and fastens the laser pointer to it, letting it fly away. Gary follows the laser.]"], "gold": "[meowing]", "base": "[meowing, following the laser]", "dedicated": "Meow, meow, meow!", "ensemble": "Meow, meow, meow, meow, meow, meow, meow, meow, meow!"}
36
+ {"char": "gary", "ctx_tail": ["Elwood: This is fun! [licks paintbrush]", "[A camper drills a screw in. Larry pounds a stake with a hammer twice. Bubble transition to Gary slithering past with a hammer in his mouth and tools on his shell.]"], "gold": "Meow, meow, meow...", "base": "Meow!", "dedicated": "Meow.", "ensemble": "Meow. [uses hammer to tighten a bolt]"}
37
+ {"char": "pearl", "ctx_tail": ["Squidward: I said what?", "Mr. Krabs: So you think I'm full of hot air, do ye? Well, in this case, you're right. There's usually an air bubble or two trapped inside me shell. [to Sandy] Go ahead. Don't be shy. [Sandy grunts and puts her head on Mr. Krabs and SpongeBob starts clicking Mr. Krabs' arm back and fourth]"], "gold": "Daddy, there's a submarine on the roof. Oh, you seem kind of busy. Maybe I should come back later.", "base": "Oh, Daddy! [Pearl puts her head in Mr. Krabs' mouth]", "dedicated": "[crying]", "ensemble": "Daddy!"}
38
+ {"char": "pearl", "ctx_tail": ["Pearl: Daddy, there's a submarine on the roof. Oh, you seem kind of busy. Maybe I should come back later.", "SpongeBob: [stops Pearl] No, Pearl. Don't go. You're a mammal, right?"], "gold": "Yeah, I guess so.", "base": "Yeah, I guess.", "dedicated": "Yes.", "ensemble": "Right."}
39
+ {"char": "pearl", "ctx_tail": ["Pearl: Yeah, I guess so.", "SpongeBob: And you breathe air, right?"], "gold": "Sure, my nose is full of it.", "base": "I've been told that, yes.", "dedicated": "Right.", "ensemble": "I don't know."}
40
+ {"char": "pearl", "ctx_tail": ["SpongeBob: You've got to help Sandy. She needs to share your air.", "Sandy: [whimpers while being held by SpongeBob]"], "gold": "I guess us mammals have to stick together.", "base": "I'm here to help.", "dedicated": "Oh, I don't know, SpongeBob.", "ensemble": "Oh, okay. [Pearl pulls her nose and blows air in Sandy's helmet]"}
corpus_eval/samples.md ADDED
@@ -0,0 +1,426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generation side-by-sides: base gemma-4-31B vs dedicated LoRA (r=32) vs ensemble LoRA (r=64)
2
+
3
+ Held-out val prompts (episodes never trained on), first 4 per character with >= 3 context
4
+ lines. Sampling: temperature 0.8, top_p 0.9, max_new_tokens 120, cut at first newline,
5
+ seed fixed per (context, config). Generated by `eval/gen_samples.py` (job `sbob-cmp-gen`,
6
+ one B300, 2026-06-10).
7
+
8
+ ## SpongeBob
9
+
10
+ ### Sample 1
11
+
12
+ > *Sandy: [points to the stable doors, which SpongeBob and Patrick are holding shut] Release the broncos!*
13
+ > *Anchovies: [meeping as they are released into the area, then get lassoed by Sandy and tied by their legs]*
14
+
15
+ - **GOLD:** [stops stopwatch] Wow! Four seconds.
16
+ - **base:** Wow, Sandy. You’re the best lassoer I’ve ever seen.
17
+ - **dedicated:** [he and Patrick are cheering] Whoo-hoo! Whoo-hoo!
18
+ - **ensemble:** Wow. Sandy, how did you learn to do that?
19
+
20
+ ### Sample 2
21
+
22
+ > *Sandy: What's that? Trouble at the old mine? Lead the way!*
23
+ > *Nobby: [gibbering while running away as Sandy follows]*
24
+
25
+ - **GOLD:** Wow! [gets hit with a pea and falls over] Whoa!
26
+ - **base:** [sees a camper being chased by a rattlesnake] Hey, that one's mine! [stops stopwatch] Six seconds. [puts the rattlesnake in a bag]
27
+ - **dedicated:** [he and Patrick catch up with Sandy] The old mine? I thought we were ridin' the rodeo.
28
+ - **ensemble:** [runs away] I'm going with you!
29
+
30
+ ### Sample 3
31
+
32
+ > *SpongeBob and Patrick: [nervous, put all their candy in the sack]*
33
+ > *Narlene: [sticks her arm into one of SpongeBob's holes] I know you're hidin' more candy in those holes, SpongeVarmit.*
34
+
35
+ - **GOLD:** [laughs] Hey, that tickles.
36
+ - **base:** [screams]
37
+ - **dedicated:** [gets pulled out of his holes] Whoa!
38
+ - **ensemble:** [yells]
39
+
40
+ ### Sample 4
41
+
42
+ > *SpongeBob: [laughs] Hey, that tickles.*
43
+ > *Narlene: [pulls out a Jack-o'lantern bucket with candy] Hoo-whee! Trick or treat! Thank you kindly, stranger. [walks away] Hoo-hoo!*
44
+
45
+ - **GOLD:** [tries to run forward, but gets hit with more projectiles and falls down] Whoa!
46
+ - **base:** [confused] What just happened?
47
+ - **dedicated:** But I need that candy for the trick-or-treaters.
48
+ - **ensemble:** [waves] Bye, Narlene. [he and Patrick look at each other]
49
+
50
+ ## Patrick
51
+
52
+ ### Sample 1
53
+
54
+ > *Sandy: So, let me hear ya say, yee-haw! [takes off hat and swings it]*
55
+ > *All: Yee-haw!*
56
+
57
+ - **GOLD:** Hooray!
58
+ - **base:** Hey, I'm already dressed like a cowboy.
59
+ - **dedicated:** [leans back and falls down]
60
+ - **ensemble:** [spits]
61
+
62
+ ### Sample 2
63
+
64
+ > *Narlene: [pulls out a Jack-o'lantern bucket with candy] Hoo-whee! Trick or treat! Thank you kindly, stranger. [walks away] Hoo-hoo!*
65
+ > *SpongeBob: [tries to run forward, but gets hit with more projectiles and falls down] Whoa!*
66
+
67
+ - **GOLD:** [pats belly] Well, she didn't check every hole. [candy is in his belly button]
68
+ - **base:** [gets up] What's going on?
69
+ - **dedicated:** [tries to run forward, but also gets hit with projectiles and falls down] Whoa!
70
+ - **ensemble:** [gets hit with a projectile and falls down, groans]
71
+
72
+ ### Sample 3
73
+
74
+ > *Sandy: [flinging her paddleball] Hi-yah! [the pea gets destroyed by the paddleball]*
75
+ > *Narlene: Huh? Dagnabbit!*
76
+
77
+ - **GOLD:** [shoots a pea from his butt]
78
+ - **base:** [runs out of straws] Oh, no! [aims his butt and farts]
79
+ - **dedicated:** [shoots a pea with his butt]
80
+ - **ensemble:** [aims his butt] My turn! [shoots peas, which knock over the Klopnodians]
81
+
82
+ ### Sample 4
83
+
84
+ > *[The TV shows the Krusty Krab.]*
85
+ > *Mr. Krabs: [exits the Krusty Krab] Attention, Krusty Krab lovers!*
86
+
87
+ - **GOLD:** I'm listening.
88
+ - **base:** [gasps] Oh, the Krusty Krab!
89
+ - **dedicated:** [excited] Oh, new Krabby Patty flavor!
90
+ - **ensemble:** [gasps] Mr. Krabs!
91
+
92
+ ## Squidward
93
+
94
+ ### Sample 1
95
+
96
+ > *All: Yee-haw!*
97
+ > *Patrick: Hooray!*
98
+
99
+ - **GOLD:** Hm.
100
+ - **base:** Ugh.
101
+ - **dedicated:** [sighs] I hate this place.
102
+ - **ensemble:** [puts on cowboy hat] Huh? Oh.
103
+
104
+ ### Sample 2
105
+
106
+ > *Sandy: [dismounts the horse] Lookie here. I run a clean town, so let's keep it friendly boys, or y'all will have to spend a night in the [points away] hoosegow.*
107
+ > *Girl: [holding in her bladder with another girl in front of the "jail" outhouse] Will someone arrest me? I need to use the jail.*
108
+
109
+ - **GOLD:** [inside the jail, plays harmonica] This jail stinks. [holds nose] Literally.
110
+ - **base:** [off-screen] Ho ho!
111
+ - **dedicated:** [in the outhouse, sighs]
112
+ - **ensemble:** [holds a magazine] Oh, I could use the outhouse too. [points to himself] I've been holding it all day.
113
+
114
+ ### Sample 3
115
+
116
+ > *Narlene: [disappointed] Well, guess we oughta be escapin' now. [escapes from the store while riding Nobby]*
117
+ > *Mr. Krabs: [calling] Somebody get the sheriff! [trips on a gumball and falls down] Whoa!*
118
+
119
+ - **GOLD:** [plays the harmonica while sitting on a barrel]
120
+ - **base:** I'm tellin' ya, Mr. Krabs, it's true.
121
+ - **dedicated:** [in sheriff outfit] What seems to be the problem?
122
+ - **ensemble:** [comes out from the bathroom with toilet paper around his head and his clothes ripped] I got the runs! [sees the destruction and Mr. Krabs on the floor] What happened?
123
+
124
+ ### Sample 4
125
+
126
+ > *Plankton: [puts two baby bottles of milk on the counter]*
127
+ > *Narlene and Nobby: [take the bottles and drink them like babies, then spit out the milk]*
128
+
129
+ - **GOLD:** [playing the harmonica]
130
+ - **base:** [as a Native American] The Great White Father says, "This is not milk. This is goat's milk."
131
+ - **dedicated:** [runs away with a tray of food and a drink, which he spills on Narlene and Nobby]
132
+ - **ensemble:** [groans]
133
+
134
+ ## Mr. Krabs
135
+
136
+ ### Sample 1
137
+
138
+ > *Patrick: Hooray!*
139
+ > *Squidward: Hm.*
140
+
141
+ - **GOLD:** [takes the microphone] And for you wannabe buckaroos, I have a one for the price of two Western wear [puts on cowboy hat] sale happening at the general store!
142
+ - **base:** Yee-haw!
143
+ - **dedicated:** Yee-haw.
144
+ - **ensemble:** [laughs]
145
+
146
+ ### Sample 2
147
+
148
+ > *Sandy: I can't believe I fell for the ol' trouble at the mine bit.*
149
+ > *[Cowboy boots fly across the screen as it transitions to Mr. Krabs reading the newspaper in the general store. Several shots are fired at the newspaper, and it rips apart. Narlene enters the store.]*
150
+
151
+ - **GOLD:** [holding his claws up] All right, you got the drop on me. What do you want there, Clamity Jane?
152
+ - **base:** What in the hay is goin' on out there, Narlene?
153
+ - **dedicated:** [gasps]
154
+ - **ensemble:** [looks up] Huh?
155
+
156
+ ### Sample 3
157
+
158
+ > *Mr. Krabs: [holding his claws up] All right, you got the drop on me. What do you want there, Clamity Jane?*
159
+ > *Narlene: You can call me Narlene the Bandit Queen, [points to the gumball machine] and I want the combination to that there gumball machine.*
160
+
161
+ - **GOLD:** Never!
162
+ - **base:** The combination? You mean the combination to the gumball machine?
163
+ - **dedicated:** Never!
164
+ - **ensemble:** [shrugs] Sorry, but you're gonna have to shoot me first.
165
+
166
+ ### Sample 4
167
+
168
+ > *Nobby: [giggles and shrugs]*
169
+ > *Narlene: [disappointed] Well, guess we oughta be escapin' now. [escapes from the store while riding Nobby]*
170
+
171
+ - **GOLD:** [calling] Somebody get the sheriff! [trips on a gumball and falls down] Whoa!
172
+ - **base:** [angrily] Wait a minute! You ain't takin' nothin' outta here, not a single nickel!
173
+ - **dedicated:** [screams and runs after them] Stop! Thief! [accidentally bumps into SpongeBob]
174
+ - **ensemble:** [crying] All my gumballs! [sobs, then sees the burnt gumballs on the floor] Hey, hey! [picks up a burnt gumball] You can still chew 'em!
175
+
176
+ ## Plankton
177
+
178
+ ### Sample 1
179
+
180
+ > *[Bubble transition to a saloon door, where Patrick opens it. He is standing on SpongeBob, and they are both wearing Western outfits. The door shuts on them, and catches SpongeBob's nose. Campers are seen at the tables, some playing cards, and some cheering. One camper is passed out on the table. Plankton lands on the root beer dispenser to dispense it into a mug.]*
181
+ > *Camper: [blows away the foam and chugs the root beer]*
182
+
183
+ - **GOLD:** [has bubbles on his face that resemble a beard and mustache]
184
+ - **base:** [walks up to the camper] Hey, you! Do you know where I can find a cowboy hat that fits me?
185
+ - **dedicated:** [blows away the foam and drinks the root beer]
186
+ - **ensemble:** [jumps to the next mug]
187
+
188
+ ### Sample 2
189
+
190
+ > *Kidferatu: [plays Western music on the piano again]*
191
+ > *Two campers: [scream and run away as Narlene and Nobby approach the canteen]*
192
+
193
+ - **GOLD:** Huh?
194
+ - **base:** [walking up to Narlene and Nobby] Well, well, well, if it isn't Narlene and Nobby. [chuckles]
195
+ - **dedicated:** [dressed as a sheriff, and is sitting on top of the canteen] This canteen is my territory! [chuckles] And I'm not gonna share it with you varmints!
196
+ - **ensemble:** [walks over to Narlene and Nobby] Welcome to the Krusty Kanteen. [holds out a patty] Would you like to try one of our delicious Krabby Patties?
197
+
198
+ ### Sample 3
199
+
200
+ > *Plankton: Huh?*
201
+ > *Narlene: [hits away a can] Milk.*
202
+
203
+ - **GOLD:** [instantly puts two milk glasses on the counter]
204
+ - **base:** [drops a can] You two are a day late and a dollar short.
205
+ - **dedicated:** Ah! [gets hit by Narlene]
206
+ - **ensemble:** [throws away a can] Milk.
207
+
208
+ ### Sample 4
209
+
210
+ > *Plankton: [instantly puts two milk glasses on the counter]*
211
+ > *Narlene: [hits away the glasses, breaking them] Give me the bottle.*
212
+
213
+ - **GOLD:** [puts two baby bottles of milk on the counter]
214
+ - **base:** Yes, ma'am. [gets the milk bottle and pours it into a glass]
215
+ - **dedicated:** [grumbles as he opens a refrigerator and gets a milk bottle]
216
+ - **ensemble:** [gives her the bottle]
217
+
218
+ ## Sandy
219
+
220
+ ### Sample 1
221
+
222
+ > *Sandy: [through watchtower loudspeaker] Yee-haw!*
223
+ > *SpongeBob: Huh?*
224
+
225
+ - **GOLD:** Howdy, howdy, campers. I'm proud to announce today is the first ever Kamp Korral Wild West Day! We're all gonna dress like cowboys and a full day o' western fun!
226
+ - **base:** [through watchtower loudspeaker] Yee-haw!
227
+ - **dedicated:** [over loudspeaker] Attention all campers!
228
+ - **ensemble:** Attention, Kamp Koral!
229
+
230
+ ### Sample 2
231
+
232
+ > *Sandy: Howdy, howdy, campers. I'm proud to announce today is the first ever Kamp Korral Wild West Day! We're all gonna dress like cowboys and a full day o' western fun!*
233
+ > *Campers: [cheering]*
234
+
235
+ - **GOLD:** So, let me hear ya say, yee-haw! [takes off hat and swings it]
236
+ - **base:** First, y'all gotta have a costume! Y'all can't go through the day without it. So, let's see what y'all have.
237
+ - **dedicated:** [pointing] You can pick up your cowboy gear in the arts and crafts tent.
238
+ - **ensemble:** Y'all head on down to the cabin for your costumes! [presses a button to release the watchtower's arm]
239
+
240
+ ### Sample 3
241
+
242
+ > *Orange camper and Bubble Bass: [each glare at each other, then inhale, but not before their straws are slapped away by a paddle] Huh?*
243
+ > *Bubble Bass: [off-screen, gasps upon seeing Sandy with a paddleball on a seahorse] Sheriff Sandy.*
244
+
245
+ - **GOLD:** [dismounts the horse] Lookie here. I run a clean town, so let's keep it friendly boys, or y'all will have to spend a night in the [points away] hoosegow.
246
+ - **base:** [pulls out a badge and puts it on] Well, howdy, campers. [turns to the campers] The sheriff's in town, and she's here to make sure there's no more cheatin', lyin', or shootin' in her camp! [points to SpongeBob] You there, sir, you're a cheater, and cheaters never prosper.
247
+ - **dedicated:** [off-screen] That's Sheriff Star to you. [on-screen] Howdy, campers. [points] It's time for paddleball.
248
+ - **ensemble:** [pointing] Put them peashooters down! [Bubble Bass and the orange camper put their peashooters down] You boys were fightin'.
249
+
250
+ ### Sample 4
251
+
252
+ > *[Bubble transition to the campers watching Sandy use a lasso in an enclosed fence.]*
253
+ > *Campers: [cheering]*
254
+
255
+ - **GOLD:** Yeah, yeah, yeah, yeah! [extends her lasso and jumps in the hole] Whoop! Whoop, whoop, whoop! [turns her lasso into a Texas shape] Whoop, [lassos her hat to launch it in the air, then fall back on her head] whoop, whoop! Whoo!
256
+ - **base:** I'll show y'all the finer points of lassoing.
257
+ - **dedicated:** [lassos a hay bale] Yee-haw! Now you try.
258
+ - **ensemble:** [throws lasso]
259
+
260
+ ## Mrs. Puff
261
+
262
+ ### Sample 1
263
+
264
+ > *Patrick: [tired] Oh. [goes to Bubble Bass] Okay, what are your demands?*
265
+ > *Bubble Bass: I would like a full country breakfast, [Patrick gives him eggs, bacon, biscuits, and orange juice] some silver age comic books, [Patrick brings him comic books] a smart TV, [Patrick brings him a large TV] a life-size Man Ray action figure, [Patrick brings him a large Man Ray figure] and an ergonomic computer chair. [Patrick brings him a computer chair]*
266
+
267
+ - **GOLD:** [laughing, off-screen]
268
+ - **base:** Patrick, what's the big idea?
269
+ - **dedicated:** [panting, runs to Patrick, hands him a note]
270
+ - **ensemble:** [off-screen] Oh, my! [on the poster with a tiara]
271
+
272
+ ### Sample 2
273
+
274
+ > *Mrs. Puff: [laughing, off-screen]*
275
+ > *Patrick: Huh?*
276
+
277
+ - **GOLD:** [exits, holding the Patty Kake] I can't believe I got here first.
278
+ - **base:** [laughing] Well, well, well. I should've known that you'd get your own little boat. [laughs]
279
+ - **dedicated:** [laughing] I haven't had this much fun since I was a teenager.
280
+ - **ensemble:** [laughing on a bus with the old people]
281
+
282
+ ### Sample 3
283
+
284
+ > *Patrick: [ominously] Now, where's Mrs. Puff? [turns his eyes into binoculars, sees her driving] Aha! [leaves his binoculars and eyes behind]*
285
+ > *[Patrick looks at Mrs. Puff and turns his head to an empty boat. He starts the motor and takes a stance on the front of the boat. It cuts between Patrick's boat with intense music and Mrs. Puff listening to slow music.]*
286
+
287
+ - **GOLD:** [snapping, singing]
288
+ - **base:** [looks at Patrick, surprised] Hey!
289
+ - **dedicated:** [looks at Patrick's boat] Oh, my!
290
+ - **ensemble:** [humming]
291
+
292
+ ### Sample 4
293
+
294
+ > *Mrs. Puff: [snapping, singing]*
295
+ > *Patrick: [on the boat]*
296
+
297
+ - **GOLD:** [snapping, singing]
298
+ - **base:** [snapping]
299
+ - **dedicated:** [snapping, singing]
300
+ - **ensemble:** [snapping, singing]
301
+
302
+ ## Karen
303
+
304
+ ### Sample 1
305
+
306
+ > *[Mr. Krabs picks up Plankton and throws him back to the Chum Bucket. He slides into the lab and gets on to a table.]*
307
+ > *Plankton: Karen, quick! You gotta cut this Krabby Patty out of me, stat!*
308
+
309
+ - **GOLD:** But what about anesthetic?
310
+ - **base:** Oh, it's too late. The Krabby Patty has already begun to take over your body.
311
+ - **dedicated:** Oh, no, you don't. You're not getting out of this one, Sheldon.
312
+ - **ensemble:** [She scans him.] Huh? You don't have a Krabby Patty in you.
313
+
314
+ ### Sample 2
315
+
316
+ > *Plankton: There's no time! I can feel it digesting!*
317
+ > *[Karen lifts her arm revealing that there is a saw attachment on the end of it.]*
318
+
319
+ - **GOLD:** Whatever you say, dear. Hold still. [The exterior of the Chum Bucket is shown] This may pinch a little.
320
+ - **base:** Then let's get started.
321
+ - **dedicated:** I'll have to saw through your stomach lining.
322
+ - **ensemble:** Okay. Here we go.
323
+
324
+ ### Sample 3
325
+
326
+ > *[All of the customers scream and run away.]*
327
+ > *Plankton: Wait, come back! Oh, come on, Karen, what happened?*
328
+
329
+ - **GOLD:** I just did what you asked. [She lifts up a bag of Plankton's stomach contents.] I analyzed the contents of your stomach and used them to synthesize a [She lifts up a Krabby Patty that is messed up.] Krabby Patty.
330
+ - **base:** I think the problem is in the new formula.
331
+ - **dedicated:** Well, when you started your little experiment, you forgot to add one key ingredient.
332
+ - **ensemble:** Oh, nothing. I just set the patty recipe to "maximum gross."
333
+
334
+ ### Sample 4
335
+
336
+ > *Plankton: You'll regret this one day! [lands in a pile of trash] Ouch! [emerges and looks at the half of his recipe that says "And a pinch of chum"] Huh? [offscreen, narrating] Our little squabble only got me part of the recipe. [Back to present]*
337
+ > *SpongeBob: Gosh, Mr. Plankton! That doesn't sound like the Mr. Krabs story at all.*
338
+
339
+ - **GOLD:** That's because it isn't.
340
+ - **base:** [in a mocking voice] Oh, no! That's not the story!
341
+ - **dedicated:** The recipe was originally in your family. So, why would you steal it?
342
+ - **ensemble:** I told you. Plankton's memory is shot. He's been making that story up for years.
343
+
344
+ ## Gary
345
+
346
+ ### Sample 1
347
+
348
+ > *[The time closet teleports again. Three children are now on posters. Patrick blows them away with a reef blower. Patrick #2 is seen running with the sticks for Bubble Bass's cage. Patrick goes back in time again. A doctor is on the poster. The time closet teleports again. Gary is on the poster. Patrick looks in the Krusty Krab in frustration, then stomps in anger and storms outside.]*
349
+ > *Patrick: [growls, sees Gary]*
350
+
351
+ - **GOLD:** Meow?
352
+ - **base:** Meow.
353
+ - **dedicated:** Meow.
354
+ - **ensemble:** Meow.
355
+
356
+ ### Sample 2
357
+
358
+ > *Gary: Meow?*
359
+ > *Patrick: [takes out a laser pointer and shines it on the ground]*
360
+
361
+ - **GOLD:** [meowing, follows the laser]
362
+ - **base:** Meow?
363
+ - **dedicated:** Meow? [follows the light]
364
+ - **ensemble:** [meows and chases the laser pointer as Patrick runs away]
365
+
366
+ ### Sample 3
367
+
368
+ > *Scallop: [cawing, flying]*
369
+ > *[Patrick takes the scallop and fastens the laser pointer to it, letting it fly away. Gary follows the laser.]*
370
+
371
+ - **GOLD:** [meowing]
372
+ - **base:** [meowing, following the laser]
373
+ - **dedicated:** Meow, meow, meow!
374
+ - **ensemble:** Meow, meow, meow, meow, meow, meow, meow, meow, meow!
375
+
376
+ ### Sample 4
377
+
378
+ > *Elwood: This is fun! [licks paintbrush]*
379
+ > *[A camper drills a screw in. Larry pounds a stake with a hammer twice. Bubble transition to Gary slithering past with a hammer in his mouth and tools on his shell.]*
380
+
381
+ - **GOLD:** Meow, meow, meow...
382
+ - **base:** Meow!
383
+ - **dedicated:** Meow.
384
+ - **ensemble:** Meow. [uses hammer to tighten a bolt]
385
+
386
+ ## Pearl
387
+
388
+ ### Sample 1
389
+
390
+ > *Squidward: I said what?*
391
+ > *Mr. Krabs: So you think I'm full of hot air, do ye? Well, in this case, you're right. There's usually an air bubble or two trapped inside me shell. [to Sandy] Go ahead. Don't be shy. [Sandy grunts and puts her head on Mr. Krabs and SpongeBob starts clicking Mr. Krabs' arm back and fourth]*
392
+
393
+ - **GOLD:** Daddy, there's a submarine on the roof. Oh, you seem kind of busy. Maybe I should come back later.
394
+ - **base:** Oh, Daddy! [Pearl puts her head in Mr. Krabs' mouth]
395
+ - **dedicated:** [crying]
396
+ - **ensemble:** Daddy!
397
+
398
+ ### Sample 2
399
+
400
+ > *Pearl: Daddy, there's a submarine on the roof. Oh, you seem kind of busy. Maybe I should come back later.*
401
+ > *SpongeBob: [stops Pearl] No, Pearl. Don't go. You're a mammal, right?*
402
+
403
+ - **GOLD:** Yeah, I guess so.
404
+ - **base:** Yeah, I guess.
405
+ - **dedicated:** Yes.
406
+ - **ensemble:** Right.
407
+
408
+ ### Sample 3
409
+
410
+ > *Pearl: Yeah, I guess so.*
411
+ > *SpongeBob: And you breathe air, right?*
412
+
413
+ - **GOLD:** Sure, my nose is full of it.
414
+ - **base:** I've been told that, yes.
415
+ - **dedicated:** Right.
416
+ - **ensemble:** I don't know.
417
+
418
+ ### Sample 4
419
+
420
+ > *SpongeBob: You've got to help Sandy. She needs to share your air.*
421
+ > *Sandy: [whimpers while being held by SpongeBob]*
422
+
423
+ - **GOLD:** I guess us mammals have to stick together.
424
+ - **base:** I'm here to help.
425
+ - **dedicated:** Oh, I don't know, SpongeBob.
426
+ - **ensemble:** Oh, okay. [Pearl pulls her nose and blows air in Sandy's helmet]